1 #!/bin/bash
   2 #
   3 # ##########################################################
   4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
   5 # ##########################################################
   6 #
   7 #! /bin/sh
   8 # Guess values for system-dependent variables and create Makefiles.
   9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk9.
  10 #
  11 # Report bugs to <build-dev@openjdk.java.net>.
  12 #
  13 #
  14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  15 #
  16 #
  17 # This configure script is free software; the Free Software Foundation
  18 # gives unlimited permission to copy, distribute and modify it.
  19 ## -------------------- ##
  20 ## M4sh Initialization. ##
  21 ## -------------------- ##
  22 
  23 # Be more Bourne compatible
  24 DUALCASE=1; export DUALCASE # for MKS sh
  25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  26   emulate sh
  27   NULLCMD=:
  28   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  29   # is contrary to our usage.  Disable this feature.
  30   alias -g '${1+"$@"}'='"$@"'
  31   setopt NO_GLOB_SUBST
  32 else
  33   case `(set -o) 2>/dev/null` in #(
  34   *posix*) :
  35     set -o posix ;; #(
  36   *) :
  37      ;;
  38 esac
  39 fi
  40 
  41 
  42 as_nl='
  43 '
  44 export as_nl
  45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
  46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  49 # Prefer a ksh shell builtin over an external printf program on Solaris,
  50 # but without wasting forks for bash or zsh.
  51 if test -z "$BASH_VERSION$ZSH_VERSION" \
  52     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  53   as_echo='print -r --'
  54   as_echo_n='print -rn --'
  55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  56   as_echo='printf %s\n'
  57   as_echo_n='printf %s'
  58 else
  59   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  60     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  61     as_echo_n='/usr/ucb/echo -n'
  62   else
  63     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  64     as_echo_n_body='eval
  65       arg=$1;
  66       case $arg in #(
  67       *"$as_nl"*)
  68         expr "X$arg" : "X\\(.*\\)$as_nl";
  69         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  70       esac;
  71       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  72     '
  73     export as_echo_n_body
  74     as_echo_n='sh -c $as_echo_n_body as_echo'
  75   fi
  76   export as_echo_body
  77   as_echo='sh -c $as_echo_body as_echo'
  78 fi
  79 
  80 # The user is always right.
  81 if test "${PATH_SEPARATOR+set}" != set; then
  82   PATH_SEPARATOR=:
  83   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  84     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  85       PATH_SEPARATOR=';'
  86   }
  87 fi
  88 
  89 
  90 # IFS
  91 # We need space, tab and new line, in precisely that order.  Quoting is
  92 # there to prevent editors from complaining about space-tab.
  93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  94 # splitting by setting IFS to empty value.)
  95 IFS=" ""        $as_nl"
  96 
  97 # Find who we are.  Look in the path if we contain no directory separator.
  98 as_myself=
  99 case $0 in #((
 100   *[\\/]* ) as_myself=$0 ;;
 101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 102 for as_dir in $PATH
 103 do
 104   IFS=$as_save_IFS
 105   test -z "$as_dir" && as_dir=.
 106     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 107   done
 108 IFS=$as_save_IFS
 109 
 110      ;;
 111 esac
 112 # We did not find ourselves, most probably we were run as `sh COMMAND'
 113 # in which case we are not to be found in the path.
 114 if test "x$as_myself" = x; then
 115   as_myself=$0
 116 fi
 117 if test ! -f "$as_myself"; then
 118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 119   exit 1
 120 fi
 121 
 122 # Unset variables that we do not need and which cause bugs (e.g. in
 123 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 124 # suppresses any "Segmentation fault" message there.  '((' could
 125 # trigger a bug in pdksh 5.2.14.
 126 for as_var in BASH_ENV ENV MAIL MAILPATH
 127 do eval test x\${$as_var+set} = xset \
 128   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 129 done
 130 PS1='$ '
 131 PS2='> '
 132 PS4='+ '
 133 
 134 # NLS nuisances.
 135 LC_ALL=C
 136 export LC_ALL
 137 LANGUAGE=C
 138 export LANGUAGE
 139 
 140 # CDPATH.
 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 142 
 143 # Use a proper internal environment variable to ensure we don't fall
 144   # into an infinite loop, continuously re-executing ourselves.
 145   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 146     _as_can_reexec=no; export _as_can_reexec;
 147     # We cannot yet assume a decent shell, so we have to provide a
 148 # neutralization value for shells without unset; and this also
 149 # works around shells that cannot unset nonexistent variables.
 150 # Preserve -v and -x to the replacement shell.
 151 BASH_ENV=/dev/null
 152 ENV=/dev/null
 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 154 case $- in # ((((
 155   *v*x* | *x*v* ) as_opts=-vx ;;
 156   *v* ) as_opts=-v ;;
 157   *x* ) as_opts=-x ;;
 158   * ) as_opts= ;;
 159 esac
 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 161 # Admittedly, this is quite paranoid, since all the known shells bail
 162 # out after a failed `exec'.
 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 164 as_fn_exit 255
 165   fi
 166   # We don't want this to propagate to other subprocesses.
 167           { _as_can_reexec=; unset _as_can_reexec;}
 168 if test "x$CONFIG_SHELL" = x; then
 169   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 170   emulate sh
 171   NULLCMD=:
 172   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 173   # is contrary to our usage.  Disable this feature.
 174   alias -g '\${1+\"\$@\"}'='\"\$@\"'
 175   setopt NO_GLOB_SUBST
 176 else
 177   case \`(set -o) 2>/dev/null\` in #(
 178   *posix*) :
 179     set -o posix ;; #(
 180   *) :
 181      ;;
 182 esac
 183 fi
 184 "
 185   as_required="as_fn_return () { (exit \$1); }
 186 as_fn_success () { as_fn_return 0; }
 187 as_fn_failure () { as_fn_return 1; }
 188 as_fn_ret_success () { return 0; }
 189 as_fn_ret_failure () { return 1; }
 190 
 191 exitcode=0
 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 197 
 198 else
 199   exitcode=1; echo positional parameters were not saved.
 200 fi
 201 test x\$exitcode = x0 || exit 1
 202 test -x / || exit 1"
 203   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 204   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 205   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 206   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 207 test \$(( 1 + 1 )) = 2 || exit 1"
 208   if (eval "$as_required") 2>/dev/null; then :
 209   as_have_required=yes
 210 else
 211   as_have_required=no
 212 fi
 213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 214 
 215 else
 216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 217 as_found=false
 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 219 do
 220   IFS=$as_save_IFS
 221   test -z "$as_dir" && as_dir=.
 222   as_found=:
 223   case $as_dir in #(
 224          /*)
 225            for as_base in sh bash ksh sh5; do
 226              # Try only shells that exist, to save several forks.
 227              as_shell=$as_dir/$as_base
 228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 230   CONFIG_SHELL=$as_shell as_have_required=yes
 231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 232   break 2
 233 fi
 234 fi
 235            done;;
 236        esac
 237   as_found=false
 238 done
 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 241   CONFIG_SHELL=$SHELL as_have_required=yes
 242 fi; }
 243 IFS=$as_save_IFS
 244 
 245 
 246       if test "x$CONFIG_SHELL" != x; then :
 247   export CONFIG_SHELL
 248              # We cannot yet assume a decent shell, so we have to provide a
 249 # neutralization value for shells without unset; and this also
 250 # works around shells that cannot unset nonexistent variables.
 251 # Preserve -v and -x to the replacement shell.
 252 BASH_ENV=/dev/null
 253 ENV=/dev/null
 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 255 case $- in # ((((
 256   *v*x* | *x*v* ) as_opts=-vx ;;
 257   *v* ) as_opts=-v ;;
 258   *x* ) as_opts=-x ;;
 259   * ) as_opts= ;;
 260 esac
 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 262 # Admittedly, this is quite paranoid, since all the known shells bail
 263 # out after a failed `exec'.
 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 265 exit 255
 266 fi
 267 
 268     if test x$as_have_required = xno; then :
 269   $as_echo "$0: This script requires a shell more modern than all"
 270   $as_echo "$0: the shells that I found on your system."
 271   if test x${ZSH_VERSION+set} = xset ; then
 272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 274   else
 275     $as_echo "$0: Please tell bug-autoconf@gnu.org and
 276 $0: build-dev@openjdk.java.net about your system, including
 277 $0: any error possibly output before this message. Then
 278 $0: install a modern shell, or manually run the script
 279 $0: under such a shell if you do have one."
 280   fi
 281   exit 1
 282 fi
 283 fi
 284 fi
 285 SHELL=${CONFIG_SHELL-/bin/sh}
 286 export SHELL
 287 # Unset more variables known to interfere with behavior of common tools.
 288 CLICOLOR_FORCE= GREP_OPTIONS=
 289 unset CLICOLOR_FORCE GREP_OPTIONS
 290 
 291 ## --------------------- ##
 292 ## M4sh Shell Functions. ##
 293 ## --------------------- ##
 294 # as_fn_unset VAR
 295 # ---------------
 296 # Portably unset VAR.
 297 as_fn_unset ()
 298 {
 299   { eval $1=; unset $1;}
 300 }
 301 as_unset=as_fn_unset
 302 
 303 # as_fn_set_status STATUS
 304 # -----------------------
 305 # Set $? to STATUS, without forking.
 306 as_fn_set_status ()
 307 {
 308   return $1
 309 } # as_fn_set_status
 310 
 311 # as_fn_exit STATUS
 312 # -----------------
 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 314 as_fn_exit ()
 315 {
 316   set +e
 317   as_fn_set_status $1
 318   exit $1
 319 } # as_fn_exit
 320 
 321 # as_fn_mkdir_p
 322 # -------------
 323 # Create "$as_dir" as a directory, including parents if necessary.
 324 as_fn_mkdir_p ()
 325 {
 326 
 327   case $as_dir in #(
 328   -*) as_dir=./$as_dir;;
 329   esac
 330   test -d "$as_dir" || eval $as_mkdir_p || {
 331     as_dirs=
 332     while :; do
 333       case $as_dir in #(
 334       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 335       *) as_qdir=$as_dir;;
 336       esac
 337       as_dirs="'$as_qdir' $as_dirs"
 338       as_dir=`$as_dirname -- "$as_dir" ||
 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 340          X"$as_dir" : 'X\(//\)[^/]' \| \
 341          X"$as_dir" : 'X\(//\)$' \| \
 342          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 343 $as_echo X"$as_dir" |
 344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 345             s//\1/
 346             q
 347           }
 348           /^X\(\/\/\)[^/].*/{
 349             s//\1/
 350             q
 351           }
 352           /^X\(\/\/\)$/{
 353             s//\1/
 354             q
 355           }
 356           /^X\(\/\).*/{
 357             s//\1/
 358             q
 359           }
 360           s/.*/./; q'`
 361       test -d "$as_dir" && break
 362     done
 363     test -z "$as_dirs" || eval "mkdir $as_dirs"
 364   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 365 
 366 
 367 } # as_fn_mkdir_p
 368 
 369 # as_fn_executable_p FILE
 370 # -----------------------
 371 # Test if FILE is an executable regular file.
 372 as_fn_executable_p ()
 373 {
 374   test -f "$1" && test -x "$1"
 375 } # as_fn_executable_p
 376 # as_fn_append VAR VALUE
 377 # ----------------------
 378 # Append the text in VALUE to the end of the definition contained in VAR. Take
 379 # advantage of any shell optimizations that allow amortized linear growth over
 380 # repeated appends, instead of the typical quadratic growth present in naive
 381 # implementations.
 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 383   eval 'as_fn_append ()
 384   {
 385     eval $1+=\$2
 386   }'
 387 else
 388   as_fn_append ()
 389   {
 390     eval $1=\$$1\$2
 391   }
 392 fi # as_fn_append
 393 
 394 # as_fn_arith ARG...
 395 # ------------------
 396 # Perform arithmetic evaluation on the ARGs, and store the result in the
 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments
 398 # must be portable across $(()) and expr.
 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 400   eval 'as_fn_arith ()
 401   {
 402     as_val=$(( $* ))
 403   }'
 404 else
 405   as_fn_arith ()
 406   {
 407     as_val=`expr "$@" || test $? -eq 1`
 408   }
 409 fi # as_fn_arith
 410 
 411 
 412 # as_fn_error STATUS ERROR [LINENO LOG_FD]
 413 # ----------------------------------------
 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 416 # script with STATUS, using 1 if that was 0.
 417 as_fn_error ()
 418 {
 419   as_status=$1; test $as_status -eq 0 && as_status=1
 420   if test "$4"; then
 421     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 422     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 423   fi
 424   $as_echo "$as_me: error: $2" >&2
 425   as_fn_exit $as_status
 426 } # as_fn_error
 427 
 428 if expr a : '\(a\)' >/dev/null 2>&1 &&
 429    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 430   as_expr=expr
 431 else
 432   as_expr=false
 433 fi
 434 
 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 436   as_basename=basename
 437 else
 438   as_basename=false
 439 fi
 440 
 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 442   as_dirname=dirname
 443 else
 444   as_dirname=false
 445 fi
 446 
 447 as_me=`$as_basename -- "$0" ||
 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 449          X"$0" : 'X\(//\)$' \| \
 450          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 451 $as_echo X/"$0" |
 452     sed '/^.*\/\([^/][^/]*\)\/*$/{
 453             s//\1/
 454             q
 455           }
 456           /^X\/\(\/\/\)$/{
 457             s//\1/
 458             q
 459           }
 460           /^X\/\(\/\).*/{
 461             s//\1/
 462             q
 463           }
 464           s/.*/./; q'`
 465 
 466 # Avoid depending upon Character Ranges.
 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 470 as_cr_digits='0123456789'
 471 as_cr_alnum=$as_cr_Letters$as_cr_digits
 472 
 473 
 474   as_lineno_1=$LINENO as_lineno_1a=$LINENO
 475   as_lineno_2=$LINENO as_lineno_2a=$LINENO
 476   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 477   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 478   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 479   sed -n '
 480     p
 481     /[$]LINENO/=
 482   ' <$as_myself |
 483     sed '
 484       s/[$]LINENO.*/&-/
 485       t lineno
 486       b
 487       :lineno
 488       N
 489       :loop
 490       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 491       t loop
 492       s/-\n.*//
 493     ' >$as_me.lineno &&
 494   chmod +x "$as_me.lineno" ||
 495     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 496 
 497   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 498   # already done that, so ensure we don't try to do so again and fall
 499   # in an infinite loop.  This has already happened in practice.
 500   _as_can_reexec=no; export _as_can_reexec
 501   # Don't try to exec as it changes $[0], causing all sort of problems
 502   # (the dirname of $[0] is not the place where we might find the
 503   # original and so on.  Autoconf is especially sensitive to this).
 504   . "./$as_me.lineno"
 505   # Exit status is that of the last command.
 506   exit
 507 }
 508 
 509 ECHO_C= ECHO_N= ECHO_T=
 510 case `echo -n x` in #(((((
 511 -n*)
 512   case `echo 'xy\c'` in
 513   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 514   xy)  ECHO_C='\c';;
 515   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 516        ECHO_T=' ';;
 517   esac;;
 518 *)
 519   ECHO_N='-n';;
 520 esac
 521 
 522 rm -f conf$$ conf$$.exe conf$$.file
 523 if test -d conf$$.dir; then
 524   rm -f conf$$.dir/conf$$.file
 525 else
 526   rm -f conf$$.dir
 527   mkdir conf$$.dir 2>/dev/null
 528 fi
 529 if (echo >conf$$.file) 2>/dev/null; then
 530   if ln -s conf$$.file conf$$ 2>/dev/null; then
 531     as_ln_s='ln -s'
 532     # ... but there are two gotchas:
 533     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 534     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 535     # In both cases, we have to default to `cp -pR'.
 536     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 537       as_ln_s='cp -pR'
 538   elif ln conf$$.file conf$$ 2>/dev/null; then
 539     as_ln_s=ln
 540   else
 541     as_ln_s='cp -pR'
 542   fi
 543 else
 544   as_ln_s='cp -pR'
 545 fi
 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 547 rmdir conf$$.dir 2>/dev/null
 548 
 549 if mkdir -p . 2>/dev/null; then
 550   as_mkdir_p='mkdir -p "$as_dir"'
 551 else
 552   test -d ./-p && rmdir ./-p
 553   as_mkdir_p=false
 554 fi
 555 
 556 as_test_x='test -x'
 557 as_executable_p=as_fn_executable_p
 558 
 559 # Sed expression to map a string onto a valid CPP name.
 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 561 
 562 # Sed expression to map a string onto a valid variable name.
 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 564 
 565 
 566 test -n "$DJDIR" || exec 7<&0 </dev/null
 567 exec 6>&1
 568 
 569 # Name of the host.
 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 571 # so uname gets run too.
 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 573 
 574 #
 575 # Initializations.
 576 #
 577 ac_default_prefix=/usr/local
 578 ac_clean_files=
 579 ac_config_libobj_dir=.
 580 LIBOBJS=
 581 cross_compiling=no
 582 subdirs=
 583 MFLAGS=
 584 MAKEFLAGS=
 585 
 586 # Identity of this package.
 587 PACKAGE_NAME='OpenJDK'
 588 PACKAGE_TARNAME='openjdk'
 589 PACKAGE_VERSION='jdk9'
 590 PACKAGE_STRING='OpenJDK jdk9'
 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net'
 592 PACKAGE_URL='http://openjdk.java.net'
 593 
 594 # Factoring default headers for most tests.
 595 ac_includes_default="\
 596 #include <stdio.h>
 597 #ifdef HAVE_SYS_TYPES_H
 598 # include <sys/types.h>
 599 #endif
 600 #ifdef HAVE_SYS_STAT_H
 601 # include <sys/stat.h>
 602 #endif
 603 #ifdef STDC_HEADERS
 604 # include <stdlib.h>
 605 # include <stddef.h>
 606 #else
 607 # ifdef HAVE_STDLIB_H
 608 #  include <stdlib.h>
 609 # endif
 610 #endif
 611 #ifdef HAVE_STRING_H
 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 613 #  include <memory.h>
 614 # endif
 615 # include <string.h>
 616 #endif
 617 #ifdef HAVE_STRINGS_H
 618 # include <strings.h>
 619 #endif
 620 #ifdef HAVE_INTTYPES_H
 621 # include <inttypes.h>
 622 #endif
 623 #ifdef HAVE_STDINT_H
 624 # include <stdint.h>
 625 #endif
 626 #ifdef HAVE_UNISTD_H
 627 # include <unistd.h>
 628 #endif"
 629 
 630 ac_subst_vars='LTLIBOBJS
 631 LIBOBJS
 632 USE_NEW_DEPLOY_BUILD
 633 BUILD_DEPLOY
 634 ENABLE_TONGA
 635 TONGA_JAR
 636 ANT_CONTRIB
 637 CPPTASKS
 638 ASMTOOLS
 639 JDK_DEBUG_IMAGE_DIR
 640 BSDIFF_DIR
 641 JMC_ZIP_DIR
 642 JAVAFX_RUNTIME_VERSION
 643 JAVAFX_RUNTIME_FILEPATH
 644 JAVAFX_ZIP_DIR_ORIG
 645 JAVAFX_ZIP_DIR
 646 EDITBIN
 647 MIDL
 648 MSITRAN
 649 MSICERT
 650 CSCRIPT
 651 WSCRIPT
 652 UPXFILENAME
 653 UPXPATH
 654 LZMAPATH
 655 CCSS_SIGNING_DIR
 656 SIGN_FLAG
 657 WIXDIR
 658 SPARKLE_FRAMEWORK
 659 JUNIT_DIR
 660 ANT_HOME
 661 ANT
 662 ANT_EXE
 663 ICONV
 664 INSTALL_NAME_TOOL
 665 OPENSSL
 666 IBTOOL
 667 PLUTIL
 668 DEPLOY_CLANG
 669 MSGFMT
 670 PLUGIN_SYSROOT_CFLAGS
 671 PLUGIN_CC
 672 BUILD_INSTALL
 673 INSTALL_TOPDIR
 674 DEPLOY_TOPDIR
 675 BUILD_HEADLESS_ONLY
 676 BUILD_CRYPTO
 677 DISABLE_COMMERCIAL_FEATURES
 678 ENABLE_JFR
 679 TARGET_BITS_FLAG
 680 GLOBAL_LDFLAGS_SUFFIX
 681 EXT_LIBS_PATH
 682 INSTALL_SPEC
 683 DEPLOY_SPEC
 684 BUNDLE_DATE
 685 JDK_MKTG_UNDERSCORE_VERSION
 686 JDK_UNDERSCORE_VERSION
 687 JDK_MKTG_VERSION
 688 CFLAGS_CCACHE
 689 CCACHE
 690 USE_PRECOMPILED_HEADER
 691 SJAVAC_SERVER_DIR
 692 ENABLE_SJAVAC
 693 SJAVAC_SERVER_JAVA_FLAGS
 694 SJAVAC_SERVER_JAVA
 695 JAVA_TOOL_FLAGS_SMALL
 696 JAVA_FLAGS_SMALL
 697 JAVA_FLAGS_BIG
 698 JAVA_FLAGS
 699 JOBS
 700 MEMORY_SIZE
 701 NUM_CORES
 702 ENABLE_INTREE_EC
 703 SALIB_NAME
 704 HOTSPOT_MAKE_ARGS
 705 MSVCP_DLL
 706 MSVCR_DLL
 707 LIBCXX
 708 LLVM_LIBS
 709 LLVM_LDFLAGS
 710 LLVM_CFLAGS
 711 LLVM_CONFIG
 712 LIBFFI_LIBS
 713 LIBFFI_CFLAGS
 714 STATIC_CXX_SETTING
 715 LIBDL
 716 LIBM
 717 LIBZIP_CAN_USE_MMAP
 718 USE_EXTERNAL_LIBZ
 719 USE_EXTERNAL_LIBPNG
 720 PNG_LIBS
 721 PNG_CFLAGS
 722 USE_EXTERNAL_LCMS
 723 LCMS_LIBS
 724 LCMS_CFLAGS
 725 USE_EXTERNAL_LIBGIF
 726 USE_EXTERNAL_LIBJPEG
 727 ALSA_LIBS
 728 ALSA_CFLAGS
 729 FREETYPE_BUNDLE_LIB_PATH
 730 FREETYPE_LIBS
 731 FREETYPE_CFLAGS
 732 CUPS_CFLAGS
 733 X_EXTRA_LIBS
 734 X_LIBS
 735 X_PRE_LIBS
 736 X_CFLAGS
 737 XMKMF
 738 FIXPATH
 739 ZIP_DEBUGINFO_FILES
 740 ENABLE_DEBUG_SYMBOLS
 741 CFLAGS_WARNINGS_ARE_ERRORS
 742 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 743 ZERO_ARCHFLAG
 744 LDFLAGS_CXX_JDK
 745 LDFLAGS_JDKEXE_SUFFIX
 746 LDFLAGS_JDKLIB_SUFFIX
 747 LDFLAGS_JDKEXE
 748 LDFLAGS_JDKLIB
 749 CXXFLAGS_JDKEXE
 750 CXXFLAGS_JDKLIB
 751 CFLAGS_JDKEXE
 752 CFLAGS_JDKLIB
 753 MACOSX_VERSION_MIN
 754 LEGACY_EXTRA_LDFLAGS
 755 LEGACY_EXTRA_CXXFLAGS
 756 LEGACY_EXTRA_CFLAGS
 757 CXX_O_FLAG_NONE
 758 CXX_O_FLAG_DEBUG
 759 CXX_O_FLAG_NORM
 760 CXX_O_FLAG_HI
 761 CXX_O_FLAG_HIGHEST
 762 C_O_FLAG_NONE
 763 C_O_FLAG_DEBUG
 764 C_O_FLAG_NORM
 765 C_O_FLAG_HI
 766 C_O_FLAG_HIGHEST
 767 CXXFLAGS_DEBUG_OPTIONS
 768 CFLAGS_DEBUG_OPTIONS
 769 CXXFLAGS_DEBUG_SYMBOLS
 770 CFLAGS_DEBUG_SYMBOLS
 771 CXX_FLAG_DEPS
 772 C_FLAG_DEPS
 773 SET_SHARED_LIBRARY_MAPFILE
 774 SET_SHARED_LIBRARY_NAME
 775 SET_SHARED_LIBRARY_ORIGIN
 776 SET_EXECUTABLE_ORIGIN
 777 SHARED_LIBRARY_FLAGS
 778 CXX_FLAG_REORDER
 779 C_FLAG_REORDER
 780 SYSROOT_LDFLAGS
 781 SYSROOT_CFLAGS
 782 RC_FLAGS
 783 AR_OUT_OPTION
 784 LD_OUT_OPTION
 785 EXE_OUT_OPTION
 786 CC_OUT_OPTION
 787 POST_MCS_CMD
 788 POST_STRIP_CMD
 789 ARFLAGS
 790 COMPILER_TARGET_BITS_FLAG
 791 JT_HOME
 792 JTREGEXE
 793 USING_BROKEN_SUSE_LD
 794 PACKAGE_PATH
 795 LDEXECXX
 796 LDEXE
 797 USE_CLANG
 798 HOTSPOT_LD
 799 HOTSPOT_CXX
 800 HOTSPOT_RC
 801 HOTSPOT_MT
 802 BUILD_LD
 803 BUILD_CXX
 804 BUILD_CC
 805 ac_ct_OBJDUMP
 806 OBJDUMP
 807 ac_ct_OBJCOPY
 808 OBJCOPY
 809 ac_ct_NM
 810 ac_ct_STRIP
 811 MCS
 812 GNM
 813 NM
 814 STRIP
 815 MSBUILD
 816 DUMPBIN
 817 RC
 818 MT
 819 LIPO
 820 ac_ct_AR
 821 AR
 822 AS
 823 LDCXX
 824 LD
 825 CXXCPP
 826 CPP
 827 ac_ct_CXX
 828 CXXFLAGS
 829 CXX
 830 ac_ct_PROPER_COMPILER_CXX
 831 PROPER_COMPILER_CXX
 832 TOOLCHAIN_PATH_CXX
 833 POTENTIAL_CXX
 834 OBJEXT
 835 EXEEXT
 836 ac_ct_CC
 837 CPPFLAGS
 838 LDFLAGS
 839 CFLAGS
 840 CC
 841 ac_ct_PROPER_COMPILER_CC
 842 PROPER_COMPILER_CC
 843 TOOLCHAIN_PATH_CC
 844 POTENTIAL_CC
 845 VS_LIB
 846 VS_INCLUDE
 847 VS_PATH
 848 CYGWIN_LINK
 849 EXE_SUFFIX
 850 OBJ_SUFFIX
 851 STATIC_LIBRARY
 852 SHARED_LIBRARY
 853 STATIC_LIBRARY_SUFFIX
 854 SHARED_LIBRARY_SUFFIX
 855 LIBRARY_PREFIX
 856 TOOLCHAIN_TYPE
 857 BUILD_HOTSPOT
 858 HOTSPOT_DIST
 859 BUILD_OUTPUT
 860 OVERRIDE_SRC_ROOT
 861 ADD_SRC_ROOT
 862 JDK_TOPDIR
 863 NASHORN_TOPDIR
 864 HOTSPOT_TOPDIR
 865 JAXWS_TOPDIR
 866 JAXP_TOPDIR
 867 CORBA_TOPDIR
 868 LANGTOOLS_TOPDIR
 869 JAVAC_FLAGS
 870 BOOT_JDK_SOURCETARGET
 871 JARSIGNER
 872 NATIVE2ASCII
 873 JAR
 874 JAVAH
 875 JAVAC
 876 JAVA
 877 BOOT_JDK
 878 JAVA_CHECK
 879 JAVAC_CHECK
 880 COOKED_BUILD_NUMBER
 881 JDK_VERSION
 882 COPYRIGHT_YEAR
 883 MACOSX_BUNDLE_ID_BASE
 884 MACOSX_BUNDLE_NAME_BASE
 885 COMPANY_NAME
 886 JDK_RC_PLATFORM_NAME
 887 PRODUCT_SUFFIX
 888 PRODUCT_NAME
 889 LAUNCHER_NAME
 890 MILESTONE
 891 JDK_BUILD_NUMBER
 892 JDK_UPDATE_VERSION
 893 JDK_MICRO_VERSION
 894 JDK_MINOR_VERSION
 895 JDK_MAJOR_VERSION
 896 USER_RELEASE_SUFFIX
 897 COMPRESS_JARS
 898 RMICONNECTOR_IIOP
 899 UNLIMITED_CRYPTO
 900 CACERTS_FILE
 901 TEST_IN_BUILD
 902 BUILD_HEADLESS
 903 SUPPORT_HEADFUL
 904 SUPPORT_HEADLESS
 905 BDEPS_FTP
 906 BDEPS_UNZIP
 907 OS_VERSION_MICRO
 908 OS_VERSION_MINOR
 909 OS_VERSION_MAJOR
 910 PKG_CONFIG
 911 BASH_ARGS
 912 CODESIGN
 913 XATTR
 914 DSYMUTIL
 915 IS_GNU_TIME
 916 TIME
 917 STAT
 918 HG
 919 READELF
 920 OTOOL
 921 LDD
 922 ZIP
 923 UNZIP
 924 FIND_DELETE
 925 OUTPUT_SYNC
 926 OUTPUT_SYNC_SUPPORTED
 927 MAKE
 928 CHECK_TOOLSDIR_MAKE
 929 CHECK_TOOLSDIR_GMAKE
 930 CHECK_MAKE
 931 CHECK_GMAKE
 932 PKGHANDLER
 933 OUTPUT_ROOT
 934 CONF_NAME
 935 SPEC
 936 SDKROOT
 937 XCODEBUILD
 938 PARFAIT_BASELINE
 939 PARFAIT_DIR
 940 BUILD_VARIANT_RELEASE
 941 DEBUG_CLASSFILES
 942 FASTDEBUG
 943 VARIANT
 944 DEBUG_LEVEL
 945 MACOSX_UNIVERSAL
 946 INCLUDE_SA
 947 JVM_VARIANT_CORE
 948 JVM_VARIANT_ZEROSHARK
 949 JVM_VARIANT_ZERO
 950 JVM_VARIANT_KERNEL
 951 JVM_VARIANT_MINIMAL1
 952 JVM_VARIANT_CLIENT
 953 JVM_VARIANT_SERVER
 954 JVM_VARIANTS
 955 JVM_INTERPRETER
 956 JDK_VARIANT
 957 MINIMIZE_RAM_USAGE
 958 JAVASE_EMBEDDED
 959 SET_OPENJDK
 960 BUILD_LOG_WRAPPER
 961 BUILD_LOG_PREVIOUS
 962 BUILD_LOG
 963 TOPDIR
 964 PATH_SEP
 965 ZERO_ARCHDEF
 966 DEFINE_CROSS_COMPILE_ARCH
 967 LP64
 968 OPENJDK_TARGET_OS_EXPORT_DIR
 969 OPENJDK_TARGET_CPU_JLI_CFLAGS
 970 OPENJDK_TARGET_CPU_OSARCH
 971 OPENJDK_TARGET_CPU_ISADIR
 972 OPENJDK_TARGET_CPU_LIBDIR
 973 OPENJDK_TARGET_CPU_LEGACY_LIB
 974 OPENJDK_TARGET_CPU_LEGACY
 975 REQUIRED_OS_VERSION
 976 REQUIRED_OS_NAME
 977 COMPILE_TYPE
 978 OPENJDK_TARGET_CPU_ENDIAN
 979 OPENJDK_TARGET_CPU_BITS
 980 OPENJDK_TARGET_CPU_ARCH
 981 OPENJDK_TARGET_CPU
 982 OPENJDK_TARGET_OS_ENV
 983 OPENJDK_TARGET_OS_TYPE
 984 OPENJDK_TARGET_OS
 985 OPENJDK_BUILD_CPU_ENDIAN
 986 OPENJDK_BUILD_CPU_BITS
 987 OPENJDK_BUILD_CPU_ARCH
 988 OPENJDK_BUILD_CPU
 989 OPENJDK_BUILD_OS_ENV
 990 OPENJDK_BUILD_OS_TYPE
 991 OPENJDK_BUILD_OS
 992 OPENJDK_BUILD_AUTOCONF_NAME
 993 OPENJDK_TARGET_AUTOCONF_NAME
 994 target_os
 995 target_vendor
 996 target_cpu
 997 target
 998 host_os
 999 host_vendor
1000 host_cpu
1001 host
1002 build_os
1003 build_vendor
1004 build_cpu
1005 build
1006 CPIO
1007 SETFILE
1008 DF
1009 READLINK
1010 CYGPATH
1011 SED
1012 FGREP
1013 EGREP
1014 GREP
1015 AWK
1016 XARGS
1017 WHICH
1018 WC
1019 UNIQ
1020 UNAME
1021 TR
1022 TOUCH
1023 TEE
1024 TAR
1025 TAIL
1026 SORT
1027 SH
1028 RM
1029 PRINTF
1030 NAWK
1031 MV
1032 MKTEMP
1033 MKDIR
1034 LS
1035 LN
1036 HEAD
1037 FIND
1038 FILE
1039 EXPR
1040 ECHO
1041 DIRNAME
1042 DIFF
1043 DATE
1044 CUT
1045 CP
1046 COMM
1047 CMP
1048 CHMOD
1049 CAT
1050 BASH
1051 BASENAME
1052 DATE_WHEN_CONFIGURED
1053 ORIGINAL_PATH
1054 CONFIGURE_COMMAND_LINE
1055 target_alias
1056 host_alias
1057 build_alias
1058 LIBS
1059 ECHO_T
1060 ECHO_N
1061 ECHO_C
1062 DEFS
1063 mandir
1064 localedir
1065 libdir
1066 psdir
1067 pdfdir
1068 dvidir
1069 htmldir
1070 infodir
1071 docdir
1072 oldincludedir
1073 includedir
1074 localstatedir
1075 sharedstatedir
1076 sysconfdir
1077 datadir
1078 datarootdir
1079 libexecdir
1080 sbindir
1081 bindir
1082 program_transform_name
1083 prefix
1084 exec_prefix
1085 PACKAGE_URL
1086 PACKAGE_BUGREPORT
1087 PACKAGE_STRING
1088 PACKAGE_VERSION
1089 PACKAGE_TARNAME
1090 PACKAGE_NAME
1091 PATH_SEPARATOR
1092 SHELL'
1093 ac_subst_files=''
1094 ac_user_opts='
1095 enable_option_checking
1096 with_target_bits
1097 enable_openjdk_only
1098 with_custom_make_dir
1099 with_jdk_variant
1100 with_jvm_interpreter
1101 with_jvm_variants
1102 enable_debug
1103 with_debug_level
1104 with_parfait
1105 with_parfait_baseline
1106 with_java_path
1107 with_java_devtools
1108 with_devkit
1109 with_sys_root
1110 with_sysroot
1111 with_tools_dir
1112 with_toolchain_path
1113 with_extra_path
1114 with_sdk_name
1115 with_conf_name
1116 with_output_sync
1117 with_builddeps_conf
1118 with_builddeps_server
1119 with_builddeps_dir
1120 with_builddeps_group
1121 enable_headful
1122 enable_hotspot_test_in_build
1123 with_cacerts_file
1124 enable_unlimited_crypto
1125 enable_rmiconnector_iiop
1126 with_milestone
1127 with_update_version
1128 with_user_release_suffix
1129 with_build_number
1130 with_copyright_year
1131 with_boot_jdk
1132 with_add_source_root
1133 with_override_source_root
1134 with_adds_and_overrides
1135 with_override_langtools
1136 with_override_corba
1137 with_override_jaxp
1138 with_override_jaxws
1139 with_override_hotspot
1140 with_override_nashorn
1141 with_override_jdk
1142 with_import_hotspot
1143 with_toolchain_type
1144 with_toolchain_version
1145 with_jtreg
1146 with_extra_cflags
1147 with_extra_cxxflags
1148 with_extra_ldflags
1149 enable_debug_symbols
1150 enable_zip_debug_info
1151 with_x
1152 with_cups
1153 with_cups_include
1154 with_freetype
1155 with_freetype_include
1156 with_freetype_lib
1157 with_freetype_src
1158 enable_freetype_bundling
1159 with_alsa
1160 with_alsa_include
1161 with_alsa_lib
1162 with_libjpeg
1163 with_giflib
1164 with_lcms
1165 with_libpng
1166 with_zlib
1167 with_stdc__lib
1168 with_msvcr_dll
1169 with_msvcp_dll
1170 with_dxsdk
1171 with_dxsdk_lib
1172 with_dxsdk_include
1173 with_num_cores
1174 with_memory_size
1175 with_jobs
1176 with_boot_jdk_jvmargs
1177 with_sjavac_server_java
1178 enable_sjavac
1179 enable_precompiled_headers
1180 enable_ccache
1181 with_ccache_dir
1182 with_bundle_date
1183 with_sflt_lib_path
1184 enable_jfr
1185 enable_commercial_features
1186 with_plugin_devkit
1187 with_ant_home
1188 with_junit_dir
1189 with_sparkle_framework
1190 with_wix
1191 enable_signing
1192 with_ccss_signing
1193 with_lzma_path
1194 with_upx_path
1195 with_upx_filename
1196 with_javafx_zip_dir
1197 with_jmc_zip_dir
1198 with_bsdiff_dir
1199 with_jdk_debug_image_dir
1200 with_asmtools
1201 with_cpptasks
1202 with_ant_contrib
1203 with_tonga_jar
1204 enable_tonga
1205 enable_deploy
1206 enable_new_deploy_build
1207 enable_installer
1208 with_rtpatch_dir
1209 with_gcc29_compiler_kit
1210 with_devtools_path
1211 with_mozilla_headers
1212 '
1213       ac_precious_vars='build_alias
1214 host_alias
1215 target_alias
1216 BASENAME
1217 BASH
1218 CAT
1219 CHMOD
1220 CMP
1221 COMM
1222 CP
1223 CUT
1224 DATE
1225 DIFF
1226 DIRNAME
1227 ECHO
1228 EXPR
1229 FILE
1230 FIND
1231 HEAD
1232 LN
1233 LS
1234 MKDIR
1235 MKTEMP
1236 MV
1237 NAWK
1238 PRINTF
1239 RM
1240 SH
1241 SORT
1242 TAIL
1243 TAR
1244 TEE
1245 TOUCH
1246 TR
1247 UNAME
1248 UNIQ
1249 WC
1250 WHICH
1251 XARGS
1252 AWK
1253 GREP
1254 EGREP
1255 FGREP
1256 SED
1257 CYGPATH
1258 READLINK
1259 DF
1260 SETFILE
1261 CPIO
1262 UNZIP
1263 ZIP
1264 LDD
1265 OTOOL
1266 READELF
1267 HG
1268 STAT
1269 TIME
1270 DSYMUTIL
1271 XATTR
1272 CODESIGN
1273 PKG_CONFIG
1274 JAVA
1275 JAVAC
1276 JAVAH
1277 JAR
1278 NATIVE2ASCII
1279 JARSIGNER
1280 CC
1281 CFLAGS
1282 LDFLAGS
1283 LIBS
1284 CPPFLAGS
1285 CXX
1286 CXXFLAGS
1287 CCC
1288 CPP
1289 CXXCPP
1290 AS
1291 AR
1292 LIPO
1293 STRIP
1294 NM
1295 GNM
1296 MCS
1297 OBJCOPY
1298 OBJDUMP
1299 BUILD_CC
1300 BUILD_CXX
1301 BUILD_LD
1302 JTREGEXE
1303 XMKMF
1304 FREETYPE_CFLAGS
1305 FREETYPE_LIBS
1306 ALSA_CFLAGS
1307 ALSA_LIBS
1308 LCMS_CFLAGS
1309 LCMS_LIBS
1310 PNG_CFLAGS
1311 PNG_LIBS
1312 LIBFFI_CFLAGS
1313 LIBFFI_LIBS
1314 CCACHE
1315 MSGFMT
1316 PLUTIL
1317 IBTOOL
1318 OPENSSL
1319 INSTALL_NAME_TOOL
1320 ICONV'
1321 
1322 
1323 # Initialize some variables set by options.
1324 ac_init_help=
1325 ac_init_version=false
1326 ac_unrecognized_opts=
1327 ac_unrecognized_sep=
1328 # The variables have the same names as the options, with
1329 # dashes changed to underlines.
1330 cache_file=/dev/null
1331 exec_prefix=NONE
1332 no_create=
1333 no_recursion=
1334 prefix=NONE
1335 program_prefix=NONE
1336 program_suffix=NONE
1337 program_transform_name=s,x,x,
1338 silent=
1339 site=
1340 srcdir=
1341 verbose=
1342 x_includes=NONE
1343 x_libraries=NONE
1344 
1345 # Installation directory options.
1346 # These are left unexpanded so users can "make install exec_prefix=/foo"
1347 # and all the variables that are supposed to be based on exec_prefix
1348 # by default will actually change.
1349 # Use braces instead of parens because sh, perl, etc. also accept them.
1350 # (The list follows the same order as the GNU Coding Standards.)
1351 bindir='${exec_prefix}/bin'
1352 sbindir='${exec_prefix}/sbin'
1353 libexecdir='${exec_prefix}/libexec'
1354 datarootdir='${prefix}/share'
1355 datadir='${datarootdir}'
1356 sysconfdir='${prefix}/etc'
1357 sharedstatedir='${prefix}/com'
1358 localstatedir='${prefix}/var'
1359 includedir='${prefix}/include'
1360 oldincludedir='/usr/include'
1361 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1362 infodir='${datarootdir}/info'
1363 htmldir='${docdir}'
1364 dvidir='${docdir}'
1365 pdfdir='${docdir}'
1366 psdir='${docdir}'
1367 libdir='${exec_prefix}/lib'
1368 localedir='${datarootdir}/locale'
1369 mandir='${datarootdir}/man'
1370 
1371 ac_prev=
1372 ac_dashdash=
1373 for ac_option
1374 do
1375   # If the previous option needs an argument, assign it.
1376   if test -n "$ac_prev"; then
1377     eval $ac_prev=\$ac_option
1378     ac_prev=
1379     continue
1380   fi
1381 
1382   case $ac_option in
1383   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1384   *=)   ac_optarg= ;;
1385   *)    ac_optarg=yes ;;
1386   esac
1387 
1388   # Accept the important Cygnus configure options, so we can diagnose typos.
1389 
1390   case $ac_dashdash$ac_option in
1391   --)
1392     ac_dashdash=yes ;;
1393 
1394   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1395     ac_prev=bindir ;;
1396   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1397     bindir=$ac_optarg ;;
1398 
1399   -build | --build | --buil | --bui | --bu)
1400     ac_prev=build_alias ;;
1401   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1402     build_alias=$ac_optarg ;;
1403 
1404   -cache-file | --cache-file | --cache-fil | --cache-fi \
1405   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1406     ac_prev=cache_file ;;
1407   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1408   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1409     cache_file=$ac_optarg ;;
1410 
1411   --config-cache | -C)
1412     cache_file=config.cache ;;
1413 
1414   -datadir | --datadir | --datadi | --datad)
1415     ac_prev=datadir ;;
1416   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1417     datadir=$ac_optarg ;;
1418 
1419   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1420   | --dataroo | --dataro | --datar)
1421     ac_prev=datarootdir ;;
1422   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1423   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1424     datarootdir=$ac_optarg ;;
1425 
1426   -disable-* | --disable-*)
1427     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1428     # Reject names that are not valid shell variable names.
1429     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1430       as_fn_error $? "invalid feature name: $ac_useropt"
1431     ac_useropt_orig=$ac_useropt
1432     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1433     case $ac_user_opts in
1434       *"
1435 "enable_$ac_useropt"
1436 "*) ;;
1437       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1438          ac_unrecognized_sep=', ';;
1439     esac
1440     eval enable_$ac_useropt=no ;;
1441 
1442   -docdir | --docdir | --docdi | --doc | --do)
1443     ac_prev=docdir ;;
1444   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1445     docdir=$ac_optarg ;;
1446 
1447   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1448     ac_prev=dvidir ;;
1449   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1450     dvidir=$ac_optarg ;;
1451 
1452   -enable-* | --enable-*)
1453     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1454     # Reject names that are not valid shell variable names.
1455     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1456       as_fn_error $? "invalid feature name: $ac_useropt"
1457     ac_useropt_orig=$ac_useropt
1458     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1459     case $ac_user_opts in
1460       *"
1461 "enable_$ac_useropt"
1462 "*) ;;
1463       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1464          ac_unrecognized_sep=', ';;
1465     esac
1466     eval enable_$ac_useropt=\$ac_optarg ;;
1467 
1468   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1469   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1470   | --exec | --exe | --ex)
1471     ac_prev=exec_prefix ;;
1472   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1473   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1474   | --exec=* | --exe=* | --ex=*)
1475     exec_prefix=$ac_optarg ;;
1476 
1477   -gas | --gas | --ga | --g)
1478     # Obsolete; use --with-gas.
1479     with_gas=yes ;;
1480 
1481   -help | --help | --hel | --he | -h)
1482     ac_init_help=long ;;
1483   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1484     ac_init_help=recursive ;;
1485   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1486     ac_init_help=short ;;
1487 
1488   -host | --host | --hos | --ho)
1489     ac_prev=host_alias ;;
1490   -host=* | --host=* | --hos=* | --ho=*)
1491     host_alias=$ac_optarg ;;
1492 
1493   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1494     ac_prev=htmldir ;;
1495   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1496   | --ht=*)
1497     htmldir=$ac_optarg ;;
1498 
1499   -includedir | --includedir | --includedi | --included | --include \
1500   | --includ | --inclu | --incl | --inc)
1501     ac_prev=includedir ;;
1502   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1503   | --includ=* | --inclu=* | --incl=* | --inc=*)
1504     includedir=$ac_optarg ;;
1505 
1506   -infodir | --infodir | --infodi | --infod | --info | --inf)
1507     ac_prev=infodir ;;
1508   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1509     infodir=$ac_optarg ;;
1510 
1511   -libdir | --libdir | --libdi | --libd)
1512     ac_prev=libdir ;;
1513   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1514     libdir=$ac_optarg ;;
1515 
1516   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1517   | --libexe | --libex | --libe)
1518     ac_prev=libexecdir ;;
1519   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1520   | --libexe=* | --libex=* | --libe=*)
1521     libexecdir=$ac_optarg ;;
1522 
1523   -localedir | --localedir | --localedi | --localed | --locale)
1524     ac_prev=localedir ;;
1525   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1526     localedir=$ac_optarg ;;
1527 
1528   -localstatedir | --localstatedir | --localstatedi | --localstated \
1529   | --localstate | --localstat | --localsta | --localst | --locals)
1530     ac_prev=localstatedir ;;
1531   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1532   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1533     localstatedir=$ac_optarg ;;
1534 
1535   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1536     ac_prev=mandir ;;
1537   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1538     mandir=$ac_optarg ;;
1539 
1540   -nfp | --nfp | --nf)
1541     # Obsolete; use --without-fp.
1542     with_fp=no ;;
1543 
1544   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1545   | --no-cr | --no-c | -n)
1546     no_create=yes ;;
1547 
1548   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1549   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1550     no_recursion=yes ;;
1551 
1552   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1553   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1554   | --oldin | --oldi | --old | --ol | --o)
1555     ac_prev=oldincludedir ;;
1556   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1557   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1558   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1559     oldincludedir=$ac_optarg ;;
1560 
1561   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1562     ac_prev=prefix ;;
1563   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1564     prefix=$ac_optarg ;;
1565 
1566   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1567   | --program-pre | --program-pr | --program-p)
1568     ac_prev=program_prefix ;;
1569   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1570   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1571     program_prefix=$ac_optarg ;;
1572 
1573   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1574   | --program-suf | --program-su | --program-s)
1575     ac_prev=program_suffix ;;
1576   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1577   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1578     program_suffix=$ac_optarg ;;
1579 
1580   -program-transform-name | --program-transform-name \
1581   | --program-transform-nam | --program-transform-na \
1582   | --program-transform-n | --program-transform- \
1583   | --program-transform | --program-transfor \
1584   | --program-transfo | --program-transf \
1585   | --program-trans | --program-tran \
1586   | --progr-tra | --program-tr | --program-t)
1587     ac_prev=program_transform_name ;;
1588   -program-transform-name=* | --program-transform-name=* \
1589   | --program-transform-nam=* | --program-transform-na=* \
1590   | --program-transform-n=* | --program-transform-=* \
1591   | --program-transform=* | --program-transfor=* \
1592   | --program-transfo=* | --program-transf=* \
1593   | --program-trans=* | --program-tran=* \
1594   | --progr-tra=* | --program-tr=* | --program-t=*)
1595     program_transform_name=$ac_optarg ;;
1596 
1597   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1598     ac_prev=pdfdir ;;
1599   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1600     pdfdir=$ac_optarg ;;
1601 
1602   -psdir | --psdir | --psdi | --psd | --ps)
1603     ac_prev=psdir ;;
1604   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1605     psdir=$ac_optarg ;;
1606 
1607   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1608   | -silent | --silent | --silen | --sile | --sil)
1609     silent=yes ;;
1610 
1611   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1612     ac_prev=sbindir ;;
1613   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1614   | --sbi=* | --sb=*)
1615     sbindir=$ac_optarg ;;
1616 
1617   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1618   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1619   | --sharedst | --shareds | --shared | --share | --shar \
1620   | --sha | --sh)
1621     ac_prev=sharedstatedir ;;
1622   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1623   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1624   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1625   | --sha=* | --sh=*)
1626     sharedstatedir=$ac_optarg ;;
1627 
1628   -site | --site | --sit)
1629     ac_prev=site ;;
1630   -site=* | --site=* | --sit=*)
1631     site=$ac_optarg ;;
1632 
1633   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1634     ac_prev=srcdir ;;
1635   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1636     srcdir=$ac_optarg ;;
1637 
1638   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1639   | --syscon | --sysco | --sysc | --sys | --sy)
1640     ac_prev=sysconfdir ;;
1641   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1642   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1643     sysconfdir=$ac_optarg ;;
1644 
1645   -target | --target | --targe | --targ | --tar | --ta | --t)
1646     ac_prev=target_alias ;;
1647   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1648     target_alias=$ac_optarg ;;
1649 
1650   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1651     verbose=yes ;;
1652 
1653   -version | --version | --versio | --versi | --vers | -V)
1654     ac_init_version=: ;;
1655 
1656   -with-* | --with-*)
1657     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1658     # Reject names that are not valid shell variable names.
1659     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1660       as_fn_error $? "invalid package name: $ac_useropt"
1661     ac_useropt_orig=$ac_useropt
1662     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1663     case $ac_user_opts in
1664       *"
1665 "with_$ac_useropt"
1666 "*) ;;
1667       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1668          ac_unrecognized_sep=', ';;
1669     esac
1670     eval with_$ac_useropt=\$ac_optarg ;;
1671 
1672   -without-* | --without-*)
1673     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1674     # Reject names that are not valid shell variable names.
1675     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1676       as_fn_error $? "invalid package name: $ac_useropt"
1677     ac_useropt_orig=$ac_useropt
1678     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1679     case $ac_user_opts in
1680       *"
1681 "with_$ac_useropt"
1682 "*) ;;
1683       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1684          ac_unrecognized_sep=', ';;
1685     esac
1686     eval with_$ac_useropt=no ;;
1687 
1688   --x)
1689     # Obsolete; use --with-x.
1690     with_x=yes ;;
1691 
1692   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1693   | --x-incl | --x-inc | --x-in | --x-i)
1694     ac_prev=x_includes ;;
1695   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1696   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1697     x_includes=$ac_optarg ;;
1698 
1699   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1700   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1701     ac_prev=x_libraries ;;
1702   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1703   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1704     x_libraries=$ac_optarg ;;
1705 
1706   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1707 Try \`$0 --help' for more information"
1708     ;;
1709 
1710   *=*)
1711     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1712     # Reject names that are not valid shell variable names.
1713     case $ac_envvar in #(
1714       '' | [0-9]* | *[!_$as_cr_alnum]* )
1715       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1716     esac
1717     eval $ac_envvar=\$ac_optarg
1718     export $ac_envvar ;;
1719 
1720   *)
1721     # FIXME: should be removed in autoconf 3.0.
1722     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1723     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1724       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1725     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1726     ;;
1727 
1728   esac
1729 done
1730 
1731 if test -n "$ac_prev"; then
1732   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1733   as_fn_error $? "missing argument to $ac_option"
1734 fi
1735 
1736 if test -n "$ac_unrecognized_opts"; then
1737   case $enable_option_checking in
1738     no) ;;
1739     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1740     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1741   esac
1742 fi
1743 
1744 # Check all directory arguments for consistency.
1745 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1746                 datadir sysconfdir sharedstatedir localstatedir includedir \
1747                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1748                 libdir localedir mandir
1749 do
1750   eval ac_val=\$$ac_var
1751   # Remove trailing slashes.
1752   case $ac_val in
1753     */ )
1754       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1755       eval $ac_var=\$ac_val;;
1756   esac
1757   # Be sure to have absolute directory names.
1758   case $ac_val in
1759     [\\/$]* | ?:[\\/]* )  continue;;
1760     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1761   esac
1762   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1763 done
1764 
1765 # There might be people who depend on the old broken behavior: `$host'
1766 # used to hold the argument of --host etc.
1767 # FIXME: To remove some day.
1768 build=$build_alias
1769 host=$host_alias
1770 target=$target_alias
1771 
1772 # FIXME: To remove some day.
1773 if test "x$host_alias" != x; then
1774   if test "x$build_alias" = x; then
1775     cross_compiling=maybe
1776   elif test "x$build_alias" != "x$host_alias"; then
1777     cross_compiling=yes
1778   fi
1779 fi
1780 
1781 ac_tool_prefix=
1782 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1783 
1784 test "$silent" = yes && exec 6>/dev/null
1785 
1786 
1787 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1788 ac_ls_di=`ls -di .` &&
1789 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1790   as_fn_error $? "working directory cannot be determined"
1791 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1792   as_fn_error $? "pwd does not report name of working directory"
1793 
1794 
1795 # Find the source files, if location was not specified.
1796 if test -z "$srcdir"; then
1797   ac_srcdir_defaulted=yes
1798   # Try the directory containing this script, then the parent directory.
1799   ac_confdir=`$as_dirname -- "$as_myself" ||
1800 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1801          X"$as_myself" : 'X\(//\)[^/]' \| \
1802          X"$as_myself" : 'X\(//\)$' \| \
1803          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1804 $as_echo X"$as_myself" |
1805     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1806             s//\1/
1807             q
1808           }
1809           /^X\(\/\/\)[^/].*/{
1810             s//\1/
1811             q
1812           }
1813           /^X\(\/\/\)$/{
1814             s//\1/
1815             q
1816           }
1817           /^X\(\/\).*/{
1818             s//\1/
1819             q
1820           }
1821           s/.*/./; q'`
1822   srcdir=$ac_confdir
1823   if test ! -r "$srcdir/$ac_unique_file"; then
1824     srcdir=..
1825   fi
1826 else
1827   ac_srcdir_defaulted=no
1828 fi
1829 if test ! -r "$srcdir/$ac_unique_file"; then
1830   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1831   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1832 fi
1833 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1834 ac_abs_confdir=`(
1835         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1836         pwd)`
1837 # When building in place, set srcdir=.
1838 if test "$ac_abs_confdir" = "$ac_pwd"; then
1839   srcdir=.
1840 fi
1841 # Remove unnecessary trailing slashes from srcdir.
1842 # Double slashes in file names in object file debugging info
1843 # mess up M-x gdb in Emacs.
1844 case $srcdir in
1845 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1846 esac
1847 for ac_var in $ac_precious_vars; do
1848   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1849   eval ac_env_${ac_var}_value=\$${ac_var}
1850   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1851   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1852 done
1853 
1854 #
1855 # Report the --help message.
1856 #
1857 if test "$ac_init_help" = "long"; then
1858   # Omit some internal or obsolete options to make the list less imposing.
1859   # This message is too long to be a string in the A/UX 3.1 sh.
1860   cat <<_ACEOF
1861 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1862 
1863 Usage: $0 [OPTION]... [VAR=VALUE]...
1864 
1865 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1866 VAR=VALUE.  See below for descriptions of some of the useful variables.
1867 
1868 Defaults for the options are specified in brackets.
1869 
1870 Configuration:
1871   -h, --help              display this help and exit
1872       --help=short        display options specific to this package
1873       --help=recursive    display the short help of all the included packages
1874   -V, --version           display version information and exit
1875   -q, --quiet, --silent   do not print \`checking ...' messages
1876       --cache-file=FILE   cache test results in FILE [disabled]
1877   -C, --config-cache      alias for \`--cache-file=config.cache'
1878   -n, --no-create         do not create output files
1879       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1880 
1881 Installation directories:
1882   --prefix=PREFIX         install architecture-independent files in PREFIX
1883                           [$ac_default_prefix]
1884   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1885                           [PREFIX]
1886 
1887 By default, \`make install' will install all the files in
1888 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1889 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1890 for instance \`--prefix=\$HOME'.
1891 
1892 For better control, use the options below.
1893 
1894 Fine tuning of the installation directories:
1895   --bindir=DIR            user executables [EPREFIX/bin]
1896   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1897   --libexecdir=DIR        program executables [EPREFIX/libexec]
1898   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1899   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1900   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1901   --libdir=DIR            object code libraries [EPREFIX/lib]
1902   --includedir=DIR        C header files [PREFIX/include]
1903   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1904   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1905   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1906   --infodir=DIR           info documentation [DATAROOTDIR/info]
1907   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1908   --mandir=DIR            man documentation [DATAROOTDIR/man]
1909   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1910   --htmldir=DIR           html documentation [DOCDIR]
1911   --dvidir=DIR            dvi documentation [DOCDIR]
1912   --pdfdir=DIR            pdf documentation [DOCDIR]
1913   --psdir=DIR             ps documentation [DOCDIR]
1914 _ACEOF
1915 
1916   cat <<\_ACEOF
1917 
1918 X features:
1919   --x-includes=DIR    X include files are in DIR
1920   --x-libraries=DIR   X library files are in DIR
1921 
1922 System types:
1923   --build=BUILD     configure for building on BUILD [guessed]
1924   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1925   --target=TARGET   configure for building compilers for TARGET [HOST]
1926 _ACEOF
1927 fi
1928 
1929 if test -n "$ac_init_help"; then
1930   case $ac_init_help in
1931      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1932    esac
1933   cat <<\_ACEOF
1934 
1935 Optional Features:
1936   --disable-option-checking  ignore unrecognized --enable/--with options
1937   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1938   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1939   --enable-openjdk-only   suppress building custom source even if present
1940                           [disabled]
1941   --enable-debug          set the debug level to fastdebug (shorthand for
1942                           --with-debug-level=fastdebug) [disabled]
1943   --disable-headful       disable building headful support (graphical UI
1944                           support) [enabled]
1945   --enable-hotspot-test-in-build
1946                           run the Queens test after Hotspot build [disabled]
1947   --enable-unlimited-crypto
1948                           Enable unlimited crypto policy [disabled]
1949   --enable-rmiconnector-iiop
1950                           enable the JMX RMIConnector iiop transport
1951                           [disabled]
1952   --disable-debug-symbols disable generation of debug symbols [enabled]
1953   --disable-zip-debug-info
1954                           disable zipping of debug-info files [enabled]
1955   --disable-freetype-bundling
1956                           disable bundling of the freetype library with the
1957                           build result [enabled on Windows or when using
1958                           --with-freetype, disabled otherwise]
1959   --enable-sjavac         use sjavac to do fast incremental compiles
1960                           [disabled]
1961   --disable-precompiled-headers
1962                           disable using precompiled headers when compiling C++
1963                           [enabled]
1964   --enable-ccache         enable using ccache to speed up recompilations
1965                           [disabled]
1966   --disable-jfr           disable JFR [enabled, unless building embedded, or
1967                           ARM/PPC]
1968   --disable-commercial-features
1969                           disable commercial features [enabled]
1970   --enable-signing        if signing is enabled, configure will fail unless
1971                           the CCSS Client.jar is available
1972   --enable-tonga          explicitly enable tonga test build
1973   --enable-deploy[=yes/no/auto]
1974                           forces deploy build to be enabled if supported on
1975                           platform, missing dependencies become fatal errors.
1976                           Default is auto, where deploy is built if all
1977                           dependencies are present and otherwise just
1978                           disabled.
1979   --enable-new-deploy-build
1980                           enable the new deploy build system (otherwise use
1981                           the old), or 'compare' [disabled]
1982   --enable-installer[=yes/no/auto]
1983                           forces installer build to be enabled if supported on
1984                           platform, missing dependencies become fatal errors.
1985                           Default is auto, where installer is built if all
1986                           dependencies are present and otherwise just
1987                           disabled.
1988 
1989 Optional Packages:
1990   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1991   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1992   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1993                           support it), e.g. --with-target-bits=32 [guessed]
1994   --with-custom-make-dir  Deprecated. Option is kept for backwards
1995                           compatibility and is ignored
1996   --with-jdk-variant      JDK variant to build (normal, embedded) [normal]
1997   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1998   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1999                           client, minimal1, kernel, zero, zeroshark, core)
2000                           [server]
2001   --with-debug-level      set the debug level (release, fastdebug, slowdebug,
2002                           optimized (HotSpot build only)) [release]
2003   --with-parfait          build using parfait tools in the specified directory
2004   --with-parfait-baseline specify URI of parfait baseline results
2005   --with-java-path        alias for --with-java-devtools. DEPRECATED
2006   --with-java-devtools    use the Oracle /java/devtools share as base for
2007                           tools and libraries [/java/devtools or J:/devtools]
2008   --with-devkit           use this devkit for compilers, tools and resources
2009   --with-sys-root         alias for --with-sysroot for backwards compatability
2010   --with-sysroot          use this directory as sysroot
2011   --with-tools-dir        alias for --with-toolchain-path for backwards
2012                           compatibility
2013   --with-toolchain-path   prepend these directories when searching for
2014                           toolchain binaries (compilers etc)
2015   --with-extra-path       prepend these directories to the default path
2016   --with-sdk-name         use the platform SDK of the given name. [macosx]
2017   --with-conf-name        use this as the name of the configuration [generated
2018                           from important configuration options]
2019   --with-output-sync      set make output sync type if supported by make.
2020                           [recurse]
2021   --with-builddeps-conf   use this configuration file for the builddeps
2022   --with-builddeps-server download and use build dependencies from this server
2023                           url
2024   --with-builddeps-dir    store downloaded build dependencies here
2025                           [/localhome/builddeps]
2026   --with-builddeps-group  chgrp the downloaded build dependencies to this
2027                           group
2028   --with-cacerts-file     specify alternative cacerts file
2029   --with-milestone        Set milestone value for build [internal]
2030   --with-update-version   Set update version value for build [b00]
2031   --with-user-release-suffix
2032                           Add a custom string to the version string if build
2033                           number is not set.[username_builddateb00]
2034   --with-build-number     Set build number value for build [b00]
2035   --with-copyright-year   Set copyright year value for build [current year]
2036   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
2037   --with-add-source-root  for each and every source directory, look in this
2038                           additional source root for the same directory; if it
2039                           exists and have files in it, include it in the build
2040   --with-override-source-root
2041                           for each and every source directory, look in this
2042                           override source root for the same directory; if it
2043                           exists, use that directory instead and ignore the
2044                           directory in the original source root
2045   --with-adds-and-overrides
2046                           use the subdirs 'adds' and 'overrides' in the
2047                           specified directory as add-source-root and
2048                           override-source-root
2049   --with-override-langtools
2050                           use this langtools dir for the build
2051   --with-override-corba   use this corba dir for the build
2052   --with-override-jaxp    use this jaxp dir for the build
2053   --with-override-jaxws   use this jaxws dir for the build
2054   --with-override-hotspot use this hotspot dir for the build
2055   --with-override-nashorn use this nashorn dir for the build
2056   --with-override-jdk     use this jdk dir for the build
2057   --with-import-hotspot   import hotspot binaries from this jdk image or
2058                           hotspot build dist dir instead of building from
2059                           source
2060   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
2061                           to show possible values [platform dependent]
2062   --with-toolchain-version
2063                           the version of the toolchain to look for, use
2064                           '--help' to show possible values [platform
2065                           dependent]
2066   --with-jtreg            Regression Test Harness [probed]
2067   --with-extra-cflags     extra flags to be used when compiling jdk c-files
2068   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
2069   --with-extra-ldflags    extra flags to be used when linking jdk
2070   --with-x                use the X Window System
2071   --with-cups             specify prefix directory for the cups package
2072                           (expecting the headers under PATH/include)
2073   --with-cups-include     specify directory for the cups include files
2074   --with-freetype         specify prefix directory for the freetype package
2075                           (expecting the libraries under PATH/lib and the
2076                           headers under PATH/include)
2077   --with-freetype-include specify directory for the freetype include files
2078   --with-freetype-lib     specify directory for the freetype library
2079   --with-freetype-src     specify directory with freetype sources to
2080                           automatically build the library (experimental,
2081                           Windows-only)
2082   --with-alsa             specify prefix directory for the alsa package
2083                           (expecting the libraries under PATH/lib and the
2084                           headers under PATH/include)
2085   --with-alsa-include     specify directory for the alsa include files
2086   --with-alsa-lib         specify directory for the alsa library
2087   --with-libjpeg          use libjpeg from build system or OpenJDK source
2088                           (system, bundled) [bundled]
2089   --with-giflib           use giflib from build system or OpenJDK source
2090                           (system, bundled) [bundled]
2091   --with-lcms             use lcms2 from build system or OpenJDK source
2092                           (system, bundled) [bundled]
2093   --with-libpng           use libpng from build system or OpenJDK source
2094                           (system, bundled) [bundled]
2095   --with-zlib             use zlib from build system or OpenJDK source
2096                           (system, bundled) [bundled]
2097   --with-stdc++lib=<static>,<dynamic>,<default>
2098                           force linking of the C++ runtime on Linux to either
2099                           static or dynamic, default is static with dynamic as
2100                           fallback
2101   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
2102                           (Windows only) [probed]
2103   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
2104                           (Windows only) [probed]
2105   --with-dxsdk            Deprecated. Option is kept for backwards
2106                           compatibility and is ignored
2107   --with-dxsdk-lib        Deprecated. Option is kept for backwards
2108                           compatibility and is ignored
2109   --with-dxsdk-include    Deprecated. Option is kept for backwards
2110                           compatibility and is ignored
2111   --with-num-cores        number of cores in the build system, e.g.
2112                           --with-num-cores=8 [probed]
2113   --with-memory-size      memory (in MB) available in the build system, e.g.
2114                           --with-memory-size=1024 [probed]
2115   --with-jobs             number of parallel jobs to let make run [calculated
2116                           based on cores and memory]
2117   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
2118                           invocations of boot JDK, overriding the default
2119                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
2120                           -enableassertions"
2121   --with-sjavac-server-java
2122                           use this java binary for running the sjavac
2123                           background server [Boot JDK java]
2124   --with-ccache-dir       where to store ccache files [~/.ccache]
2125   --with-bundle-date      specify a custom bundle date
2126   --with-sflt-lib-path    directory containing arm soft floating point library
2127   --with-plugin-devkit    provide a different compiler for building the plugin
2128   --with-ant-home         specify ant home
2129   --with-junit-dir        specify directory containing junit.jar which is used
2130                           for testing deploy
2131   --with-sparkle-framework
2132                           specify directory containing sparkle framework for
2133                           deploy on mac
2134   --with-wix              specify directory containing wix for install on
2135                           windows
2136   --with-ccss-signing     specify directory containing Corporate Code Signing
2137                           Application Client.jar for install on windows
2138   --with-lzma-path        specify directory containing LZMA for install on
2139                           windows
2140   --with-upx-path         specify directory containing UPX for install on
2141                           windows
2142   --with-upx-filename     specify filename of .zip file containing UPX for
2143                           install on windows
2144   --with-javafx-zip-dir   specify root directory of JAVAFX cobundle area
2145   --with-jmc-zip-dir      specify root directory of JMC cobundle area
2146   --with-bsdiff-dir       specify install directory for bsdiff
2147   --with-jdk-debug-image-dir
2148                           specify directory containing debug j2sdk-image for
2149                           inclusion in bundles
2150   --with-asmtools         specify location of asmtools jar
2151   --with-cpptasks         specify location of cpptasks jar
2152   --with-ant-contrib      specify location of ant-contrib jar
2153   --with-tonga-jar        specify location of tonga jar
2154   --with-rtpatch-dir      Deprecated. Option is kept for backwards
2155                           compatibility and is ignored
2156   --with-gcc29-compiler-kit
2157                           Deprecated. Option is kept for backwards
2158                           compatibility and is ignored
2159   --with-devtools-path    Deprecated. Option is kept for backwards
2160                           compatibility and is ignored
2161   --with-mozilla-headers  Deprecated. Option is kept for backwards
2162                           compatibility and is ignored
2163 
2164 Some influential environment variables:
2165   BASENAME    Override default value for BASENAME
2166   BASH        Override default value for BASH
2167   CAT         Override default value for CAT
2168   CHMOD       Override default value for CHMOD
2169   CMP         Override default value for CMP
2170   COMM        Override default value for COMM
2171   CP          Override default value for CP
2172   CUT         Override default value for CUT
2173   DATE        Override default value for DATE
2174   DIFF        Override default value for DIFF
2175   DIRNAME     Override default value for DIRNAME
2176   ECHO        Override default value for ECHO
2177   EXPR        Override default value for EXPR
2178   FILE        Override default value for FILE
2179   FIND        Override default value for FIND
2180   HEAD        Override default value for HEAD
2181   LN          Override default value for LN
2182   LS          Override default value for LS
2183   MKDIR       Override default value for MKDIR
2184   MKTEMP      Override default value for MKTEMP
2185   MV          Override default value for MV
2186   NAWK        Override default value for NAWK
2187   PRINTF      Override default value for PRINTF
2188   RM          Override default value for RM
2189   SH          Override default value for SH
2190   SORT        Override default value for SORT
2191   TAIL        Override default value for TAIL
2192   TAR         Override default value for TAR
2193   TEE         Override default value for TEE
2194   TOUCH       Override default value for TOUCH
2195   TR          Override default value for TR
2196   UNAME       Override default value for UNAME
2197   UNIQ        Override default value for UNIQ
2198   WC          Override default value for WC
2199   WHICH       Override default value for WHICH
2200   XARGS       Override default value for XARGS
2201   AWK         Override default value for AWK
2202   GREP        Override default value for GREP
2203   EGREP       Override default value for EGREP
2204   FGREP       Override default value for FGREP
2205   SED         Override default value for SED
2206   CYGPATH     Override default value for CYGPATH
2207   READLINK    Override default value for READLINK
2208   DF          Override default value for DF
2209   SETFILE     Override default value for SETFILE
2210   CPIO        Override default value for CPIO
2211   UNZIP       Override default value for UNZIP
2212   ZIP         Override default value for ZIP
2213   LDD         Override default value for LDD
2214   OTOOL       Override default value for OTOOL
2215   READELF     Override default value for READELF
2216   HG          Override default value for HG
2217   STAT        Override default value for STAT
2218   TIME        Override default value for TIME
2219   DSYMUTIL    Override default value for DSYMUTIL
2220   XATTR       Override default value for XATTR
2221   CODESIGN    Override default value for CODESIGN
2222   PKG_CONFIG  path to pkg-config utility
2223   JAVA        Override default value for JAVA
2224   JAVAC       Override default value for JAVAC
2225   JAVAH       Override default value for JAVAH
2226   JAR         Override default value for JAR
2227   NATIVE2ASCII
2228               Override default value for NATIVE2ASCII
2229   JARSIGNER   Override default value for JARSIGNER
2230   CC          C compiler command
2231   CFLAGS      C compiler flags
2232   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2233               nonstandard directory <lib dir>
2234   LIBS        libraries to pass to the linker, e.g. -l<library>
2235   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2236               you have headers in a nonstandard directory <include dir>
2237   CXX         C++ compiler command
2238   CXXFLAGS    C++ compiler flags
2239   CPP         C preprocessor
2240   CXXCPP      C++ preprocessor
2241   AS          Override default value for AS
2242   AR          Override default value for AR
2243   LIPO        Override default value for LIPO
2244   STRIP       Override default value for STRIP
2245   NM          Override default value for NM
2246   GNM         Override default value for GNM
2247   MCS         Override default value for MCS
2248   OBJCOPY     Override default value for OBJCOPY
2249   OBJDUMP     Override default value for OBJDUMP
2250   BUILD_CC    Override default value for BUILD_CC
2251   BUILD_CXX   Override default value for BUILD_CXX
2252   BUILD_LD    Override default value for BUILD_LD
2253   JTREGEXE    Override default value for JTREGEXE
2254   XMKMF       Path to xmkmf, Makefile generator for X Window System
2255   FREETYPE_CFLAGS
2256               C compiler flags for FREETYPE, overriding pkg-config
2257   FREETYPE_LIBS
2258               linker flags for FREETYPE, overriding pkg-config
2259   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2260   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2261   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2262   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
2263   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2264   PNG_LIBS    linker flags for PNG, overriding pkg-config
2265   LIBFFI_CFLAGS
2266               C compiler flags for LIBFFI, overriding pkg-config
2267   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2268   CCACHE      Override default value for CCACHE
2269   MSGFMT      Override default value for MSGFMT
2270   PLUTIL      Override default value for PLUTIL
2271   IBTOOL      Override default value for IBTOOL
2272   OPENSSL     Override default value for OPENSSL
2273   INSTALL_NAME_TOOL
2274               Override default value for INSTALL_NAME_TOOL
2275   ICONV       Override default value for ICONV
2276 
2277 Use these variables to override the choices made by `configure' or to help
2278 it to find libraries and programs with nonstandard names/locations.
2279 
2280 Report bugs to <build-dev@openjdk.java.net>.
2281 OpenJDK home page: <http://openjdk.java.net>.
2282 _ACEOF
2283 ac_status=$?
2284 fi
2285 
2286 if test "$ac_init_help" = "recursive"; then
2287   # If there are subdirs, report their specific --help.
2288   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2289     test -d "$ac_dir" ||
2290       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2291       continue
2292     ac_builddir=.
2293 
2294 case "$ac_dir" in
2295 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2296 *)
2297   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2298   # A ".." for each directory in $ac_dir_suffix.
2299   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2300   case $ac_top_builddir_sub in
2301   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2302   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2303   esac ;;
2304 esac
2305 ac_abs_top_builddir=$ac_pwd
2306 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2307 # for backward compatibility:
2308 ac_top_builddir=$ac_top_build_prefix
2309 
2310 case $srcdir in
2311   .)  # We are building in place.
2312     ac_srcdir=.
2313     ac_top_srcdir=$ac_top_builddir_sub
2314     ac_abs_top_srcdir=$ac_pwd ;;
2315   [\\/]* | ?:[\\/]* )  # Absolute name.
2316     ac_srcdir=$srcdir$ac_dir_suffix;
2317     ac_top_srcdir=$srcdir
2318     ac_abs_top_srcdir=$srcdir ;;
2319   *) # Relative name.
2320     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2321     ac_top_srcdir=$ac_top_build_prefix$srcdir
2322     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2323 esac
2324 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2325 
2326     cd "$ac_dir" || { ac_status=$?; continue; }
2327     # Check for guested configure.
2328     if test -f "$ac_srcdir/configure.gnu"; then
2329       echo &&
2330       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2331     elif test -f "$ac_srcdir/configure"; then
2332       echo &&
2333       $SHELL "$ac_srcdir/configure" --help=recursive
2334     else
2335       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2336     fi || ac_status=$?
2337     cd "$ac_pwd" || { ac_status=$?; break; }
2338   done
2339 fi
2340 
2341 test -n "$ac_init_help" && exit $ac_status
2342 if $ac_init_version; then
2343   cat <<\_ACEOF
2344 OpenJDK configure jdk9
2345 generated by GNU Autoconf 2.69
2346 
2347 Copyright (C) 2012 Free Software Foundation, Inc.
2348 This configure script is free software; the Free Software Foundation
2349 gives unlimited permission to copy, distribute and modify it.
2350 _ACEOF
2351   exit
2352 fi
2353 
2354 ## ------------------------ ##
2355 ## Autoconf initialization. ##
2356 ## ------------------------ ##
2357 
2358 # ac_fn_c_try_compile LINENO
2359 # --------------------------
2360 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2361 ac_fn_c_try_compile ()
2362 {
2363   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2364   rm -f conftest.$ac_objext
2365   if { { ac_try="$ac_compile"
2366 case "(($ac_try" in
2367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2368   *) ac_try_echo=$ac_try;;
2369 esac
2370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2371 $as_echo "$ac_try_echo"; } >&5
2372   (eval "$ac_compile") 2>conftest.err
2373   ac_status=$?
2374   if test -s conftest.err; then
2375     grep -v '^ *+' conftest.err >conftest.er1
2376     cat conftest.er1 >&5
2377     mv -f conftest.er1 conftest.err
2378   fi
2379   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2380   test $ac_status = 0; } && {
2381          test -z "$ac_c_werror_flag" ||
2382          test ! -s conftest.err
2383        } && test -s conftest.$ac_objext; then :
2384   ac_retval=0
2385 else
2386   $as_echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2388 
2389         ac_retval=1
2390 fi
2391   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2392   as_fn_set_status $ac_retval
2393 
2394 } # ac_fn_c_try_compile
2395 
2396 # ac_fn_cxx_try_compile LINENO
2397 # ----------------------------
2398 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2399 ac_fn_cxx_try_compile ()
2400 {
2401   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2402   rm -f conftest.$ac_objext
2403   if { { ac_try="$ac_compile"
2404 case "(($ac_try" in
2405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406   *) ac_try_echo=$ac_try;;
2407 esac
2408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2409 $as_echo "$ac_try_echo"; } >&5
2410   (eval "$ac_compile") 2>conftest.err
2411   ac_status=$?
2412   if test -s conftest.err; then
2413     grep -v '^ *+' conftest.err >conftest.er1
2414     cat conftest.er1 >&5
2415     mv -f conftest.er1 conftest.err
2416   fi
2417   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2418   test $ac_status = 0; } && {
2419          test -z "$ac_cxx_werror_flag" ||
2420          test ! -s conftest.err
2421        } && test -s conftest.$ac_objext; then :
2422   ac_retval=0
2423 else
2424   $as_echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2426 
2427         ac_retval=1
2428 fi
2429   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2430   as_fn_set_status $ac_retval
2431 
2432 } # ac_fn_cxx_try_compile
2433 
2434 # ac_fn_c_try_cpp LINENO
2435 # ----------------------
2436 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2437 ac_fn_c_try_cpp ()
2438 {
2439   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2440   if { { ac_try="$ac_cpp conftest.$ac_ext"
2441 case "(($ac_try" in
2442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2443   *) ac_try_echo=$ac_try;;
2444 esac
2445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2446 $as_echo "$ac_try_echo"; } >&5
2447   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2448   ac_status=$?
2449   if test -s conftest.err; then
2450     grep -v '^ *+' conftest.err >conftest.er1
2451     cat conftest.er1 >&5
2452     mv -f conftest.er1 conftest.err
2453   fi
2454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2455   test $ac_status = 0; } > conftest.i && {
2456          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2457          test ! -s conftest.err
2458        }; then :
2459   ac_retval=0
2460 else
2461   $as_echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2463 
2464     ac_retval=1
2465 fi
2466   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2467   as_fn_set_status $ac_retval
2468 
2469 } # ac_fn_c_try_cpp
2470 
2471 # ac_fn_cxx_try_cpp LINENO
2472 # ------------------------
2473 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2474 ac_fn_cxx_try_cpp ()
2475 {
2476   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2477   if { { ac_try="$ac_cpp conftest.$ac_ext"
2478 case "(($ac_try" in
2479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480   *) ac_try_echo=$ac_try;;
2481 esac
2482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2483 $as_echo "$ac_try_echo"; } >&5
2484   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2485   ac_status=$?
2486   if test -s conftest.err; then
2487     grep -v '^ *+' conftest.err >conftest.er1
2488     cat conftest.er1 >&5
2489     mv -f conftest.er1 conftest.err
2490   fi
2491   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2492   test $ac_status = 0; } > conftest.i && {
2493          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2494          test ! -s conftest.err
2495        }; then :
2496   ac_retval=0
2497 else
2498   $as_echo "$as_me: failed program was:" >&5
2499 sed 's/^/| /' conftest.$ac_ext >&5
2500 
2501     ac_retval=1
2502 fi
2503   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2504   as_fn_set_status $ac_retval
2505 
2506 } # ac_fn_cxx_try_cpp
2507 
2508 # ac_fn_c_try_link LINENO
2509 # -----------------------
2510 # Try to link conftest.$ac_ext, and return whether this succeeded.
2511 ac_fn_c_try_link ()
2512 {
2513   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2514   rm -f conftest.$ac_objext conftest$ac_exeext
2515   if { { ac_try="$ac_link"
2516 case "(($ac_try" in
2517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2518   *) ac_try_echo=$ac_try;;
2519 esac
2520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2521 $as_echo "$ac_try_echo"; } >&5
2522   (eval "$ac_link") 2>conftest.err
2523   ac_status=$?
2524   if test -s conftest.err; then
2525     grep -v '^ *+' conftest.err >conftest.er1
2526     cat conftest.er1 >&5
2527     mv -f conftest.er1 conftest.err
2528   fi
2529   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2530   test $ac_status = 0; } && {
2531          test -z "$ac_c_werror_flag" ||
2532          test ! -s conftest.err
2533        } && test -s conftest$ac_exeext && {
2534          test "$cross_compiling" = yes ||
2535          test -x conftest$ac_exeext
2536        }; then :
2537   ac_retval=0
2538 else
2539   $as_echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2541 
2542         ac_retval=1
2543 fi
2544   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2545   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2546   # interfere with the next link command; also delete a directory that is
2547   # left behind by Apple's compiler.  We do this before executing the actions.
2548   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2549   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2550   as_fn_set_status $ac_retval
2551 
2552 } # ac_fn_c_try_link
2553 
2554 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2555 # ---------------------------------------------------------
2556 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2557 # the include files in INCLUDES and setting the cache variable VAR
2558 # accordingly.
2559 ac_fn_cxx_check_header_mongrel ()
2560 {
2561   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2562   if eval \${$3+:} false; then :
2563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2564 $as_echo_n "checking for $2... " >&6; }
2565 if eval \${$3+:} false; then :
2566   $as_echo_n "(cached) " >&6
2567 fi
2568 eval ac_res=\$$3
2569                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2570 $as_echo "$ac_res" >&6; }
2571 else
2572   # Is the header compilable?
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2574 $as_echo_n "checking $2 usability... " >&6; }
2575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2576 /* end confdefs.h.  */
2577 $4
2578 #include <$2>
2579 _ACEOF
2580 if ac_fn_cxx_try_compile "$LINENO"; then :
2581   ac_header_compiler=yes
2582 else
2583   ac_header_compiler=no
2584 fi
2585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2587 $as_echo "$ac_header_compiler" >&6; }
2588 
2589 # Is the header present?
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2591 $as_echo_n "checking $2 presence... " >&6; }
2592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2593 /* end confdefs.h.  */
2594 #include <$2>
2595 _ACEOF
2596 if ac_fn_cxx_try_cpp "$LINENO"; then :
2597   ac_header_preproc=yes
2598 else
2599   ac_header_preproc=no
2600 fi
2601 rm -f conftest.err conftest.i conftest.$ac_ext
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2603 $as_echo "$ac_header_preproc" >&6; }
2604 
2605 # So?  What about this header?
2606 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2607   yes:no: )
2608     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2609 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2610     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2611 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2612     ;;
2613   no:yes:* )
2614     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2615 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2616     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2617 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2618     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2619 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2620     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2621 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2622     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2623 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2624 ( $as_echo "## ----------------------------------------- ##
2625 ## Report this to build-dev@openjdk.java.net ##
2626 ## ----------------------------------------- ##"
2627      ) | sed "s/^/$as_me: WARNING:     /" >&2
2628     ;;
2629 esac
2630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2631 $as_echo_n "checking for $2... " >&6; }
2632 if eval \${$3+:} false; then :
2633   $as_echo_n "(cached) " >&6
2634 else
2635   eval "$3=\$ac_header_compiler"
2636 fi
2637 eval ac_res=\$$3
2638                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2639 $as_echo "$ac_res" >&6; }
2640 fi
2641   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2642 
2643 } # ac_fn_cxx_check_header_mongrel
2644 
2645 # ac_fn_cxx_try_run LINENO
2646 # ------------------------
2647 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2648 # that executables *can* be run.
2649 ac_fn_cxx_try_run ()
2650 {
2651   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2652   if { { ac_try="$ac_link"
2653 case "(($ac_try" in
2654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2655   *) ac_try_echo=$ac_try;;
2656 esac
2657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2658 $as_echo "$ac_try_echo"; } >&5
2659   (eval "$ac_link") 2>&5
2660   ac_status=$?
2661   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2662   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2663   { { case "(($ac_try" in
2664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665   *) ac_try_echo=$ac_try;;
2666 esac
2667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2668 $as_echo "$ac_try_echo"; } >&5
2669   (eval "$ac_try") 2>&5
2670   ac_status=$?
2671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2672   test $ac_status = 0; }; }; then :
2673   ac_retval=0
2674 else
2675   $as_echo "$as_me: program exited with status $ac_status" >&5
2676        $as_echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2678 
2679        ac_retval=$ac_status
2680 fi
2681   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2682   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2683   as_fn_set_status $ac_retval
2684 
2685 } # ac_fn_cxx_try_run
2686 
2687 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2688 # ---------------------------------------------------------
2689 # Tests whether HEADER exists and can be compiled using the include files in
2690 # INCLUDES, setting the cache variable VAR accordingly.
2691 ac_fn_cxx_check_header_compile ()
2692 {
2693   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2694   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2695 $as_echo_n "checking for $2... " >&6; }
2696 if eval \${$3+:} false; then :
2697   $as_echo_n "(cached) " >&6
2698 else
2699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2700 /* end confdefs.h.  */
2701 $4
2702 #include <$2>
2703 _ACEOF
2704 if ac_fn_cxx_try_compile "$LINENO"; then :
2705   eval "$3=yes"
2706 else
2707   eval "$3=no"
2708 fi
2709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2710 fi
2711 eval ac_res=\$$3
2712                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2713 $as_echo "$ac_res" >&6; }
2714   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2715 
2716 } # ac_fn_cxx_check_header_compile
2717 
2718 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2719 # ----------------------------------------------
2720 # Tries to find the compile-time value of EXPR in a program that includes
2721 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2722 # computed
2723 ac_fn_cxx_compute_int ()
2724 {
2725   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2726   if test "$cross_compiling" = yes; then
2727     # Depending upon the size, compute the lo and hi bounds.
2728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2729 /* end confdefs.h.  */
2730 $4
2731 int
2732 main ()
2733 {
2734 static int test_array [1 - 2 * !(($2) >= 0)];
2735 test_array [0] = 0;
2736 return test_array [0];
2737 
2738   ;
2739   return 0;
2740 }
2741 _ACEOF
2742 if ac_fn_cxx_try_compile "$LINENO"; then :
2743   ac_lo=0 ac_mid=0
2744   while :; do
2745     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2746 /* end confdefs.h.  */
2747 $4
2748 int
2749 main ()
2750 {
2751 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2752 test_array [0] = 0;
2753 return test_array [0];
2754 
2755   ;
2756   return 0;
2757 }
2758 _ACEOF
2759 if ac_fn_cxx_try_compile "$LINENO"; then :
2760   ac_hi=$ac_mid; break
2761 else
2762   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2763                         if test $ac_lo -le $ac_mid; then
2764                           ac_lo= ac_hi=
2765                           break
2766                         fi
2767                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2768 fi
2769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2770   done
2771 else
2772   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2773 /* end confdefs.h.  */
2774 $4
2775 int
2776 main ()
2777 {
2778 static int test_array [1 - 2 * !(($2) < 0)];
2779 test_array [0] = 0;
2780 return test_array [0];
2781 
2782   ;
2783   return 0;
2784 }
2785 _ACEOF
2786 if ac_fn_cxx_try_compile "$LINENO"; then :
2787   ac_hi=-1 ac_mid=-1
2788   while :; do
2789     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2790 /* end confdefs.h.  */
2791 $4
2792 int
2793 main ()
2794 {
2795 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2796 test_array [0] = 0;
2797 return test_array [0];
2798 
2799   ;
2800   return 0;
2801 }
2802 _ACEOF
2803 if ac_fn_cxx_try_compile "$LINENO"; then :
2804   ac_lo=$ac_mid; break
2805 else
2806   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2807                         if test $ac_mid -le $ac_hi; then
2808                           ac_lo= ac_hi=
2809                           break
2810                         fi
2811                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2812 fi
2813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2814   done
2815 else
2816   ac_lo= ac_hi=
2817 fi
2818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2819 fi
2820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2821 # Binary search between lo and hi bounds.
2822 while test "x$ac_lo" != "x$ac_hi"; do
2823   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2825 /* end confdefs.h.  */
2826 $4
2827 int
2828 main ()
2829 {
2830 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2831 test_array [0] = 0;
2832 return test_array [0];
2833 
2834   ;
2835   return 0;
2836 }
2837 _ACEOF
2838 if ac_fn_cxx_try_compile "$LINENO"; then :
2839   ac_hi=$ac_mid
2840 else
2841   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2842 fi
2843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2844 done
2845 case $ac_lo in #((
2846 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2847 '') ac_retval=1 ;;
2848 esac
2849   else
2850     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2851 /* end confdefs.h.  */
2852 $4
2853 static long int longval () { return $2; }
2854 static unsigned long int ulongval () { return $2; }
2855 #include <stdio.h>
2856 #include <stdlib.h>
2857 int
2858 main ()
2859 {
2860 
2861   FILE *f = fopen ("conftest.val", "w");
2862   if (! f)
2863     return 1;
2864   if (($2) < 0)
2865     {
2866       long int i = longval ();
2867       if (i != ($2))
2868         return 1;
2869       fprintf (f, "%ld", i);
2870     }
2871   else
2872     {
2873       unsigned long int i = ulongval ();
2874       if (i != ($2))
2875         return 1;
2876       fprintf (f, "%lu", i);
2877     }
2878   /* Do not output a trailing newline, as this causes \r\n confusion
2879      on some platforms.  */
2880   return ferror (f) || fclose (f) != 0;
2881 
2882   ;
2883   return 0;
2884 }
2885 _ACEOF
2886 if ac_fn_cxx_try_run "$LINENO"; then :
2887   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2888 else
2889   ac_retval=1
2890 fi
2891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2892   conftest.$ac_objext conftest.beam conftest.$ac_ext
2893 rm -f conftest.val
2894 
2895   fi
2896   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2897   as_fn_set_status $ac_retval
2898 
2899 } # ac_fn_cxx_compute_int
2900 
2901 # ac_fn_cxx_try_link LINENO
2902 # -------------------------
2903 # Try to link conftest.$ac_ext, and return whether this succeeded.
2904 ac_fn_cxx_try_link ()
2905 {
2906   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2907   rm -f conftest.$ac_objext conftest$ac_exeext
2908   if { { ac_try="$ac_link"
2909 case "(($ac_try" in
2910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911   *) ac_try_echo=$ac_try;;
2912 esac
2913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2914 $as_echo "$ac_try_echo"; } >&5
2915   (eval "$ac_link") 2>conftest.err
2916   ac_status=$?
2917   if test -s conftest.err; then
2918     grep -v '^ *+' conftest.err >conftest.er1
2919     cat conftest.er1 >&5
2920     mv -f conftest.er1 conftest.err
2921   fi
2922   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2923   test $ac_status = 0; } && {
2924          test -z "$ac_cxx_werror_flag" ||
2925          test ! -s conftest.err
2926        } && test -s conftest$ac_exeext && {
2927          test "$cross_compiling" = yes ||
2928          test -x conftest$ac_exeext
2929        }; then :
2930   ac_retval=0
2931 else
2932   $as_echo "$as_me: failed program was:" >&5
2933 sed 's/^/| /' conftest.$ac_ext >&5
2934 
2935         ac_retval=1
2936 fi
2937   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2938   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2939   # interfere with the next link command; also delete a directory that is
2940   # left behind by Apple's compiler.  We do this before executing the actions.
2941   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2942   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2943   as_fn_set_status $ac_retval
2944 
2945 } # ac_fn_cxx_try_link
2946 
2947 # ac_fn_cxx_check_func LINENO FUNC VAR
2948 # ------------------------------------
2949 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2950 ac_fn_cxx_check_func ()
2951 {
2952   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2954 $as_echo_n "checking for $2... " >&6; }
2955 if eval \${$3+:} false; then :
2956   $as_echo_n "(cached) " >&6
2957 else
2958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2959 /* end confdefs.h.  */
2960 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2961    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2962 #define $2 innocuous_$2
2963 
2964 /* System header to define __stub macros and hopefully few prototypes,
2965     which can conflict with char $2 (); below.
2966     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2967     <limits.h> exists even on freestanding compilers.  */
2968 
2969 #ifdef __STDC__
2970 # include <limits.h>
2971 #else
2972 # include <assert.h>
2973 #endif
2974 
2975 #undef $2
2976 
2977 /* Override any GCC internal prototype to avoid an error.
2978    Use char because int might match the return type of a GCC
2979    builtin and then its argument prototype would still apply.  */
2980 #ifdef __cplusplus
2981 extern "C"
2982 #endif
2983 char $2 ();
2984 /* The GNU C library defines this for functions which it implements
2985     to always fail with ENOSYS.  Some functions are actually named
2986     something starting with __ and the normal name is an alias.  */
2987 #if defined __stub_$2 || defined __stub___$2
2988 choke me
2989 #endif
2990 
2991 int
2992 main ()
2993 {
2994 return $2 ();
2995   ;
2996   return 0;
2997 }
2998 _ACEOF
2999 if ac_fn_cxx_try_link "$LINENO"; then :
3000   eval "$3=yes"
3001 else
3002   eval "$3=no"
3003 fi
3004 rm -f core conftest.err conftest.$ac_objext \
3005     conftest$ac_exeext conftest.$ac_ext
3006 fi
3007 eval ac_res=\$$3
3008                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3009 $as_echo "$ac_res" >&6; }
3010   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3011 
3012 } # ac_fn_cxx_check_func
3013 
3014 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
3015 # -------------------------------------------------------
3016 # Tests whether HEADER exists and can be compiled using the include files in
3017 # INCLUDES, setting the cache variable VAR accordingly.
3018 ac_fn_c_check_header_compile ()
3019 {
3020   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3021   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3022 $as_echo_n "checking for $2... " >&6; }
3023 if eval \${$3+:} false; then :
3024   $as_echo_n "(cached) " >&6
3025 else
3026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3027 /* end confdefs.h.  */
3028 $4
3029 #include <$2>
3030 _ACEOF
3031 if ac_fn_c_try_compile "$LINENO"; then :
3032   eval "$3=yes"
3033 else
3034   eval "$3=no"
3035 fi
3036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3037 fi
3038 eval ac_res=\$$3
3039                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3040 $as_echo "$ac_res" >&6; }
3041   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3042 
3043 } # ac_fn_c_check_header_compile
3044 cat >config.log <<_ACEOF
3045 This file contains any messages produced by compilers while
3046 running configure, to aid debugging if configure makes a mistake.
3047 
3048 It was created by OpenJDK $as_me jdk9, which was
3049 generated by GNU Autoconf 2.69.  Invocation command line was
3050 
3051   $ $0 $@
3052 
3053 _ACEOF
3054 exec 5>>config.log
3055 {
3056 cat <<_ASUNAME
3057 ## --------- ##
3058 ## Platform. ##
3059 ## --------- ##
3060 
3061 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3062 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3063 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3064 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3065 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3066 
3067 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3068 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3069 
3070 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3071 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3072 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3073 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3074 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3075 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3076 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3077 
3078 _ASUNAME
3079 
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 for as_dir in $PATH
3082 do
3083   IFS=$as_save_IFS
3084   test -z "$as_dir" && as_dir=.
3085     $as_echo "PATH: $as_dir"
3086   done
3087 IFS=$as_save_IFS
3088 
3089 } >&5
3090 
3091 cat >&5 <<_ACEOF
3092 
3093 
3094 ## ----------- ##
3095 ## Core tests. ##
3096 ## ----------- ##
3097 
3098 _ACEOF
3099 
3100 
3101 # Keep a trace of the command line.
3102 # Strip out --no-create and --no-recursion so they do not pile up.
3103 # Strip out --silent because we don't want to record it for future runs.
3104 # Also quote any args containing shell meta-characters.
3105 # Make two passes to allow for proper duplicate-argument suppression.
3106 ac_configure_args=
3107 ac_configure_args0=
3108 ac_configure_args1=
3109 ac_must_keep_next=false
3110 for ac_pass in 1 2
3111 do
3112   for ac_arg
3113   do
3114     case $ac_arg in
3115     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3116     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3117     | -silent | --silent | --silen | --sile | --sil)
3118       continue ;;
3119     *\'*)
3120       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3121     esac
3122     case $ac_pass in
3123     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3124     2)
3125       as_fn_append ac_configure_args1 " '$ac_arg'"
3126       if test $ac_must_keep_next = true; then
3127         ac_must_keep_next=false # Got value, back to normal.
3128       else
3129         case $ac_arg in
3130           *=* | --config-cache | -C | -disable-* | --disable-* \
3131           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3132           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3133           | -with-* | --with-* | -without-* | --without-* | --x)
3134             case "$ac_configure_args0 " in
3135               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3136             esac
3137             ;;
3138           -* ) ac_must_keep_next=true ;;
3139         esac
3140       fi
3141       as_fn_append ac_configure_args " '$ac_arg'"
3142       ;;
3143     esac
3144   done
3145 done
3146 { ac_configure_args0=; unset ac_configure_args0;}
3147 { ac_configure_args1=; unset ac_configure_args1;}
3148 
3149 # When interrupted or exit'd, cleanup temporary files, and complete
3150 # config.log.  We remove comments because anyway the quotes in there
3151 # would cause problems or look ugly.
3152 # WARNING: Use '\'' to represent an apostrophe within the trap.
3153 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3154 trap 'exit_status=$?
3155   # Save into config.log some information that might help in debugging.
3156   {
3157     echo
3158 
3159     $as_echo "## ---------------- ##
3160 ## Cache variables. ##
3161 ## ---------------- ##"
3162     echo
3163     # The following way of writing the cache mishandles newlines in values,
3164 (
3165   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3166     eval ac_val=\$$ac_var
3167     case $ac_val in #(
3168     *${as_nl}*)
3169       case $ac_var in #(
3170       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3171 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3172       esac
3173       case $ac_var in #(
3174       _ | IFS | as_nl) ;; #(
3175       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3176       *) { eval $ac_var=; unset $ac_var;} ;;
3177       esac ;;
3178     esac
3179   done
3180   (set) 2>&1 |
3181     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3182     *${as_nl}ac_space=\ *)
3183       sed -n \
3184         "s/'\''/'\''\\\\'\'''\''/g;
3185           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3186       ;; #(
3187     *)
3188       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3189       ;;
3190     esac |
3191     sort
3192 )
3193     echo
3194 
3195     $as_echo "## ----------------- ##
3196 ## Output variables. ##
3197 ## ----------------- ##"
3198     echo
3199     for ac_var in $ac_subst_vars
3200     do
3201       eval ac_val=\$$ac_var
3202       case $ac_val in
3203       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3204       esac
3205       $as_echo "$ac_var='\''$ac_val'\''"
3206     done | sort
3207     echo
3208 
3209     if test -n "$ac_subst_files"; then
3210       $as_echo "## ------------------- ##
3211 ## File substitutions. ##
3212 ## ------------------- ##"
3213       echo
3214       for ac_var in $ac_subst_files
3215       do
3216         eval ac_val=\$$ac_var
3217         case $ac_val in
3218         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3219         esac
3220         $as_echo "$ac_var='\''$ac_val'\''"
3221       done | sort
3222       echo
3223     fi
3224 
3225     if test -s confdefs.h; then
3226       $as_echo "## ----------- ##
3227 ## confdefs.h. ##
3228 ## ----------- ##"
3229       echo
3230       cat confdefs.h
3231       echo
3232     fi
3233     test "$ac_signal" != 0 &&
3234       $as_echo "$as_me: caught signal $ac_signal"
3235     $as_echo "$as_me: exit $exit_status"
3236   } >&5
3237   rm -f core *.core core.conftest.* &&
3238     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3239     exit $exit_status
3240 ' 0
3241 for ac_signal in 1 2 13 15; do
3242   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3243 done
3244 ac_signal=0
3245 
3246 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3247 rm -f -r conftest* confdefs.h
3248 
3249 $as_echo "/* confdefs.h */" > confdefs.h
3250 
3251 # Predefined preprocessor variables.
3252 
3253 cat >>confdefs.h <<_ACEOF
3254 #define PACKAGE_NAME "$PACKAGE_NAME"
3255 _ACEOF
3256 
3257 cat >>confdefs.h <<_ACEOF
3258 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3259 _ACEOF
3260 
3261 cat >>confdefs.h <<_ACEOF
3262 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3263 _ACEOF
3264 
3265 cat >>confdefs.h <<_ACEOF
3266 #define PACKAGE_STRING "$PACKAGE_STRING"
3267 _ACEOF
3268 
3269 cat >>confdefs.h <<_ACEOF
3270 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3271 _ACEOF
3272 
3273 cat >>confdefs.h <<_ACEOF
3274 #define PACKAGE_URL "$PACKAGE_URL"
3275 _ACEOF
3276 
3277 
3278 # Let the site file select an alternate cache file if it wants to.
3279 # Prefer an explicitly selected file to automatically selected ones.
3280 ac_site_file1=NONE
3281 ac_site_file2=NONE
3282 if test -n "$CONFIG_SITE"; then
3283   # We do not want a PATH search for config.site.
3284   case $CONFIG_SITE in #((
3285     -*)  ac_site_file1=./$CONFIG_SITE;;
3286     */*) ac_site_file1=$CONFIG_SITE;;
3287     *)   ac_site_file1=./$CONFIG_SITE;;
3288   esac
3289 elif test "x$prefix" != xNONE; then
3290   ac_site_file1=$prefix/share/config.site
3291   ac_site_file2=$prefix/etc/config.site
3292 else
3293   ac_site_file1=$ac_default_prefix/share/config.site
3294   ac_site_file2=$ac_default_prefix/etc/config.site
3295 fi
3296 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3297 do
3298   test "x$ac_site_file" = xNONE && continue
3299   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3300     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3301 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3302     sed 's/^/| /' "$ac_site_file" >&5
3303     . "$ac_site_file" \
3304       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3306 as_fn_error $? "failed to load site script $ac_site_file
3307 See \`config.log' for more details" "$LINENO" 5; }
3308   fi
3309 done
3310 
3311 if test -r "$cache_file"; then
3312   # Some versions of bash will fail to source /dev/null (special files
3313   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3314   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3315     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3316 $as_echo "$as_me: loading cache $cache_file" >&6;}
3317     case $cache_file in
3318       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3319       *)                      . "./$cache_file";;
3320     esac
3321   fi
3322 else
3323   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3324 $as_echo "$as_me: creating cache $cache_file" >&6;}
3325   >$cache_file
3326 fi
3327 
3328 # Check that the precious variables saved in the cache have kept the same
3329 # value.
3330 ac_cache_corrupted=false
3331 for ac_var in $ac_precious_vars; do
3332   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3333   eval ac_new_set=\$ac_env_${ac_var}_set
3334   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3335   eval ac_new_val=\$ac_env_${ac_var}_value
3336   case $ac_old_set,$ac_new_set in
3337     set,)
3338       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3339 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3340       ac_cache_corrupted=: ;;
3341     ,set)
3342       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3343 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3344       ac_cache_corrupted=: ;;
3345     ,);;
3346     *)
3347       if test "x$ac_old_val" != "x$ac_new_val"; then
3348         # differences in whitespace do not lead to failure.
3349         ac_old_val_w=`echo x $ac_old_val`
3350         ac_new_val_w=`echo x $ac_new_val`
3351         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3352           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3353 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3354           ac_cache_corrupted=:
3355         else
3356           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3357 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3358           eval $ac_var=\$ac_old_val
3359         fi
3360         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3361 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3362         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3363 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3364       fi;;
3365   esac
3366   # Pass precious variables to config.status.
3367   if test "$ac_new_set" = set; then
3368     case $ac_new_val in
3369     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3370     *) ac_arg=$ac_var=$ac_new_val ;;
3371     esac
3372     case " $ac_configure_args " in
3373       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3374       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3375     esac
3376   fi
3377 done
3378 if $ac_cache_corrupted; then
3379   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3381   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3382 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3383   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3384 fi
3385 ## -------------------- ##
3386 ## Main body of script. ##
3387 ## -------------------- ##
3388 
3389 ac_ext=c
3390 ac_cpp='$CPP $CPPFLAGS'
3391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3394 
3395 
3396 
3397 ac_aux_dir=
3398 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3399   if test -f "$ac_dir/install-sh"; then
3400     ac_aux_dir=$ac_dir
3401     ac_install_sh="$ac_aux_dir/install-sh -c"
3402     break
3403   elif test -f "$ac_dir/install.sh"; then
3404     ac_aux_dir=$ac_dir
3405     ac_install_sh="$ac_aux_dir/install.sh -c"
3406     break
3407   elif test -f "$ac_dir/shtool"; then
3408     ac_aux_dir=$ac_dir
3409     ac_install_sh="$ac_aux_dir/shtool install -c"
3410     break
3411   fi
3412 done
3413 if test -z "$ac_aux_dir"; then
3414   as_fn_error $? "cannot find install-sh, install.sh, or shtool in $TOPDIR/common/autoconf/build-aux \"$srcdir\"/$TOPDIR/common/autoconf/build-aux" "$LINENO" 5
3415 fi
3416 
3417 # These three variables are undocumented and unsupported,
3418 # and are intended to be withdrawn in a future Autoconf release.
3419 # They can cause serious problems if a builder's source tree is in a directory
3420 # whose full name contains unusual characters.
3421 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3422 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3423 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3424 
3425 
3426 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3427 
3428 #
3429 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3430 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3431 #
3432 # This code is free software; you can redistribute it and/or modify it
3433 # under the terms of the GNU General Public License version 2 only, as
3434 # published by the Free Software Foundation.  Oracle designates this
3435 # particular file as subject to the "Classpath" exception as provided
3436 # by Oracle in the LICENSE file that accompanied this code.
3437 #
3438 # This code is distributed in the hope that it will be useful, but WITHOUT
3439 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3440 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3441 # version 2 for more details (a copy is included in the LICENSE file that
3442 # accompanied this code).
3443 #
3444 # You should have received a copy of the GNU General Public License version
3445 # 2 along with this work; if not, write to the Free Software Foundation,
3446 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3447 #
3448 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3449 # or visit www.oracle.com if you need additional information or have any
3450 # questions.
3451 #
3452 
3453 #
3454 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3455 #
3456 # This program is free software; you can redistribute it and/or modify
3457 # it under the terms of the GNU General Public License as published by
3458 # the Free Software Foundation; either version 2 of the License, or
3459 # (at your option) any later version.
3460 #
3461 # This program is distributed in the hope that it will be useful, but
3462 # WITHOUT ANY WARRANTY; without even the implied warranty of
3463 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3464 # General Public License for more details.
3465 #
3466 # You should have received a copy of the GNU General Public License
3467 # along with this program; if not, write to the Free Software
3468 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3469 #
3470 # As a special exception to the GNU General Public License, if you
3471 # distribute this file as part of a program that contains a
3472 # configuration script generated by Autoconf, you may include it under
3473 # the same distribution terms that you use for the rest of that program.
3474 
3475 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3476 # ----------------------------------
3477 # PKG_PROG_PKG_CONFIG
3478 
3479 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3480 #
3481 # Check to see whether a particular set of modules exists.  Similar
3482 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3483 #
3484 #
3485 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3486 # this or PKG_CHECK_MODULES is called, or make sure to call
3487 # PKG_CHECK_EXISTS manually
3488 # --------------------------------------------------------------
3489 
3490 
3491 
3492 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3493 # ---------------------------------------------
3494 # _PKG_CONFIG
3495 
3496 # _PKG_SHORT_ERRORS_SUPPORTED
3497 # -----------------------------
3498 # _PKG_SHORT_ERRORS_SUPPORTED
3499 
3500 
3501 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3502 # [ACTION-IF-NOT-FOUND])
3503 #
3504 #
3505 # Note that if there is a possibility the first call to
3506 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3507 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3508 #
3509 #
3510 # --------------------------------------------------------------
3511 # PKG_CHECK_MODULES
3512 
3513 
3514 # Include these first...
3515 #
3516 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3517 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3518 #
3519 # This code is free software; you can redistribute it and/or modify it
3520 # under the terms of the GNU General Public License version 2 only, as
3521 # published by the Free Software Foundation.  Oracle designates this
3522 # particular file as subject to the "Classpath" exception as provided
3523 # by Oracle in the LICENSE file that accompanied this code.
3524 #
3525 # This code is distributed in the hope that it will be useful, but WITHOUT
3526 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3527 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3528 # version 2 for more details (a copy is included in the LICENSE file that
3529 # accompanied this code).
3530 #
3531 # You should have received a copy of the GNU General Public License version
3532 # 2 along with this work; if not, write to the Free Software Foundation,
3533 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3534 #
3535 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3536 # or visit www.oracle.com if you need additional information or have any
3537 # questions.
3538 #
3539 
3540 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3541 # If so, then append $1 to $2 \
3542 # Also set JVM_ARG_OK to true/false depending on outcome.
3543 
3544 
3545 # Appends a string to a path variable, only adding the : when needed.
3546 
3547 
3548 # Prepends a string to a path variable, only adding the : when needed.
3549 
3550 
3551 # This will make sure the given variable points to a full and proper
3552 # path. This means:
3553 # 1) There will be no spaces in the path. On unix platforms,
3554 #    spaces in the path will result in an error. On Windows,
3555 #    the path will be rewritten using short-style to be space-free.
3556 # 2) The path will be absolute, and it will be in unix-style (on
3557 #     cygwin).
3558 # $1: The name of the variable to fix
3559 
3560 
3561 # This will make sure the given variable points to a executable
3562 # with a full and proper path. This means:
3563 # 1) There will be no spaces in the path. On unix platforms,
3564 #    spaces in the path will result in an error. On Windows,
3565 #    the path will be rewritten using short-style to be space-free.
3566 # 2) The path will be absolute, and it will be in unix-style (on
3567 #     cygwin).
3568 # Any arguments given to the executable is preserved.
3569 # If the input variable does not have a directory specification, then
3570 # it need to be in the PATH.
3571 # $1: The name of the variable to fix
3572 
3573 
3574 
3575 
3576 # Register a --with argument but mark it as deprecated
3577 # $1: The name of the with argument to deprecate, not including --with-
3578 
3579 
3580 # Register a --enable argument but mark it as deprecated
3581 # $1: The name of the with argument to deprecate, not including --enable-
3582 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3583 
3584 
3585 
3586 
3587 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3588 # $1: variable to check
3589 
3590 
3591 # Check that there are no unprocessed overridden variables left.
3592 # If so, they are an incorrect argument and we will exit with an error.
3593 
3594 
3595 # Setup a tool for the given variable. If correctly specified by the user,
3596 # use that value, otherwise search for the tool using the supplied code snippet.
3597 # $1: variable to set
3598 # $2: code snippet to call to look for the tool
3599 
3600 
3601 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3602 # $1: variable to set
3603 # $2: executable name (or list of names) to look for
3604 
3605 
3606 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3607 # $1: variable to set
3608 # $2: executable name (or list of names) to look for
3609 
3610 
3611 # Like BASIC_PATH_PROGS but fails if no tool was found.
3612 # $1: variable to set
3613 # $2: executable name (or list of names) to look for
3614 
3615 
3616 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3617 # $1: variable to set
3618 # $2: autoconf macro to call to look for the special tool
3619 
3620 
3621 # Setup the most fundamental tools that relies on not much else to set up,
3622 # but is used by much of the early bootstrap code.
3623 
3624 
3625 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3626 
3627 
3628 
3629 
3630 
3631 
3632 
3633 
3634 
3635 #%%% Simple tools %%%
3636 
3637 # Check if we have found a usable version of make
3638 # $1: the path to a potential make binary (or empty)
3639 # $2: the description on how we found this
3640 
3641 
3642 
3643 
3644 # Goes looking for a usable version of GNU make.
3645 
3646 
3647 
3648 
3649 
3650 
3651 # Check if build directory is on local disk. If not possible to determine,
3652 # we prefer to claim it's local.
3653 # Argument 1: directory to test
3654 # Argument 2: what to do if it is on local disk
3655 # Argument 3: what to do otherwise (remote disk or failure)
3656 
3657 
3658 # Check that source files have basic read permissions set. This might
3659 # not be the case in cygwin in certain conditions.
3660 
3661 
3662 
3663 
3664 # Check for support for specific options in bash
3665 
3666 
3667 #
3668 # Copyright (c) 2011, 2012, 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 # Helper function which possibly converts a path using DOS-style short mode.
3697 # If so, the updated path is stored in $new_path.
3698 # $1: The path to check
3699 
3700 
3701 # Helper function which possibly converts a path using DOS-style short mode.
3702 # If so, the updated path is stored in $new_path.
3703 # $1: The path to check
3704 
3705 
3706 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3707 # and could probably be heavily simplified. However, all changes in this
3708 # area tend to need lot of testing in different scenarios, and in lack of
3709 # proper unit testing, cleaning this up has not been deemed worth the effort
3710 # at the moment.
3711 
3712 
3713 
3714 
3715 
3716 
3717 
3718 
3719 
3720 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3721 
3722 
3723 
3724 
3725 #
3726 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3727 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3728 #
3729 # This code is free software; you can redistribute it and/or modify it
3730 # under the terms of the GNU General Public License version 2 only, as
3731 # published by the Free Software Foundation.  Oracle designates this
3732 # particular file as subject to the "Classpath" exception as provided
3733 # by Oracle in the LICENSE file that accompanied this code.
3734 #
3735 # This code is distributed in the hope that it will be useful, but WITHOUT
3736 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3737 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3738 # version 2 for more details (a copy is included in the LICENSE file that
3739 # accompanied this code).
3740 #
3741 # You should have received a copy of the GNU General Public License version
3742 # 2 along with this work; if not, write to the Free Software Foundation,
3743 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3744 #
3745 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3746 # or visit www.oracle.com if you need additional information or have any
3747 # questions.
3748 #
3749 
3750 
3751 
3752 
3753 
3754 
3755 
3756 
3757 
3758 
3759 
3760 # ... then the rest
3761 #
3762 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3763 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3764 #
3765 # This code is free software; you can redistribute it and/or modify it
3766 # under the terms of the GNU General Public License version 2 only, as
3767 # published by the Free Software Foundation.  Oracle designates this
3768 # particular file as subject to the "Classpath" exception as provided
3769 # by Oracle in the LICENSE file that accompanied this code.
3770 #
3771 # This code is distributed in the hope that it will be useful, but WITHOUT
3772 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3773 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3774 # version 2 for more details (a copy is included in the LICENSE file that
3775 # accompanied this code).
3776 #
3777 # You should have received a copy of the GNU General Public License version
3778 # 2 along with this work; if not, write to the Free Software Foundation,
3779 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3780 #
3781 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3782 # or visit www.oracle.com if you need additional information or have any
3783 # questions.
3784 #
3785 
3786 ########################################################################
3787 # This file handles detection of the Boot JDK. The Boot JDK detection
3788 # process has been developed as a response to solve a complex real-world
3789 # problem. Initially, it was simple, but it has grown as platform after
3790 # platform, idiosyncracy after idiosyncracy has been supported.
3791 #
3792 # The basic idea is this:
3793 # 1) You need an acceptable *) JDK to use as a Boot JDK
3794 # 2) There are several ways to locate a JDK, that are mostly platform
3795 #    dependent **)
3796 # 3) You can have multiple JDKs installed
3797 # 4) If possible, configure should try to dig out an acceptable JDK
3798 #    automatically, without having to resort to command-line options
3799 #
3800 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3801 #     javac) and not a JRE, etc.
3802 #
3803 # **) On Windows we typically use a well-known path.
3804 #     On MacOSX we typically use the tool java_home.
3805 #     On Linux we typically find javac in the $PATH, and then follow a
3806 #     chain of symlinks that often ends up in a real JDK.
3807 #
3808 # This leads to the code where we check in different ways to locate a
3809 # JDK, and if one is found, check if it is acceptable. If not, we print
3810 # our reasons for rejecting it (useful when debugging non-working
3811 # configure situations) and continue checking the next one.
3812 ########################################################################
3813 
3814 # Execute the check given as argument, and verify the result
3815 # If the Boot JDK was previously found, do nothing
3816 # $1 A command line (typically autoconf macro) to execute
3817 
3818 
3819 # Test: Is bootjdk explicitely set by command line arguments?
3820 
3821 
3822 # Test: Is bootjdk available from builddeps?
3823 
3824 
3825 # Test: Is $JAVA_HOME set?
3826 
3827 
3828 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3829 
3830 
3831 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3832 # $1: Argument to the java_home binary (optional)
3833 
3834 
3835 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3836 
3837 
3838 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3839 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3840 # $1 = Path to directory containing jdk installations.
3841 # $2 = String to append to the found JDK directory to get the proper JDK home
3842 
3843 
3844 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3845 # environmental variable as base for where to look.
3846 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3847 
3848 
3849 # Test: Is there a JDK installed in default, well-known locations?
3850 
3851 
3852 # Check that a command-line tool in the Boot JDK is correct
3853 # $1 = name of variable to assign
3854 # $2 = name of binary
3855 
3856 
3857 ###############################################################################
3858 #
3859 # We need a Boot JDK to bootstrap the build.
3860 #
3861 
3862 
3863 
3864 
3865 
3866 #
3867 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3868 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3869 #
3870 # This code is free software; you can redistribute it and/or modify it
3871 # under the terms of the GNU General Public License version 2 only, as
3872 # published by the Free Software Foundation.  Oracle designates this
3873 # particular file as subject to the "Classpath" exception as provided
3874 # by Oracle in the LICENSE file that accompanied this code.
3875 #
3876 # This code is distributed in the hope that it will be useful, but WITHOUT
3877 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3878 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3879 # version 2 for more details (a copy is included in the LICENSE file that
3880 # accompanied this code).
3881 #
3882 # You should have received a copy of the GNU General Public License version
3883 # 2 along with this work; if not, write to the Free Software Foundation,
3884 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3885 #
3886 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3887 # or visit www.oracle.com if you need additional information or have any
3888 # questions.
3889 #
3890 
3891 
3892 
3893 
3894 
3895 
3896 
3897 
3898 
3899 
3900 
3901 
3902 
3903 
3904 
3905 
3906 
3907 
3908 
3909 
3910 #
3911 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3912 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3913 #
3914 # This code is free software; you can redistribute it and/or modify it
3915 # under the terms of the GNU General Public License version 2 only, as
3916 # published by the Free Software Foundation.  Oracle designates this
3917 # particular file as subject to the "Classpath" exception as provided
3918 # by Oracle in the LICENSE file that accompanied this code.
3919 #
3920 # This code is distributed in the hope that it will be useful, but WITHOUT
3921 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3922 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3923 # version 2 for more details (a copy is included in the LICENSE file that
3924 # accompanied this code).
3925 #
3926 # You should have received a copy of the GNU General Public License version
3927 # 2 along with this work; if not, write to the Free Software Foundation,
3928 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3929 #
3930 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3931 # or visit www.oracle.com if you need additional information or have any
3932 # questions.
3933 #
3934 
3935 
3936 
3937 
3938 
3939 # Documentation on common flags used for solstudio in HIGHEST.
3940 #
3941 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
3942 #          done with care, there are some assumptions below that need to
3943 #          be understood about the use of pointers, and IEEE behavior.
3944 #
3945 # -fns: Use non-standard floating point mode (not IEEE 754)
3946 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
3947 # -fsingle: Use single precision floating point with 'float'
3948 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
3949 #   (Source with excessing pointer casting and data access with mixed
3950 #    pointer types are not recommended)
3951 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
3952 #   (If you expect perfect errno behavior, do not use this)
3953 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
3954 # -xrestrict: Pointer parameters to functions do not overlap
3955 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
3956 #    If you pass in multiple pointers to the same data, do not use this)
3957 # -xlibmil: Inline some library routines
3958 #   (If you expect perfect errno behavior, do not use this)
3959 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
3960 #   (If you expect perfect errno behavior, do not use this)
3961 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
3962 
3963     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
3964     # Bug?
3965     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
3966     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
3967     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
3968     #fi
3969 
3970 
3971 
3972 
3973 
3974 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3975 #                                   [RUN-IF-FALSE])
3976 # ------------------------------------------------------------
3977 # Check that the c and c++ compilers support an argument
3978 
3979 
3980 # FLAGS_LINKER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3981 #                                    [RUN-IF-FALSE])
3982 # ------------------------------------------------------------
3983 # Check that the linker support an argument
3984 
3985 
3986 
3987 
3988 #
3989 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3990 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3991 #
3992 # This code is free software; you can redistribute it and/or modify it
3993 # under the terms of the GNU General Public License version 2 only, as
3994 # published by the Free Software Foundation.  Oracle designates this
3995 # particular file as subject to the "Classpath" exception as provided
3996 # by Oracle in the LICENSE file that accompanied this code.
3997 #
3998 # This code is distributed in the hope that it will be useful, but WITHOUT
3999 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4000 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4001 # version 2 for more details (a copy is included in the LICENSE file that
4002 # accompanied this code).
4003 #
4004 # You should have received a copy of the GNU General Public License version
4005 # 2 along with this work; if not, write to the Free Software Foundation,
4006 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4007 #
4008 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4009 # or visit www.oracle.com if you need additional information or have any
4010 # questions.
4011 #
4012 
4013 
4014 
4015 
4016 
4017 cygwin_help() {
4018   case $1 in
4019     unzip)
4020       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
4021       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4022       ;;
4023     zip)
4024       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
4025       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4026       ;;
4027     make)
4028       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
4029       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4030       ;;
4031     freetype)
4032       HELP_MSG="
4033 The freetype library can now be build during the configure process.
4034 Download the freetype sources and unpack them into an arbitrary directory:
4035 
4036 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
4037 tar -xzf freetype-2.5.3.tar.gz
4038 
4039 Then run configure with '--with-freetype-src=<freetype_src>'. This will
4040 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
4041 builds or into '<freetype_src>/lib32' for 32-bit builds.
4042 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
4043 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds."
4044       ;;
4045   esac
4046 }
4047 
4048 msys_help() {
4049   PKGHANDLER_COMMAND=""
4050 }
4051 
4052 apt_help() {
4053   case $1 in
4054     devkit)
4055       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
4056     openjdk)
4057       PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
4058     alsa)
4059       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
4060     cups)
4061       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
4062     freetype)
4063       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
4064     pulse)
4065       PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
4066     x11)
4067       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
4068     ccache)
4069       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
4070   esac
4071 }
4072 
4073 yum_help() {
4074   case $1 in
4075     devkit)
4076       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
4077     openjdk)
4078       PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
4079     alsa)
4080       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
4081     cups)
4082       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
4083     freetype)
4084       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
4085     pulse)
4086       PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;;
4087     x11)
4088       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;;
4089     ccache)
4090       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
4091   esac
4092 }
4093 
4094 port_help() {
4095   PKGHANDLER_COMMAND=""
4096 }
4097 
4098 pkgutil_help() {
4099   PKGHANDLER_COMMAND=""
4100 }
4101 
4102 pkgadd_help() {
4103   PKGHANDLER_COMMAND=""
4104 }
4105 
4106 # This function will check if we're called from the "configure" wrapper while
4107 # printing --help. If so, we will print out additional information that can
4108 # only be extracted within the autoconf script, and then exit. This must be
4109 # called at the very beginning in configure.ac.
4110 
4111 
4112 
4113 
4114 
4115 
4116 #
4117 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
4118 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4119 #
4120 # This code is free software; you can redistribute it and/or modify it
4121 # under the terms of the GNU General Public License version 2 only, as
4122 # published by the Free Software Foundation.  Oracle designates this
4123 # particular file as subject to the "Classpath" exception as provided
4124 # by Oracle in the LICENSE file that accompanied this code.
4125 #
4126 # This code is distributed in the hope that it will be useful, but WITHOUT
4127 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4128 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4129 # version 2 for more details (a copy is included in the LICENSE file that
4130 # accompanied this code).
4131 #
4132 # You should have received a copy of the GNU General Public License version
4133 # 2 along with this work; if not, write to the Free Software Foundation,
4134 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4135 #
4136 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4137 # or visit www.oracle.com if you need additional information or have any
4138 # questions.
4139 #
4140 
4141 
4142 
4143 
4144 
4145 
4146 
4147 
4148 
4149 
4150 ###############################################################################
4151 #
4152 # Should we build only OpenJDK even if closed sources are present?
4153 #
4154 
4155 
4156 
4157 
4158 ###############################################################################
4159 #
4160 # Setup version numbers
4161 #
4162 
4163 
4164 
4165 
4166 
4167 
4168 #
4169 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
4170 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4171 #
4172 # This code is free software; you can redistribute it and/or modify it
4173 # under the terms of the GNU General Public License version 2 only, as
4174 # published by the Free Software Foundation.  Oracle designates this
4175 # particular file as subject to the "Classpath" exception as provided
4176 # by Oracle in the LICENSE file that accompanied this code.
4177 #
4178 # This code is distributed in the hope that it will be useful, but WITHOUT
4179 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4180 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4181 # version 2 for more details (a copy is included in the LICENSE file that
4182 # accompanied this code).
4183 #
4184 # You should have received a copy of the GNU General Public License version
4185 # 2 along with this work; if not, write to the Free Software Foundation,
4186 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4187 #
4188 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4189 # or visit www.oracle.com if you need additional information or have any
4190 # questions.
4191 #
4192 
4193 
4194 
4195 
4196 
4197 
4198 
4199 
4200 
4201 
4202 
4203 
4204 
4205 
4206 
4207 
4208 
4209 
4210 
4211 
4212 
4213 #
4214 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4215 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4216 #
4217 # This code is free software; you can redistribute it and/or modify it
4218 # under the terms of the GNU General Public License version 2 only, as
4219 # published by the Free Software Foundation.  Oracle designates this
4220 # particular file as subject to the "Classpath" exception as provided
4221 # by Oracle in the LICENSE file that accompanied this code.
4222 #
4223 # This code is distributed in the hope that it will be useful, but WITHOUT
4224 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4225 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4226 # version 2 for more details (a copy is included in the LICENSE file that
4227 # accompanied this code).
4228 #
4229 # You should have received a copy of the GNU General Public License version
4230 # 2 along with this work; if not, write to the Free Software Foundation,
4231 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4232 #
4233 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4234 # or visit www.oracle.com if you need additional information or have any
4235 # questions.
4236 #
4237 
4238 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4239 # Converts autoconf style CPU name to OpenJDK style, into
4240 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4241 
4242 
4243 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4244 # Converts autoconf style OS name to OpenJDK style, into
4245 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV.
4246 
4247 
4248 # Expects $host_os $host_cpu $build_os and $build_cpu
4249 # and $with_target_bits to have been setup!
4250 #
4251 # Translate the standard triplet(quadruplet) definition
4252 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4253 # OPENJDK_BUILD_OS, etc.
4254 
4255 
4256 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4257 # accordingly. Must be done after setting up build and target system, but before
4258 # doing anything else with these values.
4259 
4260 
4261 # Setup the legacy variables, for controlling the old makefiles.
4262 #
4263 
4264 
4265 
4266 
4267 #%%% Build and target systems %%%
4268 
4269 
4270 
4271 
4272 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4273 # Add -mX to various FLAGS variables.
4274 
4275 
4276 
4277 
4278 
4279 
4280 #
4281 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4282 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4283 #
4284 # This code is free software; you can redistribute it and/or modify it
4285 # under the terms of the GNU General Public License version 2 only, as
4286 # published by the Free Software Foundation.  Oracle designates this
4287 # particular file as subject to the "Classpath" exception as provided
4288 # by Oracle in the LICENSE file that accompanied this code.
4289 #
4290 # This code is distributed in the hope that it will be useful, but WITHOUT
4291 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4292 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4293 # version 2 for more details (a copy is included in the LICENSE file that
4294 # accompanied this code).
4295 #
4296 # You should have received a copy of the GNU General Public License version
4297 # 2 along with this work; if not, write to the Free Software Foundation,
4298 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4299 #
4300 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4301 # or visit www.oracle.com if you need additional information or have any
4302 # questions.
4303 #
4304 
4305 
4306 
4307 
4308 
4309 
4310 
4311 
4312 #
4313 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4314 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4315 #
4316 # This code is free software; you can redistribute it and/or modify it
4317 # under the terms of the GNU General Public License version 2 only, as
4318 # published by the Free Software Foundation.  Oracle designates this
4319 # particular file as subject to the "Classpath" exception as provided
4320 # by Oracle in the LICENSE file that accompanied this code.
4321 #
4322 # This code is distributed in the hope that it will be useful, but WITHOUT
4323 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4324 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4325 # version 2 for more details (a copy is included in the LICENSE file that
4326 # accompanied this code).
4327 #
4328 # You should have received a copy of the GNU General Public License version
4329 # 2 along with this work; if not, write to the Free Software Foundation,
4330 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4331 #
4332 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4333 # or visit www.oracle.com if you need additional information or have any
4334 # questions.
4335 #
4336 
4337 ########################################################################
4338 # This file is responsible for detecting, verifying and setting up the
4339 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4340 # proper paths to the binaries, but it will not setup any flags.
4341 #
4342 # The binaries used is determined by the toolchain type, which is the family of
4343 # compilers and related tools that are used.
4344 ########################################################################
4345 
4346 
4347 # All valid toolchains, regardless of platform (used by help.m4)
4348 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4349 
4350 # These toolchains are valid on different platforms
4351 VALID_TOOLCHAINS_linux="gcc clang"
4352 VALID_TOOLCHAINS_solaris="solstudio"
4353 VALID_TOOLCHAINS_macosx="gcc clang"
4354 VALID_TOOLCHAINS_aix="xlc"
4355 VALID_TOOLCHAINS_windows="microsoft"
4356 
4357 # Toolchain descriptions
4358 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4359 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4360 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4361 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4362 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4363 
4364 # Setup a number of variables describing how native output files are
4365 # named on this platform/toolchain.
4366 
4367 
4368 # Determine which toolchain type to use, and make sure it is valid for this
4369 # platform. Setup various information about the selected toolchain.
4370 
4371 
4372 # Before we start detecting the toolchain executables, we might need some
4373 # special setup, e.g. additional paths etc.
4374 
4375 
4376 # Restore path, etc
4377 
4378 
4379 # Check if a compiler is of the toolchain type we expect, and save the version
4380 # information from it. If the compiler does not match the expected type,
4381 # this function will abort using AC_MSG_ERROR. If it matches, the version will
4382 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4383 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4384 #
4385 # $1 = compiler to test (CC or CXX)
4386 # $2 = human readable name of compiler (C or C++)
4387 
4388 
4389 # Try to locate the given C or C++ compiler in the path, or otherwise.
4390 #
4391 # $1 = compiler to test (CC or CXX)
4392 # $2 = human readable name of compiler (C or C++)
4393 # $3 = list of compiler names to search for
4394 
4395 
4396 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4397 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4398 # archiver (AR). Verify that the compilers are correct according to the
4399 # toolchain type.
4400 
4401 
4402 # Setup additional tools that is considered a part of the toolchain, but not the
4403 # core part. Many of these are highly platform-specific and do not exist,
4404 # and/or are not needed on all platforms.
4405 
4406 
4407 # Setup the build tools (i.e, the compiler and linker used to build programs
4408 # that should be run on the build platform, not the target platform, as a build
4409 # helper). Since the non-cross-compile case uses the normal, target compilers
4410 # for this, we can only do this after these have been setup.
4411 
4412 
4413 # Setup legacy variables that are still needed as alternative ways to refer to
4414 # parts of the toolchain.
4415 
4416 
4417 # Do some additional checks on the detected tools.
4418 
4419 
4420 # Setup the JTReg Regression Test Harness.
4421 
4422 
4423 #
4424 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4425 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4426 #
4427 # This code is free software; you can redistribute it and/or modify it
4428 # under the terms of the GNU General Public License version 2 only, as
4429 # published by the Free Software Foundation.  Oracle designates this
4430 # particular file as subject to the "Classpath" exception as provided
4431 # by Oracle in the LICENSE file that accompanied this code.
4432 #
4433 # This code is distributed in the hope that it will be useful, but WITHOUT
4434 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4435 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4436 # version 2 for more details (a copy is included in the LICENSE file that
4437 # accompanied this code).
4438 #
4439 # You should have received a copy of the GNU General Public License version
4440 # 2 along with this work; if not, write to the Free Software Foundation,
4441 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4442 #
4443 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4444 # or visit www.oracle.com if you need additional information or have any
4445 # questions.
4446 #
4447 
4448 ################################################################################
4449 
4450 VALID_VS_VERSIONS="2010 2012 2013"
4451 
4452 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
4453 VS_VERSION_INTERNAL_2010=100
4454 VS_MSVCR_2010=msvcr100.dll
4455 # We don't use msvcp on Visual Studio 2010
4456 #VS_MSVCP_2010=msvcp100.dll
4457 VS_ENVVAR_2010="VS100COMNTOOLS"
4458 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
4459 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
4460 VS_VS_PLATFORM_NAME_2010="v100"
4461 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
4462 
4463 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
4464 VS_VERSION_INTERNAL_2012=110
4465 VS_MSVCR_2012=msvcr110.dll
4466 VS_MSVCP_2012=msvcp110.dll
4467 VS_ENVVAR_2012="VS110COMNTOOLS"
4468 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
4469 VS_SDK_INSTALLDIR_2012=
4470 VS_VS_PLATFORM_NAME_2012="v110"
4471 VS_SDK_PLATFORM_NAME_2012=
4472 
4473 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
4474 VS_VERSION_INTERNAL_2013=120
4475 VS_MSVCR_2013=msvcr120.dll
4476 VS_MSVCP_2013=msvcp120.dll
4477 VS_ENVVAR_2013="VS120COMNTOOLS"
4478 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
4479 VS_SDK_INSTALLDIR_2013=
4480 VS_VS_PLATFORM_NAME_2013="v120"
4481 VS_SDK_PLATFORM_NAME_2013=
4482 
4483 ################################################################################
4484 
4485 
4486 
4487 ################################################################################
4488 
4489 
4490 
4491 ################################################################################
4492 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
4493 # build environment and assigns it to VS_ENV_CMD
4494 
4495 
4496 ################################################################################
4497 
4498 
4499 
4500 ################################################################################
4501 # Check if the VS env variables were setup prior to running configure.
4502 # If not, then find vcvarsall.bat and run it automatically, and integrate
4503 # the set env variables into the spec file.
4504 
4505 
4506 
4507 
4508 
4509 
4510 
4511 
4512 
4513 
4514 
4515 
4516 
4517 # This line needs to be here, verbatim, after all includes and the dummy hook
4518 # definitions. It is replaced with custom functionality when building
4519 # custom sources.
4520 #
4521 # Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
4522 # ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
4523 #
4524 
4525 
4526 ###############################################################################
4527 #
4528 # Provides
4529 #
4530 # CUSTOM_HOOK_EARLY
4531 # CUSTOM_HOOK_LATE
4532 # CUSTOM_SUMMARY_AND_WARNINGS_HOOK
4533 
4534 ###############################################################################
4535 #
4536 # Check if deploy and install are available
4537 #
4538 
4539 
4540 ###############################################################################
4541 #
4542 # Check for ant, needed by deploy repo. (ANT_HOME needed by tonga tests)
4543 #
4544 
4545 
4546 ###############################################################################
4547 #
4548 # Check for junit, needed by deploy repo.
4549 #
4550 
4551 
4552 ###############################################################################
4553 #
4554 # Check for sparkle on mac, needed by deploy repo.
4555 #
4556 
4557 
4558 ################################################################################
4559 #
4560 # Check for Wix, needed by install on windows.
4561 #
4562 
4563 
4564 ################################################################################
4565 #
4566 # Check for Corporate Code Signing Application Client.jar (Main-Class:
4567 # oracle.client.ccss.Client), needed by install on windows and macosx.
4568 #
4569 
4570 
4571 ################################################################################
4572 #
4573 # LZMA, needed by install on windows
4574 #
4575 
4576 
4577 ################################################################################
4578 #
4579 # UPX, needed by install on windows
4580 #
4581 
4582 
4583 ################################################################################
4584 #
4585 # Setup windows specific executables for install
4586 #
4587 
4588 
4589 ###############################################################################
4590 #
4591 # Check for JAVAFX cobundle, needed by install repo.
4592 # JavaFX is cobundled on Windows, Linux, Mac (all platforms but solaris)
4593 #
4594 
4595 
4596 ###############################################################################
4597 #
4598 # Check for JMC cobundle, needed by install repo.
4599 # JMC is cobundled on Windows, Linux, Mac (all platforms but solaris)
4600 #
4601 
4602 
4603 ################################################################################
4604 #
4605 # Setup the path to bsdiff. Will default to the default install location
4606 #
4607 
4608 
4609 ################################################################################
4610 #
4611 # Setup path to debug image which install will include in bundles.
4612 #
4613 
4614 
4615 ###############################################################################
4616 #
4617 # Check for asmtools.jar
4618 #
4619 
4620 
4621 ###############################################################################
4622 #
4623 # Check for cpptasks.jar
4624 #
4625 
4626 
4627 ###############################################################################
4628 #
4629 # Check for ant-contrib.jar
4630 #
4631 
4632 
4633 ###############################################################################
4634 #
4635 # Check if tonga test build should be enabled
4636 #
4637 
4638 
4639 
4640 ###############################################################################
4641 #
4642 # Check for tonga.jar
4643 #
4644 
4645 
4646 ################################################################################
4647 #
4648 # Setup parfait, a static code analysis toolkit, which replaces several tools
4649 # with wrappers, if enabled. To be called from the early hook.
4650 #
4651 
4652 
4653 ###############################################################################
4654 #
4655 # Check for parfait baseline URI
4656 #
4657 
4658 
4659 
4660 
4661 ################################################################################
4662 #
4663 # Setup a specific tool for parfait.
4664 #
4665 # $1 is the variable to replace, e.g. CXX
4666 # $2 is the name of the parfait tool without the parfait- prefix, e.g. g++ for parfait-g++.
4667 # $3 is the name of the variable to use for sending the old tool value
4668 #    to parfait without the PARFAIT_NATIVE prefix, e.g. GXX for PAFAIT_NATIVEGXX.
4669 #    Can be left out if identical to $1.
4670 #
4671 
4672 
4673 ################################################################################
4674 #
4675 # Setup parfait, a static code analysis toolkit, which replaces several tools
4676 # with wrappers, if enabled. To be called from the late hook.
4677 #
4678 
4679 
4680 ################################################################################
4681 #
4682 # Setup a separate compiler for the plugin in deploy. PLUGIN_CC
4683 #
4684 
4685 
4686 ################################################################################
4687 #
4688 # Setup extra tools needed for deploy
4689 #
4690 
4691 
4692 ################################################################################
4693 #
4694 # Check if building of deploy should be enabled or disabled
4695 #
4696 
4697 
4698 ################################################################################
4699 #
4700 # Check if building of installer should be enabled or disabled
4701 #
4702 
4703 
4704 
4705 
4706 
4707 
4708 ###############################################################################
4709 #
4710 # Status and warnings for the custom bits of the configuration.
4711 #
4712 
4713 
4714 
4715 
4716 
4717 
4718 
4719 
4720 # Do not change or remove the following line, it is needed for consistency checks:
4721 DATE_WHEN_GENERATED=1425462435
4722 
4723 ###############################################################################
4724 #
4725 # Initialization / Boot-strapping
4726 #
4727 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4728 # thus it jumps back and forth, each time gaining something needed later on.
4729 #
4730 ###############################################################################
4731 
4732 # If we are requested to print additional help, do that and then exit.
4733 # This must be the very first call.
4734 
4735   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4736     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4737     $PRINTF "Which are valid to use depends on the build platform.\n"
4738     for toolchain in $VALID_TOOLCHAINS_all; do
4739       # Use indirect variable referencing
4740       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4741       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
4742       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
4743     done
4744 
4745     # And now exit directly
4746     exit 0
4747   fi
4748 
4749 
4750 # Basic initialization that must happen first of all in the normal process.
4751 
4752   # Save the original command line. This is passed to us by the wrapper configure script.
4753 
4754   # Save the path variable before it gets changed
4755   ORIGINAL_PATH="$PATH"
4756 
4757   DATE_WHEN_CONFIGURED=`LANG=C date`
4758 
4759   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4760 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4761   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4762 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4763 
4764 
4765   # Start with tools that do not need have cross compilation support
4766   # and can be expected to be found in the default PATH. These tools are
4767   # used by configure. Nor are these tools expected to be found in the
4768   # devkit from the builddeps server either, since they are
4769   # needed to download the devkit.
4770 
4771   # First are all the simple required tools.
4772 
4773 
4774 
4775   # Publish this variable in the help.
4776 
4777 
4778   if test "x$BASENAME" = x; then
4779     # The variable is not set by user, try to locate tool using the code snippet
4780     for ac_prog in basename
4781 do
4782   # Extract the first word of "$ac_prog", so it can be a program name with args.
4783 set dummy $ac_prog; ac_word=$2
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4785 $as_echo_n "checking for $ac_word... " >&6; }
4786 if ${ac_cv_path_BASENAME+:} false; then :
4787   $as_echo_n "(cached) " >&6
4788 else
4789   case $BASENAME in
4790   [\\/]* | ?:[\\/]*)
4791   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4792   ;;
4793   *)
4794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 for as_dir in $PATH
4796 do
4797   IFS=$as_save_IFS
4798   test -z "$as_dir" && as_dir=.
4799     for ac_exec_ext in '' $ac_executable_extensions; do
4800   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4801     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4803     break 2
4804   fi
4805 done
4806   done
4807 IFS=$as_save_IFS
4808 
4809   ;;
4810 esac
4811 fi
4812 BASENAME=$ac_cv_path_BASENAME
4813 if test -n "$BASENAME"; then
4814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4815 $as_echo "$BASENAME" >&6; }
4816 else
4817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4818 $as_echo "no" >&6; }
4819 fi
4820 
4821 
4822   test -n "$BASENAME" && break
4823 done
4824 
4825   else
4826     # The variable is set, but is it from the command line or the environment?
4827 
4828     # Try to remove the string !BASENAME! from our list.
4829     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4830     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4831       # If it failed, the variable was not from the command line. Ignore it,
4832       # but warn the user (except for BASH, which is always set by the calling BASH).
4833       if test "xBASENAME" != xBASH; then
4834         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4835 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4836       fi
4837       # Try to locate tool using the code snippet
4838       for ac_prog in basename
4839 do
4840   # Extract the first word of "$ac_prog", so it can be a program name with args.
4841 set dummy $ac_prog; ac_word=$2
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4843 $as_echo_n "checking for $ac_word... " >&6; }
4844 if ${ac_cv_path_BASENAME+:} false; then :
4845   $as_echo_n "(cached) " >&6
4846 else
4847   case $BASENAME in
4848   [\\/]* | ?:[\\/]*)
4849   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4850   ;;
4851   *)
4852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 for as_dir in $PATH
4854 do
4855   IFS=$as_save_IFS
4856   test -z "$as_dir" && as_dir=.
4857     for ac_exec_ext in '' $ac_executable_extensions; do
4858   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4859     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4861     break 2
4862   fi
4863 done
4864   done
4865 IFS=$as_save_IFS
4866 
4867   ;;
4868 esac
4869 fi
4870 BASENAME=$ac_cv_path_BASENAME
4871 if test -n "$BASENAME"; then
4872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4873 $as_echo "$BASENAME" >&6; }
4874 else
4875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4876 $as_echo "no" >&6; }
4877 fi
4878 
4879 
4880   test -n "$BASENAME" && break
4881 done
4882 
4883     else
4884       # If it succeeded, then it was overridden by the user. We will use it
4885       # for the tool.
4886 
4887       # First remove it from the list of overridden variables, so we can test
4888       # for unknown variables in the end.
4889       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4890 
4891       # Check if the provided tool contains a complete path.
4892       tool_specified="$BASENAME"
4893       tool_basename="${tool_specified##*/}"
4894       if test "x$tool_basename" = "x$tool_specified"; then
4895         # A command without a complete path is provided, search $PATH.
4896         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4897 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4898         # Extract the first word of "$tool_basename", so it can be a program name with args.
4899 set dummy $tool_basename; ac_word=$2
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4901 $as_echo_n "checking for $ac_word... " >&6; }
4902 if ${ac_cv_path_BASENAME+:} false; then :
4903   $as_echo_n "(cached) " >&6
4904 else
4905   case $BASENAME in
4906   [\\/]* | ?:[\\/]*)
4907   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4908   ;;
4909   *)
4910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 for as_dir in $PATH
4912 do
4913   IFS=$as_save_IFS
4914   test -z "$as_dir" && as_dir=.
4915     for ac_exec_ext in '' $ac_executable_extensions; do
4916   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4917     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4919     break 2
4920   fi
4921 done
4922   done
4923 IFS=$as_save_IFS
4924 
4925   ;;
4926 esac
4927 fi
4928 BASENAME=$ac_cv_path_BASENAME
4929 if test -n "$BASENAME"; then
4930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4931 $as_echo "$BASENAME" >&6; }
4932 else
4933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4934 $as_echo "no" >&6; }
4935 fi
4936 
4937 
4938         if test "x$BASENAME" = x; then
4939           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4940         fi
4941       else
4942         # Otherwise we believe it is a complete path. Use it as it is.
4943         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4944 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4945         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4946 $as_echo_n "checking for BASENAME... " >&6; }
4947         if test ! -x "$tool_specified"; then
4948           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4949 $as_echo "not found" >&6; }
4950           as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4951         fi
4952         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4953 $as_echo "$tool_specified" >&6; }
4954       fi
4955     fi
4956   fi
4957 
4958 
4959 
4960   if test "x$BASENAME" = x; then
4961     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4962   fi
4963 
4964 
4965 
4966 
4967 
4968   # Publish this variable in the help.
4969 
4970 
4971   if test "x$BASH" = x; then
4972     # The variable is not set by user, try to locate tool using the code snippet
4973     for ac_prog in bash
4974 do
4975   # Extract the first word of "$ac_prog", so it can be a program name with args.
4976 set dummy $ac_prog; ac_word=$2
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4978 $as_echo_n "checking for $ac_word... " >&6; }
4979 if ${ac_cv_path_BASH+:} false; then :
4980   $as_echo_n "(cached) " >&6
4981 else
4982   case $BASH in
4983   [\\/]* | ?:[\\/]*)
4984   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4985   ;;
4986   *)
4987   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 for as_dir in $PATH
4989 do
4990   IFS=$as_save_IFS
4991   test -z "$as_dir" && as_dir=.
4992     for ac_exec_ext in '' $ac_executable_extensions; do
4993   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4994     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4996     break 2
4997   fi
4998 done
4999   done
5000 IFS=$as_save_IFS
5001 
5002   ;;
5003 esac
5004 fi
5005 BASH=$ac_cv_path_BASH
5006 if test -n "$BASH"; then
5007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5008 $as_echo "$BASH" >&6; }
5009 else
5010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011 $as_echo "no" >&6; }
5012 fi
5013 
5014 
5015   test -n "$BASH" && break
5016 done
5017 
5018   else
5019     # The variable is set, but is it from the command line or the environment?
5020 
5021     # Try to remove the string !BASH! from our list.
5022     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
5023     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5024       # If it failed, the variable was not from the command line. Ignore it,
5025       # but warn the user (except for BASH, which is always set by the calling BASH).
5026       if test "xBASH" != xBASH; then
5027         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
5028 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
5029       fi
5030       # Try to locate tool using the code snippet
5031       for ac_prog in bash
5032 do
5033   # Extract the first word of "$ac_prog", so it can be a program name with args.
5034 set dummy $ac_prog; ac_word=$2
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5036 $as_echo_n "checking for $ac_word... " >&6; }
5037 if ${ac_cv_path_BASH+:} false; then :
5038   $as_echo_n "(cached) " >&6
5039 else
5040   case $BASH in
5041   [\\/]* | ?:[\\/]*)
5042   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5043   ;;
5044   *)
5045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 for as_dir in $PATH
5047 do
5048   IFS=$as_save_IFS
5049   test -z "$as_dir" && as_dir=.
5050     for ac_exec_ext in '' $ac_executable_extensions; do
5051   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5052     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5054     break 2
5055   fi
5056 done
5057   done
5058 IFS=$as_save_IFS
5059 
5060   ;;
5061 esac
5062 fi
5063 BASH=$ac_cv_path_BASH
5064 if test -n "$BASH"; then
5065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5066 $as_echo "$BASH" >&6; }
5067 else
5068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5069 $as_echo "no" >&6; }
5070 fi
5071 
5072 
5073   test -n "$BASH" && break
5074 done
5075 
5076     else
5077       # If it succeeded, then it was overridden by the user. We will use it
5078       # for the tool.
5079 
5080       # First remove it from the list of overridden variables, so we can test
5081       # for unknown variables in the end.
5082       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5083 
5084       # Check if the provided tool contains a complete path.
5085       tool_specified="$BASH"
5086       tool_basename="${tool_specified##*/}"
5087       if test "x$tool_basename" = "x$tool_specified"; then
5088         # A command without a complete path is provided, search $PATH.
5089         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
5090 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
5091         # Extract the first word of "$tool_basename", so it can be a program name with args.
5092 set dummy $tool_basename; ac_word=$2
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5094 $as_echo_n "checking for $ac_word... " >&6; }
5095 if ${ac_cv_path_BASH+:} false; then :
5096   $as_echo_n "(cached) " >&6
5097 else
5098   case $BASH in
5099   [\\/]* | ?:[\\/]*)
5100   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5101   ;;
5102   *)
5103   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 for as_dir in $PATH
5105 do
5106   IFS=$as_save_IFS
5107   test -z "$as_dir" && as_dir=.
5108     for ac_exec_ext in '' $ac_executable_extensions; do
5109   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5110     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5112     break 2
5113   fi
5114 done
5115   done
5116 IFS=$as_save_IFS
5117 
5118   ;;
5119 esac
5120 fi
5121 BASH=$ac_cv_path_BASH
5122 if test -n "$BASH"; then
5123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5124 $as_echo "$BASH" >&6; }
5125 else
5126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127 $as_echo "no" >&6; }
5128 fi
5129 
5130 
5131         if test "x$BASH" = x; then
5132           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5133         fi
5134       else
5135         # Otherwise we believe it is a complete path. Use it as it is.
5136         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
5137 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
5138         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5139 $as_echo_n "checking for BASH... " >&6; }
5140         if test ! -x "$tool_specified"; then
5141           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5142 $as_echo "not found" >&6; }
5143           as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
5144         fi
5145         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5146 $as_echo "$tool_specified" >&6; }
5147       fi
5148     fi
5149   fi
5150 
5151 
5152 
5153   if test "x$BASH" = x; then
5154     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
5155   fi
5156 
5157 
5158 
5159 
5160 
5161   # Publish this variable in the help.
5162 
5163 
5164   if test "x$CAT" = x; then
5165     # The variable is not set by user, try to locate tool using the code snippet
5166     for ac_prog in cat
5167 do
5168   # Extract the first word of "$ac_prog", so it can be a program name with args.
5169 set dummy $ac_prog; ac_word=$2
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5171 $as_echo_n "checking for $ac_word... " >&6; }
5172 if ${ac_cv_path_CAT+:} false; then :
5173   $as_echo_n "(cached) " >&6
5174 else
5175   case $CAT in
5176   [\\/]* | ?:[\\/]*)
5177   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5178   ;;
5179   *)
5180   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $PATH
5182 do
5183   IFS=$as_save_IFS
5184   test -z "$as_dir" && as_dir=.
5185     for ac_exec_ext in '' $ac_executable_extensions; do
5186   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5187     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5189     break 2
5190   fi
5191 done
5192   done
5193 IFS=$as_save_IFS
5194 
5195   ;;
5196 esac
5197 fi
5198 CAT=$ac_cv_path_CAT
5199 if test -n "$CAT"; then
5200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5201 $as_echo "$CAT" >&6; }
5202 else
5203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204 $as_echo "no" >&6; }
5205 fi
5206 
5207 
5208   test -n "$CAT" && break
5209 done
5210 
5211   else
5212     # The variable is set, but is it from the command line or the environment?
5213 
5214     # Try to remove the string !CAT! from our list.
5215     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
5216     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5217       # If it failed, the variable was not from the command line. Ignore it,
5218       # but warn the user (except for BASH, which is always set by the calling BASH).
5219       if test "xCAT" != xBASH; then
5220         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
5221 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
5222       fi
5223       # Try to locate tool using the code snippet
5224       for ac_prog in cat
5225 do
5226   # Extract the first word of "$ac_prog", so it can be a program name with args.
5227 set dummy $ac_prog; ac_word=$2
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229 $as_echo_n "checking for $ac_word... " >&6; }
5230 if ${ac_cv_path_CAT+:} false; then :
5231   $as_echo_n "(cached) " >&6
5232 else
5233   case $CAT in
5234   [\\/]* | ?:[\\/]*)
5235   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5236   ;;
5237   *)
5238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239 for as_dir in $PATH
5240 do
5241   IFS=$as_save_IFS
5242   test -z "$as_dir" && as_dir=.
5243     for ac_exec_ext in '' $ac_executable_extensions; do
5244   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5245     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5247     break 2
5248   fi
5249 done
5250   done
5251 IFS=$as_save_IFS
5252 
5253   ;;
5254 esac
5255 fi
5256 CAT=$ac_cv_path_CAT
5257 if test -n "$CAT"; then
5258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5259 $as_echo "$CAT" >&6; }
5260 else
5261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262 $as_echo "no" >&6; }
5263 fi
5264 
5265 
5266   test -n "$CAT" && break
5267 done
5268 
5269     else
5270       # If it succeeded, then it was overridden by the user. We will use it
5271       # for the tool.
5272 
5273       # First remove it from the list of overridden variables, so we can test
5274       # for unknown variables in the end.
5275       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5276 
5277       # Check if the provided tool contains a complete path.
5278       tool_specified="$CAT"
5279       tool_basename="${tool_specified##*/}"
5280       if test "x$tool_basename" = "x$tool_specified"; then
5281         # A command without a complete path is provided, search $PATH.
5282         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
5283 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
5284         # Extract the first word of "$tool_basename", so it can be a program name with args.
5285 set dummy $tool_basename; ac_word=$2
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5287 $as_echo_n "checking for $ac_word... " >&6; }
5288 if ${ac_cv_path_CAT+:} false; then :
5289   $as_echo_n "(cached) " >&6
5290 else
5291   case $CAT in
5292   [\\/]* | ?:[\\/]*)
5293   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5294   ;;
5295   *)
5296   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 for as_dir in $PATH
5298 do
5299   IFS=$as_save_IFS
5300   test -z "$as_dir" && as_dir=.
5301     for ac_exec_ext in '' $ac_executable_extensions; do
5302   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5303     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5305     break 2
5306   fi
5307 done
5308   done
5309 IFS=$as_save_IFS
5310 
5311   ;;
5312 esac
5313 fi
5314 CAT=$ac_cv_path_CAT
5315 if test -n "$CAT"; then
5316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5317 $as_echo "$CAT" >&6; }
5318 else
5319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320 $as_echo "no" >&6; }
5321 fi
5322 
5323 
5324         if test "x$CAT" = x; then
5325           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5326         fi
5327       else
5328         # Otherwise we believe it is a complete path. Use it as it is.
5329         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
5330 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
5331         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5332 $as_echo_n "checking for CAT... " >&6; }
5333         if test ! -x "$tool_specified"; then
5334           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5335 $as_echo "not found" >&6; }
5336           as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
5337         fi
5338         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5339 $as_echo "$tool_specified" >&6; }
5340       fi
5341     fi
5342   fi
5343 
5344 
5345 
5346   if test "x$CAT" = x; then
5347     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5348   fi
5349 
5350 
5351 
5352 
5353 
5354   # Publish this variable in the help.
5355 
5356 
5357   if test "x$CHMOD" = x; then
5358     # The variable is not set by user, try to locate tool using the code snippet
5359     for ac_prog in chmod
5360 do
5361   # Extract the first word of "$ac_prog", so it can be a program name with args.
5362 set dummy $ac_prog; ac_word=$2
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5364 $as_echo_n "checking for $ac_word... " >&6; }
5365 if ${ac_cv_path_CHMOD+:} false; then :
5366   $as_echo_n "(cached) " >&6
5367 else
5368   case $CHMOD in
5369   [\\/]* | ?:[\\/]*)
5370   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5371   ;;
5372   *)
5373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374 for as_dir in $PATH
5375 do
5376   IFS=$as_save_IFS
5377   test -z "$as_dir" && as_dir=.
5378     for ac_exec_ext in '' $ac_executable_extensions; do
5379   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5380     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5382     break 2
5383   fi
5384 done
5385   done
5386 IFS=$as_save_IFS
5387 
5388   ;;
5389 esac
5390 fi
5391 CHMOD=$ac_cv_path_CHMOD
5392 if test -n "$CHMOD"; then
5393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5394 $as_echo "$CHMOD" >&6; }
5395 else
5396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 $as_echo "no" >&6; }
5398 fi
5399 
5400 
5401   test -n "$CHMOD" && break
5402 done
5403 
5404   else
5405     # The variable is set, but is it from the command line or the environment?
5406 
5407     # Try to remove the string !CHMOD! from our list.
5408     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5409     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5410       # If it failed, the variable was not from the command line. Ignore it,
5411       # but warn the user (except for BASH, which is always set by the calling BASH).
5412       if test "xCHMOD" != xBASH; then
5413         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5414 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5415       fi
5416       # Try to locate tool using the code snippet
5417       for ac_prog in chmod
5418 do
5419   # Extract the first word of "$ac_prog", so it can be a program name with args.
5420 set dummy $ac_prog; ac_word=$2
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5422 $as_echo_n "checking for $ac_word... " >&6; }
5423 if ${ac_cv_path_CHMOD+:} false; then :
5424   $as_echo_n "(cached) " >&6
5425 else
5426   case $CHMOD in
5427   [\\/]* | ?:[\\/]*)
5428   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5429   ;;
5430   *)
5431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 for as_dir in $PATH
5433 do
5434   IFS=$as_save_IFS
5435   test -z "$as_dir" && as_dir=.
5436     for ac_exec_ext in '' $ac_executable_extensions; do
5437   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5438     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5440     break 2
5441   fi
5442 done
5443   done
5444 IFS=$as_save_IFS
5445 
5446   ;;
5447 esac
5448 fi
5449 CHMOD=$ac_cv_path_CHMOD
5450 if test -n "$CHMOD"; then
5451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5452 $as_echo "$CHMOD" >&6; }
5453 else
5454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455 $as_echo "no" >&6; }
5456 fi
5457 
5458 
5459   test -n "$CHMOD" && break
5460 done
5461 
5462     else
5463       # If it succeeded, then it was overridden by the user. We will use it
5464       # for the tool.
5465 
5466       # First remove it from the list of overridden variables, so we can test
5467       # for unknown variables in the end.
5468       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5469 
5470       # Check if the provided tool contains a complete path.
5471       tool_specified="$CHMOD"
5472       tool_basename="${tool_specified##*/}"
5473       if test "x$tool_basename" = "x$tool_specified"; then
5474         # A command without a complete path is provided, search $PATH.
5475         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5476 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5477         # Extract the first word of "$tool_basename", so it can be a program name with args.
5478 set dummy $tool_basename; ac_word=$2
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5480 $as_echo_n "checking for $ac_word... " >&6; }
5481 if ${ac_cv_path_CHMOD+:} false; then :
5482   $as_echo_n "(cached) " >&6
5483 else
5484   case $CHMOD in
5485   [\\/]* | ?:[\\/]*)
5486   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5487   ;;
5488   *)
5489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490 for as_dir in $PATH
5491 do
5492   IFS=$as_save_IFS
5493   test -z "$as_dir" && as_dir=.
5494     for ac_exec_ext in '' $ac_executable_extensions; do
5495   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5496     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5498     break 2
5499   fi
5500 done
5501   done
5502 IFS=$as_save_IFS
5503 
5504   ;;
5505 esac
5506 fi
5507 CHMOD=$ac_cv_path_CHMOD
5508 if test -n "$CHMOD"; then
5509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5510 $as_echo "$CHMOD" >&6; }
5511 else
5512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5513 $as_echo "no" >&6; }
5514 fi
5515 
5516 
5517         if test "x$CHMOD" = x; then
5518           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5519         fi
5520       else
5521         # Otherwise we believe it is a complete path. Use it as it is.
5522         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5523 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5524         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5525 $as_echo_n "checking for CHMOD... " >&6; }
5526         if test ! -x "$tool_specified"; then
5527           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5528 $as_echo "not found" >&6; }
5529           as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5530         fi
5531         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5532 $as_echo "$tool_specified" >&6; }
5533       fi
5534     fi
5535   fi
5536 
5537 
5538 
5539   if test "x$CHMOD" = x; then
5540     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5541   fi
5542 
5543 
5544 
5545 
5546 
5547   # Publish this variable in the help.
5548 
5549 
5550   if test "x$CMP" = x; then
5551     # The variable is not set by user, try to locate tool using the code snippet
5552     for ac_prog in cmp
5553 do
5554   # Extract the first word of "$ac_prog", so it can be a program name with args.
5555 set dummy $ac_prog; ac_word=$2
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5557 $as_echo_n "checking for $ac_word... " >&6; }
5558 if ${ac_cv_path_CMP+:} false; then :
5559   $as_echo_n "(cached) " >&6
5560 else
5561   case $CMP in
5562   [\\/]* | ?:[\\/]*)
5563   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5564   ;;
5565   *)
5566   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567 for as_dir in $PATH
5568 do
5569   IFS=$as_save_IFS
5570   test -z "$as_dir" && as_dir=.
5571     for ac_exec_ext in '' $ac_executable_extensions; do
5572   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5573     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5575     break 2
5576   fi
5577 done
5578   done
5579 IFS=$as_save_IFS
5580 
5581   ;;
5582 esac
5583 fi
5584 CMP=$ac_cv_path_CMP
5585 if test -n "$CMP"; then
5586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5587 $as_echo "$CMP" >&6; }
5588 else
5589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5590 $as_echo "no" >&6; }
5591 fi
5592 
5593 
5594   test -n "$CMP" && break
5595 done
5596 
5597   else
5598     # The variable is set, but is it from the command line or the environment?
5599 
5600     # Try to remove the string !CMP! from our list.
5601     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
5602     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5603       # If it failed, the variable was not from the command line. Ignore it,
5604       # but warn the user (except for BASH, which is always set by the calling BASH).
5605       if test "xCMP" != xBASH; then
5606         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
5607 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
5608       fi
5609       # Try to locate tool using the code snippet
5610       for ac_prog in cmp
5611 do
5612   # Extract the first word of "$ac_prog", so it can be a program name with args.
5613 set dummy $ac_prog; ac_word=$2
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5615 $as_echo_n "checking for $ac_word... " >&6; }
5616 if ${ac_cv_path_CMP+:} false; then :
5617   $as_echo_n "(cached) " >&6
5618 else
5619   case $CMP in
5620   [\\/]* | ?:[\\/]*)
5621   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5622   ;;
5623   *)
5624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 for as_dir in $PATH
5626 do
5627   IFS=$as_save_IFS
5628   test -z "$as_dir" && as_dir=.
5629     for ac_exec_ext in '' $ac_executable_extensions; do
5630   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5631     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5633     break 2
5634   fi
5635 done
5636   done
5637 IFS=$as_save_IFS
5638 
5639   ;;
5640 esac
5641 fi
5642 CMP=$ac_cv_path_CMP
5643 if test -n "$CMP"; then
5644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5645 $as_echo "$CMP" >&6; }
5646 else
5647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 $as_echo "no" >&6; }
5649 fi
5650 
5651 
5652   test -n "$CMP" && break
5653 done
5654 
5655     else
5656       # If it succeeded, then it was overridden by the user. We will use it
5657       # for the tool.
5658 
5659       # First remove it from the list of overridden variables, so we can test
5660       # for unknown variables in the end.
5661       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5662 
5663       # Check if the provided tool contains a complete path.
5664       tool_specified="$CMP"
5665       tool_basename="${tool_specified##*/}"
5666       if test "x$tool_basename" = "x$tool_specified"; then
5667         # A command without a complete path is provided, search $PATH.
5668         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5669 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5670         # Extract the first word of "$tool_basename", so it can be a program name with args.
5671 set dummy $tool_basename; ac_word=$2
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5673 $as_echo_n "checking for $ac_word... " >&6; }
5674 if ${ac_cv_path_CMP+:} false; then :
5675   $as_echo_n "(cached) " >&6
5676 else
5677   case $CMP in
5678   [\\/]* | ?:[\\/]*)
5679   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5680   ;;
5681   *)
5682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683 for as_dir in $PATH
5684 do
5685   IFS=$as_save_IFS
5686   test -z "$as_dir" && as_dir=.
5687     for ac_exec_ext in '' $ac_executable_extensions; do
5688   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5689     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5691     break 2
5692   fi
5693 done
5694   done
5695 IFS=$as_save_IFS
5696 
5697   ;;
5698 esac
5699 fi
5700 CMP=$ac_cv_path_CMP
5701 if test -n "$CMP"; then
5702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5703 $as_echo "$CMP" >&6; }
5704 else
5705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5706 $as_echo "no" >&6; }
5707 fi
5708 
5709 
5710         if test "x$CMP" = x; then
5711           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5712         fi
5713       else
5714         # Otherwise we believe it is a complete path. Use it as it is.
5715         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5716 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5717         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5718 $as_echo_n "checking for CMP... " >&6; }
5719         if test ! -x "$tool_specified"; then
5720           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5721 $as_echo "not found" >&6; }
5722           as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5723         fi
5724         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5725 $as_echo "$tool_specified" >&6; }
5726       fi
5727     fi
5728   fi
5729 
5730 
5731 
5732   if test "x$CMP" = x; then
5733     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5734   fi
5735 
5736 
5737 
5738 
5739 
5740   # Publish this variable in the help.
5741 
5742 
5743   if test "x$COMM" = x; then
5744     # The variable is not set by user, try to locate tool using the code snippet
5745     for ac_prog in comm
5746 do
5747   # Extract the first word of "$ac_prog", so it can be a program name with args.
5748 set dummy $ac_prog; ac_word=$2
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5750 $as_echo_n "checking for $ac_word... " >&6; }
5751 if ${ac_cv_path_COMM+:} false; then :
5752   $as_echo_n "(cached) " >&6
5753 else
5754   case $COMM in
5755   [\\/]* | ?:[\\/]*)
5756   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5757   ;;
5758   *)
5759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760 for as_dir in $PATH
5761 do
5762   IFS=$as_save_IFS
5763   test -z "$as_dir" && as_dir=.
5764     for ac_exec_ext in '' $ac_executable_extensions; do
5765   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5766     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5768     break 2
5769   fi
5770 done
5771   done
5772 IFS=$as_save_IFS
5773 
5774   ;;
5775 esac
5776 fi
5777 COMM=$ac_cv_path_COMM
5778 if test -n "$COMM"; then
5779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5780 $as_echo "$COMM" >&6; }
5781 else
5782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5783 $as_echo "no" >&6; }
5784 fi
5785 
5786 
5787   test -n "$COMM" && break
5788 done
5789 
5790   else
5791     # The variable is set, but is it from the command line or the environment?
5792 
5793     # Try to remove the string !COMM! from our list.
5794     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5795     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5796       # If it failed, the variable was not from the command line. Ignore it,
5797       # but warn the user (except for BASH, which is always set by the calling BASH).
5798       if test "xCOMM" != xBASH; then
5799         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5800 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5801       fi
5802       # Try to locate tool using the code snippet
5803       for ac_prog in comm
5804 do
5805   # Extract the first word of "$ac_prog", so it can be a program name with args.
5806 set dummy $ac_prog; ac_word=$2
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5808 $as_echo_n "checking for $ac_word... " >&6; }
5809 if ${ac_cv_path_COMM+:} false; then :
5810   $as_echo_n "(cached) " >&6
5811 else
5812   case $COMM in
5813   [\\/]* | ?:[\\/]*)
5814   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5815   ;;
5816   *)
5817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5819 do
5820   IFS=$as_save_IFS
5821   test -z "$as_dir" && as_dir=.
5822     for ac_exec_ext in '' $ac_executable_extensions; do
5823   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5824     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826     break 2
5827   fi
5828 done
5829   done
5830 IFS=$as_save_IFS
5831 
5832   ;;
5833 esac
5834 fi
5835 COMM=$ac_cv_path_COMM
5836 if test -n "$COMM"; then
5837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5838 $as_echo "$COMM" >&6; }
5839 else
5840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841 $as_echo "no" >&6; }
5842 fi
5843 
5844 
5845   test -n "$COMM" && break
5846 done
5847 
5848     else
5849       # If it succeeded, then it was overridden by the user. We will use it
5850       # for the tool.
5851 
5852       # First remove it from the list of overridden variables, so we can test
5853       # for unknown variables in the end.
5854       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5855 
5856       # Check if the provided tool contains a complete path.
5857       tool_specified="$COMM"
5858       tool_basename="${tool_specified##*/}"
5859       if test "x$tool_basename" = "x$tool_specified"; then
5860         # A command without a complete path is provided, search $PATH.
5861         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5862 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5863         # Extract the first word of "$tool_basename", so it can be a program name with args.
5864 set dummy $tool_basename; ac_word=$2
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5866 $as_echo_n "checking for $ac_word... " >&6; }
5867 if ${ac_cv_path_COMM+:} false; then :
5868   $as_echo_n "(cached) " >&6
5869 else
5870   case $COMM in
5871   [\\/]* | ?:[\\/]*)
5872   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5873   ;;
5874   *)
5875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 for as_dir in $PATH
5877 do
5878   IFS=$as_save_IFS
5879   test -z "$as_dir" && as_dir=.
5880     for ac_exec_ext in '' $ac_executable_extensions; do
5881   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5882     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5884     break 2
5885   fi
5886 done
5887   done
5888 IFS=$as_save_IFS
5889 
5890   ;;
5891 esac
5892 fi
5893 COMM=$ac_cv_path_COMM
5894 if test -n "$COMM"; then
5895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5896 $as_echo "$COMM" >&6; }
5897 else
5898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5899 $as_echo "no" >&6; }
5900 fi
5901 
5902 
5903         if test "x$COMM" = x; then
5904           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5905         fi
5906       else
5907         # Otherwise we believe it is a complete path. Use it as it is.
5908         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5909 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5910         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5911 $as_echo_n "checking for COMM... " >&6; }
5912         if test ! -x "$tool_specified"; then
5913           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5914 $as_echo "not found" >&6; }
5915           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5916         fi
5917         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5918 $as_echo "$tool_specified" >&6; }
5919       fi
5920     fi
5921   fi
5922 
5923 
5924 
5925   if test "x$COMM" = x; then
5926     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
5927   fi
5928 
5929 
5930 
5931 
5932 
5933   # Publish this variable in the help.
5934 
5935 
5936   if test "x$CP" = x; then
5937     # The variable is not set by user, try to locate tool using the code snippet
5938     for ac_prog in cp
5939 do
5940   # Extract the first word of "$ac_prog", so it can be a program name with args.
5941 set dummy $ac_prog; ac_word=$2
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5943 $as_echo_n "checking for $ac_word... " >&6; }
5944 if ${ac_cv_path_CP+:} false; then :
5945   $as_echo_n "(cached) " >&6
5946 else
5947   case $CP in
5948   [\\/]* | ?:[\\/]*)
5949   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5950   ;;
5951   *)
5952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953 for as_dir in $PATH
5954 do
5955   IFS=$as_save_IFS
5956   test -z "$as_dir" && as_dir=.
5957     for ac_exec_ext in '' $ac_executable_extensions; do
5958   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5959     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5961     break 2
5962   fi
5963 done
5964   done
5965 IFS=$as_save_IFS
5966 
5967   ;;
5968 esac
5969 fi
5970 CP=$ac_cv_path_CP
5971 if test -n "$CP"; then
5972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5973 $as_echo "$CP" >&6; }
5974 else
5975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976 $as_echo "no" >&6; }
5977 fi
5978 
5979 
5980   test -n "$CP" && break
5981 done
5982 
5983   else
5984     # The variable is set, but is it from the command line or the environment?
5985 
5986     # Try to remove the string !CP! from our list.
5987     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
5988     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5989       # If it failed, the variable was not from the command line. Ignore it,
5990       # but warn the user (except for BASH, which is always set by the calling BASH).
5991       if test "xCP" != xBASH; then
5992         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
5993 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
5994       fi
5995       # Try to locate tool using the code snippet
5996       for ac_prog in cp
5997 do
5998   # Extract the first word of "$ac_prog", so it can be a program name with args.
5999 set dummy $ac_prog; ac_word=$2
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6001 $as_echo_n "checking for $ac_word... " >&6; }
6002 if ${ac_cv_path_CP+:} false; then :
6003   $as_echo_n "(cached) " >&6
6004 else
6005   case $CP in
6006   [\\/]* | ?:[\\/]*)
6007   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6008   ;;
6009   *)
6010   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 for as_dir in $PATH
6012 do
6013   IFS=$as_save_IFS
6014   test -z "$as_dir" && as_dir=.
6015     for ac_exec_ext in '' $ac_executable_extensions; do
6016   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6017     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6019     break 2
6020   fi
6021 done
6022   done
6023 IFS=$as_save_IFS
6024 
6025   ;;
6026 esac
6027 fi
6028 CP=$ac_cv_path_CP
6029 if test -n "$CP"; then
6030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6031 $as_echo "$CP" >&6; }
6032 else
6033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6034 $as_echo "no" >&6; }
6035 fi
6036 
6037 
6038   test -n "$CP" && break
6039 done
6040 
6041     else
6042       # If it succeeded, then it was overridden by the user. We will use it
6043       # for the tool.
6044 
6045       # First remove it from the list of overridden variables, so we can test
6046       # for unknown variables in the end.
6047       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6048 
6049       # Check if the provided tool contains a complete path.
6050       tool_specified="$CP"
6051       tool_basename="${tool_specified##*/}"
6052       if test "x$tool_basename" = "x$tool_specified"; then
6053         # A command without a complete path is provided, search $PATH.
6054         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
6055 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
6056         # Extract the first word of "$tool_basename", so it can be a program name with args.
6057 set dummy $tool_basename; ac_word=$2
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6059 $as_echo_n "checking for $ac_word... " >&6; }
6060 if ${ac_cv_path_CP+:} false; then :
6061   $as_echo_n "(cached) " >&6
6062 else
6063   case $CP in
6064   [\\/]* | ?:[\\/]*)
6065   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6066   ;;
6067   *)
6068   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069 for as_dir in $PATH
6070 do
6071   IFS=$as_save_IFS
6072   test -z "$as_dir" && as_dir=.
6073     for ac_exec_ext in '' $ac_executable_extensions; do
6074   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6075     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6076     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6077     break 2
6078   fi
6079 done
6080   done
6081 IFS=$as_save_IFS
6082 
6083   ;;
6084 esac
6085 fi
6086 CP=$ac_cv_path_CP
6087 if test -n "$CP"; then
6088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6089 $as_echo "$CP" >&6; }
6090 else
6091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6092 $as_echo "no" >&6; }
6093 fi
6094 
6095 
6096         if test "x$CP" = x; then
6097           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6098         fi
6099       else
6100         # Otherwise we believe it is a complete path. Use it as it is.
6101         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
6102 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
6103         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6104 $as_echo_n "checking for CP... " >&6; }
6105         if test ! -x "$tool_specified"; then
6106           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6107 $as_echo "not found" >&6; }
6108           as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
6109         fi
6110         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6111 $as_echo "$tool_specified" >&6; }
6112       fi
6113     fi
6114   fi
6115 
6116 
6117 
6118   if test "x$CP" = x; then
6119     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
6120   fi
6121 
6122 
6123 
6124 
6125 
6126   # Publish this variable in the help.
6127 
6128 
6129   if test "x$CUT" = x; then
6130     # The variable is not set by user, try to locate tool using the code snippet
6131     for ac_prog in cut
6132 do
6133   # Extract the first word of "$ac_prog", so it can be a program name with args.
6134 set dummy $ac_prog; ac_word=$2
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6136 $as_echo_n "checking for $ac_word... " >&6; }
6137 if ${ac_cv_path_CUT+:} false; then :
6138   $as_echo_n "(cached) " >&6
6139 else
6140   case $CUT in
6141   [\\/]* | ?:[\\/]*)
6142   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6143   ;;
6144   *)
6145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146 for as_dir in $PATH
6147 do
6148   IFS=$as_save_IFS
6149   test -z "$as_dir" && as_dir=.
6150     for ac_exec_ext in '' $ac_executable_extensions; do
6151   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6152     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6154     break 2
6155   fi
6156 done
6157   done
6158 IFS=$as_save_IFS
6159 
6160   ;;
6161 esac
6162 fi
6163 CUT=$ac_cv_path_CUT
6164 if test -n "$CUT"; then
6165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6166 $as_echo "$CUT" >&6; }
6167 else
6168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6169 $as_echo "no" >&6; }
6170 fi
6171 
6172 
6173   test -n "$CUT" && break
6174 done
6175 
6176   else
6177     # The variable is set, but is it from the command line or the environment?
6178 
6179     # Try to remove the string !CUT! from our list.
6180     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
6181     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6182       # If it failed, the variable was not from the command line. Ignore it,
6183       # but warn the user (except for BASH, which is always set by the calling BASH).
6184       if test "xCUT" != xBASH; then
6185         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
6186 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
6187       fi
6188       # Try to locate tool using the code snippet
6189       for ac_prog in cut
6190 do
6191   # Extract the first word of "$ac_prog", so it can be a program name with args.
6192 set dummy $ac_prog; ac_word=$2
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6194 $as_echo_n "checking for $ac_word... " >&6; }
6195 if ${ac_cv_path_CUT+:} false; then :
6196   $as_echo_n "(cached) " >&6
6197 else
6198   case $CUT in
6199   [\\/]* | ?:[\\/]*)
6200   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6201   ;;
6202   *)
6203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 for as_dir in $PATH
6205 do
6206   IFS=$as_save_IFS
6207   test -z "$as_dir" && as_dir=.
6208     for ac_exec_ext in '' $ac_executable_extensions; do
6209   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6210     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6212     break 2
6213   fi
6214 done
6215   done
6216 IFS=$as_save_IFS
6217 
6218   ;;
6219 esac
6220 fi
6221 CUT=$ac_cv_path_CUT
6222 if test -n "$CUT"; then
6223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6224 $as_echo "$CUT" >&6; }
6225 else
6226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227 $as_echo "no" >&6; }
6228 fi
6229 
6230 
6231   test -n "$CUT" && break
6232 done
6233 
6234     else
6235       # If it succeeded, then it was overridden by the user. We will use it
6236       # for the tool.
6237 
6238       # First remove it from the list of overridden variables, so we can test
6239       # for unknown variables in the end.
6240       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6241 
6242       # Check if the provided tool contains a complete path.
6243       tool_specified="$CUT"
6244       tool_basename="${tool_specified##*/}"
6245       if test "x$tool_basename" = "x$tool_specified"; then
6246         # A command without a complete path is provided, search $PATH.
6247         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
6248 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
6249         # Extract the first word of "$tool_basename", so it can be a program name with args.
6250 set dummy $tool_basename; ac_word=$2
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6252 $as_echo_n "checking for $ac_word... " >&6; }
6253 if ${ac_cv_path_CUT+:} false; then :
6254   $as_echo_n "(cached) " >&6
6255 else
6256   case $CUT in
6257   [\\/]* | ?:[\\/]*)
6258   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6259   ;;
6260   *)
6261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262 for as_dir in $PATH
6263 do
6264   IFS=$as_save_IFS
6265   test -z "$as_dir" && as_dir=.
6266     for ac_exec_ext in '' $ac_executable_extensions; do
6267   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6268     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6270     break 2
6271   fi
6272 done
6273   done
6274 IFS=$as_save_IFS
6275 
6276   ;;
6277 esac
6278 fi
6279 CUT=$ac_cv_path_CUT
6280 if test -n "$CUT"; then
6281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6282 $as_echo "$CUT" >&6; }
6283 else
6284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6285 $as_echo "no" >&6; }
6286 fi
6287 
6288 
6289         if test "x$CUT" = x; then
6290           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6291         fi
6292       else
6293         # Otherwise we believe it is a complete path. Use it as it is.
6294         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
6295 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6296         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6297 $as_echo_n "checking for CUT... " >&6; }
6298         if test ! -x "$tool_specified"; then
6299           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6300 $as_echo "not found" >&6; }
6301           as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6302         fi
6303         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6304 $as_echo "$tool_specified" >&6; }
6305       fi
6306     fi
6307   fi
6308 
6309 
6310 
6311   if test "x$CUT" = x; then
6312     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6313   fi
6314 
6315 
6316 
6317 
6318 
6319   # Publish this variable in the help.
6320 
6321 
6322   if test "x$DATE" = x; then
6323     # The variable is not set by user, try to locate tool using the code snippet
6324     for ac_prog in date
6325 do
6326   # Extract the first word of "$ac_prog", so it can be a program name with args.
6327 set dummy $ac_prog; ac_word=$2
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6329 $as_echo_n "checking for $ac_word... " >&6; }
6330 if ${ac_cv_path_DATE+:} false; then :
6331   $as_echo_n "(cached) " >&6
6332 else
6333   case $DATE in
6334   [\\/]* | ?:[\\/]*)
6335   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6336   ;;
6337   *)
6338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 for as_dir in $PATH
6340 do
6341   IFS=$as_save_IFS
6342   test -z "$as_dir" && as_dir=.
6343     for ac_exec_ext in '' $ac_executable_extensions; do
6344   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6345     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6347     break 2
6348   fi
6349 done
6350   done
6351 IFS=$as_save_IFS
6352 
6353   ;;
6354 esac
6355 fi
6356 DATE=$ac_cv_path_DATE
6357 if test -n "$DATE"; then
6358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6359 $as_echo "$DATE" >&6; }
6360 else
6361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362 $as_echo "no" >&6; }
6363 fi
6364 
6365 
6366   test -n "$DATE" && break
6367 done
6368 
6369   else
6370     # The variable is set, but is it from the command line or the environment?
6371 
6372     # Try to remove the string !DATE! from our list.
6373     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6374     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6375       # If it failed, the variable was not from the command line. Ignore it,
6376       # but warn the user (except for BASH, which is always set by the calling BASH).
6377       if test "xDATE" != xBASH; then
6378         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6379 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6380       fi
6381       # Try to locate tool using the code snippet
6382       for ac_prog in date
6383 do
6384   # Extract the first word of "$ac_prog", so it can be a program name with args.
6385 set dummy $ac_prog; ac_word=$2
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6387 $as_echo_n "checking for $ac_word... " >&6; }
6388 if ${ac_cv_path_DATE+:} false; then :
6389   $as_echo_n "(cached) " >&6
6390 else
6391   case $DATE in
6392   [\\/]* | ?:[\\/]*)
6393   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6394   ;;
6395   *)
6396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 for as_dir in $PATH
6398 do
6399   IFS=$as_save_IFS
6400   test -z "$as_dir" && as_dir=.
6401     for ac_exec_ext in '' $ac_executable_extensions; do
6402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6403     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6405     break 2
6406   fi
6407 done
6408   done
6409 IFS=$as_save_IFS
6410 
6411   ;;
6412 esac
6413 fi
6414 DATE=$ac_cv_path_DATE
6415 if test -n "$DATE"; then
6416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6417 $as_echo "$DATE" >&6; }
6418 else
6419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6420 $as_echo "no" >&6; }
6421 fi
6422 
6423 
6424   test -n "$DATE" && break
6425 done
6426 
6427     else
6428       # If it succeeded, then it was overridden by the user. We will use it
6429       # for the tool.
6430 
6431       # First remove it from the list of overridden variables, so we can test
6432       # for unknown variables in the end.
6433       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6434 
6435       # Check if the provided tool contains a complete path.
6436       tool_specified="$DATE"
6437       tool_basename="${tool_specified##*/}"
6438       if test "x$tool_basename" = "x$tool_specified"; then
6439         # A command without a complete path is provided, search $PATH.
6440         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6441 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6442         # Extract the first word of "$tool_basename", so it can be a program name with args.
6443 set dummy $tool_basename; ac_word=$2
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6445 $as_echo_n "checking for $ac_word... " >&6; }
6446 if ${ac_cv_path_DATE+:} false; then :
6447   $as_echo_n "(cached) " >&6
6448 else
6449   case $DATE in
6450   [\\/]* | ?:[\\/]*)
6451   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6452   ;;
6453   *)
6454   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 for as_dir in $PATH
6456 do
6457   IFS=$as_save_IFS
6458   test -z "$as_dir" && as_dir=.
6459     for ac_exec_ext in '' $ac_executable_extensions; do
6460   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6461     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6463     break 2
6464   fi
6465 done
6466   done
6467 IFS=$as_save_IFS
6468 
6469   ;;
6470 esac
6471 fi
6472 DATE=$ac_cv_path_DATE
6473 if test -n "$DATE"; then
6474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6475 $as_echo "$DATE" >&6; }
6476 else
6477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6478 $as_echo "no" >&6; }
6479 fi
6480 
6481 
6482         if test "x$DATE" = x; then
6483           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6484         fi
6485       else
6486         # Otherwise we believe it is a complete path. Use it as it is.
6487         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6488 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6489         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6490 $as_echo_n "checking for DATE... " >&6; }
6491         if test ! -x "$tool_specified"; then
6492           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6493 $as_echo "not found" >&6; }
6494           as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6495         fi
6496         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6497 $as_echo "$tool_specified" >&6; }
6498       fi
6499     fi
6500   fi
6501 
6502 
6503 
6504   if test "x$DATE" = x; then
6505     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6506   fi
6507 
6508 
6509 
6510 
6511 
6512   # Publish this variable in the help.
6513 
6514 
6515   if test "x$DIFF" = x; then
6516     # The variable is not set by user, try to locate tool using the code snippet
6517     for ac_prog in gdiff diff
6518 do
6519   # Extract the first word of "$ac_prog", so it can be a program name with args.
6520 set dummy $ac_prog; ac_word=$2
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6522 $as_echo_n "checking for $ac_word... " >&6; }
6523 if ${ac_cv_path_DIFF+:} false; then :
6524   $as_echo_n "(cached) " >&6
6525 else
6526   case $DIFF in
6527   [\\/]* | ?:[\\/]*)
6528   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6529   ;;
6530   *)
6531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 for as_dir in $PATH
6533 do
6534   IFS=$as_save_IFS
6535   test -z "$as_dir" && as_dir=.
6536     for ac_exec_ext in '' $ac_executable_extensions; do
6537   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6538     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6540     break 2
6541   fi
6542 done
6543   done
6544 IFS=$as_save_IFS
6545 
6546   ;;
6547 esac
6548 fi
6549 DIFF=$ac_cv_path_DIFF
6550 if test -n "$DIFF"; then
6551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6552 $as_echo "$DIFF" >&6; }
6553 else
6554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555 $as_echo "no" >&6; }
6556 fi
6557 
6558 
6559   test -n "$DIFF" && break
6560 done
6561 
6562   else
6563     # The variable is set, but is it from the command line or the environment?
6564 
6565     # Try to remove the string !DIFF! from our list.
6566     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6567     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6568       # If it failed, the variable was not from the command line. Ignore it,
6569       # but warn the user (except for BASH, which is always set by the calling BASH).
6570       if test "xDIFF" != xBASH; then
6571         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6572 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6573       fi
6574       # Try to locate tool using the code snippet
6575       for ac_prog in gdiff diff
6576 do
6577   # Extract the first word of "$ac_prog", so it can be a program name with args.
6578 set dummy $ac_prog; ac_word=$2
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6580 $as_echo_n "checking for $ac_word... " >&6; }
6581 if ${ac_cv_path_DIFF+:} false; then :
6582   $as_echo_n "(cached) " >&6
6583 else
6584   case $DIFF in
6585   [\\/]* | ?:[\\/]*)
6586   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6587   ;;
6588   *)
6589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590 for as_dir in $PATH
6591 do
6592   IFS=$as_save_IFS
6593   test -z "$as_dir" && as_dir=.
6594     for ac_exec_ext in '' $ac_executable_extensions; do
6595   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6596     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6598     break 2
6599   fi
6600 done
6601   done
6602 IFS=$as_save_IFS
6603 
6604   ;;
6605 esac
6606 fi
6607 DIFF=$ac_cv_path_DIFF
6608 if test -n "$DIFF"; then
6609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6610 $as_echo "$DIFF" >&6; }
6611 else
6612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6613 $as_echo "no" >&6; }
6614 fi
6615 
6616 
6617   test -n "$DIFF" && break
6618 done
6619 
6620     else
6621       # If it succeeded, then it was overridden by the user. We will use it
6622       # for the tool.
6623 
6624       # First remove it from the list of overridden variables, so we can test
6625       # for unknown variables in the end.
6626       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6627 
6628       # Check if the provided tool contains a complete path.
6629       tool_specified="$DIFF"
6630       tool_basename="${tool_specified##*/}"
6631       if test "x$tool_basename" = "x$tool_specified"; then
6632         # A command without a complete path is provided, search $PATH.
6633         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6634 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6635         # Extract the first word of "$tool_basename", so it can be a program name with args.
6636 set dummy $tool_basename; ac_word=$2
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6638 $as_echo_n "checking for $ac_word... " >&6; }
6639 if ${ac_cv_path_DIFF+:} false; then :
6640   $as_echo_n "(cached) " >&6
6641 else
6642   case $DIFF in
6643   [\\/]* | ?:[\\/]*)
6644   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6645   ;;
6646   *)
6647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in $PATH
6649 do
6650   IFS=$as_save_IFS
6651   test -z "$as_dir" && as_dir=.
6652     for ac_exec_ext in '' $ac_executable_extensions; do
6653   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6654     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6656     break 2
6657   fi
6658 done
6659   done
6660 IFS=$as_save_IFS
6661 
6662   ;;
6663 esac
6664 fi
6665 DIFF=$ac_cv_path_DIFF
6666 if test -n "$DIFF"; then
6667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6668 $as_echo "$DIFF" >&6; }
6669 else
6670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6671 $as_echo "no" >&6; }
6672 fi
6673 
6674 
6675         if test "x$DIFF" = x; then
6676           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6677         fi
6678       else
6679         # Otherwise we believe it is a complete path. Use it as it is.
6680         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6681 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6682         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6683 $as_echo_n "checking for DIFF... " >&6; }
6684         if test ! -x "$tool_specified"; then
6685           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6686 $as_echo "not found" >&6; }
6687           as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6688         fi
6689         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6690 $as_echo "$tool_specified" >&6; }
6691       fi
6692     fi
6693   fi
6694 
6695 
6696 
6697   if test "x$DIFF" = x; then
6698     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6699   fi
6700 
6701 
6702 
6703 
6704 
6705   # Publish this variable in the help.
6706 
6707 
6708   if test "x$DIRNAME" = x; then
6709     # The variable is not set by user, try to locate tool using the code snippet
6710     for ac_prog in dirname
6711 do
6712   # Extract the first word of "$ac_prog", so it can be a program name with args.
6713 set dummy $ac_prog; ac_word=$2
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6715 $as_echo_n "checking for $ac_word... " >&6; }
6716 if ${ac_cv_path_DIRNAME+:} false; then :
6717   $as_echo_n "(cached) " >&6
6718 else
6719   case $DIRNAME in
6720   [\\/]* | ?:[\\/]*)
6721   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6722   ;;
6723   *)
6724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 for as_dir in $PATH
6726 do
6727   IFS=$as_save_IFS
6728   test -z "$as_dir" && as_dir=.
6729     for ac_exec_ext in '' $ac_executable_extensions; do
6730   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6731     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733     break 2
6734   fi
6735 done
6736   done
6737 IFS=$as_save_IFS
6738 
6739   ;;
6740 esac
6741 fi
6742 DIRNAME=$ac_cv_path_DIRNAME
6743 if test -n "$DIRNAME"; then
6744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6745 $as_echo "$DIRNAME" >&6; }
6746 else
6747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6748 $as_echo "no" >&6; }
6749 fi
6750 
6751 
6752   test -n "$DIRNAME" && break
6753 done
6754 
6755   else
6756     # The variable is set, but is it from the command line or the environment?
6757 
6758     # Try to remove the string !DIRNAME! from our list.
6759     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6760     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6761       # If it failed, the variable was not from the command line. Ignore it,
6762       # but warn the user (except for BASH, which is always set by the calling BASH).
6763       if test "xDIRNAME" != xBASH; then
6764         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6765 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6766       fi
6767       # Try to locate tool using the code snippet
6768       for ac_prog in dirname
6769 do
6770   # Extract the first word of "$ac_prog", so it can be a program name with args.
6771 set dummy $ac_prog; ac_word=$2
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6773 $as_echo_n "checking for $ac_word... " >&6; }
6774 if ${ac_cv_path_DIRNAME+:} false; then :
6775   $as_echo_n "(cached) " >&6
6776 else
6777   case $DIRNAME in
6778   [\\/]* | ?:[\\/]*)
6779   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6780   ;;
6781   *)
6782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 for as_dir in $PATH
6784 do
6785   IFS=$as_save_IFS
6786   test -z "$as_dir" && as_dir=.
6787     for ac_exec_ext in '' $ac_executable_extensions; do
6788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6789     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791     break 2
6792   fi
6793 done
6794   done
6795 IFS=$as_save_IFS
6796 
6797   ;;
6798 esac
6799 fi
6800 DIRNAME=$ac_cv_path_DIRNAME
6801 if test -n "$DIRNAME"; then
6802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6803 $as_echo "$DIRNAME" >&6; }
6804 else
6805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806 $as_echo "no" >&6; }
6807 fi
6808 
6809 
6810   test -n "$DIRNAME" && break
6811 done
6812 
6813     else
6814       # If it succeeded, then it was overridden by the user. We will use it
6815       # for the tool.
6816 
6817       # First remove it from the list of overridden variables, so we can test
6818       # for unknown variables in the end.
6819       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6820 
6821       # Check if the provided tool contains a complete path.
6822       tool_specified="$DIRNAME"
6823       tool_basename="${tool_specified##*/}"
6824       if test "x$tool_basename" = "x$tool_specified"; then
6825         # A command without a complete path is provided, search $PATH.
6826         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6827 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6828         # Extract the first word of "$tool_basename", so it can be a program name with args.
6829 set dummy $tool_basename; ac_word=$2
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6831 $as_echo_n "checking for $ac_word... " >&6; }
6832 if ${ac_cv_path_DIRNAME+:} false; then :
6833   $as_echo_n "(cached) " >&6
6834 else
6835   case $DIRNAME in
6836   [\\/]* | ?:[\\/]*)
6837   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6838   ;;
6839   *)
6840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 for as_dir in $PATH
6842 do
6843   IFS=$as_save_IFS
6844   test -z "$as_dir" && as_dir=.
6845     for ac_exec_ext in '' $ac_executable_extensions; do
6846   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6847     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6849     break 2
6850   fi
6851 done
6852   done
6853 IFS=$as_save_IFS
6854 
6855   ;;
6856 esac
6857 fi
6858 DIRNAME=$ac_cv_path_DIRNAME
6859 if test -n "$DIRNAME"; then
6860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6861 $as_echo "$DIRNAME" >&6; }
6862 else
6863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864 $as_echo "no" >&6; }
6865 fi
6866 
6867 
6868         if test "x$DIRNAME" = x; then
6869           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6870         fi
6871       else
6872         # Otherwise we believe it is a complete path. Use it as it is.
6873         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
6874 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
6875         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6876 $as_echo_n "checking for DIRNAME... " >&6; }
6877         if test ! -x "$tool_specified"; then
6878           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6879 $as_echo "not found" >&6; }
6880           as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
6881         fi
6882         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6883 $as_echo "$tool_specified" >&6; }
6884       fi
6885     fi
6886   fi
6887 
6888 
6889 
6890   if test "x$DIRNAME" = x; then
6891     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
6892   fi
6893 
6894 
6895 
6896 
6897 
6898   # Publish this variable in the help.
6899 
6900 
6901   if test "x$ECHO" = x; then
6902     # The variable is not set by user, try to locate tool using the code snippet
6903     for ac_prog in echo
6904 do
6905   # Extract the first word of "$ac_prog", so it can be a program name with args.
6906 set dummy $ac_prog; ac_word=$2
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6908 $as_echo_n "checking for $ac_word... " >&6; }
6909 if ${ac_cv_path_ECHO+:} false; then :
6910   $as_echo_n "(cached) " >&6
6911 else
6912   case $ECHO in
6913   [\\/]* | ?:[\\/]*)
6914   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6915   ;;
6916   *)
6917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918 for as_dir in $PATH
6919 do
6920   IFS=$as_save_IFS
6921   test -z "$as_dir" && as_dir=.
6922     for ac_exec_ext in '' $ac_executable_extensions; do
6923   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6924     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6926     break 2
6927   fi
6928 done
6929   done
6930 IFS=$as_save_IFS
6931 
6932   ;;
6933 esac
6934 fi
6935 ECHO=$ac_cv_path_ECHO
6936 if test -n "$ECHO"; then
6937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6938 $as_echo "$ECHO" >&6; }
6939 else
6940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6941 $as_echo "no" >&6; }
6942 fi
6943 
6944 
6945   test -n "$ECHO" && break
6946 done
6947 
6948   else
6949     # The variable is set, but is it from the command line or the environment?
6950 
6951     # Try to remove the string !ECHO! from our list.
6952     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
6953     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6954       # If it failed, the variable was not from the command line. Ignore it,
6955       # but warn the user (except for BASH, which is always set by the calling BASH).
6956       if test "xECHO" != xBASH; then
6957         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
6958 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
6959       fi
6960       # Try to locate tool using the code snippet
6961       for ac_prog in echo
6962 do
6963   # Extract the first word of "$ac_prog", so it can be a program name with args.
6964 set dummy $ac_prog; ac_word=$2
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6966 $as_echo_n "checking for $ac_word... " >&6; }
6967 if ${ac_cv_path_ECHO+:} false; then :
6968   $as_echo_n "(cached) " >&6
6969 else
6970   case $ECHO in
6971   [\\/]* | ?:[\\/]*)
6972   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6973   ;;
6974   *)
6975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 for as_dir in $PATH
6977 do
6978   IFS=$as_save_IFS
6979   test -z "$as_dir" && as_dir=.
6980     for ac_exec_ext in '' $ac_executable_extensions; do
6981   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6982     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6984     break 2
6985   fi
6986 done
6987   done
6988 IFS=$as_save_IFS
6989 
6990   ;;
6991 esac
6992 fi
6993 ECHO=$ac_cv_path_ECHO
6994 if test -n "$ECHO"; then
6995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6996 $as_echo "$ECHO" >&6; }
6997 else
6998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6999 $as_echo "no" >&6; }
7000 fi
7001 
7002 
7003   test -n "$ECHO" && break
7004 done
7005 
7006     else
7007       # If it succeeded, then it was overridden by the user. We will use it
7008       # for the tool.
7009 
7010       # First remove it from the list of overridden variables, so we can test
7011       # for unknown variables in the end.
7012       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7013 
7014       # Check if the provided tool contains a complete path.
7015       tool_specified="$ECHO"
7016       tool_basename="${tool_specified##*/}"
7017       if test "x$tool_basename" = "x$tool_specified"; then
7018         # A command without a complete path is provided, search $PATH.
7019         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
7020 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
7021         # Extract the first word of "$tool_basename", so it can be a program name with args.
7022 set dummy $tool_basename; ac_word=$2
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7024 $as_echo_n "checking for $ac_word... " >&6; }
7025 if ${ac_cv_path_ECHO+:} false; then :
7026   $as_echo_n "(cached) " >&6
7027 else
7028   case $ECHO in
7029   [\\/]* | ?:[\\/]*)
7030   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7031   ;;
7032   *)
7033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034 for as_dir in $PATH
7035 do
7036   IFS=$as_save_IFS
7037   test -z "$as_dir" && as_dir=.
7038     for ac_exec_ext in '' $ac_executable_extensions; do
7039   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7040     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7042     break 2
7043   fi
7044 done
7045   done
7046 IFS=$as_save_IFS
7047 
7048   ;;
7049 esac
7050 fi
7051 ECHO=$ac_cv_path_ECHO
7052 if test -n "$ECHO"; then
7053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7054 $as_echo "$ECHO" >&6; }
7055 else
7056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057 $as_echo "no" >&6; }
7058 fi
7059 
7060 
7061         if test "x$ECHO" = x; then
7062           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7063         fi
7064       else
7065         # Otherwise we believe it is a complete path. Use it as it is.
7066         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
7067 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
7068         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7069 $as_echo_n "checking for ECHO... " >&6; }
7070         if test ! -x "$tool_specified"; then
7071           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7072 $as_echo "not found" >&6; }
7073           as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
7074         fi
7075         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7076 $as_echo "$tool_specified" >&6; }
7077       fi
7078     fi
7079   fi
7080 
7081 
7082 
7083   if test "x$ECHO" = x; then
7084     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
7085   fi
7086 
7087 
7088 
7089 
7090 
7091   # Publish this variable in the help.
7092 
7093 
7094   if test "x$EXPR" = x; then
7095     # The variable is not set by user, try to locate tool using the code snippet
7096     for ac_prog in expr
7097 do
7098   # Extract the first word of "$ac_prog", so it can be a program name with args.
7099 set dummy $ac_prog; ac_word=$2
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7101 $as_echo_n "checking for $ac_word... " >&6; }
7102 if ${ac_cv_path_EXPR+:} false; then :
7103   $as_echo_n "(cached) " >&6
7104 else
7105   case $EXPR in
7106   [\\/]* | ?:[\\/]*)
7107   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7108   ;;
7109   *)
7110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 for as_dir in $PATH
7112 do
7113   IFS=$as_save_IFS
7114   test -z "$as_dir" && as_dir=.
7115     for ac_exec_ext in '' $ac_executable_extensions; do
7116   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7117     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7119     break 2
7120   fi
7121 done
7122   done
7123 IFS=$as_save_IFS
7124 
7125   ;;
7126 esac
7127 fi
7128 EXPR=$ac_cv_path_EXPR
7129 if test -n "$EXPR"; then
7130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7131 $as_echo "$EXPR" >&6; }
7132 else
7133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7134 $as_echo "no" >&6; }
7135 fi
7136 
7137 
7138   test -n "$EXPR" && break
7139 done
7140 
7141   else
7142     # The variable is set, but is it from the command line or the environment?
7143 
7144     # Try to remove the string !EXPR! from our list.
7145     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
7146     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7147       # If it failed, the variable was not from the command line. Ignore it,
7148       # but warn the user (except for BASH, which is always set by the calling BASH).
7149       if test "xEXPR" != xBASH; then
7150         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
7151 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
7152       fi
7153       # Try to locate tool using the code snippet
7154       for ac_prog in expr
7155 do
7156   # Extract the first word of "$ac_prog", so it can be a program name with args.
7157 set dummy $ac_prog; ac_word=$2
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7159 $as_echo_n "checking for $ac_word... " >&6; }
7160 if ${ac_cv_path_EXPR+:} false; then :
7161   $as_echo_n "(cached) " >&6
7162 else
7163   case $EXPR in
7164   [\\/]* | ?:[\\/]*)
7165   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7166   ;;
7167   *)
7168   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169 for as_dir in $PATH
7170 do
7171   IFS=$as_save_IFS
7172   test -z "$as_dir" && as_dir=.
7173     for ac_exec_ext in '' $ac_executable_extensions; do
7174   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7175     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7177     break 2
7178   fi
7179 done
7180   done
7181 IFS=$as_save_IFS
7182 
7183   ;;
7184 esac
7185 fi
7186 EXPR=$ac_cv_path_EXPR
7187 if test -n "$EXPR"; then
7188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7189 $as_echo "$EXPR" >&6; }
7190 else
7191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7192 $as_echo "no" >&6; }
7193 fi
7194 
7195 
7196   test -n "$EXPR" && break
7197 done
7198 
7199     else
7200       # If it succeeded, then it was overridden by the user. We will use it
7201       # for the tool.
7202 
7203       # First remove it from the list of overridden variables, so we can test
7204       # for unknown variables in the end.
7205       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7206 
7207       # Check if the provided tool contains a complete path.
7208       tool_specified="$EXPR"
7209       tool_basename="${tool_specified##*/}"
7210       if test "x$tool_basename" = "x$tool_specified"; then
7211         # A command without a complete path is provided, search $PATH.
7212         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
7213 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
7214         # Extract the first word of "$tool_basename", so it can be a program name with args.
7215 set dummy $tool_basename; ac_word=$2
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7217 $as_echo_n "checking for $ac_word... " >&6; }
7218 if ${ac_cv_path_EXPR+:} false; then :
7219   $as_echo_n "(cached) " >&6
7220 else
7221   case $EXPR in
7222   [\\/]* | ?:[\\/]*)
7223   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7224   ;;
7225   *)
7226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227 for as_dir in $PATH
7228 do
7229   IFS=$as_save_IFS
7230   test -z "$as_dir" && as_dir=.
7231     for ac_exec_ext in '' $ac_executable_extensions; do
7232   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7233     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7235     break 2
7236   fi
7237 done
7238   done
7239 IFS=$as_save_IFS
7240 
7241   ;;
7242 esac
7243 fi
7244 EXPR=$ac_cv_path_EXPR
7245 if test -n "$EXPR"; then
7246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7247 $as_echo "$EXPR" >&6; }
7248 else
7249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7250 $as_echo "no" >&6; }
7251 fi
7252 
7253 
7254         if test "x$EXPR" = x; then
7255           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7256         fi
7257       else
7258         # Otherwise we believe it is a complete path. Use it as it is.
7259         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
7260 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
7261         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7262 $as_echo_n "checking for EXPR... " >&6; }
7263         if test ! -x "$tool_specified"; then
7264           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7265 $as_echo "not found" >&6; }
7266           as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
7267         fi
7268         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7269 $as_echo "$tool_specified" >&6; }
7270       fi
7271     fi
7272   fi
7273 
7274 
7275 
7276   if test "x$EXPR" = x; then
7277     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
7278   fi
7279 
7280 
7281 
7282 
7283 
7284   # Publish this variable in the help.
7285 
7286 
7287   if test "x$FILE" = x; then
7288     # The variable is not set by user, try to locate tool using the code snippet
7289     for ac_prog in file
7290 do
7291   # Extract the first word of "$ac_prog", so it can be a program name with args.
7292 set dummy $ac_prog; ac_word=$2
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7294 $as_echo_n "checking for $ac_word... " >&6; }
7295 if ${ac_cv_path_FILE+:} false; then :
7296   $as_echo_n "(cached) " >&6
7297 else
7298   case $FILE in
7299   [\\/]* | ?:[\\/]*)
7300   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7301   ;;
7302   *)
7303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 for as_dir in $PATH
7305 do
7306   IFS=$as_save_IFS
7307   test -z "$as_dir" && as_dir=.
7308     for ac_exec_ext in '' $ac_executable_extensions; do
7309   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7310     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7312     break 2
7313   fi
7314 done
7315   done
7316 IFS=$as_save_IFS
7317 
7318   ;;
7319 esac
7320 fi
7321 FILE=$ac_cv_path_FILE
7322 if test -n "$FILE"; then
7323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7324 $as_echo "$FILE" >&6; }
7325 else
7326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7328 fi
7329 
7330 
7331   test -n "$FILE" && break
7332 done
7333 
7334   else
7335     # The variable is set, but is it from the command line or the environment?
7336 
7337     # Try to remove the string !FILE! from our list.
7338     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7339     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7340       # If it failed, the variable was not from the command line. Ignore it,
7341       # but warn the user (except for BASH, which is always set by the calling BASH).
7342       if test "xFILE" != xBASH; then
7343         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7344 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7345       fi
7346       # Try to locate tool using the code snippet
7347       for ac_prog in file
7348 do
7349   # Extract the first word of "$ac_prog", so it can be a program name with args.
7350 set dummy $ac_prog; ac_word=$2
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7352 $as_echo_n "checking for $ac_word... " >&6; }
7353 if ${ac_cv_path_FILE+:} false; then :
7354   $as_echo_n "(cached) " >&6
7355 else
7356   case $FILE in
7357   [\\/]* | ?:[\\/]*)
7358   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7359   ;;
7360   *)
7361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 for as_dir in $PATH
7363 do
7364   IFS=$as_save_IFS
7365   test -z "$as_dir" && as_dir=.
7366     for ac_exec_ext in '' $ac_executable_extensions; do
7367   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7368     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7370     break 2
7371   fi
7372 done
7373   done
7374 IFS=$as_save_IFS
7375 
7376   ;;
7377 esac
7378 fi
7379 FILE=$ac_cv_path_FILE
7380 if test -n "$FILE"; then
7381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7382 $as_echo "$FILE" >&6; }
7383 else
7384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385 $as_echo "no" >&6; }
7386 fi
7387 
7388 
7389   test -n "$FILE" && break
7390 done
7391 
7392     else
7393       # If it succeeded, then it was overridden by the user. We will use it
7394       # for the tool.
7395 
7396       # First remove it from the list of overridden variables, so we can test
7397       # for unknown variables in the end.
7398       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7399 
7400       # Check if the provided tool contains a complete path.
7401       tool_specified="$FILE"
7402       tool_basename="${tool_specified##*/}"
7403       if test "x$tool_basename" = "x$tool_specified"; then
7404         # A command without a complete path is provided, search $PATH.
7405         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7406 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
7407         # Extract the first word of "$tool_basename", so it can be a program name with args.
7408 set dummy $tool_basename; ac_word=$2
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7410 $as_echo_n "checking for $ac_word... " >&6; }
7411 if ${ac_cv_path_FILE+:} false; then :
7412   $as_echo_n "(cached) " >&6
7413 else
7414   case $FILE in
7415   [\\/]* | ?:[\\/]*)
7416   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7417   ;;
7418   *)
7419   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 for as_dir in $PATH
7421 do
7422   IFS=$as_save_IFS
7423   test -z "$as_dir" && as_dir=.
7424     for ac_exec_ext in '' $ac_executable_extensions; do
7425   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7426     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7428     break 2
7429   fi
7430 done
7431   done
7432 IFS=$as_save_IFS
7433 
7434   ;;
7435 esac
7436 fi
7437 FILE=$ac_cv_path_FILE
7438 if test -n "$FILE"; then
7439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7440 $as_echo "$FILE" >&6; }
7441 else
7442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443 $as_echo "no" >&6; }
7444 fi
7445 
7446 
7447         if test "x$FILE" = x; then
7448           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7449         fi
7450       else
7451         # Otherwise we believe it is a complete path. Use it as it is.
7452         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7453 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7454         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7455 $as_echo_n "checking for FILE... " >&6; }
7456         if test ! -x "$tool_specified"; then
7457           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7458 $as_echo "not found" >&6; }
7459           as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7460         fi
7461         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7462 $as_echo "$tool_specified" >&6; }
7463       fi
7464     fi
7465   fi
7466 
7467 
7468 
7469   if test "x$FILE" = x; then
7470     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7471   fi
7472 
7473 
7474 
7475 
7476 
7477   # Publish this variable in the help.
7478 
7479 
7480   if test "x$FIND" = x; then
7481     # The variable is not set by user, try to locate tool using the code snippet
7482     for ac_prog in find
7483 do
7484   # Extract the first word of "$ac_prog", so it can be a program name with args.
7485 set dummy $ac_prog; ac_word=$2
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487 $as_echo_n "checking for $ac_word... " >&6; }
7488 if ${ac_cv_path_FIND+:} false; then :
7489   $as_echo_n "(cached) " >&6
7490 else
7491   case $FIND in
7492   [\\/]* | ?:[\\/]*)
7493   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7494   ;;
7495   *)
7496   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7497 for as_dir in $PATH
7498 do
7499   IFS=$as_save_IFS
7500   test -z "$as_dir" && as_dir=.
7501     for ac_exec_ext in '' $ac_executable_extensions; do
7502   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7503     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7505     break 2
7506   fi
7507 done
7508   done
7509 IFS=$as_save_IFS
7510 
7511   ;;
7512 esac
7513 fi
7514 FIND=$ac_cv_path_FIND
7515 if test -n "$FIND"; then
7516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7517 $as_echo "$FIND" >&6; }
7518 else
7519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520 $as_echo "no" >&6; }
7521 fi
7522 
7523 
7524   test -n "$FIND" && break
7525 done
7526 
7527   else
7528     # The variable is set, but is it from the command line or the environment?
7529 
7530     # Try to remove the string !FIND! from our list.
7531     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7532     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7533       # If it failed, the variable was not from the command line. Ignore it,
7534       # but warn the user (except for BASH, which is always set by the calling BASH).
7535       if test "xFIND" != xBASH; then
7536         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7537 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7538       fi
7539       # Try to locate tool using the code snippet
7540       for ac_prog in find
7541 do
7542   # Extract the first word of "$ac_prog", so it can be a program name with args.
7543 set dummy $ac_prog; ac_word=$2
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7545 $as_echo_n "checking for $ac_word... " >&6; }
7546 if ${ac_cv_path_FIND+:} false; then :
7547   $as_echo_n "(cached) " >&6
7548 else
7549   case $FIND in
7550   [\\/]* | ?:[\\/]*)
7551   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7552   ;;
7553   *)
7554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555 for as_dir in $PATH
7556 do
7557   IFS=$as_save_IFS
7558   test -z "$as_dir" && as_dir=.
7559     for ac_exec_ext in '' $ac_executable_extensions; do
7560   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7561     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7563     break 2
7564   fi
7565 done
7566   done
7567 IFS=$as_save_IFS
7568 
7569   ;;
7570 esac
7571 fi
7572 FIND=$ac_cv_path_FIND
7573 if test -n "$FIND"; then
7574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7575 $as_echo "$FIND" >&6; }
7576 else
7577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578 $as_echo "no" >&6; }
7579 fi
7580 
7581 
7582   test -n "$FIND" && break
7583 done
7584 
7585     else
7586       # If it succeeded, then it was overridden by the user. We will use it
7587       # for the tool.
7588 
7589       # First remove it from the list of overridden variables, so we can test
7590       # for unknown variables in the end.
7591       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7592 
7593       # Check if the provided tool contains a complete path.
7594       tool_specified="$FIND"
7595       tool_basename="${tool_specified##*/}"
7596       if test "x$tool_basename" = "x$tool_specified"; then
7597         # A command without a complete path is provided, search $PATH.
7598         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7599 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7600         # Extract the first word of "$tool_basename", so it can be a program name with args.
7601 set dummy $tool_basename; ac_word=$2
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7603 $as_echo_n "checking for $ac_word... " >&6; }
7604 if ${ac_cv_path_FIND+:} false; then :
7605   $as_echo_n "(cached) " >&6
7606 else
7607   case $FIND in
7608   [\\/]* | ?:[\\/]*)
7609   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7610   ;;
7611   *)
7612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 for as_dir in $PATH
7614 do
7615   IFS=$as_save_IFS
7616   test -z "$as_dir" && as_dir=.
7617     for ac_exec_ext in '' $ac_executable_extensions; do
7618   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7619     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7621     break 2
7622   fi
7623 done
7624   done
7625 IFS=$as_save_IFS
7626 
7627   ;;
7628 esac
7629 fi
7630 FIND=$ac_cv_path_FIND
7631 if test -n "$FIND"; then
7632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7633 $as_echo "$FIND" >&6; }
7634 else
7635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7636 $as_echo "no" >&6; }
7637 fi
7638 
7639 
7640         if test "x$FIND" = x; then
7641           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7642         fi
7643       else
7644         # Otherwise we believe it is a complete path. Use it as it is.
7645         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7646 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7647         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7648 $as_echo_n "checking for FIND... " >&6; }
7649         if test ! -x "$tool_specified"; then
7650           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7651 $as_echo "not found" >&6; }
7652           as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7653         fi
7654         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7655 $as_echo "$tool_specified" >&6; }
7656       fi
7657     fi
7658   fi
7659 
7660 
7661 
7662   if test "x$FIND" = x; then
7663     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7664   fi
7665 
7666 
7667 
7668 
7669 
7670   # Publish this variable in the help.
7671 
7672 
7673   if test "x$HEAD" = x; then
7674     # The variable is not set by user, try to locate tool using the code snippet
7675     for ac_prog in head
7676 do
7677   # Extract the first word of "$ac_prog", so it can be a program name with args.
7678 set dummy $ac_prog; ac_word=$2
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7680 $as_echo_n "checking for $ac_word... " >&6; }
7681 if ${ac_cv_path_HEAD+:} false; then :
7682   $as_echo_n "(cached) " >&6
7683 else
7684   case $HEAD in
7685   [\\/]* | ?:[\\/]*)
7686   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7687   ;;
7688   *)
7689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 for as_dir in $PATH
7691 do
7692   IFS=$as_save_IFS
7693   test -z "$as_dir" && as_dir=.
7694     for ac_exec_ext in '' $ac_executable_extensions; do
7695   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7696     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7698     break 2
7699   fi
7700 done
7701   done
7702 IFS=$as_save_IFS
7703 
7704   ;;
7705 esac
7706 fi
7707 HEAD=$ac_cv_path_HEAD
7708 if test -n "$HEAD"; then
7709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7710 $as_echo "$HEAD" >&6; }
7711 else
7712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713 $as_echo "no" >&6; }
7714 fi
7715 
7716 
7717   test -n "$HEAD" && break
7718 done
7719 
7720   else
7721     # The variable is set, but is it from the command line or the environment?
7722 
7723     # Try to remove the string !HEAD! from our list.
7724     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7725     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7726       # If it failed, the variable was not from the command line. Ignore it,
7727       # but warn the user (except for BASH, which is always set by the calling BASH).
7728       if test "xHEAD" != xBASH; then
7729         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7730 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7731       fi
7732       # Try to locate tool using the code snippet
7733       for ac_prog in head
7734 do
7735   # Extract the first word of "$ac_prog", so it can be a program name with args.
7736 set dummy $ac_prog; ac_word=$2
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7738 $as_echo_n "checking for $ac_word... " >&6; }
7739 if ${ac_cv_path_HEAD+:} false; then :
7740   $as_echo_n "(cached) " >&6
7741 else
7742   case $HEAD in
7743   [\\/]* | ?:[\\/]*)
7744   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7745   ;;
7746   *)
7747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748 for as_dir in $PATH
7749 do
7750   IFS=$as_save_IFS
7751   test -z "$as_dir" && as_dir=.
7752     for ac_exec_ext in '' $ac_executable_extensions; do
7753   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7754     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7756     break 2
7757   fi
7758 done
7759   done
7760 IFS=$as_save_IFS
7761 
7762   ;;
7763 esac
7764 fi
7765 HEAD=$ac_cv_path_HEAD
7766 if test -n "$HEAD"; then
7767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7768 $as_echo "$HEAD" >&6; }
7769 else
7770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771 $as_echo "no" >&6; }
7772 fi
7773 
7774 
7775   test -n "$HEAD" && break
7776 done
7777 
7778     else
7779       # If it succeeded, then it was overridden by the user. We will use it
7780       # for the tool.
7781 
7782       # First remove it from the list of overridden variables, so we can test
7783       # for unknown variables in the end.
7784       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7785 
7786       # Check if the provided tool contains a complete path.
7787       tool_specified="$HEAD"
7788       tool_basename="${tool_specified##*/}"
7789       if test "x$tool_basename" = "x$tool_specified"; then
7790         # A command without a complete path is provided, search $PATH.
7791         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7792 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7793         # Extract the first word of "$tool_basename", so it can be a program name with args.
7794 set dummy $tool_basename; ac_word=$2
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7796 $as_echo_n "checking for $ac_word... " >&6; }
7797 if ${ac_cv_path_HEAD+:} false; then :
7798   $as_echo_n "(cached) " >&6
7799 else
7800   case $HEAD in
7801   [\\/]* | ?:[\\/]*)
7802   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7803   ;;
7804   *)
7805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806 for as_dir in $PATH
7807 do
7808   IFS=$as_save_IFS
7809   test -z "$as_dir" && as_dir=.
7810     for ac_exec_ext in '' $ac_executable_extensions; do
7811   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7812     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7814     break 2
7815   fi
7816 done
7817   done
7818 IFS=$as_save_IFS
7819 
7820   ;;
7821 esac
7822 fi
7823 HEAD=$ac_cv_path_HEAD
7824 if test -n "$HEAD"; then
7825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7826 $as_echo "$HEAD" >&6; }
7827 else
7828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7829 $as_echo "no" >&6; }
7830 fi
7831 
7832 
7833         if test "x$HEAD" = x; then
7834           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7835         fi
7836       else
7837         # Otherwise we believe it is a complete path. Use it as it is.
7838         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
7839 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
7840         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7841 $as_echo_n "checking for HEAD... " >&6; }
7842         if test ! -x "$tool_specified"; then
7843           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7844 $as_echo "not found" >&6; }
7845           as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
7846         fi
7847         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7848 $as_echo "$tool_specified" >&6; }
7849       fi
7850     fi
7851   fi
7852 
7853 
7854 
7855   if test "x$HEAD" = x; then
7856     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
7857   fi
7858 
7859 
7860 
7861 
7862 
7863   # Publish this variable in the help.
7864 
7865 
7866   if test "x$LN" = x; then
7867     # The variable is not set by user, try to locate tool using the code snippet
7868     for ac_prog in ln
7869 do
7870   # Extract the first word of "$ac_prog", so it can be a program name with args.
7871 set dummy $ac_prog; ac_word=$2
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7873 $as_echo_n "checking for $ac_word... " >&6; }
7874 if ${ac_cv_path_LN+:} false; then :
7875   $as_echo_n "(cached) " >&6
7876 else
7877   case $LN in
7878   [\\/]* | ?:[\\/]*)
7879   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7880   ;;
7881   *)
7882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883 for as_dir in $PATH
7884 do
7885   IFS=$as_save_IFS
7886   test -z "$as_dir" && as_dir=.
7887     for ac_exec_ext in '' $ac_executable_extensions; do
7888   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7889     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7891     break 2
7892   fi
7893 done
7894   done
7895 IFS=$as_save_IFS
7896 
7897   ;;
7898 esac
7899 fi
7900 LN=$ac_cv_path_LN
7901 if test -n "$LN"; then
7902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7903 $as_echo "$LN" >&6; }
7904 else
7905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7906 $as_echo "no" >&6; }
7907 fi
7908 
7909 
7910   test -n "$LN" && break
7911 done
7912 
7913   else
7914     # The variable is set, but is it from the command line or the environment?
7915 
7916     # Try to remove the string !LN! from our list.
7917     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
7918     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7919       # If it failed, the variable was not from the command line. Ignore it,
7920       # but warn the user (except for BASH, which is always set by the calling BASH).
7921       if test "xLN" != xBASH; then
7922         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
7923 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
7924       fi
7925       # Try to locate tool using the code snippet
7926       for ac_prog in ln
7927 do
7928   # Extract the first word of "$ac_prog", so it can be a program name with args.
7929 set dummy $ac_prog; ac_word=$2
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7931 $as_echo_n "checking for $ac_word... " >&6; }
7932 if ${ac_cv_path_LN+:} false; then :
7933   $as_echo_n "(cached) " >&6
7934 else
7935   case $LN in
7936   [\\/]* | ?:[\\/]*)
7937   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7938   ;;
7939   *)
7940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941 for as_dir in $PATH
7942 do
7943   IFS=$as_save_IFS
7944   test -z "$as_dir" && as_dir=.
7945     for ac_exec_ext in '' $ac_executable_extensions; do
7946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7947     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7949     break 2
7950   fi
7951 done
7952   done
7953 IFS=$as_save_IFS
7954 
7955   ;;
7956 esac
7957 fi
7958 LN=$ac_cv_path_LN
7959 if test -n "$LN"; then
7960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7961 $as_echo "$LN" >&6; }
7962 else
7963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964 $as_echo "no" >&6; }
7965 fi
7966 
7967 
7968   test -n "$LN" && break
7969 done
7970 
7971     else
7972       # If it succeeded, then it was overridden by the user. We will use it
7973       # for the tool.
7974 
7975       # First remove it from the list of overridden variables, so we can test
7976       # for unknown variables in the end.
7977       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7978 
7979       # Check if the provided tool contains a complete path.
7980       tool_specified="$LN"
7981       tool_basename="${tool_specified##*/}"
7982       if test "x$tool_basename" = "x$tool_specified"; then
7983         # A command without a complete path is provided, search $PATH.
7984         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
7985 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
7986         # Extract the first word of "$tool_basename", so it can be a program name with args.
7987 set dummy $tool_basename; ac_word=$2
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7989 $as_echo_n "checking for $ac_word... " >&6; }
7990 if ${ac_cv_path_LN+:} false; then :
7991   $as_echo_n "(cached) " >&6
7992 else
7993   case $LN in
7994   [\\/]* | ?:[\\/]*)
7995   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7996   ;;
7997   *)
7998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999 for as_dir in $PATH
8000 do
8001   IFS=$as_save_IFS
8002   test -z "$as_dir" && as_dir=.
8003     for ac_exec_ext in '' $ac_executable_extensions; do
8004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8005     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8007     break 2
8008   fi
8009 done
8010   done
8011 IFS=$as_save_IFS
8012 
8013   ;;
8014 esac
8015 fi
8016 LN=$ac_cv_path_LN
8017 if test -n "$LN"; then
8018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8019 $as_echo "$LN" >&6; }
8020 else
8021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8022 $as_echo "no" >&6; }
8023 fi
8024 
8025 
8026         if test "x$LN" = x; then
8027           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8028         fi
8029       else
8030         # Otherwise we believe it is a complete path. Use it as it is.
8031         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
8032 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
8033         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
8034 $as_echo_n "checking for LN... " >&6; }
8035         if test ! -x "$tool_specified"; then
8036           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8037 $as_echo "not found" >&6; }
8038           as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
8039         fi
8040         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8041 $as_echo "$tool_specified" >&6; }
8042       fi
8043     fi
8044   fi
8045 
8046 
8047 
8048   if test "x$LN" = x; then
8049     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
8050   fi
8051 
8052 
8053 
8054 
8055 
8056   # Publish this variable in the help.
8057 
8058 
8059   if test "x$LS" = x; then
8060     # The variable is not set by user, try to locate tool using the code snippet
8061     for ac_prog in ls
8062 do
8063   # Extract the first word of "$ac_prog", so it can be a program name with args.
8064 set dummy $ac_prog; ac_word=$2
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8066 $as_echo_n "checking for $ac_word... " >&6; }
8067 if ${ac_cv_path_LS+:} false; then :
8068   $as_echo_n "(cached) " >&6
8069 else
8070   case $LS in
8071   [\\/]* | ?:[\\/]*)
8072   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8073   ;;
8074   *)
8075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076 for as_dir in $PATH
8077 do
8078   IFS=$as_save_IFS
8079   test -z "$as_dir" && as_dir=.
8080     for ac_exec_ext in '' $ac_executable_extensions; do
8081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8082     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084     break 2
8085   fi
8086 done
8087   done
8088 IFS=$as_save_IFS
8089 
8090   ;;
8091 esac
8092 fi
8093 LS=$ac_cv_path_LS
8094 if test -n "$LS"; then
8095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8096 $as_echo "$LS" >&6; }
8097 else
8098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099 $as_echo "no" >&6; }
8100 fi
8101 
8102 
8103   test -n "$LS" && break
8104 done
8105 
8106   else
8107     # The variable is set, but is it from the command line or the environment?
8108 
8109     # Try to remove the string !LS! from our list.
8110     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
8111     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8112       # If it failed, the variable was not from the command line. Ignore it,
8113       # but warn the user (except for BASH, which is always set by the calling BASH).
8114       if test "xLS" != xBASH; then
8115         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
8116 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
8117       fi
8118       # Try to locate tool using the code snippet
8119       for ac_prog in ls
8120 do
8121   # Extract the first word of "$ac_prog", so it can be a program name with args.
8122 set dummy $ac_prog; ac_word=$2
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124 $as_echo_n "checking for $ac_word... " >&6; }
8125 if ${ac_cv_path_LS+:} false; then :
8126   $as_echo_n "(cached) " >&6
8127 else
8128   case $LS in
8129   [\\/]* | ?:[\\/]*)
8130   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8131   ;;
8132   *)
8133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8134 for as_dir in $PATH
8135 do
8136   IFS=$as_save_IFS
8137   test -z "$as_dir" && as_dir=.
8138     for ac_exec_ext in '' $ac_executable_extensions; do
8139   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8140     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8142     break 2
8143   fi
8144 done
8145   done
8146 IFS=$as_save_IFS
8147 
8148   ;;
8149 esac
8150 fi
8151 LS=$ac_cv_path_LS
8152 if test -n "$LS"; then
8153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8154 $as_echo "$LS" >&6; }
8155 else
8156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157 $as_echo "no" >&6; }
8158 fi
8159 
8160 
8161   test -n "$LS" && break
8162 done
8163 
8164     else
8165       # If it succeeded, then it was overridden by the user. We will use it
8166       # for the tool.
8167 
8168       # First remove it from the list of overridden variables, so we can test
8169       # for unknown variables in the end.
8170       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8171 
8172       # Check if the provided tool contains a complete path.
8173       tool_specified="$LS"
8174       tool_basename="${tool_specified##*/}"
8175       if test "x$tool_basename" = "x$tool_specified"; then
8176         # A command without a complete path is provided, search $PATH.
8177         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
8178 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
8179         # Extract the first word of "$tool_basename", so it can be a program name with args.
8180 set dummy $tool_basename; ac_word=$2
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8182 $as_echo_n "checking for $ac_word... " >&6; }
8183 if ${ac_cv_path_LS+:} false; then :
8184   $as_echo_n "(cached) " >&6
8185 else
8186   case $LS in
8187   [\\/]* | ?:[\\/]*)
8188   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8189   ;;
8190   *)
8191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8192 for as_dir in $PATH
8193 do
8194   IFS=$as_save_IFS
8195   test -z "$as_dir" && as_dir=.
8196     for ac_exec_ext in '' $ac_executable_extensions; do
8197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8198     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8200     break 2
8201   fi
8202 done
8203   done
8204 IFS=$as_save_IFS
8205 
8206   ;;
8207 esac
8208 fi
8209 LS=$ac_cv_path_LS
8210 if test -n "$LS"; then
8211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8212 $as_echo "$LS" >&6; }
8213 else
8214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8215 $as_echo "no" >&6; }
8216 fi
8217 
8218 
8219         if test "x$LS" = x; then
8220           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8221         fi
8222       else
8223         # Otherwise we believe it is a complete path. Use it as it is.
8224         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
8225 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
8226         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
8227 $as_echo_n "checking for LS... " >&6; }
8228         if test ! -x "$tool_specified"; then
8229           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8230 $as_echo "not found" >&6; }
8231           as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
8232         fi
8233         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8234 $as_echo "$tool_specified" >&6; }
8235       fi
8236     fi
8237   fi
8238 
8239 
8240 
8241   if test "x$LS" = x; then
8242     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
8243   fi
8244 
8245 
8246 
8247 
8248 
8249   # Publish this variable in the help.
8250 
8251 
8252   if test "x$MKDIR" = x; then
8253     # The variable is not set by user, try to locate tool using the code snippet
8254     for ac_prog in mkdir
8255 do
8256   # Extract the first word of "$ac_prog", so it can be a program name with args.
8257 set dummy $ac_prog; ac_word=$2
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259 $as_echo_n "checking for $ac_word... " >&6; }
8260 if ${ac_cv_path_MKDIR+:} false; then :
8261   $as_echo_n "(cached) " >&6
8262 else
8263   case $MKDIR in
8264   [\\/]* | ?:[\\/]*)
8265   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8266   ;;
8267   *)
8268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8269 for as_dir in $PATH
8270 do
8271   IFS=$as_save_IFS
8272   test -z "$as_dir" && as_dir=.
8273     for ac_exec_ext in '' $ac_executable_extensions; do
8274   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8275     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8277     break 2
8278   fi
8279 done
8280   done
8281 IFS=$as_save_IFS
8282 
8283   ;;
8284 esac
8285 fi
8286 MKDIR=$ac_cv_path_MKDIR
8287 if test -n "$MKDIR"; then
8288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8289 $as_echo "$MKDIR" >&6; }
8290 else
8291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292 $as_echo "no" >&6; }
8293 fi
8294 
8295 
8296   test -n "$MKDIR" && break
8297 done
8298 
8299   else
8300     # The variable is set, but is it from the command line or the environment?
8301 
8302     # Try to remove the string !MKDIR! from our list.
8303     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
8304     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8305       # If it failed, the variable was not from the command line. Ignore it,
8306       # but warn the user (except for BASH, which is always set by the calling BASH).
8307       if test "xMKDIR" != xBASH; then
8308         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
8309 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
8310       fi
8311       # Try to locate tool using the code snippet
8312       for ac_prog in mkdir
8313 do
8314   # Extract the first word of "$ac_prog", so it can be a program name with args.
8315 set dummy $ac_prog; ac_word=$2
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317 $as_echo_n "checking for $ac_word... " >&6; }
8318 if ${ac_cv_path_MKDIR+:} false; then :
8319   $as_echo_n "(cached) " >&6
8320 else
8321   case $MKDIR in
8322   [\\/]* | ?:[\\/]*)
8323   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8324   ;;
8325   *)
8326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327 for as_dir in $PATH
8328 do
8329   IFS=$as_save_IFS
8330   test -z "$as_dir" && as_dir=.
8331     for ac_exec_ext in '' $ac_executable_extensions; do
8332   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8333     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8335     break 2
8336   fi
8337 done
8338   done
8339 IFS=$as_save_IFS
8340 
8341   ;;
8342 esac
8343 fi
8344 MKDIR=$ac_cv_path_MKDIR
8345 if test -n "$MKDIR"; then
8346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8347 $as_echo "$MKDIR" >&6; }
8348 else
8349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8350 $as_echo "no" >&6; }
8351 fi
8352 
8353 
8354   test -n "$MKDIR" && break
8355 done
8356 
8357     else
8358       # If it succeeded, then it was overridden by the user. We will use it
8359       # for the tool.
8360 
8361       # First remove it from the list of overridden variables, so we can test
8362       # for unknown variables in the end.
8363       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8364 
8365       # Check if the provided tool contains a complete path.
8366       tool_specified="$MKDIR"
8367       tool_basename="${tool_specified##*/}"
8368       if test "x$tool_basename" = "x$tool_specified"; then
8369         # A command without a complete path is provided, search $PATH.
8370         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
8371 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
8372         # Extract the first word of "$tool_basename", so it can be a program name with args.
8373 set dummy $tool_basename; ac_word=$2
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8375 $as_echo_n "checking for $ac_word... " >&6; }
8376 if ${ac_cv_path_MKDIR+:} false; then :
8377   $as_echo_n "(cached) " >&6
8378 else
8379   case $MKDIR in
8380   [\\/]* | ?:[\\/]*)
8381   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8382   ;;
8383   *)
8384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8385 for as_dir in $PATH
8386 do
8387   IFS=$as_save_IFS
8388   test -z "$as_dir" && as_dir=.
8389     for ac_exec_ext in '' $ac_executable_extensions; do
8390   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8391     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8393     break 2
8394   fi
8395 done
8396   done
8397 IFS=$as_save_IFS
8398 
8399   ;;
8400 esac
8401 fi
8402 MKDIR=$ac_cv_path_MKDIR
8403 if test -n "$MKDIR"; then
8404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8405 $as_echo "$MKDIR" >&6; }
8406 else
8407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8408 $as_echo "no" >&6; }
8409 fi
8410 
8411 
8412         if test "x$MKDIR" = x; then
8413           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8414         fi
8415       else
8416         # Otherwise we believe it is a complete path. Use it as it is.
8417         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
8418 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
8419         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8420 $as_echo_n "checking for MKDIR... " >&6; }
8421         if test ! -x "$tool_specified"; then
8422           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8423 $as_echo "not found" >&6; }
8424           as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
8425         fi
8426         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8427 $as_echo "$tool_specified" >&6; }
8428       fi
8429     fi
8430   fi
8431 
8432 
8433 
8434   if test "x$MKDIR" = x; then
8435     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
8436   fi
8437 
8438 
8439 
8440 
8441 
8442   # Publish this variable in the help.
8443 
8444 
8445   if test "x$MKTEMP" = x; then
8446     # The variable is not set by user, try to locate tool using the code snippet
8447     for ac_prog in mktemp
8448 do
8449   # Extract the first word of "$ac_prog", so it can be a program name with args.
8450 set dummy $ac_prog; ac_word=$2
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8452 $as_echo_n "checking for $ac_word... " >&6; }
8453 if ${ac_cv_path_MKTEMP+:} false; then :
8454   $as_echo_n "(cached) " >&6
8455 else
8456   case $MKTEMP in
8457   [\\/]* | ?:[\\/]*)
8458   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8459   ;;
8460   *)
8461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8462 for as_dir in $PATH
8463 do
8464   IFS=$as_save_IFS
8465   test -z "$as_dir" && as_dir=.
8466     for ac_exec_ext in '' $ac_executable_extensions; do
8467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8468     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8470     break 2
8471   fi
8472 done
8473   done
8474 IFS=$as_save_IFS
8475 
8476   ;;
8477 esac
8478 fi
8479 MKTEMP=$ac_cv_path_MKTEMP
8480 if test -n "$MKTEMP"; then
8481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8482 $as_echo "$MKTEMP" >&6; }
8483 else
8484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8485 $as_echo "no" >&6; }
8486 fi
8487 
8488 
8489   test -n "$MKTEMP" && break
8490 done
8491 
8492   else
8493     # The variable is set, but is it from the command line or the environment?
8494 
8495     # Try to remove the string !MKTEMP! from our list.
8496     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8497     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8498       # If it failed, the variable was not from the command line. Ignore it,
8499       # but warn the user (except for BASH, which is always set by the calling BASH).
8500       if test "xMKTEMP" != xBASH; then
8501         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8502 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8503       fi
8504       # Try to locate tool using the code snippet
8505       for ac_prog in mktemp
8506 do
8507   # Extract the first word of "$ac_prog", so it can be a program name with args.
8508 set dummy $ac_prog; ac_word=$2
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8510 $as_echo_n "checking for $ac_word... " >&6; }
8511 if ${ac_cv_path_MKTEMP+:} false; then :
8512   $as_echo_n "(cached) " >&6
8513 else
8514   case $MKTEMP in
8515   [\\/]* | ?:[\\/]*)
8516   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8517   ;;
8518   *)
8519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8520 for as_dir in $PATH
8521 do
8522   IFS=$as_save_IFS
8523   test -z "$as_dir" && as_dir=.
8524     for ac_exec_ext in '' $ac_executable_extensions; do
8525   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8526     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8528     break 2
8529   fi
8530 done
8531   done
8532 IFS=$as_save_IFS
8533 
8534   ;;
8535 esac
8536 fi
8537 MKTEMP=$ac_cv_path_MKTEMP
8538 if test -n "$MKTEMP"; then
8539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8540 $as_echo "$MKTEMP" >&6; }
8541 else
8542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8543 $as_echo "no" >&6; }
8544 fi
8545 
8546 
8547   test -n "$MKTEMP" && break
8548 done
8549 
8550     else
8551       # If it succeeded, then it was overridden by the user. We will use it
8552       # for the tool.
8553 
8554       # First remove it from the list of overridden variables, so we can test
8555       # for unknown variables in the end.
8556       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8557 
8558       # Check if the provided tool contains a complete path.
8559       tool_specified="$MKTEMP"
8560       tool_basename="${tool_specified##*/}"
8561       if test "x$tool_basename" = "x$tool_specified"; then
8562         # A command without a complete path is provided, search $PATH.
8563         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8564 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8565         # Extract the first word of "$tool_basename", so it can be a program name with args.
8566 set dummy $tool_basename; ac_word=$2
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8568 $as_echo_n "checking for $ac_word... " >&6; }
8569 if ${ac_cv_path_MKTEMP+:} false; then :
8570   $as_echo_n "(cached) " >&6
8571 else
8572   case $MKTEMP in
8573   [\\/]* | ?:[\\/]*)
8574   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8575   ;;
8576   *)
8577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8578 for as_dir in $PATH
8579 do
8580   IFS=$as_save_IFS
8581   test -z "$as_dir" && as_dir=.
8582     for ac_exec_ext in '' $ac_executable_extensions; do
8583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8584     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8586     break 2
8587   fi
8588 done
8589   done
8590 IFS=$as_save_IFS
8591 
8592   ;;
8593 esac
8594 fi
8595 MKTEMP=$ac_cv_path_MKTEMP
8596 if test -n "$MKTEMP"; then
8597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8598 $as_echo "$MKTEMP" >&6; }
8599 else
8600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8601 $as_echo "no" >&6; }
8602 fi
8603 
8604 
8605         if test "x$MKTEMP" = x; then
8606           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8607         fi
8608       else
8609         # Otherwise we believe it is a complete path. Use it as it is.
8610         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8611 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8612         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8613 $as_echo_n "checking for MKTEMP... " >&6; }
8614         if test ! -x "$tool_specified"; then
8615           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8616 $as_echo "not found" >&6; }
8617           as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8618         fi
8619         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8620 $as_echo "$tool_specified" >&6; }
8621       fi
8622     fi
8623   fi
8624 
8625 
8626 
8627   if test "x$MKTEMP" = x; then
8628     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8629   fi
8630 
8631 
8632 
8633 
8634 
8635   # Publish this variable in the help.
8636 
8637 
8638   if test "x$MV" = x; then
8639     # The variable is not set by user, try to locate tool using the code snippet
8640     for ac_prog in mv
8641 do
8642   # Extract the first word of "$ac_prog", so it can be a program name with args.
8643 set dummy $ac_prog; ac_word=$2
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8645 $as_echo_n "checking for $ac_word... " >&6; }
8646 if ${ac_cv_path_MV+:} false; then :
8647   $as_echo_n "(cached) " >&6
8648 else
8649   case $MV in
8650   [\\/]* | ?:[\\/]*)
8651   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8652   ;;
8653   *)
8654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655 for as_dir in $PATH
8656 do
8657   IFS=$as_save_IFS
8658   test -z "$as_dir" && as_dir=.
8659     for ac_exec_ext in '' $ac_executable_extensions; do
8660   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8661     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8663     break 2
8664   fi
8665 done
8666   done
8667 IFS=$as_save_IFS
8668 
8669   ;;
8670 esac
8671 fi
8672 MV=$ac_cv_path_MV
8673 if test -n "$MV"; then
8674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8675 $as_echo "$MV" >&6; }
8676 else
8677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8678 $as_echo "no" >&6; }
8679 fi
8680 
8681 
8682   test -n "$MV" && break
8683 done
8684 
8685   else
8686     # The variable is set, but is it from the command line or the environment?
8687 
8688     # Try to remove the string !MV! from our list.
8689     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8690     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8691       # If it failed, the variable was not from the command line. Ignore it,
8692       # but warn the user (except for BASH, which is always set by the calling BASH).
8693       if test "xMV" != xBASH; then
8694         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8695 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8696       fi
8697       # Try to locate tool using the code snippet
8698       for ac_prog in mv
8699 do
8700   # Extract the first word of "$ac_prog", so it can be a program name with args.
8701 set dummy $ac_prog; ac_word=$2
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8703 $as_echo_n "checking for $ac_word... " >&6; }
8704 if ${ac_cv_path_MV+:} false; then :
8705   $as_echo_n "(cached) " >&6
8706 else
8707   case $MV in
8708   [\\/]* | ?:[\\/]*)
8709   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8710   ;;
8711   *)
8712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8713 for as_dir in $PATH
8714 do
8715   IFS=$as_save_IFS
8716   test -z "$as_dir" && as_dir=.
8717     for ac_exec_ext in '' $ac_executable_extensions; do
8718   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8719     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8721     break 2
8722   fi
8723 done
8724   done
8725 IFS=$as_save_IFS
8726 
8727   ;;
8728 esac
8729 fi
8730 MV=$ac_cv_path_MV
8731 if test -n "$MV"; then
8732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8733 $as_echo "$MV" >&6; }
8734 else
8735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8736 $as_echo "no" >&6; }
8737 fi
8738 
8739 
8740   test -n "$MV" && break
8741 done
8742 
8743     else
8744       # If it succeeded, then it was overridden by the user. We will use it
8745       # for the tool.
8746 
8747       # First remove it from the list of overridden variables, so we can test
8748       # for unknown variables in the end.
8749       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8750 
8751       # Check if the provided tool contains a complete path.
8752       tool_specified="$MV"
8753       tool_basename="${tool_specified##*/}"
8754       if test "x$tool_basename" = "x$tool_specified"; then
8755         # A command without a complete path is provided, search $PATH.
8756         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8757 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8758         # Extract the first word of "$tool_basename", so it can be a program name with args.
8759 set dummy $tool_basename; ac_word=$2
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8761 $as_echo_n "checking for $ac_word... " >&6; }
8762 if ${ac_cv_path_MV+:} false; then :
8763   $as_echo_n "(cached) " >&6
8764 else
8765   case $MV in
8766   [\\/]* | ?:[\\/]*)
8767   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8768   ;;
8769   *)
8770   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8771 for as_dir in $PATH
8772 do
8773   IFS=$as_save_IFS
8774   test -z "$as_dir" && as_dir=.
8775     for ac_exec_ext in '' $ac_executable_extensions; do
8776   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8777     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8779     break 2
8780   fi
8781 done
8782   done
8783 IFS=$as_save_IFS
8784 
8785   ;;
8786 esac
8787 fi
8788 MV=$ac_cv_path_MV
8789 if test -n "$MV"; then
8790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8791 $as_echo "$MV" >&6; }
8792 else
8793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8794 $as_echo "no" >&6; }
8795 fi
8796 
8797 
8798         if test "x$MV" = x; then
8799           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8800         fi
8801       else
8802         # Otherwise we believe it is a complete path. Use it as it is.
8803         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
8804 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
8805         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8806 $as_echo_n "checking for MV... " >&6; }
8807         if test ! -x "$tool_specified"; then
8808           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8809 $as_echo "not found" >&6; }
8810           as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
8811         fi
8812         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8813 $as_echo "$tool_specified" >&6; }
8814       fi
8815     fi
8816   fi
8817 
8818 
8819 
8820   if test "x$MV" = x; then
8821     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
8822   fi
8823 
8824 
8825 
8826 
8827 
8828   # Publish this variable in the help.
8829 
8830 
8831   if test "x$NAWK" = x; then
8832     # The variable is not set by user, try to locate tool using the code snippet
8833     for ac_prog in nawk gawk awk
8834 do
8835   # Extract the first word of "$ac_prog", so it can be a program name with args.
8836 set dummy $ac_prog; ac_word=$2
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8838 $as_echo_n "checking for $ac_word... " >&6; }
8839 if ${ac_cv_path_NAWK+:} false; then :
8840   $as_echo_n "(cached) " >&6
8841 else
8842   case $NAWK in
8843   [\\/]* | ?:[\\/]*)
8844   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8845   ;;
8846   *)
8847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8848 for as_dir in $PATH
8849 do
8850   IFS=$as_save_IFS
8851   test -z "$as_dir" && as_dir=.
8852     for ac_exec_ext in '' $ac_executable_extensions; do
8853   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8854     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8856     break 2
8857   fi
8858 done
8859   done
8860 IFS=$as_save_IFS
8861 
8862   ;;
8863 esac
8864 fi
8865 NAWK=$ac_cv_path_NAWK
8866 if test -n "$NAWK"; then
8867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8868 $as_echo "$NAWK" >&6; }
8869 else
8870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8871 $as_echo "no" >&6; }
8872 fi
8873 
8874 
8875   test -n "$NAWK" && break
8876 done
8877 
8878   else
8879     # The variable is set, but is it from the command line or the environment?
8880 
8881     # Try to remove the string !NAWK! from our list.
8882     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
8883     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8884       # If it failed, the variable was not from the command line. Ignore it,
8885       # but warn the user (except for BASH, which is always set by the calling BASH).
8886       if test "xNAWK" != xBASH; then
8887         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
8888 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
8889       fi
8890       # Try to locate tool using the code snippet
8891       for ac_prog in nawk gawk awk
8892 do
8893   # Extract the first word of "$ac_prog", so it can be a program name with args.
8894 set dummy $ac_prog; ac_word=$2
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8896 $as_echo_n "checking for $ac_word... " >&6; }
8897 if ${ac_cv_path_NAWK+:} false; then :
8898   $as_echo_n "(cached) " >&6
8899 else
8900   case $NAWK in
8901   [\\/]* | ?:[\\/]*)
8902   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8903   ;;
8904   *)
8905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8906 for as_dir in $PATH
8907 do
8908   IFS=$as_save_IFS
8909   test -z "$as_dir" && as_dir=.
8910     for ac_exec_ext in '' $ac_executable_extensions; do
8911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8912     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8914     break 2
8915   fi
8916 done
8917   done
8918 IFS=$as_save_IFS
8919 
8920   ;;
8921 esac
8922 fi
8923 NAWK=$ac_cv_path_NAWK
8924 if test -n "$NAWK"; then
8925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8926 $as_echo "$NAWK" >&6; }
8927 else
8928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8929 $as_echo "no" >&6; }
8930 fi
8931 
8932 
8933   test -n "$NAWK" && break
8934 done
8935 
8936     else
8937       # If it succeeded, then it was overridden by the user. We will use it
8938       # for the tool.
8939 
8940       # First remove it from the list of overridden variables, so we can test
8941       # for unknown variables in the end.
8942       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8943 
8944       # Check if the provided tool contains a complete path.
8945       tool_specified="$NAWK"
8946       tool_basename="${tool_specified##*/}"
8947       if test "x$tool_basename" = "x$tool_specified"; then
8948         # A command without a complete path is provided, search $PATH.
8949         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
8950 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
8951         # Extract the first word of "$tool_basename", so it can be a program name with args.
8952 set dummy $tool_basename; ac_word=$2
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8954 $as_echo_n "checking for $ac_word... " >&6; }
8955 if ${ac_cv_path_NAWK+:} false; then :
8956   $as_echo_n "(cached) " >&6
8957 else
8958   case $NAWK in
8959   [\\/]* | ?:[\\/]*)
8960   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8961   ;;
8962   *)
8963   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8964 for as_dir in $PATH
8965 do
8966   IFS=$as_save_IFS
8967   test -z "$as_dir" && as_dir=.
8968     for ac_exec_ext in '' $ac_executable_extensions; do
8969   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8970     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8972     break 2
8973   fi
8974 done
8975   done
8976 IFS=$as_save_IFS
8977 
8978   ;;
8979 esac
8980 fi
8981 NAWK=$ac_cv_path_NAWK
8982 if test -n "$NAWK"; then
8983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8984 $as_echo "$NAWK" >&6; }
8985 else
8986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8987 $as_echo "no" >&6; }
8988 fi
8989 
8990 
8991         if test "x$NAWK" = x; then
8992           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8993         fi
8994       else
8995         # Otherwise we believe it is a complete path. Use it as it is.
8996         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
8997 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
8998         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
8999 $as_echo_n "checking for NAWK... " >&6; }
9000         if test ! -x "$tool_specified"; then
9001           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9002 $as_echo "not found" >&6; }
9003           as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
9004         fi
9005         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9006 $as_echo "$tool_specified" >&6; }
9007       fi
9008     fi
9009   fi
9010 
9011 
9012 
9013   if test "x$NAWK" = x; then
9014     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
9015   fi
9016 
9017 
9018 
9019 
9020 
9021   # Publish this variable in the help.
9022 
9023 
9024   if test "x$PRINTF" = x; then
9025     # The variable is not set by user, try to locate tool using the code snippet
9026     for ac_prog in printf
9027 do
9028   # Extract the first word of "$ac_prog", so it can be a program name with args.
9029 set dummy $ac_prog; ac_word=$2
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9031 $as_echo_n "checking for $ac_word... " >&6; }
9032 if ${ac_cv_path_PRINTF+:} false; then :
9033   $as_echo_n "(cached) " >&6
9034 else
9035   case $PRINTF in
9036   [\\/]* | ?:[\\/]*)
9037   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9038   ;;
9039   *)
9040   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9041 for as_dir in $PATH
9042 do
9043   IFS=$as_save_IFS
9044   test -z "$as_dir" && as_dir=.
9045     for ac_exec_ext in '' $ac_executable_extensions; do
9046   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9047     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9049     break 2
9050   fi
9051 done
9052   done
9053 IFS=$as_save_IFS
9054 
9055   ;;
9056 esac
9057 fi
9058 PRINTF=$ac_cv_path_PRINTF
9059 if test -n "$PRINTF"; then
9060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9061 $as_echo "$PRINTF" >&6; }
9062 else
9063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9064 $as_echo "no" >&6; }
9065 fi
9066 
9067 
9068   test -n "$PRINTF" && break
9069 done
9070 
9071   else
9072     # The variable is set, but is it from the command line or the environment?
9073 
9074     # Try to remove the string !PRINTF! from our list.
9075     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
9076     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9077       # If it failed, the variable was not from the command line. Ignore it,
9078       # but warn the user (except for BASH, which is always set by the calling BASH).
9079       if test "xPRINTF" != xBASH; then
9080         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
9081 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
9082       fi
9083       # Try to locate tool using the code snippet
9084       for ac_prog in printf
9085 do
9086   # Extract the first word of "$ac_prog", so it can be a program name with args.
9087 set dummy $ac_prog; ac_word=$2
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9089 $as_echo_n "checking for $ac_word... " >&6; }
9090 if ${ac_cv_path_PRINTF+:} false; then :
9091   $as_echo_n "(cached) " >&6
9092 else
9093   case $PRINTF in
9094   [\\/]* | ?:[\\/]*)
9095   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9096   ;;
9097   *)
9098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9099 for as_dir in $PATH
9100 do
9101   IFS=$as_save_IFS
9102   test -z "$as_dir" && as_dir=.
9103     for ac_exec_ext in '' $ac_executable_extensions; do
9104   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9105     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9107     break 2
9108   fi
9109 done
9110   done
9111 IFS=$as_save_IFS
9112 
9113   ;;
9114 esac
9115 fi
9116 PRINTF=$ac_cv_path_PRINTF
9117 if test -n "$PRINTF"; then
9118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9119 $as_echo "$PRINTF" >&6; }
9120 else
9121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9122 $as_echo "no" >&6; }
9123 fi
9124 
9125 
9126   test -n "$PRINTF" && break
9127 done
9128 
9129     else
9130       # If it succeeded, then it was overridden by the user. We will use it
9131       # for the tool.
9132 
9133       # First remove it from the list of overridden variables, so we can test
9134       # for unknown variables in the end.
9135       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9136 
9137       # Check if the provided tool contains a complete path.
9138       tool_specified="$PRINTF"
9139       tool_basename="${tool_specified##*/}"
9140       if test "x$tool_basename" = "x$tool_specified"; then
9141         # A command without a complete path is provided, search $PATH.
9142         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
9143 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
9144         # Extract the first word of "$tool_basename", so it can be a program name with args.
9145 set dummy $tool_basename; ac_word=$2
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9147 $as_echo_n "checking for $ac_word... " >&6; }
9148 if ${ac_cv_path_PRINTF+:} false; then :
9149   $as_echo_n "(cached) " >&6
9150 else
9151   case $PRINTF in
9152   [\\/]* | ?:[\\/]*)
9153   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9154   ;;
9155   *)
9156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9157 for as_dir in $PATH
9158 do
9159   IFS=$as_save_IFS
9160   test -z "$as_dir" && as_dir=.
9161     for ac_exec_ext in '' $ac_executable_extensions; do
9162   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9163     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9165     break 2
9166   fi
9167 done
9168   done
9169 IFS=$as_save_IFS
9170 
9171   ;;
9172 esac
9173 fi
9174 PRINTF=$ac_cv_path_PRINTF
9175 if test -n "$PRINTF"; then
9176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9177 $as_echo "$PRINTF" >&6; }
9178 else
9179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9180 $as_echo "no" >&6; }
9181 fi
9182 
9183 
9184         if test "x$PRINTF" = x; then
9185           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9186         fi
9187       else
9188         # Otherwise we believe it is a complete path. Use it as it is.
9189         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
9190 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
9191         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
9192 $as_echo_n "checking for PRINTF... " >&6; }
9193         if test ! -x "$tool_specified"; then
9194           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9195 $as_echo "not found" >&6; }
9196           as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
9197         fi
9198         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9199 $as_echo "$tool_specified" >&6; }
9200       fi
9201     fi
9202   fi
9203 
9204 
9205 
9206   if test "x$PRINTF" = x; then
9207     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
9208   fi
9209 
9210 
9211 
9212 
9213 
9214   # Publish this variable in the help.
9215 
9216 
9217   if test "x$RM" = x; then
9218     # The variable is not set by user, try to locate tool using the code snippet
9219     for ac_prog in rm
9220 do
9221   # Extract the first word of "$ac_prog", so it can be a program name with args.
9222 set dummy $ac_prog; ac_word=$2
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9224 $as_echo_n "checking for $ac_word... " >&6; }
9225 if ${ac_cv_path_RM+:} false; then :
9226   $as_echo_n "(cached) " >&6
9227 else
9228   case $RM in
9229   [\\/]* | ?:[\\/]*)
9230   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9231   ;;
9232   *)
9233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9234 for as_dir in $PATH
9235 do
9236   IFS=$as_save_IFS
9237   test -z "$as_dir" && as_dir=.
9238     for ac_exec_ext in '' $ac_executable_extensions; do
9239   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9240     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9242     break 2
9243   fi
9244 done
9245   done
9246 IFS=$as_save_IFS
9247 
9248   ;;
9249 esac
9250 fi
9251 RM=$ac_cv_path_RM
9252 if test -n "$RM"; then
9253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9254 $as_echo "$RM" >&6; }
9255 else
9256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9257 $as_echo "no" >&6; }
9258 fi
9259 
9260 
9261   test -n "$RM" && break
9262 done
9263 
9264   else
9265     # The variable is set, but is it from the command line or the environment?
9266 
9267     # Try to remove the string !RM! from our list.
9268     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
9269     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9270       # If it failed, the variable was not from the command line. Ignore it,
9271       # but warn the user (except for BASH, which is always set by the calling BASH).
9272       if test "xRM" != xBASH; then
9273         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
9274 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
9275       fi
9276       # Try to locate tool using the code snippet
9277       for ac_prog in rm
9278 do
9279   # Extract the first word of "$ac_prog", so it can be a program name with args.
9280 set dummy $ac_prog; ac_word=$2
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9282 $as_echo_n "checking for $ac_word... " >&6; }
9283 if ${ac_cv_path_RM+:} false; then :
9284   $as_echo_n "(cached) " >&6
9285 else
9286   case $RM in
9287   [\\/]* | ?:[\\/]*)
9288   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9289   ;;
9290   *)
9291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9292 for as_dir in $PATH
9293 do
9294   IFS=$as_save_IFS
9295   test -z "$as_dir" && as_dir=.
9296     for ac_exec_ext in '' $ac_executable_extensions; do
9297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9298     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9300     break 2
9301   fi
9302 done
9303   done
9304 IFS=$as_save_IFS
9305 
9306   ;;
9307 esac
9308 fi
9309 RM=$ac_cv_path_RM
9310 if test -n "$RM"; then
9311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9312 $as_echo "$RM" >&6; }
9313 else
9314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9315 $as_echo "no" >&6; }
9316 fi
9317 
9318 
9319   test -n "$RM" && break
9320 done
9321 
9322     else
9323       # If it succeeded, then it was overridden by the user. We will use it
9324       # for the tool.
9325 
9326       # First remove it from the list of overridden variables, so we can test
9327       # for unknown variables in the end.
9328       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9329 
9330       # Check if the provided tool contains a complete path.
9331       tool_specified="$RM"
9332       tool_basename="${tool_specified##*/}"
9333       if test "x$tool_basename" = "x$tool_specified"; then
9334         # A command without a complete path is provided, search $PATH.
9335         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
9336 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
9337         # Extract the first word of "$tool_basename", so it can be a program name with args.
9338 set dummy $tool_basename; ac_word=$2
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9340 $as_echo_n "checking for $ac_word... " >&6; }
9341 if ${ac_cv_path_RM+:} false; then :
9342   $as_echo_n "(cached) " >&6
9343 else
9344   case $RM in
9345   [\\/]* | ?:[\\/]*)
9346   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9347   ;;
9348   *)
9349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9350 for as_dir in $PATH
9351 do
9352   IFS=$as_save_IFS
9353   test -z "$as_dir" && as_dir=.
9354     for ac_exec_ext in '' $ac_executable_extensions; do
9355   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9356     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9358     break 2
9359   fi
9360 done
9361   done
9362 IFS=$as_save_IFS
9363 
9364   ;;
9365 esac
9366 fi
9367 RM=$ac_cv_path_RM
9368 if test -n "$RM"; then
9369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9370 $as_echo "$RM" >&6; }
9371 else
9372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9373 $as_echo "no" >&6; }
9374 fi
9375 
9376 
9377         if test "x$RM" = x; then
9378           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9379         fi
9380       else
9381         # Otherwise we believe it is a complete path. Use it as it is.
9382         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
9383 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
9384         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9385 $as_echo_n "checking for RM... " >&6; }
9386         if test ! -x "$tool_specified"; then
9387           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9388 $as_echo "not found" >&6; }
9389           as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
9390         fi
9391         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9392 $as_echo "$tool_specified" >&6; }
9393       fi
9394     fi
9395   fi
9396 
9397 
9398 
9399   if test "x$RM" = x; then
9400     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
9401   fi
9402 
9403 
9404 
9405 
9406 
9407   # Publish this variable in the help.
9408 
9409 
9410   if test "x$SH" = x; then
9411     # The variable is not set by user, try to locate tool using the code snippet
9412     for ac_prog in sh
9413 do
9414   # Extract the first word of "$ac_prog", so it can be a program name with args.
9415 set dummy $ac_prog; ac_word=$2
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9417 $as_echo_n "checking for $ac_word... " >&6; }
9418 if ${ac_cv_path_SH+:} false; then :
9419   $as_echo_n "(cached) " >&6
9420 else
9421   case $SH in
9422   [\\/]* | ?:[\\/]*)
9423   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9424   ;;
9425   *)
9426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9427 for as_dir in $PATH
9428 do
9429   IFS=$as_save_IFS
9430   test -z "$as_dir" && as_dir=.
9431     for ac_exec_ext in '' $ac_executable_extensions; do
9432   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9433     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9435     break 2
9436   fi
9437 done
9438   done
9439 IFS=$as_save_IFS
9440 
9441   ;;
9442 esac
9443 fi
9444 SH=$ac_cv_path_SH
9445 if test -n "$SH"; then
9446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9447 $as_echo "$SH" >&6; }
9448 else
9449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9450 $as_echo "no" >&6; }
9451 fi
9452 
9453 
9454   test -n "$SH" && break
9455 done
9456 
9457   else
9458     # The variable is set, but is it from the command line or the environment?
9459 
9460     # Try to remove the string !SH! from our list.
9461     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
9462     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9463       # If it failed, the variable was not from the command line. Ignore it,
9464       # but warn the user (except for BASH, which is always set by the calling BASH).
9465       if test "xSH" != xBASH; then
9466         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
9467 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
9468       fi
9469       # Try to locate tool using the code snippet
9470       for ac_prog in sh
9471 do
9472   # Extract the first word of "$ac_prog", so it can be a program name with args.
9473 set dummy $ac_prog; ac_word=$2
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9475 $as_echo_n "checking for $ac_word... " >&6; }
9476 if ${ac_cv_path_SH+:} false; then :
9477   $as_echo_n "(cached) " >&6
9478 else
9479   case $SH in
9480   [\\/]* | ?:[\\/]*)
9481   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9482   ;;
9483   *)
9484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9485 for as_dir in $PATH
9486 do
9487   IFS=$as_save_IFS
9488   test -z "$as_dir" && as_dir=.
9489     for ac_exec_ext in '' $ac_executable_extensions; do
9490   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9491     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9493     break 2
9494   fi
9495 done
9496   done
9497 IFS=$as_save_IFS
9498 
9499   ;;
9500 esac
9501 fi
9502 SH=$ac_cv_path_SH
9503 if test -n "$SH"; then
9504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9505 $as_echo "$SH" >&6; }
9506 else
9507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9508 $as_echo "no" >&6; }
9509 fi
9510 
9511 
9512   test -n "$SH" && break
9513 done
9514 
9515     else
9516       # If it succeeded, then it was overridden by the user. We will use it
9517       # for the tool.
9518 
9519       # First remove it from the list of overridden variables, so we can test
9520       # for unknown variables in the end.
9521       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9522 
9523       # Check if the provided tool contains a complete path.
9524       tool_specified="$SH"
9525       tool_basename="${tool_specified##*/}"
9526       if test "x$tool_basename" = "x$tool_specified"; then
9527         # A command without a complete path is provided, search $PATH.
9528         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
9529 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
9530         # Extract the first word of "$tool_basename", so it can be a program name with args.
9531 set dummy $tool_basename; ac_word=$2
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9533 $as_echo_n "checking for $ac_word... " >&6; }
9534 if ${ac_cv_path_SH+:} false; then :
9535   $as_echo_n "(cached) " >&6
9536 else
9537   case $SH in
9538   [\\/]* | ?:[\\/]*)
9539   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9540   ;;
9541   *)
9542   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9543 for as_dir in $PATH
9544 do
9545   IFS=$as_save_IFS
9546   test -z "$as_dir" && as_dir=.
9547     for ac_exec_ext in '' $ac_executable_extensions; do
9548   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9549     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9551     break 2
9552   fi
9553 done
9554   done
9555 IFS=$as_save_IFS
9556 
9557   ;;
9558 esac
9559 fi
9560 SH=$ac_cv_path_SH
9561 if test -n "$SH"; then
9562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9563 $as_echo "$SH" >&6; }
9564 else
9565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9566 $as_echo "no" >&6; }
9567 fi
9568 
9569 
9570         if test "x$SH" = x; then
9571           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9572         fi
9573       else
9574         # Otherwise we believe it is a complete path. Use it as it is.
9575         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
9576 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
9577         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9578 $as_echo_n "checking for SH... " >&6; }
9579         if test ! -x "$tool_specified"; then
9580           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9581 $as_echo "not found" >&6; }
9582           as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
9583         fi
9584         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9585 $as_echo "$tool_specified" >&6; }
9586       fi
9587     fi
9588   fi
9589 
9590 
9591 
9592   if test "x$SH" = x; then
9593     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
9594   fi
9595 
9596 
9597 
9598 
9599 
9600   # Publish this variable in the help.
9601 
9602 
9603   if test "x$SORT" = x; then
9604     # The variable is not set by user, try to locate tool using the code snippet
9605     for ac_prog in sort
9606 do
9607   # Extract the first word of "$ac_prog", so it can be a program name with args.
9608 set dummy $ac_prog; ac_word=$2
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9610 $as_echo_n "checking for $ac_word... " >&6; }
9611 if ${ac_cv_path_SORT+:} false; then :
9612   $as_echo_n "(cached) " >&6
9613 else
9614   case $SORT in
9615   [\\/]* | ?:[\\/]*)
9616   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9617   ;;
9618   *)
9619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9620 for as_dir in $PATH
9621 do
9622   IFS=$as_save_IFS
9623   test -z "$as_dir" && as_dir=.
9624     for ac_exec_ext in '' $ac_executable_extensions; do
9625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9626     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9628     break 2
9629   fi
9630 done
9631   done
9632 IFS=$as_save_IFS
9633 
9634   ;;
9635 esac
9636 fi
9637 SORT=$ac_cv_path_SORT
9638 if test -n "$SORT"; then
9639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9640 $as_echo "$SORT" >&6; }
9641 else
9642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9643 $as_echo "no" >&6; }
9644 fi
9645 
9646 
9647   test -n "$SORT" && break
9648 done
9649 
9650   else
9651     # The variable is set, but is it from the command line or the environment?
9652 
9653     # Try to remove the string !SORT! from our list.
9654     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
9655     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9656       # If it failed, the variable was not from the command line. Ignore it,
9657       # but warn the user (except for BASH, which is always set by the calling BASH).
9658       if test "xSORT" != xBASH; then
9659         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
9660 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
9661       fi
9662       # Try to locate tool using the code snippet
9663       for ac_prog in sort
9664 do
9665   # Extract the first word of "$ac_prog", so it can be a program name with args.
9666 set dummy $ac_prog; ac_word=$2
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9668 $as_echo_n "checking for $ac_word... " >&6; }
9669 if ${ac_cv_path_SORT+:} false; then :
9670   $as_echo_n "(cached) " >&6
9671 else
9672   case $SORT in
9673   [\\/]* | ?:[\\/]*)
9674   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9675   ;;
9676   *)
9677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9678 for as_dir in $PATH
9679 do
9680   IFS=$as_save_IFS
9681   test -z "$as_dir" && as_dir=.
9682     for ac_exec_ext in '' $ac_executable_extensions; do
9683   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9684     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9686     break 2
9687   fi
9688 done
9689   done
9690 IFS=$as_save_IFS
9691 
9692   ;;
9693 esac
9694 fi
9695 SORT=$ac_cv_path_SORT
9696 if test -n "$SORT"; then
9697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9698 $as_echo "$SORT" >&6; }
9699 else
9700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9701 $as_echo "no" >&6; }
9702 fi
9703 
9704 
9705   test -n "$SORT" && break
9706 done
9707 
9708     else
9709       # If it succeeded, then it was overridden by the user. We will use it
9710       # for the tool.
9711 
9712       # First remove it from the list of overridden variables, so we can test
9713       # for unknown variables in the end.
9714       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9715 
9716       # Check if the provided tool contains a complete path.
9717       tool_specified="$SORT"
9718       tool_basename="${tool_specified##*/}"
9719       if test "x$tool_basename" = "x$tool_specified"; then
9720         # A command without a complete path is provided, search $PATH.
9721         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
9722 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
9723         # Extract the first word of "$tool_basename", so it can be a program name with args.
9724 set dummy $tool_basename; ac_word=$2
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9726 $as_echo_n "checking for $ac_word... " >&6; }
9727 if ${ac_cv_path_SORT+:} false; then :
9728   $as_echo_n "(cached) " >&6
9729 else
9730   case $SORT in
9731   [\\/]* | ?:[\\/]*)
9732   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9733   ;;
9734   *)
9735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9736 for as_dir in $PATH
9737 do
9738   IFS=$as_save_IFS
9739   test -z "$as_dir" && as_dir=.
9740     for ac_exec_ext in '' $ac_executable_extensions; do
9741   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9742     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9744     break 2
9745   fi
9746 done
9747   done
9748 IFS=$as_save_IFS
9749 
9750   ;;
9751 esac
9752 fi
9753 SORT=$ac_cv_path_SORT
9754 if test -n "$SORT"; then
9755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9756 $as_echo "$SORT" >&6; }
9757 else
9758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9759 $as_echo "no" >&6; }
9760 fi
9761 
9762 
9763         if test "x$SORT" = x; then
9764           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9765         fi
9766       else
9767         # Otherwise we believe it is a complete path. Use it as it is.
9768         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
9769 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
9770         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
9771 $as_echo_n "checking for SORT... " >&6; }
9772         if test ! -x "$tool_specified"; then
9773           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9774 $as_echo "not found" >&6; }
9775           as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
9776         fi
9777         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9778 $as_echo "$tool_specified" >&6; }
9779       fi
9780     fi
9781   fi
9782 
9783 
9784 
9785   if test "x$SORT" = x; then
9786     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
9787   fi
9788 
9789 
9790 
9791 
9792 
9793   # Publish this variable in the help.
9794 
9795 
9796   if test "x$TAIL" = x; then
9797     # The variable is not set by user, try to locate tool using the code snippet
9798     for ac_prog in tail
9799 do
9800   # Extract the first word of "$ac_prog", so it can be a program name with args.
9801 set dummy $ac_prog; ac_word=$2
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9803 $as_echo_n "checking for $ac_word... " >&6; }
9804 if ${ac_cv_path_TAIL+:} false; then :
9805   $as_echo_n "(cached) " >&6
9806 else
9807   case $TAIL in
9808   [\\/]* | ?:[\\/]*)
9809   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9810   ;;
9811   *)
9812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9813 for as_dir in $PATH
9814 do
9815   IFS=$as_save_IFS
9816   test -z "$as_dir" && as_dir=.
9817     for ac_exec_ext in '' $ac_executable_extensions; do
9818   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9819     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9821     break 2
9822   fi
9823 done
9824   done
9825 IFS=$as_save_IFS
9826 
9827   ;;
9828 esac
9829 fi
9830 TAIL=$ac_cv_path_TAIL
9831 if test -n "$TAIL"; then
9832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9833 $as_echo "$TAIL" >&6; }
9834 else
9835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9836 $as_echo "no" >&6; }
9837 fi
9838 
9839 
9840   test -n "$TAIL" && break
9841 done
9842 
9843   else
9844     # The variable is set, but is it from the command line or the environment?
9845 
9846     # Try to remove the string !TAIL! from our list.
9847     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
9848     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9849       # If it failed, the variable was not from the command line. Ignore it,
9850       # but warn the user (except for BASH, which is always set by the calling BASH).
9851       if test "xTAIL" != xBASH; then
9852         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
9853 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
9854       fi
9855       # Try to locate tool using the code snippet
9856       for ac_prog in tail
9857 do
9858   # Extract the first word of "$ac_prog", so it can be a program name with args.
9859 set dummy $ac_prog; ac_word=$2
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9861 $as_echo_n "checking for $ac_word... " >&6; }
9862 if ${ac_cv_path_TAIL+:} false; then :
9863   $as_echo_n "(cached) " >&6
9864 else
9865   case $TAIL in
9866   [\\/]* | ?:[\\/]*)
9867   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9868   ;;
9869   *)
9870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9871 for as_dir in $PATH
9872 do
9873   IFS=$as_save_IFS
9874   test -z "$as_dir" && as_dir=.
9875     for ac_exec_ext in '' $ac_executable_extensions; do
9876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9877     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9879     break 2
9880   fi
9881 done
9882   done
9883 IFS=$as_save_IFS
9884 
9885   ;;
9886 esac
9887 fi
9888 TAIL=$ac_cv_path_TAIL
9889 if test -n "$TAIL"; then
9890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9891 $as_echo "$TAIL" >&6; }
9892 else
9893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9894 $as_echo "no" >&6; }
9895 fi
9896 
9897 
9898   test -n "$TAIL" && break
9899 done
9900 
9901     else
9902       # If it succeeded, then it was overridden by the user. We will use it
9903       # for the tool.
9904 
9905       # First remove it from the list of overridden variables, so we can test
9906       # for unknown variables in the end.
9907       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9908 
9909       # Check if the provided tool contains a complete path.
9910       tool_specified="$TAIL"
9911       tool_basename="${tool_specified##*/}"
9912       if test "x$tool_basename" = "x$tool_specified"; then
9913         # A command without a complete path is provided, search $PATH.
9914         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
9915 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
9916         # Extract the first word of "$tool_basename", so it can be a program name with args.
9917 set dummy $tool_basename; ac_word=$2
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9919 $as_echo_n "checking for $ac_word... " >&6; }
9920 if ${ac_cv_path_TAIL+:} false; then :
9921   $as_echo_n "(cached) " >&6
9922 else
9923   case $TAIL in
9924   [\\/]* | ?:[\\/]*)
9925   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9926   ;;
9927   *)
9928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9929 for as_dir in $PATH
9930 do
9931   IFS=$as_save_IFS
9932   test -z "$as_dir" && as_dir=.
9933     for ac_exec_ext in '' $ac_executable_extensions; do
9934   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9935     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9937     break 2
9938   fi
9939 done
9940   done
9941 IFS=$as_save_IFS
9942 
9943   ;;
9944 esac
9945 fi
9946 TAIL=$ac_cv_path_TAIL
9947 if test -n "$TAIL"; then
9948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9949 $as_echo "$TAIL" >&6; }
9950 else
9951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9952 $as_echo "no" >&6; }
9953 fi
9954 
9955 
9956         if test "x$TAIL" = x; then
9957           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9958         fi
9959       else
9960         # Otherwise we believe it is a complete path. Use it as it is.
9961         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
9962 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
9963         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
9964 $as_echo_n "checking for TAIL... " >&6; }
9965         if test ! -x "$tool_specified"; then
9966           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9967 $as_echo "not found" >&6; }
9968           as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
9969         fi
9970         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9971 $as_echo "$tool_specified" >&6; }
9972       fi
9973     fi
9974   fi
9975 
9976 
9977 
9978   if test "x$TAIL" = x; then
9979     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
9980   fi
9981 
9982 
9983 
9984 
9985 
9986   # Publish this variable in the help.
9987 
9988 
9989   if test "x$TAR" = x; then
9990     # The variable is not set by user, try to locate tool using the code snippet
9991     for ac_prog in tar
9992 do
9993   # Extract the first word of "$ac_prog", so it can be a program name with args.
9994 set dummy $ac_prog; ac_word=$2
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9996 $as_echo_n "checking for $ac_word... " >&6; }
9997 if ${ac_cv_path_TAR+:} false; then :
9998   $as_echo_n "(cached) " >&6
9999 else
10000   case $TAR in
10001   [\\/]* | ?:[\\/]*)
10002   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10003   ;;
10004   *)
10005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10006 for as_dir in $PATH
10007 do
10008   IFS=$as_save_IFS
10009   test -z "$as_dir" && as_dir=.
10010     for ac_exec_ext in '' $ac_executable_extensions; do
10011   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10012     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10014     break 2
10015   fi
10016 done
10017   done
10018 IFS=$as_save_IFS
10019 
10020   ;;
10021 esac
10022 fi
10023 TAR=$ac_cv_path_TAR
10024 if test -n "$TAR"; then
10025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10026 $as_echo "$TAR" >&6; }
10027 else
10028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10029 $as_echo "no" >&6; }
10030 fi
10031 
10032 
10033   test -n "$TAR" && break
10034 done
10035 
10036   else
10037     # The variable is set, but is it from the command line or the environment?
10038 
10039     # Try to remove the string !TAR! from our list.
10040     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
10041     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10042       # If it failed, the variable was not from the command line. Ignore it,
10043       # but warn the user (except for BASH, which is always set by the calling BASH).
10044       if test "xTAR" != xBASH; then
10045         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
10046 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
10047       fi
10048       # Try to locate tool using the code snippet
10049       for ac_prog in tar
10050 do
10051   # Extract the first word of "$ac_prog", so it can be a program name with args.
10052 set dummy $ac_prog; ac_word=$2
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10054 $as_echo_n "checking for $ac_word... " >&6; }
10055 if ${ac_cv_path_TAR+:} false; then :
10056   $as_echo_n "(cached) " >&6
10057 else
10058   case $TAR in
10059   [\\/]* | ?:[\\/]*)
10060   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10061   ;;
10062   *)
10063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10064 for as_dir in $PATH
10065 do
10066   IFS=$as_save_IFS
10067   test -z "$as_dir" && as_dir=.
10068     for ac_exec_ext in '' $ac_executable_extensions; do
10069   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10070     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10072     break 2
10073   fi
10074 done
10075   done
10076 IFS=$as_save_IFS
10077 
10078   ;;
10079 esac
10080 fi
10081 TAR=$ac_cv_path_TAR
10082 if test -n "$TAR"; then
10083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10084 $as_echo "$TAR" >&6; }
10085 else
10086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10087 $as_echo "no" >&6; }
10088 fi
10089 
10090 
10091   test -n "$TAR" && break
10092 done
10093 
10094     else
10095       # If it succeeded, then it was overridden by the user. We will use it
10096       # for the tool.
10097 
10098       # First remove it from the list of overridden variables, so we can test
10099       # for unknown variables in the end.
10100       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10101 
10102       # Check if the provided tool contains a complete path.
10103       tool_specified="$TAR"
10104       tool_basename="${tool_specified##*/}"
10105       if test "x$tool_basename" = "x$tool_specified"; then
10106         # A command without a complete path is provided, search $PATH.
10107         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
10108 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
10109         # Extract the first word of "$tool_basename", so it can be a program name with args.
10110 set dummy $tool_basename; ac_word=$2
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10112 $as_echo_n "checking for $ac_word... " >&6; }
10113 if ${ac_cv_path_TAR+:} false; then :
10114   $as_echo_n "(cached) " >&6
10115 else
10116   case $TAR in
10117   [\\/]* | ?:[\\/]*)
10118   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10119   ;;
10120   *)
10121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10122 for as_dir in $PATH
10123 do
10124   IFS=$as_save_IFS
10125   test -z "$as_dir" && as_dir=.
10126     for ac_exec_ext in '' $ac_executable_extensions; do
10127   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10128     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10130     break 2
10131   fi
10132 done
10133   done
10134 IFS=$as_save_IFS
10135 
10136   ;;
10137 esac
10138 fi
10139 TAR=$ac_cv_path_TAR
10140 if test -n "$TAR"; then
10141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10142 $as_echo "$TAR" >&6; }
10143 else
10144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10145 $as_echo "no" >&6; }
10146 fi
10147 
10148 
10149         if test "x$TAR" = x; then
10150           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10151         fi
10152       else
10153         # Otherwise we believe it is a complete path. Use it as it is.
10154         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
10155 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
10156         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
10157 $as_echo_n "checking for TAR... " >&6; }
10158         if test ! -x "$tool_specified"; then
10159           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10160 $as_echo "not found" >&6; }
10161           as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
10162         fi
10163         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10164 $as_echo "$tool_specified" >&6; }
10165       fi
10166     fi
10167   fi
10168 
10169 
10170 
10171   if test "x$TAR" = x; then
10172     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
10173   fi
10174 
10175 
10176 
10177 
10178 
10179   # Publish this variable in the help.
10180 
10181 
10182   if test "x$TEE" = x; then
10183     # The variable is not set by user, try to locate tool using the code snippet
10184     for ac_prog in tee
10185 do
10186   # Extract the first word of "$ac_prog", so it can be a program name with args.
10187 set dummy $ac_prog; ac_word=$2
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10189 $as_echo_n "checking for $ac_word... " >&6; }
10190 if ${ac_cv_path_TEE+:} false; then :
10191   $as_echo_n "(cached) " >&6
10192 else
10193   case $TEE in
10194   [\\/]* | ?:[\\/]*)
10195   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10196   ;;
10197   *)
10198   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10199 for as_dir in $PATH
10200 do
10201   IFS=$as_save_IFS
10202   test -z "$as_dir" && as_dir=.
10203     for ac_exec_ext in '' $ac_executable_extensions; do
10204   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10205     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10207     break 2
10208   fi
10209 done
10210   done
10211 IFS=$as_save_IFS
10212 
10213   ;;
10214 esac
10215 fi
10216 TEE=$ac_cv_path_TEE
10217 if test -n "$TEE"; then
10218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10219 $as_echo "$TEE" >&6; }
10220 else
10221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10222 $as_echo "no" >&6; }
10223 fi
10224 
10225 
10226   test -n "$TEE" && break
10227 done
10228 
10229   else
10230     # The variable is set, but is it from the command line or the environment?
10231 
10232     # Try to remove the string !TEE! from our list.
10233     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
10234     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10235       # If it failed, the variable was not from the command line. Ignore it,
10236       # but warn the user (except for BASH, which is always set by the calling BASH).
10237       if test "xTEE" != xBASH; then
10238         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
10239 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
10240       fi
10241       # Try to locate tool using the code snippet
10242       for ac_prog in tee
10243 do
10244   # Extract the first word of "$ac_prog", so it can be a program name with args.
10245 set dummy $ac_prog; ac_word=$2
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10247 $as_echo_n "checking for $ac_word... " >&6; }
10248 if ${ac_cv_path_TEE+:} false; then :
10249   $as_echo_n "(cached) " >&6
10250 else
10251   case $TEE in
10252   [\\/]* | ?:[\\/]*)
10253   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10254   ;;
10255   *)
10256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10257 for as_dir in $PATH
10258 do
10259   IFS=$as_save_IFS
10260   test -z "$as_dir" && as_dir=.
10261     for ac_exec_ext in '' $ac_executable_extensions; do
10262   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10263     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10265     break 2
10266   fi
10267 done
10268   done
10269 IFS=$as_save_IFS
10270 
10271   ;;
10272 esac
10273 fi
10274 TEE=$ac_cv_path_TEE
10275 if test -n "$TEE"; then
10276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10277 $as_echo "$TEE" >&6; }
10278 else
10279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10280 $as_echo "no" >&6; }
10281 fi
10282 
10283 
10284   test -n "$TEE" && break
10285 done
10286 
10287     else
10288       # If it succeeded, then it was overridden by the user. We will use it
10289       # for the tool.
10290 
10291       # First remove it from the list of overridden variables, so we can test
10292       # for unknown variables in the end.
10293       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10294 
10295       # Check if the provided tool contains a complete path.
10296       tool_specified="$TEE"
10297       tool_basename="${tool_specified##*/}"
10298       if test "x$tool_basename" = "x$tool_specified"; then
10299         # A command without a complete path is provided, search $PATH.
10300         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
10301 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
10302         # Extract the first word of "$tool_basename", so it can be a program name with args.
10303 set dummy $tool_basename; ac_word=$2
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10305 $as_echo_n "checking for $ac_word... " >&6; }
10306 if ${ac_cv_path_TEE+:} false; then :
10307   $as_echo_n "(cached) " >&6
10308 else
10309   case $TEE in
10310   [\\/]* | ?:[\\/]*)
10311   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10312   ;;
10313   *)
10314   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10315 for as_dir in $PATH
10316 do
10317   IFS=$as_save_IFS
10318   test -z "$as_dir" && as_dir=.
10319     for ac_exec_ext in '' $ac_executable_extensions; do
10320   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10321     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10323     break 2
10324   fi
10325 done
10326   done
10327 IFS=$as_save_IFS
10328 
10329   ;;
10330 esac
10331 fi
10332 TEE=$ac_cv_path_TEE
10333 if test -n "$TEE"; then
10334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10335 $as_echo "$TEE" >&6; }
10336 else
10337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10338 $as_echo "no" >&6; }
10339 fi
10340 
10341 
10342         if test "x$TEE" = x; then
10343           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10344         fi
10345       else
10346         # Otherwise we believe it is a complete path. Use it as it is.
10347         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
10348 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
10349         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
10350 $as_echo_n "checking for TEE... " >&6; }
10351         if test ! -x "$tool_specified"; then
10352           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10353 $as_echo "not found" >&6; }
10354           as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
10355         fi
10356         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10357 $as_echo "$tool_specified" >&6; }
10358       fi
10359     fi
10360   fi
10361 
10362 
10363 
10364   if test "x$TEE" = x; then
10365     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
10366   fi
10367 
10368 
10369 
10370 
10371 
10372   # Publish this variable in the help.
10373 
10374 
10375   if test "x$TOUCH" = x; then
10376     # The variable is not set by user, try to locate tool using the code snippet
10377     for ac_prog in touch
10378 do
10379   # Extract the first word of "$ac_prog", so it can be a program name with args.
10380 set dummy $ac_prog; ac_word=$2
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10382 $as_echo_n "checking for $ac_word... " >&6; }
10383 if ${ac_cv_path_TOUCH+:} false; then :
10384   $as_echo_n "(cached) " >&6
10385 else
10386   case $TOUCH in
10387   [\\/]* | ?:[\\/]*)
10388   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10389   ;;
10390   *)
10391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10392 for as_dir in $PATH
10393 do
10394   IFS=$as_save_IFS
10395   test -z "$as_dir" && as_dir=.
10396     for ac_exec_ext in '' $ac_executable_extensions; do
10397   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10398     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10400     break 2
10401   fi
10402 done
10403   done
10404 IFS=$as_save_IFS
10405 
10406   ;;
10407 esac
10408 fi
10409 TOUCH=$ac_cv_path_TOUCH
10410 if test -n "$TOUCH"; then
10411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10412 $as_echo "$TOUCH" >&6; }
10413 else
10414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10415 $as_echo "no" >&6; }
10416 fi
10417 
10418 
10419   test -n "$TOUCH" && break
10420 done
10421 
10422   else
10423     # The variable is set, but is it from the command line or the environment?
10424 
10425     # Try to remove the string !TOUCH! from our list.
10426     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
10427     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10428       # If it failed, the variable was not from the command line. Ignore it,
10429       # but warn the user (except for BASH, which is always set by the calling BASH).
10430       if test "xTOUCH" != xBASH; then
10431         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
10432 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
10433       fi
10434       # Try to locate tool using the code snippet
10435       for ac_prog in touch
10436 do
10437   # Extract the first word of "$ac_prog", so it can be a program name with args.
10438 set dummy $ac_prog; ac_word=$2
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10440 $as_echo_n "checking for $ac_word... " >&6; }
10441 if ${ac_cv_path_TOUCH+:} false; then :
10442   $as_echo_n "(cached) " >&6
10443 else
10444   case $TOUCH in
10445   [\\/]* | ?:[\\/]*)
10446   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10447   ;;
10448   *)
10449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10450 for as_dir in $PATH
10451 do
10452   IFS=$as_save_IFS
10453   test -z "$as_dir" && as_dir=.
10454     for ac_exec_ext in '' $ac_executable_extensions; do
10455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10456     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10458     break 2
10459   fi
10460 done
10461   done
10462 IFS=$as_save_IFS
10463 
10464   ;;
10465 esac
10466 fi
10467 TOUCH=$ac_cv_path_TOUCH
10468 if test -n "$TOUCH"; then
10469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10470 $as_echo "$TOUCH" >&6; }
10471 else
10472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10473 $as_echo "no" >&6; }
10474 fi
10475 
10476 
10477   test -n "$TOUCH" && break
10478 done
10479 
10480     else
10481       # If it succeeded, then it was overridden by the user. We will use it
10482       # for the tool.
10483 
10484       # First remove it from the list of overridden variables, so we can test
10485       # for unknown variables in the end.
10486       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10487 
10488       # Check if the provided tool contains a complete path.
10489       tool_specified="$TOUCH"
10490       tool_basename="${tool_specified##*/}"
10491       if test "x$tool_basename" = "x$tool_specified"; then
10492         # A command without a complete path is provided, search $PATH.
10493         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
10494 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
10495         # Extract the first word of "$tool_basename", so it can be a program name with args.
10496 set dummy $tool_basename; ac_word=$2
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10498 $as_echo_n "checking for $ac_word... " >&6; }
10499 if ${ac_cv_path_TOUCH+:} false; then :
10500   $as_echo_n "(cached) " >&6
10501 else
10502   case $TOUCH in
10503   [\\/]* | ?:[\\/]*)
10504   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10505   ;;
10506   *)
10507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10508 for as_dir in $PATH
10509 do
10510   IFS=$as_save_IFS
10511   test -z "$as_dir" && as_dir=.
10512     for ac_exec_ext in '' $ac_executable_extensions; do
10513   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10514     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10516     break 2
10517   fi
10518 done
10519   done
10520 IFS=$as_save_IFS
10521 
10522   ;;
10523 esac
10524 fi
10525 TOUCH=$ac_cv_path_TOUCH
10526 if test -n "$TOUCH"; then
10527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10528 $as_echo "$TOUCH" >&6; }
10529 else
10530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10531 $as_echo "no" >&6; }
10532 fi
10533 
10534 
10535         if test "x$TOUCH" = x; then
10536           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10537         fi
10538       else
10539         # Otherwise we believe it is a complete path. Use it as it is.
10540         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
10541 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
10542         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10543 $as_echo_n "checking for TOUCH... " >&6; }
10544         if test ! -x "$tool_specified"; then
10545           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10546 $as_echo "not found" >&6; }
10547           as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
10548         fi
10549         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10550 $as_echo "$tool_specified" >&6; }
10551       fi
10552     fi
10553   fi
10554 
10555 
10556 
10557   if test "x$TOUCH" = x; then
10558     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
10559   fi
10560 
10561 
10562 
10563 
10564 
10565   # Publish this variable in the help.
10566 
10567 
10568   if test "x$TR" = x; then
10569     # The variable is not set by user, try to locate tool using the code snippet
10570     for ac_prog in tr
10571 do
10572   # Extract the first word of "$ac_prog", so it can be a program name with args.
10573 set dummy $ac_prog; ac_word=$2
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10575 $as_echo_n "checking for $ac_word... " >&6; }
10576 if ${ac_cv_path_TR+:} false; then :
10577   $as_echo_n "(cached) " >&6
10578 else
10579   case $TR in
10580   [\\/]* | ?:[\\/]*)
10581   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10582   ;;
10583   *)
10584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10585 for as_dir in $PATH
10586 do
10587   IFS=$as_save_IFS
10588   test -z "$as_dir" && as_dir=.
10589     for ac_exec_ext in '' $ac_executable_extensions; do
10590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10591     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10593     break 2
10594   fi
10595 done
10596   done
10597 IFS=$as_save_IFS
10598 
10599   ;;
10600 esac
10601 fi
10602 TR=$ac_cv_path_TR
10603 if test -n "$TR"; then
10604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10605 $as_echo "$TR" >&6; }
10606 else
10607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10608 $as_echo "no" >&6; }
10609 fi
10610 
10611 
10612   test -n "$TR" && break
10613 done
10614 
10615   else
10616     # The variable is set, but is it from the command line or the environment?
10617 
10618     # Try to remove the string !TR! from our list.
10619     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
10620     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10621       # If it failed, the variable was not from the command line. Ignore it,
10622       # but warn the user (except for BASH, which is always set by the calling BASH).
10623       if test "xTR" != xBASH; then
10624         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
10625 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
10626       fi
10627       # Try to locate tool using the code snippet
10628       for ac_prog in tr
10629 do
10630   # Extract the first word of "$ac_prog", so it can be a program name with args.
10631 set dummy $ac_prog; ac_word=$2
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10633 $as_echo_n "checking for $ac_word... " >&6; }
10634 if ${ac_cv_path_TR+:} false; then :
10635   $as_echo_n "(cached) " >&6
10636 else
10637   case $TR in
10638   [\\/]* | ?:[\\/]*)
10639   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10640   ;;
10641   *)
10642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10643 for as_dir in $PATH
10644 do
10645   IFS=$as_save_IFS
10646   test -z "$as_dir" && as_dir=.
10647     for ac_exec_ext in '' $ac_executable_extensions; do
10648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10649     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10651     break 2
10652   fi
10653 done
10654   done
10655 IFS=$as_save_IFS
10656 
10657   ;;
10658 esac
10659 fi
10660 TR=$ac_cv_path_TR
10661 if test -n "$TR"; then
10662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10663 $as_echo "$TR" >&6; }
10664 else
10665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10666 $as_echo "no" >&6; }
10667 fi
10668 
10669 
10670   test -n "$TR" && break
10671 done
10672 
10673     else
10674       # If it succeeded, then it was overridden by the user. We will use it
10675       # for the tool.
10676 
10677       # First remove it from the list of overridden variables, so we can test
10678       # for unknown variables in the end.
10679       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10680 
10681       # Check if the provided tool contains a complete path.
10682       tool_specified="$TR"
10683       tool_basename="${tool_specified##*/}"
10684       if test "x$tool_basename" = "x$tool_specified"; then
10685         # A command without a complete path is provided, search $PATH.
10686         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
10687 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
10688         # Extract the first word of "$tool_basename", so it can be a program name with args.
10689 set dummy $tool_basename; ac_word=$2
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10691 $as_echo_n "checking for $ac_word... " >&6; }
10692 if ${ac_cv_path_TR+:} false; then :
10693   $as_echo_n "(cached) " >&6
10694 else
10695   case $TR in
10696   [\\/]* | ?:[\\/]*)
10697   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10698   ;;
10699   *)
10700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10701 for as_dir in $PATH
10702 do
10703   IFS=$as_save_IFS
10704   test -z "$as_dir" && as_dir=.
10705     for ac_exec_ext in '' $ac_executable_extensions; do
10706   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10707     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10709     break 2
10710   fi
10711 done
10712   done
10713 IFS=$as_save_IFS
10714 
10715   ;;
10716 esac
10717 fi
10718 TR=$ac_cv_path_TR
10719 if test -n "$TR"; then
10720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10721 $as_echo "$TR" >&6; }
10722 else
10723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10724 $as_echo "no" >&6; }
10725 fi
10726 
10727 
10728         if test "x$TR" = x; then
10729           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10730         fi
10731       else
10732         # Otherwise we believe it is a complete path. Use it as it is.
10733         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
10734 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
10735         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
10736 $as_echo_n "checking for TR... " >&6; }
10737         if test ! -x "$tool_specified"; then
10738           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10739 $as_echo "not found" >&6; }
10740           as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
10741         fi
10742         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10743 $as_echo "$tool_specified" >&6; }
10744       fi
10745     fi
10746   fi
10747 
10748 
10749 
10750   if test "x$TR" = x; then
10751     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
10752   fi
10753 
10754 
10755 
10756 
10757 
10758   # Publish this variable in the help.
10759 
10760 
10761   if test "x$UNAME" = x; then
10762     # The variable is not set by user, try to locate tool using the code snippet
10763     for ac_prog in uname
10764 do
10765   # Extract the first word of "$ac_prog", so it can be a program name with args.
10766 set dummy $ac_prog; ac_word=$2
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10768 $as_echo_n "checking for $ac_word... " >&6; }
10769 if ${ac_cv_path_UNAME+:} false; then :
10770   $as_echo_n "(cached) " >&6
10771 else
10772   case $UNAME in
10773   [\\/]* | ?:[\\/]*)
10774   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10775   ;;
10776   *)
10777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10778 for as_dir in $PATH
10779 do
10780   IFS=$as_save_IFS
10781   test -z "$as_dir" && as_dir=.
10782     for ac_exec_ext in '' $ac_executable_extensions; do
10783   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10784     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10786     break 2
10787   fi
10788 done
10789   done
10790 IFS=$as_save_IFS
10791 
10792   ;;
10793 esac
10794 fi
10795 UNAME=$ac_cv_path_UNAME
10796 if test -n "$UNAME"; then
10797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10798 $as_echo "$UNAME" >&6; }
10799 else
10800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10801 $as_echo "no" >&6; }
10802 fi
10803 
10804 
10805   test -n "$UNAME" && break
10806 done
10807 
10808   else
10809     # The variable is set, but is it from the command line or the environment?
10810 
10811     # Try to remove the string !UNAME! from our list.
10812     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
10813     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10814       # If it failed, the variable was not from the command line. Ignore it,
10815       # but warn the user (except for BASH, which is always set by the calling BASH).
10816       if test "xUNAME" != xBASH; then
10817         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
10818 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
10819       fi
10820       # Try to locate tool using the code snippet
10821       for ac_prog in uname
10822 do
10823   # Extract the first word of "$ac_prog", so it can be a program name with args.
10824 set dummy $ac_prog; ac_word=$2
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10826 $as_echo_n "checking for $ac_word... " >&6; }
10827 if ${ac_cv_path_UNAME+:} false; then :
10828   $as_echo_n "(cached) " >&6
10829 else
10830   case $UNAME in
10831   [\\/]* | ?:[\\/]*)
10832   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10833   ;;
10834   *)
10835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10836 for as_dir in $PATH
10837 do
10838   IFS=$as_save_IFS
10839   test -z "$as_dir" && as_dir=.
10840     for ac_exec_ext in '' $ac_executable_extensions; do
10841   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10842     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10844     break 2
10845   fi
10846 done
10847   done
10848 IFS=$as_save_IFS
10849 
10850   ;;
10851 esac
10852 fi
10853 UNAME=$ac_cv_path_UNAME
10854 if test -n "$UNAME"; then
10855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10856 $as_echo "$UNAME" >&6; }
10857 else
10858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10859 $as_echo "no" >&6; }
10860 fi
10861 
10862 
10863   test -n "$UNAME" && break
10864 done
10865 
10866     else
10867       # If it succeeded, then it was overridden by the user. We will use it
10868       # for the tool.
10869 
10870       # First remove it from the list of overridden variables, so we can test
10871       # for unknown variables in the end.
10872       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10873 
10874       # Check if the provided tool contains a complete path.
10875       tool_specified="$UNAME"
10876       tool_basename="${tool_specified##*/}"
10877       if test "x$tool_basename" = "x$tool_specified"; then
10878         # A command without a complete path is provided, search $PATH.
10879         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
10880 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
10881         # Extract the first word of "$tool_basename", so it can be a program name with args.
10882 set dummy $tool_basename; ac_word=$2
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10884 $as_echo_n "checking for $ac_word... " >&6; }
10885 if ${ac_cv_path_UNAME+:} false; then :
10886   $as_echo_n "(cached) " >&6
10887 else
10888   case $UNAME in
10889   [\\/]* | ?:[\\/]*)
10890   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10891   ;;
10892   *)
10893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10894 for as_dir in $PATH
10895 do
10896   IFS=$as_save_IFS
10897   test -z "$as_dir" && as_dir=.
10898     for ac_exec_ext in '' $ac_executable_extensions; do
10899   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10900     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10902     break 2
10903   fi
10904 done
10905   done
10906 IFS=$as_save_IFS
10907 
10908   ;;
10909 esac
10910 fi
10911 UNAME=$ac_cv_path_UNAME
10912 if test -n "$UNAME"; then
10913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10914 $as_echo "$UNAME" >&6; }
10915 else
10916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10917 $as_echo "no" >&6; }
10918 fi
10919 
10920 
10921         if test "x$UNAME" = x; then
10922           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10923         fi
10924       else
10925         # Otherwise we believe it is a complete path. Use it as it is.
10926         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
10927 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
10928         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
10929 $as_echo_n "checking for UNAME... " >&6; }
10930         if test ! -x "$tool_specified"; then
10931           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10932 $as_echo "not found" >&6; }
10933           as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
10934         fi
10935         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10936 $as_echo "$tool_specified" >&6; }
10937       fi
10938     fi
10939   fi
10940 
10941 
10942 
10943   if test "x$UNAME" = x; then
10944     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
10945   fi
10946 
10947 
10948 
10949 
10950 
10951   # Publish this variable in the help.
10952 
10953 
10954   if test "x$UNIQ" = x; then
10955     # The variable is not set by user, try to locate tool using the code snippet
10956     for ac_prog in uniq
10957 do
10958   # Extract the first word of "$ac_prog", so it can be a program name with args.
10959 set dummy $ac_prog; ac_word=$2
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10961 $as_echo_n "checking for $ac_word... " >&6; }
10962 if ${ac_cv_path_UNIQ+:} false; then :
10963   $as_echo_n "(cached) " >&6
10964 else
10965   case $UNIQ in
10966   [\\/]* | ?:[\\/]*)
10967   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10968   ;;
10969   *)
10970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10971 for as_dir in $PATH
10972 do
10973   IFS=$as_save_IFS
10974   test -z "$as_dir" && as_dir=.
10975     for ac_exec_ext in '' $ac_executable_extensions; do
10976   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10977     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10979     break 2
10980   fi
10981 done
10982   done
10983 IFS=$as_save_IFS
10984 
10985   ;;
10986 esac
10987 fi
10988 UNIQ=$ac_cv_path_UNIQ
10989 if test -n "$UNIQ"; then
10990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10991 $as_echo "$UNIQ" >&6; }
10992 else
10993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10994 $as_echo "no" >&6; }
10995 fi
10996 
10997 
10998   test -n "$UNIQ" && break
10999 done
11000 
11001   else
11002     # The variable is set, but is it from the command line or the environment?
11003 
11004     # Try to remove the string !UNIQ! from our list.
11005     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
11006     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11007       # If it failed, the variable was not from the command line. Ignore it,
11008       # but warn the user (except for BASH, which is always set by the calling BASH).
11009       if test "xUNIQ" != xBASH; then
11010         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
11011 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
11012       fi
11013       # Try to locate tool using the code snippet
11014       for ac_prog in uniq
11015 do
11016   # Extract the first word of "$ac_prog", so it can be a program name with args.
11017 set dummy $ac_prog; ac_word=$2
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11019 $as_echo_n "checking for $ac_word... " >&6; }
11020 if ${ac_cv_path_UNIQ+:} false; then :
11021   $as_echo_n "(cached) " >&6
11022 else
11023   case $UNIQ in
11024   [\\/]* | ?:[\\/]*)
11025   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11026   ;;
11027   *)
11028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11029 for as_dir in $PATH
11030 do
11031   IFS=$as_save_IFS
11032   test -z "$as_dir" && as_dir=.
11033     for ac_exec_ext in '' $ac_executable_extensions; do
11034   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11035     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11037     break 2
11038   fi
11039 done
11040   done
11041 IFS=$as_save_IFS
11042 
11043   ;;
11044 esac
11045 fi
11046 UNIQ=$ac_cv_path_UNIQ
11047 if test -n "$UNIQ"; then
11048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11049 $as_echo "$UNIQ" >&6; }
11050 else
11051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052 $as_echo "no" >&6; }
11053 fi
11054 
11055 
11056   test -n "$UNIQ" && break
11057 done
11058 
11059     else
11060       # If it succeeded, then it was overridden by the user. We will use it
11061       # for the tool.
11062 
11063       # First remove it from the list of overridden variables, so we can test
11064       # for unknown variables in the end.
11065       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11066 
11067       # Check if the provided tool contains a complete path.
11068       tool_specified="$UNIQ"
11069       tool_basename="${tool_specified##*/}"
11070       if test "x$tool_basename" = "x$tool_specified"; then
11071         # A command without a complete path is provided, search $PATH.
11072         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
11073 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
11074         # Extract the first word of "$tool_basename", so it can be a program name with args.
11075 set dummy $tool_basename; ac_word=$2
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11077 $as_echo_n "checking for $ac_word... " >&6; }
11078 if ${ac_cv_path_UNIQ+:} false; then :
11079   $as_echo_n "(cached) " >&6
11080 else
11081   case $UNIQ in
11082   [\\/]* | ?:[\\/]*)
11083   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11084   ;;
11085   *)
11086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11087 for as_dir in $PATH
11088 do
11089   IFS=$as_save_IFS
11090   test -z "$as_dir" && as_dir=.
11091     for ac_exec_ext in '' $ac_executable_extensions; do
11092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11093     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11095     break 2
11096   fi
11097 done
11098   done
11099 IFS=$as_save_IFS
11100 
11101   ;;
11102 esac
11103 fi
11104 UNIQ=$ac_cv_path_UNIQ
11105 if test -n "$UNIQ"; then
11106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11107 $as_echo "$UNIQ" >&6; }
11108 else
11109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11110 $as_echo "no" >&6; }
11111 fi
11112 
11113 
11114         if test "x$UNIQ" = x; then
11115           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11116         fi
11117       else
11118         # Otherwise we believe it is a complete path. Use it as it is.
11119         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
11120 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
11121         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
11122 $as_echo_n "checking for UNIQ... " >&6; }
11123         if test ! -x "$tool_specified"; then
11124           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11125 $as_echo "not found" >&6; }
11126           as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
11127         fi
11128         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11129 $as_echo "$tool_specified" >&6; }
11130       fi
11131     fi
11132   fi
11133 
11134 
11135 
11136   if test "x$UNIQ" = x; then
11137     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
11138   fi
11139 
11140 
11141 
11142 
11143 
11144   # Publish this variable in the help.
11145 
11146 
11147   if test "x$WC" = x; then
11148     # The variable is not set by user, try to locate tool using the code snippet
11149     for ac_prog in wc
11150 do
11151   # Extract the first word of "$ac_prog", so it can be a program name with args.
11152 set dummy $ac_prog; ac_word=$2
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11154 $as_echo_n "checking for $ac_word... " >&6; }
11155 if ${ac_cv_path_WC+:} false; then :
11156   $as_echo_n "(cached) " >&6
11157 else
11158   case $WC in
11159   [\\/]* | ?:[\\/]*)
11160   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11161   ;;
11162   *)
11163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164 for as_dir in $PATH
11165 do
11166   IFS=$as_save_IFS
11167   test -z "$as_dir" && as_dir=.
11168     for ac_exec_ext in '' $ac_executable_extensions; do
11169   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11170     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11172     break 2
11173   fi
11174 done
11175   done
11176 IFS=$as_save_IFS
11177 
11178   ;;
11179 esac
11180 fi
11181 WC=$ac_cv_path_WC
11182 if test -n "$WC"; then
11183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11184 $as_echo "$WC" >&6; }
11185 else
11186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11187 $as_echo "no" >&6; }
11188 fi
11189 
11190 
11191   test -n "$WC" && break
11192 done
11193 
11194   else
11195     # The variable is set, but is it from the command line or the environment?
11196 
11197     # Try to remove the string !WC! from our list.
11198     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
11199     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11200       # If it failed, the variable was not from the command line. Ignore it,
11201       # but warn the user (except for BASH, which is always set by the calling BASH).
11202       if test "xWC" != xBASH; then
11203         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
11204 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
11205       fi
11206       # Try to locate tool using the code snippet
11207       for ac_prog in wc
11208 do
11209   # Extract the first word of "$ac_prog", so it can be a program name with args.
11210 set dummy $ac_prog; ac_word=$2
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11212 $as_echo_n "checking for $ac_word... " >&6; }
11213 if ${ac_cv_path_WC+:} false; then :
11214   $as_echo_n "(cached) " >&6
11215 else
11216   case $WC in
11217   [\\/]* | ?:[\\/]*)
11218   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11219   ;;
11220   *)
11221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11222 for as_dir in $PATH
11223 do
11224   IFS=$as_save_IFS
11225   test -z "$as_dir" && as_dir=.
11226     for ac_exec_ext in '' $ac_executable_extensions; do
11227   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11228     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11230     break 2
11231   fi
11232 done
11233   done
11234 IFS=$as_save_IFS
11235 
11236   ;;
11237 esac
11238 fi
11239 WC=$ac_cv_path_WC
11240 if test -n "$WC"; then
11241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11242 $as_echo "$WC" >&6; }
11243 else
11244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11245 $as_echo "no" >&6; }
11246 fi
11247 
11248 
11249   test -n "$WC" && break
11250 done
11251 
11252     else
11253       # If it succeeded, then it was overridden by the user. We will use it
11254       # for the tool.
11255 
11256       # First remove it from the list of overridden variables, so we can test
11257       # for unknown variables in the end.
11258       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11259 
11260       # Check if the provided tool contains a complete path.
11261       tool_specified="$WC"
11262       tool_basename="${tool_specified##*/}"
11263       if test "x$tool_basename" = "x$tool_specified"; then
11264         # A command without a complete path is provided, search $PATH.
11265         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
11266 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
11267         # Extract the first word of "$tool_basename", so it can be a program name with args.
11268 set dummy $tool_basename; ac_word=$2
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11270 $as_echo_n "checking for $ac_word... " >&6; }
11271 if ${ac_cv_path_WC+:} false; then :
11272   $as_echo_n "(cached) " >&6
11273 else
11274   case $WC in
11275   [\\/]* | ?:[\\/]*)
11276   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11277   ;;
11278   *)
11279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11280 for as_dir in $PATH
11281 do
11282   IFS=$as_save_IFS
11283   test -z "$as_dir" && as_dir=.
11284     for ac_exec_ext in '' $ac_executable_extensions; do
11285   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11286     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11288     break 2
11289   fi
11290 done
11291   done
11292 IFS=$as_save_IFS
11293 
11294   ;;
11295 esac
11296 fi
11297 WC=$ac_cv_path_WC
11298 if test -n "$WC"; then
11299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11300 $as_echo "$WC" >&6; }
11301 else
11302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11303 $as_echo "no" >&6; }
11304 fi
11305 
11306 
11307         if test "x$WC" = x; then
11308           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11309         fi
11310       else
11311         # Otherwise we believe it is a complete path. Use it as it is.
11312         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
11313 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
11314         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
11315 $as_echo_n "checking for WC... " >&6; }
11316         if test ! -x "$tool_specified"; then
11317           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11318 $as_echo "not found" >&6; }
11319           as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
11320         fi
11321         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11322 $as_echo "$tool_specified" >&6; }
11323       fi
11324     fi
11325   fi
11326 
11327 
11328 
11329   if test "x$WC" = x; then
11330     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
11331   fi
11332 
11333 
11334 
11335 
11336 
11337   # Publish this variable in the help.
11338 
11339 
11340   if test "x$WHICH" = x; then
11341     # The variable is not set by user, try to locate tool using the code snippet
11342     for ac_prog in which
11343 do
11344   # Extract the first word of "$ac_prog", so it can be a program name with args.
11345 set dummy $ac_prog; ac_word=$2
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11347 $as_echo_n "checking for $ac_word... " >&6; }
11348 if ${ac_cv_path_WHICH+:} false; then :
11349   $as_echo_n "(cached) " >&6
11350 else
11351   case $WHICH in
11352   [\\/]* | ?:[\\/]*)
11353   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11354   ;;
11355   *)
11356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11357 for as_dir in $PATH
11358 do
11359   IFS=$as_save_IFS
11360   test -z "$as_dir" && as_dir=.
11361     for ac_exec_ext in '' $ac_executable_extensions; do
11362   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11363     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11365     break 2
11366   fi
11367 done
11368   done
11369 IFS=$as_save_IFS
11370 
11371   ;;
11372 esac
11373 fi
11374 WHICH=$ac_cv_path_WHICH
11375 if test -n "$WHICH"; then
11376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11377 $as_echo "$WHICH" >&6; }
11378 else
11379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11380 $as_echo "no" >&6; }
11381 fi
11382 
11383 
11384   test -n "$WHICH" && break
11385 done
11386 
11387   else
11388     # The variable is set, but is it from the command line or the environment?
11389 
11390     # Try to remove the string !WHICH! from our list.
11391     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
11392     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11393       # If it failed, the variable was not from the command line. Ignore it,
11394       # but warn the user (except for BASH, which is always set by the calling BASH).
11395       if test "xWHICH" != xBASH; then
11396         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
11397 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
11398       fi
11399       # Try to locate tool using the code snippet
11400       for ac_prog in which
11401 do
11402   # Extract the first word of "$ac_prog", so it can be a program name with args.
11403 set dummy $ac_prog; ac_word=$2
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11405 $as_echo_n "checking for $ac_word... " >&6; }
11406 if ${ac_cv_path_WHICH+:} false; then :
11407   $as_echo_n "(cached) " >&6
11408 else
11409   case $WHICH in
11410   [\\/]* | ?:[\\/]*)
11411   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11412   ;;
11413   *)
11414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11415 for as_dir in $PATH
11416 do
11417   IFS=$as_save_IFS
11418   test -z "$as_dir" && as_dir=.
11419     for ac_exec_ext in '' $ac_executable_extensions; do
11420   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11421     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11423     break 2
11424   fi
11425 done
11426   done
11427 IFS=$as_save_IFS
11428 
11429   ;;
11430 esac
11431 fi
11432 WHICH=$ac_cv_path_WHICH
11433 if test -n "$WHICH"; then
11434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11435 $as_echo "$WHICH" >&6; }
11436 else
11437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11438 $as_echo "no" >&6; }
11439 fi
11440 
11441 
11442   test -n "$WHICH" && break
11443 done
11444 
11445     else
11446       # If it succeeded, then it was overridden by the user. We will use it
11447       # for the tool.
11448 
11449       # First remove it from the list of overridden variables, so we can test
11450       # for unknown variables in the end.
11451       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11452 
11453       # Check if the provided tool contains a complete path.
11454       tool_specified="$WHICH"
11455       tool_basename="${tool_specified##*/}"
11456       if test "x$tool_basename" = "x$tool_specified"; then
11457         # A command without a complete path is provided, search $PATH.
11458         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
11459 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
11460         # Extract the first word of "$tool_basename", so it can be a program name with args.
11461 set dummy $tool_basename; ac_word=$2
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11463 $as_echo_n "checking for $ac_word... " >&6; }
11464 if ${ac_cv_path_WHICH+:} false; then :
11465   $as_echo_n "(cached) " >&6
11466 else
11467   case $WHICH in
11468   [\\/]* | ?:[\\/]*)
11469   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11470   ;;
11471   *)
11472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11473 for as_dir in $PATH
11474 do
11475   IFS=$as_save_IFS
11476   test -z "$as_dir" && as_dir=.
11477     for ac_exec_ext in '' $ac_executable_extensions; do
11478   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11479     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11481     break 2
11482   fi
11483 done
11484   done
11485 IFS=$as_save_IFS
11486 
11487   ;;
11488 esac
11489 fi
11490 WHICH=$ac_cv_path_WHICH
11491 if test -n "$WHICH"; then
11492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11493 $as_echo "$WHICH" >&6; }
11494 else
11495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11496 $as_echo "no" >&6; }
11497 fi
11498 
11499 
11500         if test "x$WHICH" = x; then
11501           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11502         fi
11503       else
11504         # Otherwise we believe it is a complete path. Use it as it is.
11505         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
11506 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
11507         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11508 $as_echo_n "checking for WHICH... " >&6; }
11509         if test ! -x "$tool_specified"; then
11510           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11511 $as_echo "not found" >&6; }
11512           as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
11513         fi
11514         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11515 $as_echo "$tool_specified" >&6; }
11516       fi
11517     fi
11518   fi
11519 
11520 
11521 
11522   if test "x$WHICH" = x; then
11523     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
11524   fi
11525 
11526 
11527 
11528 
11529 
11530   # Publish this variable in the help.
11531 
11532 
11533   if test "x$XARGS" = x; then
11534     # The variable is not set by user, try to locate tool using the code snippet
11535     for ac_prog in xargs
11536 do
11537   # Extract the first word of "$ac_prog", so it can be a program name with args.
11538 set dummy $ac_prog; ac_word=$2
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11540 $as_echo_n "checking for $ac_word... " >&6; }
11541 if ${ac_cv_path_XARGS+:} false; then :
11542   $as_echo_n "(cached) " >&6
11543 else
11544   case $XARGS in
11545   [\\/]* | ?:[\\/]*)
11546   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11547   ;;
11548   *)
11549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11550 for as_dir in $PATH
11551 do
11552   IFS=$as_save_IFS
11553   test -z "$as_dir" && as_dir=.
11554     for ac_exec_ext in '' $ac_executable_extensions; do
11555   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11556     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11558     break 2
11559   fi
11560 done
11561   done
11562 IFS=$as_save_IFS
11563 
11564   ;;
11565 esac
11566 fi
11567 XARGS=$ac_cv_path_XARGS
11568 if test -n "$XARGS"; then
11569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11570 $as_echo "$XARGS" >&6; }
11571 else
11572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11573 $as_echo "no" >&6; }
11574 fi
11575 
11576 
11577   test -n "$XARGS" && break
11578 done
11579 
11580   else
11581     # The variable is set, but is it from the command line or the environment?
11582 
11583     # Try to remove the string !XARGS! from our list.
11584     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
11585     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11586       # If it failed, the variable was not from the command line. Ignore it,
11587       # but warn the user (except for BASH, which is always set by the calling BASH).
11588       if test "xXARGS" != xBASH; then
11589         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
11590 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
11591       fi
11592       # Try to locate tool using the code snippet
11593       for ac_prog in xargs
11594 do
11595   # Extract the first word of "$ac_prog", so it can be a program name with args.
11596 set dummy $ac_prog; ac_word=$2
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11598 $as_echo_n "checking for $ac_word... " >&6; }
11599 if ${ac_cv_path_XARGS+:} false; then :
11600   $as_echo_n "(cached) " >&6
11601 else
11602   case $XARGS in
11603   [\\/]* | ?:[\\/]*)
11604   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11605   ;;
11606   *)
11607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11608 for as_dir in $PATH
11609 do
11610   IFS=$as_save_IFS
11611   test -z "$as_dir" && as_dir=.
11612     for ac_exec_ext in '' $ac_executable_extensions; do
11613   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11614     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11616     break 2
11617   fi
11618 done
11619   done
11620 IFS=$as_save_IFS
11621 
11622   ;;
11623 esac
11624 fi
11625 XARGS=$ac_cv_path_XARGS
11626 if test -n "$XARGS"; then
11627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11628 $as_echo "$XARGS" >&6; }
11629 else
11630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11631 $as_echo "no" >&6; }
11632 fi
11633 
11634 
11635   test -n "$XARGS" && break
11636 done
11637 
11638     else
11639       # If it succeeded, then it was overridden by the user. We will use it
11640       # for the tool.
11641 
11642       # First remove it from the list of overridden variables, so we can test
11643       # for unknown variables in the end.
11644       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11645 
11646       # Check if the provided tool contains a complete path.
11647       tool_specified="$XARGS"
11648       tool_basename="${tool_specified##*/}"
11649       if test "x$tool_basename" = "x$tool_specified"; then
11650         # A command without a complete path is provided, search $PATH.
11651         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
11652 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
11653         # Extract the first word of "$tool_basename", so it can be a program name with args.
11654 set dummy $tool_basename; ac_word=$2
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11656 $as_echo_n "checking for $ac_word... " >&6; }
11657 if ${ac_cv_path_XARGS+:} false; then :
11658   $as_echo_n "(cached) " >&6
11659 else
11660   case $XARGS in
11661   [\\/]* | ?:[\\/]*)
11662   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11663   ;;
11664   *)
11665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11666 for as_dir in $PATH
11667 do
11668   IFS=$as_save_IFS
11669   test -z "$as_dir" && as_dir=.
11670     for ac_exec_ext in '' $ac_executable_extensions; do
11671   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11672     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11674     break 2
11675   fi
11676 done
11677   done
11678 IFS=$as_save_IFS
11679 
11680   ;;
11681 esac
11682 fi
11683 XARGS=$ac_cv_path_XARGS
11684 if test -n "$XARGS"; then
11685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11686 $as_echo "$XARGS" >&6; }
11687 else
11688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11689 $as_echo "no" >&6; }
11690 fi
11691 
11692 
11693         if test "x$XARGS" = x; then
11694           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11695         fi
11696       else
11697         # Otherwise we believe it is a complete path. Use it as it is.
11698         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
11699 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
11700         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
11701 $as_echo_n "checking for XARGS... " >&6; }
11702         if test ! -x "$tool_specified"; then
11703           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11704 $as_echo "not found" >&6; }
11705           as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
11706         fi
11707         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11708 $as_echo "$tool_specified" >&6; }
11709       fi
11710     fi
11711   fi
11712 
11713 
11714 
11715   if test "x$XARGS" = x; then
11716     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
11717   fi
11718 
11719 
11720 
11721   # Then required tools that require some special treatment.
11722 
11723 
11724   # Publish this variable in the help.
11725 
11726 
11727   if test "x$AWK" = x; then
11728     # The variable is not set by user, try to locate tool using the code snippet
11729     for ac_prog in gawk mawk nawk awk
11730 do
11731   # Extract the first word of "$ac_prog", so it can be a program name with args.
11732 set dummy $ac_prog; ac_word=$2
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11734 $as_echo_n "checking for $ac_word... " >&6; }
11735 if ${ac_cv_prog_AWK+:} false; then :
11736   $as_echo_n "(cached) " >&6
11737 else
11738   if test -n "$AWK"; then
11739   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11740 else
11741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11742 for as_dir in $PATH
11743 do
11744   IFS=$as_save_IFS
11745   test -z "$as_dir" && as_dir=.
11746     for ac_exec_ext in '' $ac_executable_extensions; do
11747   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11748     ac_cv_prog_AWK="$ac_prog"
11749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11750     break 2
11751   fi
11752 done
11753   done
11754 IFS=$as_save_IFS
11755 
11756 fi
11757 fi
11758 AWK=$ac_cv_prog_AWK
11759 if test -n "$AWK"; then
11760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11761 $as_echo "$AWK" >&6; }
11762 else
11763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11764 $as_echo "no" >&6; }
11765 fi
11766 
11767 
11768   test -n "$AWK" && break
11769 done
11770 
11771   else
11772     # The variable is set, but is it from the command line or the environment?
11773 
11774     # Try to remove the string !AWK! from our list.
11775     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
11776     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11777       # If it failed, the variable was not from the command line. Ignore it,
11778       # but warn the user (except for BASH, which is always set by the calling BASH).
11779       if test "xAWK" != xBASH; then
11780         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
11781 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
11782       fi
11783       # Try to locate tool using the code snippet
11784       for ac_prog in gawk mawk nawk awk
11785 do
11786   # Extract the first word of "$ac_prog", so it can be a program name with args.
11787 set dummy $ac_prog; ac_word=$2
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11789 $as_echo_n "checking for $ac_word... " >&6; }
11790 if ${ac_cv_prog_AWK+:} false; then :
11791   $as_echo_n "(cached) " >&6
11792 else
11793   if test -n "$AWK"; then
11794   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11795 else
11796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11797 for as_dir in $PATH
11798 do
11799   IFS=$as_save_IFS
11800   test -z "$as_dir" && as_dir=.
11801     for ac_exec_ext in '' $ac_executable_extensions; do
11802   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11803     ac_cv_prog_AWK="$ac_prog"
11804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11805     break 2
11806   fi
11807 done
11808   done
11809 IFS=$as_save_IFS
11810 
11811 fi
11812 fi
11813 AWK=$ac_cv_prog_AWK
11814 if test -n "$AWK"; then
11815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11816 $as_echo "$AWK" >&6; }
11817 else
11818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11819 $as_echo "no" >&6; }
11820 fi
11821 
11822 
11823   test -n "$AWK" && break
11824 done
11825 
11826     else
11827       # If it succeeded, then it was overridden by the user. We will use it
11828       # for the tool.
11829 
11830       # First remove it from the list of overridden variables, so we can test
11831       # for unknown variables in the end.
11832       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11833 
11834       # Check if the provided tool contains a complete path.
11835       tool_specified="$AWK"
11836       tool_basename="${tool_specified##*/}"
11837       if test "x$tool_basename" = "x$tool_specified"; then
11838         # A command without a complete path is provided, search $PATH.
11839         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
11840 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
11841         # Extract the first word of "$tool_basename", so it can be a program name with args.
11842 set dummy $tool_basename; ac_word=$2
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11844 $as_echo_n "checking for $ac_word... " >&6; }
11845 if ${ac_cv_path_AWK+:} false; then :
11846   $as_echo_n "(cached) " >&6
11847 else
11848   case $AWK in
11849   [\\/]* | ?:[\\/]*)
11850   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
11851   ;;
11852   *)
11853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11854 for as_dir in $PATH
11855 do
11856   IFS=$as_save_IFS
11857   test -z "$as_dir" && as_dir=.
11858     for ac_exec_ext in '' $ac_executable_extensions; do
11859   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11860     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
11861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11862     break 2
11863   fi
11864 done
11865   done
11866 IFS=$as_save_IFS
11867 
11868   ;;
11869 esac
11870 fi
11871 AWK=$ac_cv_path_AWK
11872 if test -n "$AWK"; then
11873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11874 $as_echo "$AWK" >&6; }
11875 else
11876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11877 $as_echo "no" >&6; }
11878 fi
11879 
11880 
11881         if test "x$AWK" = x; then
11882           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11883         fi
11884       else
11885         # Otherwise we believe it is a complete path. Use it as it is.
11886         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
11887 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
11888         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
11889 $as_echo_n "checking for AWK... " >&6; }
11890         if test ! -x "$tool_specified"; then
11891           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11892 $as_echo "not found" >&6; }
11893           as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
11894         fi
11895         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11896 $as_echo "$tool_specified" >&6; }
11897       fi
11898     fi
11899   fi
11900 
11901 
11902   if test "x$AWK" = x; then
11903     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
11904   fi
11905 
11906 
11907 
11908 
11909   # Publish this variable in the help.
11910 
11911 
11912   if test "x$GREP" = x; then
11913     # The variable is not set by user, try to locate tool using the code snippet
11914     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11915 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11916 if ${ac_cv_path_GREP+:} false; then :
11917   $as_echo_n "(cached) " >&6
11918 else
11919   if test -z "$GREP"; then
11920   ac_path_GREP_found=false
11921   # Loop through the user's path and test for each of PROGNAME-LIST
11922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11923 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11924 do
11925   IFS=$as_save_IFS
11926   test -z "$as_dir" && as_dir=.
11927     for ac_prog in grep ggrep; do
11928     for ac_exec_ext in '' $ac_executable_extensions; do
11929       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11930       as_fn_executable_p "$ac_path_GREP" || continue
11931 # Check for GNU ac_path_GREP and select it if it is found.
11932   # Check for GNU $ac_path_GREP
11933 case `"$ac_path_GREP" --version 2>&1` in
11934 *GNU*)
11935   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11936 *)
11937   ac_count=0
11938   $as_echo_n 0123456789 >"conftest.in"
11939   while :
11940   do
11941     cat "conftest.in" "conftest.in" >"conftest.tmp"
11942     mv "conftest.tmp" "conftest.in"
11943     cp "conftest.in" "conftest.nl"
11944     $as_echo 'GREP' >> "conftest.nl"
11945     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11946     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11947     as_fn_arith $ac_count + 1 && ac_count=$as_val
11948     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11949       # Best one so far, save it but keep looking for a better one
11950       ac_cv_path_GREP="$ac_path_GREP"
11951       ac_path_GREP_max=$ac_count
11952     fi
11953     # 10*(2^10) chars as input seems more than enough
11954     test $ac_count -gt 10 && break
11955   done
11956   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11957 esac
11958 
11959       $ac_path_GREP_found && break 3
11960     done
11961   done
11962   done
11963 IFS=$as_save_IFS
11964   if test -z "$ac_cv_path_GREP"; then
11965     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11966   fi
11967 else
11968   ac_cv_path_GREP=$GREP
11969 fi
11970 
11971 fi
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11973 $as_echo "$ac_cv_path_GREP" >&6; }
11974  GREP="$ac_cv_path_GREP"
11975 
11976 
11977   else
11978     # The variable is set, but is it from the command line or the environment?
11979 
11980     # Try to remove the string !GREP! from our list.
11981     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
11982     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11983       # If it failed, the variable was not from the command line. Ignore it,
11984       # but warn the user (except for BASH, which is always set by the calling BASH).
11985       if test "xGREP" != xBASH; then
11986         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
11987 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
11988       fi
11989       # Try to locate tool using the code snippet
11990       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11991 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11992 if ${ac_cv_path_GREP+:} false; then :
11993   $as_echo_n "(cached) " >&6
11994 else
11995   if test -z "$GREP"; then
11996   ac_path_GREP_found=false
11997   # Loop through the user's path and test for each of PROGNAME-LIST
11998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11999 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12000 do
12001   IFS=$as_save_IFS
12002   test -z "$as_dir" && as_dir=.
12003     for ac_prog in grep ggrep; do
12004     for ac_exec_ext in '' $ac_executable_extensions; do
12005       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
12006       as_fn_executable_p "$ac_path_GREP" || continue
12007 # Check for GNU ac_path_GREP and select it if it is found.
12008   # Check for GNU $ac_path_GREP
12009 case `"$ac_path_GREP" --version 2>&1` in
12010 *GNU*)
12011   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
12012 *)
12013   ac_count=0
12014   $as_echo_n 0123456789 >"conftest.in"
12015   while :
12016   do
12017     cat "conftest.in" "conftest.in" >"conftest.tmp"
12018     mv "conftest.tmp" "conftest.in"
12019     cp "conftest.in" "conftest.nl"
12020     $as_echo 'GREP' >> "conftest.nl"
12021     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12022     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12023     as_fn_arith $ac_count + 1 && ac_count=$as_val
12024     if test $ac_count -gt ${ac_path_GREP_max-0}; then
12025       # Best one so far, save it but keep looking for a better one
12026       ac_cv_path_GREP="$ac_path_GREP"
12027       ac_path_GREP_max=$ac_count
12028     fi
12029     # 10*(2^10) chars as input seems more than enough
12030     test $ac_count -gt 10 && break
12031   done
12032   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12033 esac
12034 
12035       $ac_path_GREP_found && break 3
12036     done
12037   done
12038   done
12039 IFS=$as_save_IFS
12040   if test -z "$ac_cv_path_GREP"; then
12041     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12042   fi
12043 else
12044   ac_cv_path_GREP=$GREP
12045 fi
12046 
12047 fi
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
12049 $as_echo "$ac_cv_path_GREP" >&6; }
12050  GREP="$ac_cv_path_GREP"
12051 
12052 
12053     else
12054       # If it succeeded, then it was overridden by the user. We will use it
12055       # for the tool.
12056 
12057       # First remove it from the list of overridden variables, so we can test
12058       # for unknown variables in the end.
12059       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12060 
12061       # Check if the provided tool contains a complete path.
12062       tool_specified="$GREP"
12063       tool_basename="${tool_specified##*/}"
12064       if test "x$tool_basename" = "x$tool_specified"; then
12065         # A command without a complete path is provided, search $PATH.
12066         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
12067 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
12068         # Extract the first word of "$tool_basename", so it can be a program name with args.
12069 set dummy $tool_basename; ac_word=$2
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12071 $as_echo_n "checking for $ac_word... " >&6; }
12072 if ${ac_cv_path_GREP+:} false; then :
12073   $as_echo_n "(cached) " >&6
12074 else
12075   case $GREP in
12076   [\\/]* | ?:[\\/]*)
12077   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
12078   ;;
12079   *)
12080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12081 for as_dir in $PATH
12082 do
12083   IFS=$as_save_IFS
12084   test -z "$as_dir" && as_dir=.
12085     for ac_exec_ext in '' $ac_executable_extensions; do
12086   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12087     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
12088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12089     break 2
12090   fi
12091 done
12092   done
12093 IFS=$as_save_IFS
12094 
12095   ;;
12096 esac
12097 fi
12098 GREP=$ac_cv_path_GREP
12099 if test -n "$GREP"; then
12100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
12101 $as_echo "$GREP" >&6; }
12102 else
12103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12104 $as_echo "no" >&6; }
12105 fi
12106 
12107 
12108         if test "x$GREP" = x; then
12109           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12110         fi
12111       else
12112         # Otherwise we believe it is a complete path. Use it as it is.
12113         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
12114 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
12115         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
12116 $as_echo_n "checking for GREP... " >&6; }
12117         if test ! -x "$tool_specified"; then
12118           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12119 $as_echo "not found" >&6; }
12120           as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12121         fi
12122         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12123 $as_echo "$tool_specified" >&6; }
12124       fi
12125     fi
12126   fi
12127 
12128 
12129   if test "x$GREP" = x; then
12130     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
12131   fi
12132 
12133 
12134 
12135 
12136   # Publish this variable in the help.
12137 
12138 
12139   if test "x$EGREP" = x; then
12140     # The variable is not set by user, try to locate tool using the code snippet
12141     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
12142 $as_echo_n "checking for egrep... " >&6; }
12143 if ${ac_cv_path_EGREP+:} false; then :
12144   $as_echo_n "(cached) " >&6
12145 else
12146   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
12147    then ac_cv_path_EGREP="$GREP -E"
12148    else
12149      if test -z "$EGREP"; then
12150   ac_path_EGREP_found=false
12151   # Loop through the user's path and test for each of PROGNAME-LIST
12152   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12153 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12154 do
12155   IFS=$as_save_IFS
12156   test -z "$as_dir" && as_dir=.
12157     for ac_prog in egrep; do
12158     for ac_exec_ext in '' $ac_executable_extensions; do
12159       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
12160       as_fn_executable_p "$ac_path_EGREP" || continue
12161 # Check for GNU ac_path_EGREP and select it if it is found.
12162   # Check for GNU $ac_path_EGREP
12163 case `"$ac_path_EGREP" --version 2>&1` in
12164 *GNU*)
12165   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
12166 *)
12167   ac_count=0
12168   $as_echo_n 0123456789 >"conftest.in"
12169   while :
12170   do
12171     cat "conftest.in" "conftest.in" >"conftest.tmp"
12172     mv "conftest.tmp" "conftest.in"
12173     cp "conftest.in" "conftest.nl"
12174     $as_echo 'EGREP' >> "conftest.nl"
12175     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12176     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12177     as_fn_arith $ac_count + 1 && ac_count=$as_val
12178     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
12179       # Best one so far, save it but keep looking for a better one
12180       ac_cv_path_EGREP="$ac_path_EGREP"
12181       ac_path_EGREP_max=$ac_count
12182     fi
12183     # 10*(2^10) chars as input seems more than enough
12184     test $ac_count -gt 10 && break
12185   done
12186   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12187 esac
12188 
12189       $ac_path_EGREP_found && break 3
12190     done
12191   done
12192   done
12193 IFS=$as_save_IFS
12194   if test -z "$ac_cv_path_EGREP"; then
12195     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12196   fi
12197 else
12198   ac_cv_path_EGREP=$EGREP
12199 fi
12200 
12201    fi
12202 fi
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
12204 $as_echo "$ac_cv_path_EGREP" >&6; }
12205  EGREP="$ac_cv_path_EGREP"
12206 
12207 
12208   else
12209     # The variable is set, but is it from the command line or the environment?
12210 
12211     # Try to remove the string !EGREP! from our list.
12212     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
12213     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12214       # If it failed, the variable was not from the command line. Ignore it,
12215       # but warn the user (except for BASH, which is always set by the calling BASH).
12216       if test "xEGREP" != xBASH; then
12217         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
12218 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
12219       fi
12220       # Try to locate tool using the code snippet
12221       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
12222 $as_echo_n "checking for egrep... " >&6; }
12223 if ${ac_cv_path_EGREP+:} false; then :
12224   $as_echo_n "(cached) " >&6
12225 else
12226   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
12227    then ac_cv_path_EGREP="$GREP -E"
12228    else
12229      if test -z "$EGREP"; then
12230   ac_path_EGREP_found=false
12231   # Loop through the user's path and test for each of PROGNAME-LIST
12232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12233 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12234 do
12235   IFS=$as_save_IFS
12236   test -z "$as_dir" && as_dir=.
12237     for ac_prog in egrep; do
12238     for ac_exec_ext in '' $ac_executable_extensions; do
12239       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
12240       as_fn_executable_p "$ac_path_EGREP" || continue
12241 # Check for GNU ac_path_EGREP and select it if it is found.
12242   # Check for GNU $ac_path_EGREP
12243 case `"$ac_path_EGREP" --version 2>&1` in
12244 *GNU*)
12245   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
12246 *)
12247   ac_count=0
12248   $as_echo_n 0123456789 >"conftest.in"
12249   while :
12250   do
12251     cat "conftest.in" "conftest.in" >"conftest.tmp"
12252     mv "conftest.tmp" "conftest.in"
12253     cp "conftest.in" "conftest.nl"
12254     $as_echo 'EGREP' >> "conftest.nl"
12255     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12256     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12257     as_fn_arith $ac_count + 1 && ac_count=$as_val
12258     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
12259       # Best one so far, save it but keep looking for a better one
12260       ac_cv_path_EGREP="$ac_path_EGREP"
12261       ac_path_EGREP_max=$ac_count
12262     fi
12263     # 10*(2^10) chars as input seems more than enough
12264     test $ac_count -gt 10 && break
12265   done
12266   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12267 esac
12268 
12269       $ac_path_EGREP_found && break 3
12270     done
12271   done
12272   done
12273 IFS=$as_save_IFS
12274   if test -z "$ac_cv_path_EGREP"; then
12275     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12276   fi
12277 else
12278   ac_cv_path_EGREP=$EGREP
12279 fi
12280 
12281    fi
12282 fi
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
12284 $as_echo "$ac_cv_path_EGREP" >&6; }
12285  EGREP="$ac_cv_path_EGREP"
12286 
12287 
12288     else
12289       # If it succeeded, then it was overridden by the user. We will use it
12290       # for the tool.
12291 
12292       # First remove it from the list of overridden variables, so we can test
12293       # for unknown variables in the end.
12294       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12295 
12296       # Check if the provided tool contains a complete path.
12297       tool_specified="$EGREP"
12298       tool_basename="${tool_specified##*/}"
12299       if test "x$tool_basename" = "x$tool_specified"; then
12300         # A command without a complete path is provided, search $PATH.
12301         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
12302 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
12303         # Extract the first word of "$tool_basename", so it can be a program name with args.
12304 set dummy $tool_basename; ac_word=$2
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12306 $as_echo_n "checking for $ac_word... " >&6; }
12307 if ${ac_cv_path_EGREP+:} false; then :
12308   $as_echo_n "(cached) " >&6
12309 else
12310   case $EGREP in
12311   [\\/]* | ?:[\\/]*)
12312   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
12313   ;;
12314   *)
12315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12316 for as_dir in $PATH
12317 do
12318   IFS=$as_save_IFS
12319   test -z "$as_dir" && as_dir=.
12320     for ac_exec_ext in '' $ac_executable_extensions; do
12321   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12322     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
12323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12324     break 2
12325   fi
12326 done
12327   done
12328 IFS=$as_save_IFS
12329 
12330   ;;
12331 esac
12332 fi
12333 EGREP=$ac_cv_path_EGREP
12334 if test -n "$EGREP"; then
12335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
12336 $as_echo "$EGREP" >&6; }
12337 else
12338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339 $as_echo "no" >&6; }
12340 fi
12341 
12342 
12343         if test "x$EGREP" = x; then
12344           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12345         fi
12346       else
12347         # Otherwise we believe it is a complete path. Use it as it is.
12348         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
12349 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
12350         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
12351 $as_echo_n "checking for EGREP... " >&6; }
12352         if test ! -x "$tool_specified"; then
12353           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12354 $as_echo "not found" >&6; }
12355           as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12356         fi
12357         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12358 $as_echo "$tool_specified" >&6; }
12359       fi
12360     fi
12361   fi
12362 
12363 
12364   if test "x$EGREP" = x; then
12365     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
12366   fi
12367 
12368 
12369 
12370 
12371   # Publish this variable in the help.
12372 
12373 
12374   if test "x$FGREP" = x; then
12375     # The variable is not set by user, try to locate tool using the code snippet
12376     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12377 $as_echo_n "checking for fgrep... " >&6; }
12378 if ${ac_cv_path_FGREP+:} false; then :
12379   $as_echo_n "(cached) " >&6
12380 else
12381   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12382    then ac_cv_path_FGREP="$GREP -F"
12383    else
12384      if test -z "$FGREP"; then
12385   ac_path_FGREP_found=false
12386   # Loop through the user's path and test for each of PROGNAME-LIST
12387   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12388 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12389 do
12390   IFS=$as_save_IFS
12391   test -z "$as_dir" && as_dir=.
12392     for ac_prog in fgrep; do
12393     for ac_exec_ext in '' $ac_executable_extensions; do
12394       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12395       as_fn_executable_p "$ac_path_FGREP" || continue
12396 # Check for GNU ac_path_FGREP and select it if it is found.
12397   # Check for GNU $ac_path_FGREP
12398 case `"$ac_path_FGREP" --version 2>&1` in
12399 *GNU*)
12400   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12401 *)
12402   ac_count=0
12403   $as_echo_n 0123456789 >"conftest.in"
12404   while :
12405   do
12406     cat "conftest.in" "conftest.in" >"conftest.tmp"
12407     mv "conftest.tmp" "conftest.in"
12408     cp "conftest.in" "conftest.nl"
12409     $as_echo 'FGREP' >> "conftest.nl"
12410     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12411     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12412     as_fn_arith $ac_count + 1 && ac_count=$as_val
12413     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12414       # Best one so far, save it but keep looking for a better one
12415       ac_cv_path_FGREP="$ac_path_FGREP"
12416       ac_path_FGREP_max=$ac_count
12417     fi
12418     # 10*(2^10) chars as input seems more than enough
12419     test $ac_count -gt 10 && break
12420   done
12421   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12422 esac
12423 
12424       $ac_path_FGREP_found && break 3
12425     done
12426   done
12427   done
12428 IFS=$as_save_IFS
12429   if test -z "$ac_cv_path_FGREP"; then
12430     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12431   fi
12432 else
12433   ac_cv_path_FGREP=$FGREP
12434 fi
12435 
12436    fi
12437 fi
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12439 $as_echo "$ac_cv_path_FGREP" >&6; }
12440  FGREP="$ac_cv_path_FGREP"
12441 
12442 
12443   else
12444     # The variable is set, but is it from the command line or the environment?
12445 
12446     # Try to remove the string !FGREP! from our list.
12447     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
12448     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12449       # If it failed, the variable was not from the command line. Ignore it,
12450       # but warn the user (except for BASH, which is always set by the calling BASH).
12451       if test "xFGREP" != xBASH; then
12452         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
12453 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
12454       fi
12455       # Try to locate tool using the code snippet
12456       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12457 $as_echo_n "checking for fgrep... " >&6; }
12458 if ${ac_cv_path_FGREP+:} false; then :
12459   $as_echo_n "(cached) " >&6
12460 else
12461   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12462    then ac_cv_path_FGREP="$GREP -F"
12463    else
12464      if test -z "$FGREP"; then
12465   ac_path_FGREP_found=false
12466   # Loop through the user's path and test for each of PROGNAME-LIST
12467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12468 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12469 do
12470   IFS=$as_save_IFS
12471   test -z "$as_dir" && as_dir=.
12472     for ac_prog in fgrep; do
12473     for ac_exec_ext in '' $ac_executable_extensions; do
12474       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12475       as_fn_executable_p "$ac_path_FGREP" || continue
12476 # Check for GNU ac_path_FGREP and select it if it is found.
12477   # Check for GNU $ac_path_FGREP
12478 case `"$ac_path_FGREP" --version 2>&1` in
12479 *GNU*)
12480   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12481 *)
12482   ac_count=0
12483   $as_echo_n 0123456789 >"conftest.in"
12484   while :
12485   do
12486     cat "conftest.in" "conftest.in" >"conftest.tmp"
12487     mv "conftest.tmp" "conftest.in"
12488     cp "conftest.in" "conftest.nl"
12489     $as_echo 'FGREP' >> "conftest.nl"
12490     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12491     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12492     as_fn_arith $ac_count + 1 && ac_count=$as_val
12493     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12494       # Best one so far, save it but keep looking for a better one
12495       ac_cv_path_FGREP="$ac_path_FGREP"
12496       ac_path_FGREP_max=$ac_count
12497     fi
12498     # 10*(2^10) chars as input seems more than enough
12499     test $ac_count -gt 10 && break
12500   done
12501   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12502 esac
12503 
12504       $ac_path_FGREP_found && break 3
12505     done
12506   done
12507   done
12508 IFS=$as_save_IFS
12509   if test -z "$ac_cv_path_FGREP"; then
12510     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12511   fi
12512 else
12513   ac_cv_path_FGREP=$FGREP
12514 fi
12515 
12516    fi
12517 fi
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12519 $as_echo "$ac_cv_path_FGREP" >&6; }
12520  FGREP="$ac_cv_path_FGREP"
12521 
12522 
12523     else
12524       # If it succeeded, then it was overridden by the user. We will use it
12525       # for the tool.
12526 
12527       # First remove it from the list of overridden variables, so we can test
12528       # for unknown variables in the end.
12529       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12530 
12531       # Check if the provided tool contains a complete path.
12532       tool_specified="$FGREP"
12533       tool_basename="${tool_specified##*/}"
12534       if test "x$tool_basename" = "x$tool_specified"; then
12535         # A command without a complete path is provided, search $PATH.
12536         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
12537 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
12538         # Extract the first word of "$tool_basename", so it can be a program name with args.
12539 set dummy $tool_basename; ac_word=$2
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12541 $as_echo_n "checking for $ac_word... " >&6; }
12542 if ${ac_cv_path_FGREP+:} false; then :
12543   $as_echo_n "(cached) " >&6
12544 else
12545   case $FGREP in
12546   [\\/]* | ?:[\\/]*)
12547   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
12548   ;;
12549   *)
12550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12551 for as_dir in $PATH
12552 do
12553   IFS=$as_save_IFS
12554   test -z "$as_dir" && as_dir=.
12555     for ac_exec_ext in '' $ac_executable_extensions; do
12556   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12557     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
12558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12559     break 2
12560   fi
12561 done
12562   done
12563 IFS=$as_save_IFS
12564 
12565   ;;
12566 esac
12567 fi
12568 FGREP=$ac_cv_path_FGREP
12569 if test -n "$FGREP"; then
12570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
12571 $as_echo "$FGREP" >&6; }
12572 else
12573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12574 $as_echo "no" >&6; }
12575 fi
12576 
12577 
12578         if test "x$FGREP" = x; then
12579           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12580         fi
12581       else
12582         # Otherwise we believe it is a complete path. Use it as it is.
12583         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
12584 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
12585         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
12586 $as_echo_n "checking for FGREP... " >&6; }
12587         if test ! -x "$tool_specified"; then
12588           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12589 $as_echo "not found" >&6; }
12590           as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12591         fi
12592         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12593 $as_echo "$tool_specified" >&6; }
12594       fi
12595     fi
12596   fi
12597 
12598 
12599   if test "x$FGREP" = x; then
12600     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
12601   fi
12602 
12603 
12604 
12605 
12606   # Publish this variable in the help.
12607 
12608 
12609   if test "x$SED" = x; then
12610     # The variable is not set by user, try to locate tool using the code snippet
12611     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12612 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12613 if ${ac_cv_path_SED+:} false; then :
12614   $as_echo_n "(cached) " >&6
12615 else
12616             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12617      for ac_i in 1 2 3 4 5 6 7; do
12618        ac_script="$ac_script$as_nl$ac_script"
12619      done
12620      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12621      { ac_script=; unset ac_script;}
12622      if test -z "$SED"; then
12623   ac_path_SED_found=false
12624   # Loop through the user's path and test for each of PROGNAME-LIST
12625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12626 for as_dir in $PATH
12627 do
12628   IFS=$as_save_IFS
12629   test -z "$as_dir" && as_dir=.
12630     for ac_prog in sed gsed; do
12631     for ac_exec_ext in '' $ac_executable_extensions; do
12632       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12633       as_fn_executable_p "$ac_path_SED" || continue
12634 # Check for GNU ac_path_SED and select it if it is found.
12635   # Check for GNU $ac_path_SED
12636 case `"$ac_path_SED" --version 2>&1` in
12637 *GNU*)
12638   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12639 *)
12640   ac_count=0
12641   $as_echo_n 0123456789 >"conftest.in"
12642   while :
12643   do
12644     cat "conftest.in" "conftest.in" >"conftest.tmp"
12645     mv "conftest.tmp" "conftest.in"
12646     cp "conftest.in" "conftest.nl"
12647     $as_echo '' >> "conftest.nl"
12648     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12649     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12650     as_fn_arith $ac_count + 1 && ac_count=$as_val
12651     if test $ac_count -gt ${ac_path_SED_max-0}; then
12652       # Best one so far, save it but keep looking for a better one
12653       ac_cv_path_SED="$ac_path_SED"
12654       ac_path_SED_max=$ac_count
12655     fi
12656     # 10*(2^10) chars as input seems more than enough
12657     test $ac_count -gt 10 && break
12658   done
12659   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12660 esac
12661 
12662       $ac_path_SED_found && break 3
12663     done
12664   done
12665   done
12666 IFS=$as_save_IFS
12667   if test -z "$ac_cv_path_SED"; then
12668     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12669   fi
12670 else
12671   ac_cv_path_SED=$SED
12672 fi
12673 
12674 fi
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12676 $as_echo "$ac_cv_path_SED" >&6; }
12677  SED="$ac_cv_path_SED"
12678   rm -f conftest.sed
12679 
12680   else
12681     # The variable is set, but is it from the command line or the environment?
12682 
12683     # Try to remove the string !SED! from our list.
12684     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
12685     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12686       # If it failed, the variable was not from the command line. Ignore it,
12687       # but warn the user (except for BASH, which is always set by the calling BASH).
12688       if test "xSED" != xBASH; then
12689         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
12690 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
12691       fi
12692       # Try to locate tool using the code snippet
12693       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12694 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12695 if ${ac_cv_path_SED+:} false; then :
12696   $as_echo_n "(cached) " >&6
12697 else
12698             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12699      for ac_i in 1 2 3 4 5 6 7; do
12700        ac_script="$ac_script$as_nl$ac_script"
12701      done
12702      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12703      { ac_script=; unset ac_script;}
12704      if test -z "$SED"; then
12705   ac_path_SED_found=false
12706   # Loop through the user's path and test for each of PROGNAME-LIST
12707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12708 for as_dir in $PATH
12709 do
12710   IFS=$as_save_IFS
12711   test -z "$as_dir" && as_dir=.
12712     for ac_prog in sed gsed; do
12713     for ac_exec_ext in '' $ac_executable_extensions; do
12714       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12715       as_fn_executable_p "$ac_path_SED" || continue
12716 # Check for GNU ac_path_SED and select it if it is found.
12717   # Check for GNU $ac_path_SED
12718 case `"$ac_path_SED" --version 2>&1` in
12719 *GNU*)
12720   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12721 *)
12722   ac_count=0
12723   $as_echo_n 0123456789 >"conftest.in"
12724   while :
12725   do
12726     cat "conftest.in" "conftest.in" >"conftest.tmp"
12727     mv "conftest.tmp" "conftest.in"
12728     cp "conftest.in" "conftest.nl"
12729     $as_echo '' >> "conftest.nl"
12730     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12731     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12732     as_fn_arith $ac_count + 1 && ac_count=$as_val
12733     if test $ac_count -gt ${ac_path_SED_max-0}; then
12734       # Best one so far, save it but keep looking for a better one
12735       ac_cv_path_SED="$ac_path_SED"
12736       ac_path_SED_max=$ac_count
12737     fi
12738     # 10*(2^10) chars as input seems more than enough
12739     test $ac_count -gt 10 && break
12740   done
12741   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12742 esac
12743 
12744       $ac_path_SED_found && break 3
12745     done
12746   done
12747   done
12748 IFS=$as_save_IFS
12749   if test -z "$ac_cv_path_SED"; then
12750     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12751   fi
12752 else
12753   ac_cv_path_SED=$SED
12754 fi
12755 
12756 fi
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12758 $as_echo "$ac_cv_path_SED" >&6; }
12759  SED="$ac_cv_path_SED"
12760   rm -f conftest.sed
12761 
12762     else
12763       # If it succeeded, then it was overridden by the user. We will use it
12764       # for the tool.
12765 
12766       # First remove it from the list of overridden variables, so we can test
12767       # for unknown variables in the end.
12768       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12769 
12770       # Check if the provided tool contains a complete path.
12771       tool_specified="$SED"
12772       tool_basename="${tool_specified##*/}"
12773       if test "x$tool_basename" = "x$tool_specified"; then
12774         # A command without a complete path is provided, search $PATH.
12775         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
12776 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
12777         # Extract the first word of "$tool_basename", so it can be a program name with args.
12778 set dummy $tool_basename; ac_word=$2
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12780 $as_echo_n "checking for $ac_word... " >&6; }
12781 if ${ac_cv_path_SED+:} false; then :
12782   $as_echo_n "(cached) " >&6
12783 else
12784   case $SED in
12785   [\\/]* | ?:[\\/]*)
12786   ac_cv_path_SED="$SED" # Let the user override the test with a path.
12787   ;;
12788   *)
12789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12790 for as_dir in $PATH
12791 do
12792   IFS=$as_save_IFS
12793   test -z "$as_dir" && as_dir=.
12794     for ac_exec_ext in '' $ac_executable_extensions; do
12795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12796     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12798     break 2
12799   fi
12800 done
12801   done
12802 IFS=$as_save_IFS
12803 
12804   ;;
12805 esac
12806 fi
12807 SED=$ac_cv_path_SED
12808 if test -n "$SED"; then
12809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12810 $as_echo "$SED" >&6; }
12811 else
12812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12813 $as_echo "no" >&6; }
12814 fi
12815 
12816 
12817         if test "x$SED" = x; then
12818           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12819         fi
12820       else
12821         # Otherwise we believe it is a complete path. Use it as it is.
12822         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
12823 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
12824         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
12825 $as_echo_n "checking for SED... " >&6; }
12826         if test ! -x "$tool_specified"; then
12827           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12828 $as_echo "not found" >&6; }
12829           as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
12830         fi
12831         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12832 $as_echo "$tool_specified" >&6; }
12833       fi
12834     fi
12835   fi
12836 
12837 
12838   if test "x$SED" = x; then
12839     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
12840   fi
12841 
12842 
12843 
12844   # Always force rm.
12845   RM="$RM -f"
12846 
12847   # pwd behaves differently on various platforms and some don't support the -L flag.
12848   # Always use the bash builtin pwd to get uniform behavior.
12849   THEPWDCMD=pwd
12850 
12851   # These are not required on all platforms
12852 
12853 
12854   # Publish this variable in the help.
12855 
12856 
12857   if test "x$CYGPATH" = x; then
12858     # The variable is not set by user, try to locate tool using the code snippet
12859     for ac_prog in cygpath
12860 do
12861   # Extract the first word of "$ac_prog", so it can be a program name with args.
12862 set dummy $ac_prog; ac_word=$2
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12864 $as_echo_n "checking for $ac_word... " >&6; }
12865 if ${ac_cv_path_CYGPATH+:} false; then :
12866   $as_echo_n "(cached) " >&6
12867 else
12868   case $CYGPATH in
12869   [\\/]* | ?:[\\/]*)
12870   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12871   ;;
12872   *)
12873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12874 for as_dir in $PATH
12875 do
12876   IFS=$as_save_IFS
12877   test -z "$as_dir" && as_dir=.
12878     for ac_exec_ext in '' $ac_executable_extensions; do
12879   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12880     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12882     break 2
12883   fi
12884 done
12885   done
12886 IFS=$as_save_IFS
12887 
12888   ;;
12889 esac
12890 fi
12891 CYGPATH=$ac_cv_path_CYGPATH
12892 if test -n "$CYGPATH"; then
12893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12894 $as_echo "$CYGPATH" >&6; }
12895 else
12896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12897 $as_echo "no" >&6; }
12898 fi
12899 
12900 
12901   test -n "$CYGPATH" && break
12902 done
12903 
12904   else
12905     # The variable is set, but is it from the command line or the environment?
12906 
12907     # Try to remove the string !CYGPATH! from our list.
12908     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
12909     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12910       # If it failed, the variable was not from the command line. Ignore it,
12911       # but warn the user (except for BASH, which is always set by the calling BASH).
12912       if test "xCYGPATH" != xBASH; then
12913         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
12914 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
12915       fi
12916       # Try to locate tool using the code snippet
12917       for ac_prog in cygpath
12918 do
12919   # Extract the first word of "$ac_prog", so it can be a program name with args.
12920 set dummy $ac_prog; ac_word=$2
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12922 $as_echo_n "checking for $ac_word... " >&6; }
12923 if ${ac_cv_path_CYGPATH+:} false; then :
12924   $as_echo_n "(cached) " >&6
12925 else
12926   case $CYGPATH in
12927   [\\/]* | ?:[\\/]*)
12928   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12929   ;;
12930   *)
12931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12932 for as_dir in $PATH
12933 do
12934   IFS=$as_save_IFS
12935   test -z "$as_dir" && as_dir=.
12936     for ac_exec_ext in '' $ac_executable_extensions; do
12937   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12938     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12940     break 2
12941   fi
12942 done
12943   done
12944 IFS=$as_save_IFS
12945 
12946   ;;
12947 esac
12948 fi
12949 CYGPATH=$ac_cv_path_CYGPATH
12950 if test -n "$CYGPATH"; then
12951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12952 $as_echo "$CYGPATH" >&6; }
12953 else
12954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12955 $as_echo "no" >&6; }
12956 fi
12957 
12958 
12959   test -n "$CYGPATH" && break
12960 done
12961 
12962     else
12963       # If it succeeded, then it was overridden by the user. We will use it
12964       # for the tool.
12965 
12966       # First remove it from the list of overridden variables, so we can test
12967       # for unknown variables in the end.
12968       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12969 
12970       # Check if the provided tool contains a complete path.
12971       tool_specified="$CYGPATH"
12972       tool_basename="${tool_specified##*/}"
12973       if test "x$tool_basename" = "x$tool_specified"; then
12974         # A command without a complete path is provided, search $PATH.
12975         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
12976 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
12977         # Extract the first word of "$tool_basename", so it can be a program name with args.
12978 set dummy $tool_basename; ac_word=$2
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12980 $as_echo_n "checking for $ac_word... " >&6; }
12981 if ${ac_cv_path_CYGPATH+:} false; then :
12982   $as_echo_n "(cached) " >&6
12983 else
12984   case $CYGPATH in
12985   [\\/]* | ?:[\\/]*)
12986   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12987   ;;
12988   *)
12989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12990 for as_dir in $PATH
12991 do
12992   IFS=$as_save_IFS
12993   test -z "$as_dir" && as_dir=.
12994     for ac_exec_ext in '' $ac_executable_extensions; do
12995   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12996     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12998     break 2
12999   fi
13000 done
13001   done
13002 IFS=$as_save_IFS
13003 
13004   ;;
13005 esac
13006 fi
13007 CYGPATH=$ac_cv_path_CYGPATH
13008 if test -n "$CYGPATH"; then
13009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13010 $as_echo "$CYGPATH" >&6; }
13011 else
13012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13013 $as_echo "no" >&6; }
13014 fi
13015 
13016 
13017         if test "x$CYGPATH" = x; then
13018           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13019         fi
13020       else
13021         # Otherwise we believe it is a complete path. Use it as it is.
13022         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
13023 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
13024         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
13025 $as_echo_n "checking for CYGPATH... " >&6; }
13026         if test ! -x "$tool_specified"; then
13027           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13028 $as_echo "not found" >&6; }
13029           as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
13030         fi
13031         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13032 $as_echo "$tool_specified" >&6; }
13033       fi
13034     fi
13035   fi
13036 
13037 
13038 
13039 
13040   # Publish this variable in the help.
13041 
13042 
13043   if test "x$READLINK" = x; then
13044     # The variable is not set by user, try to locate tool using the code snippet
13045     for ac_prog in greadlink readlink
13046 do
13047   # Extract the first word of "$ac_prog", so it can be a program name with args.
13048 set dummy $ac_prog; ac_word=$2
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13050 $as_echo_n "checking for $ac_word... " >&6; }
13051 if ${ac_cv_path_READLINK+:} false; then :
13052   $as_echo_n "(cached) " >&6
13053 else
13054   case $READLINK in
13055   [\\/]* | ?:[\\/]*)
13056   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
13057   ;;
13058   *)
13059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13060 for as_dir in $PATH
13061 do
13062   IFS=$as_save_IFS
13063   test -z "$as_dir" && as_dir=.
13064     for ac_exec_ext in '' $ac_executable_extensions; do
13065   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13066     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
13067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13068     break 2
13069   fi
13070 done
13071   done
13072 IFS=$as_save_IFS
13073 
13074   ;;
13075 esac
13076 fi
13077 READLINK=$ac_cv_path_READLINK
13078 if test -n "$READLINK"; then
13079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
13080 $as_echo "$READLINK" >&6; }
13081 else
13082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13083 $as_echo "no" >&6; }
13084 fi
13085 
13086 
13087   test -n "$READLINK" && break
13088 done
13089 
13090   else
13091     # The variable is set, but is it from the command line or the environment?
13092 
13093     # Try to remove the string !READLINK! from our list.
13094     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
13095     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13096       # If it failed, the variable was not from the command line. Ignore it,
13097       # but warn the user (except for BASH, which is always set by the calling BASH).
13098       if test "xREADLINK" != xBASH; then
13099         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
13100 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
13101       fi
13102       # Try to locate tool using the code snippet
13103       for ac_prog in greadlink readlink
13104 do
13105   # Extract the first word of "$ac_prog", so it can be a program name with args.
13106 set dummy $ac_prog; ac_word=$2
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13108 $as_echo_n "checking for $ac_word... " >&6; }
13109 if ${ac_cv_path_READLINK+:} false; then :
13110   $as_echo_n "(cached) " >&6
13111 else
13112   case $READLINK in
13113   [\\/]* | ?:[\\/]*)
13114   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
13115   ;;
13116   *)
13117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13118 for as_dir in $PATH
13119 do
13120   IFS=$as_save_IFS
13121   test -z "$as_dir" && as_dir=.
13122     for ac_exec_ext in '' $ac_executable_extensions; do
13123   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13124     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
13125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13126     break 2
13127   fi
13128 done
13129   done
13130 IFS=$as_save_IFS
13131 
13132   ;;
13133 esac
13134 fi
13135 READLINK=$ac_cv_path_READLINK
13136 if test -n "$READLINK"; then
13137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
13138 $as_echo "$READLINK" >&6; }
13139 else
13140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13141 $as_echo "no" >&6; }
13142 fi
13143 
13144 
13145   test -n "$READLINK" && break
13146 done
13147 
13148     else
13149       # If it succeeded, then it was overridden by the user. We will use it
13150       # for the tool.
13151 
13152       # First remove it from the list of overridden variables, so we can test
13153       # for unknown variables in the end.
13154       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13155 
13156       # Check if the provided tool contains a complete path.
13157       tool_specified="$READLINK"
13158       tool_basename="${tool_specified##*/}"
13159       if test "x$tool_basename" = "x$tool_specified"; then
13160         # A command without a complete path is provided, search $PATH.
13161         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
13162 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
13163         # Extract the first word of "$tool_basename", so it can be a program name with args.
13164 set dummy $tool_basename; ac_word=$2
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13166 $as_echo_n "checking for $ac_word... " >&6; }
13167 if ${ac_cv_path_READLINK+:} false; then :
13168   $as_echo_n "(cached) " >&6
13169 else
13170   case $READLINK in
13171   [\\/]* | ?:[\\/]*)
13172   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
13173   ;;
13174   *)
13175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13176 for as_dir in $PATH
13177 do
13178   IFS=$as_save_IFS
13179   test -z "$as_dir" && as_dir=.
13180     for ac_exec_ext in '' $ac_executable_extensions; do
13181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13182     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
13183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13184     break 2
13185   fi
13186 done
13187   done
13188 IFS=$as_save_IFS
13189 
13190   ;;
13191 esac
13192 fi
13193 READLINK=$ac_cv_path_READLINK
13194 if test -n "$READLINK"; then
13195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
13196 $as_echo "$READLINK" >&6; }
13197 else
13198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13199 $as_echo "no" >&6; }
13200 fi
13201 
13202 
13203         if test "x$READLINK" = x; then
13204           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13205         fi
13206       else
13207         # Otherwise we believe it is a complete path. Use it as it is.
13208         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
13209 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
13210         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
13211 $as_echo_n "checking for READLINK... " >&6; }
13212         if test ! -x "$tool_specified"; then
13213           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13214 $as_echo "not found" >&6; }
13215           as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
13216         fi
13217         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13218 $as_echo "$tool_specified" >&6; }
13219       fi
13220     fi
13221   fi
13222 
13223 
13224 
13225 
13226   # Publish this variable in the help.
13227 
13228 
13229   if test "x$DF" = x; then
13230     # The variable is not set by user, try to locate tool using the code snippet
13231     for ac_prog in df
13232 do
13233   # Extract the first word of "$ac_prog", so it can be a program name with args.
13234 set dummy $ac_prog; ac_word=$2
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13236 $as_echo_n "checking for $ac_word... " >&6; }
13237 if ${ac_cv_path_DF+:} false; then :
13238   $as_echo_n "(cached) " >&6
13239 else
13240   case $DF in
13241   [\\/]* | ?:[\\/]*)
13242   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13243   ;;
13244   *)
13245   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13246 for as_dir in $PATH
13247 do
13248   IFS=$as_save_IFS
13249   test -z "$as_dir" && as_dir=.
13250     for ac_exec_ext in '' $ac_executable_extensions; do
13251   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13252     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13254     break 2
13255   fi
13256 done
13257   done
13258 IFS=$as_save_IFS
13259 
13260   ;;
13261 esac
13262 fi
13263 DF=$ac_cv_path_DF
13264 if test -n "$DF"; then
13265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13266 $as_echo "$DF" >&6; }
13267 else
13268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13269 $as_echo "no" >&6; }
13270 fi
13271 
13272 
13273   test -n "$DF" && break
13274 done
13275 
13276   else
13277     # The variable is set, but is it from the command line or the environment?
13278 
13279     # Try to remove the string !DF! from our list.
13280     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
13281     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13282       # If it failed, the variable was not from the command line. Ignore it,
13283       # but warn the user (except for BASH, which is always set by the calling BASH).
13284       if test "xDF" != xBASH; then
13285         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
13286 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
13287       fi
13288       # Try to locate tool using the code snippet
13289       for ac_prog in df
13290 do
13291   # Extract the first word of "$ac_prog", so it can be a program name with args.
13292 set dummy $ac_prog; ac_word=$2
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13294 $as_echo_n "checking for $ac_word... " >&6; }
13295 if ${ac_cv_path_DF+:} false; then :
13296   $as_echo_n "(cached) " >&6
13297 else
13298   case $DF in
13299   [\\/]* | ?:[\\/]*)
13300   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13301   ;;
13302   *)
13303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13304 for as_dir in $PATH
13305 do
13306   IFS=$as_save_IFS
13307   test -z "$as_dir" && as_dir=.
13308     for ac_exec_ext in '' $ac_executable_extensions; do
13309   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13310     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13312     break 2
13313   fi
13314 done
13315   done
13316 IFS=$as_save_IFS
13317 
13318   ;;
13319 esac
13320 fi
13321 DF=$ac_cv_path_DF
13322 if test -n "$DF"; then
13323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13324 $as_echo "$DF" >&6; }
13325 else
13326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13327 $as_echo "no" >&6; }
13328 fi
13329 
13330 
13331   test -n "$DF" && break
13332 done
13333 
13334     else
13335       # If it succeeded, then it was overridden by the user. We will use it
13336       # for the tool.
13337 
13338       # First remove it from the list of overridden variables, so we can test
13339       # for unknown variables in the end.
13340       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13341 
13342       # Check if the provided tool contains a complete path.
13343       tool_specified="$DF"
13344       tool_basename="${tool_specified##*/}"
13345       if test "x$tool_basename" = "x$tool_specified"; then
13346         # A command without a complete path is provided, search $PATH.
13347         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
13348 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
13349         # Extract the first word of "$tool_basename", so it can be a program name with args.
13350 set dummy $tool_basename; ac_word=$2
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13352 $as_echo_n "checking for $ac_word... " >&6; }
13353 if ${ac_cv_path_DF+:} false; then :
13354   $as_echo_n "(cached) " >&6
13355 else
13356   case $DF in
13357   [\\/]* | ?:[\\/]*)
13358   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13359   ;;
13360   *)
13361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13362 for as_dir in $PATH
13363 do
13364   IFS=$as_save_IFS
13365   test -z "$as_dir" && as_dir=.
13366     for ac_exec_ext in '' $ac_executable_extensions; do
13367   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13368     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13370     break 2
13371   fi
13372 done
13373   done
13374 IFS=$as_save_IFS
13375 
13376   ;;
13377 esac
13378 fi
13379 DF=$ac_cv_path_DF
13380 if test -n "$DF"; then
13381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13382 $as_echo "$DF" >&6; }
13383 else
13384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13385 $as_echo "no" >&6; }
13386 fi
13387 
13388 
13389         if test "x$DF" = x; then
13390           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13391         fi
13392       else
13393         # Otherwise we believe it is a complete path. Use it as it is.
13394         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
13395 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
13396         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
13397 $as_echo_n "checking for DF... " >&6; }
13398         if test ! -x "$tool_specified"; then
13399           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13400 $as_echo "not found" >&6; }
13401           as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
13402         fi
13403         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13404 $as_echo "$tool_specified" >&6; }
13405       fi
13406     fi
13407   fi
13408 
13409 
13410 
13411 
13412   # Publish this variable in the help.
13413 
13414 
13415   if test "x$SETFILE" = x; then
13416     # The variable is not set by user, try to locate tool using the code snippet
13417     for ac_prog in SetFile
13418 do
13419   # Extract the first word of "$ac_prog", so it can be a program name with args.
13420 set dummy $ac_prog; ac_word=$2
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13422 $as_echo_n "checking for $ac_word... " >&6; }
13423 if ${ac_cv_path_SETFILE+:} false; then :
13424   $as_echo_n "(cached) " >&6
13425 else
13426   case $SETFILE in
13427   [\\/]* | ?:[\\/]*)
13428   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13429   ;;
13430   *)
13431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13432 for as_dir in $PATH
13433 do
13434   IFS=$as_save_IFS
13435   test -z "$as_dir" && as_dir=.
13436     for ac_exec_ext in '' $ac_executable_extensions; do
13437   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13438     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13440     break 2
13441   fi
13442 done
13443   done
13444 IFS=$as_save_IFS
13445 
13446   ;;
13447 esac
13448 fi
13449 SETFILE=$ac_cv_path_SETFILE
13450 if test -n "$SETFILE"; then
13451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13452 $as_echo "$SETFILE" >&6; }
13453 else
13454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13455 $as_echo "no" >&6; }
13456 fi
13457 
13458 
13459   test -n "$SETFILE" && break
13460 done
13461 
13462   else
13463     # The variable is set, but is it from the command line or the environment?
13464 
13465     # Try to remove the string !SETFILE! from our list.
13466     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
13467     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13468       # If it failed, the variable was not from the command line. Ignore it,
13469       # but warn the user (except for BASH, which is always set by the calling BASH).
13470       if test "xSETFILE" != xBASH; then
13471         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
13472 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
13473       fi
13474       # Try to locate tool using the code snippet
13475       for ac_prog in SetFile
13476 do
13477   # Extract the first word of "$ac_prog", so it can be a program name with args.
13478 set dummy $ac_prog; ac_word=$2
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13480 $as_echo_n "checking for $ac_word... " >&6; }
13481 if ${ac_cv_path_SETFILE+:} false; then :
13482   $as_echo_n "(cached) " >&6
13483 else
13484   case $SETFILE in
13485   [\\/]* | ?:[\\/]*)
13486   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13487   ;;
13488   *)
13489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13490 for as_dir in $PATH
13491 do
13492   IFS=$as_save_IFS
13493   test -z "$as_dir" && as_dir=.
13494     for ac_exec_ext in '' $ac_executable_extensions; do
13495   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13496     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13498     break 2
13499   fi
13500 done
13501   done
13502 IFS=$as_save_IFS
13503 
13504   ;;
13505 esac
13506 fi
13507 SETFILE=$ac_cv_path_SETFILE
13508 if test -n "$SETFILE"; then
13509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13510 $as_echo "$SETFILE" >&6; }
13511 else
13512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13513 $as_echo "no" >&6; }
13514 fi
13515 
13516 
13517   test -n "$SETFILE" && break
13518 done
13519 
13520     else
13521       # If it succeeded, then it was overridden by the user. We will use it
13522       # for the tool.
13523 
13524       # First remove it from the list of overridden variables, so we can test
13525       # for unknown variables in the end.
13526       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13527 
13528       # Check if the provided tool contains a complete path.
13529       tool_specified="$SETFILE"
13530       tool_basename="${tool_specified##*/}"
13531       if test "x$tool_basename" = "x$tool_specified"; then
13532         # A command without a complete path is provided, search $PATH.
13533         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
13534 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
13535         # Extract the first word of "$tool_basename", so it can be a program name with args.
13536 set dummy $tool_basename; ac_word=$2
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13538 $as_echo_n "checking for $ac_word... " >&6; }
13539 if ${ac_cv_path_SETFILE+:} false; then :
13540   $as_echo_n "(cached) " >&6
13541 else
13542   case $SETFILE in
13543   [\\/]* | ?:[\\/]*)
13544   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13545   ;;
13546   *)
13547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13548 for as_dir in $PATH
13549 do
13550   IFS=$as_save_IFS
13551   test -z "$as_dir" && as_dir=.
13552     for ac_exec_ext in '' $ac_executable_extensions; do
13553   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13554     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13556     break 2
13557   fi
13558 done
13559   done
13560 IFS=$as_save_IFS
13561 
13562   ;;
13563 esac
13564 fi
13565 SETFILE=$ac_cv_path_SETFILE
13566 if test -n "$SETFILE"; then
13567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13568 $as_echo "$SETFILE" >&6; }
13569 else
13570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13571 $as_echo "no" >&6; }
13572 fi
13573 
13574 
13575         if test "x$SETFILE" = x; then
13576           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13577         fi
13578       else
13579         # Otherwise we believe it is a complete path. Use it as it is.
13580         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
13581 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
13582         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
13583 $as_echo_n "checking for SETFILE... " >&6; }
13584         if test ! -x "$tool_specified"; then
13585           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13586 $as_echo "not found" >&6; }
13587           as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
13588         fi
13589         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13590 $as_echo "$tool_specified" >&6; }
13591       fi
13592     fi
13593   fi
13594 
13595 
13596 
13597 
13598   # Publish this variable in the help.
13599 
13600 
13601   if test "x$CPIO" = x; then
13602     # The variable is not set by user, try to locate tool using the code snippet
13603     for ac_prog in cpio bsdcpio
13604 do
13605   # Extract the first word of "$ac_prog", so it can be a program name with args.
13606 set dummy $ac_prog; ac_word=$2
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13608 $as_echo_n "checking for $ac_word... " >&6; }
13609 if ${ac_cv_path_CPIO+:} false; then :
13610   $as_echo_n "(cached) " >&6
13611 else
13612   case $CPIO in
13613   [\\/]* | ?:[\\/]*)
13614   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13615   ;;
13616   *)
13617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13618 for as_dir in $PATH
13619 do
13620   IFS=$as_save_IFS
13621   test -z "$as_dir" && as_dir=.
13622     for ac_exec_ext in '' $ac_executable_extensions; do
13623   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13624     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13626     break 2
13627   fi
13628 done
13629   done
13630 IFS=$as_save_IFS
13631 
13632   ;;
13633 esac
13634 fi
13635 CPIO=$ac_cv_path_CPIO
13636 if test -n "$CPIO"; then
13637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13638 $as_echo "$CPIO" >&6; }
13639 else
13640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13641 $as_echo "no" >&6; }
13642 fi
13643 
13644 
13645   test -n "$CPIO" && break
13646 done
13647 
13648   else
13649     # The variable is set, but is it from the command line or the environment?
13650 
13651     # Try to remove the string !CPIO! from our list.
13652     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
13653     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13654       # If it failed, the variable was not from the command line. Ignore it,
13655       # but warn the user (except for BASH, which is always set by the calling BASH).
13656       if test "xCPIO" != xBASH; then
13657         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
13658 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
13659       fi
13660       # Try to locate tool using the code snippet
13661       for ac_prog in cpio bsdcpio
13662 do
13663   # Extract the first word of "$ac_prog", so it can be a program name with args.
13664 set dummy $ac_prog; ac_word=$2
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13666 $as_echo_n "checking for $ac_word... " >&6; }
13667 if ${ac_cv_path_CPIO+:} false; then :
13668   $as_echo_n "(cached) " >&6
13669 else
13670   case $CPIO in
13671   [\\/]* | ?:[\\/]*)
13672   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13673   ;;
13674   *)
13675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13676 for as_dir in $PATH
13677 do
13678   IFS=$as_save_IFS
13679   test -z "$as_dir" && as_dir=.
13680     for ac_exec_ext in '' $ac_executable_extensions; do
13681   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13682     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13684     break 2
13685   fi
13686 done
13687   done
13688 IFS=$as_save_IFS
13689 
13690   ;;
13691 esac
13692 fi
13693 CPIO=$ac_cv_path_CPIO
13694 if test -n "$CPIO"; then
13695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13696 $as_echo "$CPIO" >&6; }
13697 else
13698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13699 $as_echo "no" >&6; }
13700 fi
13701 
13702 
13703   test -n "$CPIO" && break
13704 done
13705 
13706     else
13707       # If it succeeded, then it was overridden by the user. We will use it
13708       # for the tool.
13709 
13710       # First remove it from the list of overridden variables, so we can test
13711       # for unknown variables in the end.
13712       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13713 
13714       # Check if the provided tool contains a complete path.
13715       tool_specified="$CPIO"
13716       tool_basename="${tool_specified##*/}"
13717       if test "x$tool_basename" = "x$tool_specified"; then
13718         # A command without a complete path is provided, search $PATH.
13719         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
13720 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
13721         # Extract the first word of "$tool_basename", so it can be a program name with args.
13722 set dummy $tool_basename; ac_word=$2
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13724 $as_echo_n "checking for $ac_word... " >&6; }
13725 if ${ac_cv_path_CPIO+:} false; then :
13726   $as_echo_n "(cached) " >&6
13727 else
13728   case $CPIO in
13729   [\\/]* | ?:[\\/]*)
13730   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13731   ;;
13732   *)
13733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13734 for as_dir in $PATH
13735 do
13736   IFS=$as_save_IFS
13737   test -z "$as_dir" && as_dir=.
13738     for ac_exec_ext in '' $ac_executable_extensions; do
13739   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13740     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13742     break 2
13743   fi
13744 done
13745   done
13746 IFS=$as_save_IFS
13747 
13748   ;;
13749 esac
13750 fi
13751 CPIO=$ac_cv_path_CPIO
13752 if test -n "$CPIO"; then
13753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13754 $as_echo "$CPIO" >&6; }
13755 else
13756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13757 $as_echo "no" >&6; }
13758 fi
13759 
13760 
13761         if test "x$CPIO" = x; then
13762           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13763         fi
13764       else
13765         # Otherwise we believe it is a complete path. Use it as it is.
13766         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
13767 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
13768         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
13769 $as_echo_n "checking for CPIO... " >&6; }
13770         if test ! -x "$tool_specified"; then
13771           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13772 $as_echo "not found" >&6; }
13773           as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
13774         fi
13775         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13776 $as_echo "$tool_specified" >&6; }
13777       fi
13778     fi
13779   fi
13780 
13781 
13782 
13783 
13784 # Now we can determine OpenJDK build and target platforms. This is required to
13785 # have early on.
13786 # Make sure we can run config.sub.
13787 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
13788   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
13789 
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
13791 $as_echo_n "checking build system type... " >&6; }
13792 if ${ac_cv_build+:} false; then :
13793   $as_echo_n "(cached) " >&6
13794 else
13795   ac_build_alias=$build_alias
13796 test "x$ac_build_alias" = x &&
13797   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
13798 test "x$ac_build_alias" = x &&
13799   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
13800 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
13801   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
13802 
13803 fi
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
13805 $as_echo "$ac_cv_build" >&6; }
13806 case $ac_cv_build in
13807 *-*-*) ;;
13808 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
13809 esac
13810 build=$ac_cv_build
13811 ac_save_IFS=$IFS; IFS='-'
13812 set x $ac_cv_build
13813 shift
13814 build_cpu=$1
13815 build_vendor=$2
13816 shift; shift
13817 # Remember, the first character of IFS is used to create $*,
13818 # except with old shells:
13819 build_os=$*
13820 IFS=$ac_save_IFS
13821 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13822 
13823 
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
13825 $as_echo_n "checking host system type... " >&6; }
13826 if ${ac_cv_host+:} false; then :
13827   $as_echo_n "(cached) " >&6
13828 else
13829   if test "x$host_alias" = x; then
13830   ac_cv_host=$ac_cv_build
13831 else
13832   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
13833     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
13834 fi
13835 
13836 fi
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
13838 $as_echo "$ac_cv_host" >&6; }
13839 case $ac_cv_host in
13840 *-*-*) ;;
13841 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
13842 esac
13843 host=$ac_cv_host
13844 ac_save_IFS=$IFS; IFS='-'
13845 set x $ac_cv_host
13846 shift
13847 host_cpu=$1
13848 host_vendor=$2
13849 shift; shift
13850 # Remember, the first character of IFS is used to create $*,
13851 # except with old shells:
13852 host_os=$*
13853 IFS=$ac_save_IFS
13854 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13855 
13856 
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
13858 $as_echo_n "checking target system type... " >&6; }
13859 if ${ac_cv_target+:} false; then :
13860   $as_echo_n "(cached) " >&6
13861 else
13862   if test "x$target_alias" = x; then
13863   ac_cv_target=$ac_cv_host
13864 else
13865   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
13866     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
13867 fi
13868 
13869 fi
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
13871 $as_echo "$ac_cv_target" >&6; }
13872 case $ac_cv_target in
13873 *-*-*) ;;
13874 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
13875 esac
13876 target=$ac_cv_target
13877 ac_save_IFS=$IFS; IFS='-'
13878 set x $ac_cv_target
13879 shift
13880 target_cpu=$1
13881 target_vendor=$2
13882 shift; shift
13883 # Remember, the first character of IFS is used to create $*,
13884 # except with old shells:
13885 target_os=$*
13886 IFS=$ac_save_IFS
13887 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13888 
13889 
13890 # The aliases save the names the user supplied, while $host etc.
13891 # will get canonicalized.
13892 test -n "$target_alias" &&
13893   test "$program_prefix$program_suffix$program_transform_name" = \
13894     NONENONEs,x,x, &&
13895   program_prefix=${target_alias}-
13896 
13897   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
13898   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
13899   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
13900   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
13901   # to use the configure naming style.
13902 
13903 
13904 
13905 
13906 
13907   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
13908   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
13909   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
13910   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
13911   OPENJDK_TARGET_AUTOCONF_NAME="$host"
13912   OPENJDK_BUILD_AUTOCONF_NAME="$build"
13913 
13914 
13915 
13916   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13917 
13918   case "$build_os" in
13919     *linux*)
13920       VAR_OS=linux
13921       VAR_OS_TYPE=unix
13922       ;;
13923     *solaris*)
13924       VAR_OS=solaris
13925       VAR_OS_TYPE=unix
13926       ;;
13927     *darwin*)
13928       VAR_OS=macosx
13929       VAR_OS_TYPE=unix
13930       ;;
13931     *bsd*)
13932       VAR_OS=bsd
13933       VAR_OS_TYPE=unix
13934       ;;
13935     *cygwin*)
13936       VAR_OS=windows
13937       VAR_OS_ENV=windows.cygwin
13938       ;;
13939     *mingw*)
13940       VAR_OS=windows
13941       VAR_OS_ENV=windows.msys
13942       ;;
13943     *aix*)
13944       VAR_OS=aix
13945       VAR_OS_TYPE=unix
13946       ;;
13947     *)
13948       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
13949       ;;
13950   esac
13951 
13952 
13953   # First argument is the cpu name from the trip/quad
13954   case "$build_cpu" in
13955     x86_64)
13956       VAR_CPU=x86_64
13957       VAR_CPU_ARCH=x86
13958       VAR_CPU_BITS=64
13959       VAR_CPU_ENDIAN=little
13960       ;;
13961     i?86)
13962       VAR_CPU=x86
13963       VAR_CPU_ARCH=x86
13964       VAR_CPU_BITS=32
13965       VAR_CPU_ENDIAN=little
13966       ;;
13967     arm*)
13968       VAR_CPU=arm
13969       VAR_CPU_ARCH=arm
13970       VAR_CPU_BITS=32
13971       VAR_CPU_ENDIAN=little
13972       ;;
13973     aarch64)
13974       VAR_CPU=aarch64
13975       VAR_CPU_ARCH=aarch64
13976       VAR_CPU_BITS=64
13977       VAR_CPU_ENDIAN=little
13978       ;;
13979     powerpc)
13980       VAR_CPU=ppc
13981       VAR_CPU_ARCH=ppc
13982       VAR_CPU_BITS=32
13983       VAR_CPU_ENDIAN=big
13984       ;;
13985     powerpc64)
13986       VAR_CPU=ppc64
13987       VAR_CPU_ARCH=ppc
13988       VAR_CPU_BITS=64
13989       VAR_CPU_ENDIAN=big
13990       ;;
13991     powerpc64le)
13992       VAR_CPU=ppc64
13993       VAR_CPU_ARCH=ppc
13994       VAR_CPU_BITS=64
13995       VAR_CPU_ENDIAN=little
13996       ;;
13997     s390)
13998       VAR_CPU=s390
13999       VAR_CPU_ARCH=s390
14000       VAR_CPU_BITS=32
14001       VAR_CPU_ENDIAN=big
14002       ;;
14003     s390x)
14004       VAR_CPU=s390x
14005       VAR_CPU_ARCH=s390
14006       VAR_CPU_BITS=64
14007       VAR_CPU_ENDIAN=big
14008       ;;
14009     sparc)
14010       VAR_CPU=sparc
14011       VAR_CPU_ARCH=sparc
14012       VAR_CPU_BITS=32
14013       VAR_CPU_ENDIAN=big
14014       ;;
14015     sparcv9|sparc64)
14016       VAR_CPU=sparcv9
14017       VAR_CPU_ARCH=sparc
14018       VAR_CPU_BITS=64
14019       VAR_CPU_ENDIAN=big
14020       ;;
14021     *)
14022       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
14023       ;;
14024   esac
14025 
14026   # ..and setup our own variables. (Do this explicitely to facilitate searching)
14027   OPENJDK_BUILD_OS="$VAR_OS"
14028   if test "x$VAR_OS_TYPE" != x; then
14029     OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE"
14030   else
14031     OPENJDK_BUILD_OS_TYPE="$VAR_OS"
14032   fi
14033   if test "x$VAR_OS_ENV" != x; then
14034     OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
14035   else
14036     OPENJDK_BUILD_OS_ENV="$VAR_OS"
14037   fi
14038   OPENJDK_BUILD_CPU="$VAR_CPU"
14039   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
14040   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
14041   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
14042 
14043 
14044 
14045 
14046 
14047 
14048 
14049 
14050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
14051 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
14052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
14053 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
14054 
14055   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
14056 
14057   case "$host_os" in
14058     *linux*)
14059       VAR_OS=linux
14060       VAR_OS_TYPE=unix
14061       ;;
14062     *solaris*)
14063       VAR_OS=solaris
14064       VAR_OS_TYPE=unix
14065       ;;
14066     *darwin*)
14067       VAR_OS=macosx
14068       VAR_OS_TYPE=unix
14069       ;;
14070     *bsd*)
14071       VAR_OS=bsd
14072       VAR_OS_TYPE=unix
14073       ;;
14074     *cygwin*)
14075       VAR_OS=windows
14076       VAR_OS_ENV=windows.cygwin
14077       ;;
14078     *mingw*)
14079       VAR_OS=windows
14080       VAR_OS_ENV=windows.msys
14081       ;;
14082     *aix*)
14083       VAR_OS=aix
14084       VAR_OS_TYPE=unix
14085       ;;
14086     *)
14087       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
14088       ;;
14089   esac
14090 
14091 
14092   # First argument is the cpu name from the trip/quad
14093   case "$host_cpu" in
14094     x86_64)
14095       VAR_CPU=x86_64
14096       VAR_CPU_ARCH=x86
14097       VAR_CPU_BITS=64
14098       VAR_CPU_ENDIAN=little
14099       ;;
14100     i?86)
14101       VAR_CPU=x86
14102       VAR_CPU_ARCH=x86
14103       VAR_CPU_BITS=32
14104       VAR_CPU_ENDIAN=little
14105       ;;
14106     arm*)
14107       VAR_CPU=arm
14108       VAR_CPU_ARCH=arm
14109       VAR_CPU_BITS=32
14110       VAR_CPU_ENDIAN=little
14111       ;;
14112     aarch64)
14113       VAR_CPU=aarch64
14114       VAR_CPU_ARCH=aarch64
14115       VAR_CPU_BITS=64
14116       VAR_CPU_ENDIAN=little
14117       ;;
14118     powerpc)
14119       VAR_CPU=ppc
14120       VAR_CPU_ARCH=ppc
14121       VAR_CPU_BITS=32
14122       VAR_CPU_ENDIAN=big
14123       ;;
14124     powerpc64)
14125       VAR_CPU=ppc64
14126       VAR_CPU_ARCH=ppc
14127       VAR_CPU_BITS=64
14128       VAR_CPU_ENDIAN=big
14129       ;;
14130     powerpc64le)
14131       VAR_CPU=ppc64
14132       VAR_CPU_ARCH=ppc
14133       VAR_CPU_BITS=64
14134       VAR_CPU_ENDIAN=little
14135       ;;
14136     s390)
14137       VAR_CPU=s390
14138       VAR_CPU_ARCH=s390
14139       VAR_CPU_BITS=32
14140       VAR_CPU_ENDIAN=big
14141       ;;
14142     s390x)
14143       VAR_CPU=s390x
14144       VAR_CPU_ARCH=s390
14145       VAR_CPU_BITS=64
14146       VAR_CPU_ENDIAN=big
14147       ;;
14148     sparc)
14149       VAR_CPU=sparc
14150       VAR_CPU_ARCH=sparc
14151       VAR_CPU_BITS=32
14152       VAR_CPU_ENDIAN=big
14153       ;;
14154     sparcv9|sparc64)
14155       VAR_CPU=sparcv9
14156       VAR_CPU_ARCH=sparc
14157       VAR_CPU_BITS=64
14158       VAR_CPU_ENDIAN=big
14159       ;;
14160     *)
14161       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
14162       ;;
14163   esac
14164 
14165   # ... and setup our own variables. (Do this explicitely to facilitate searching)
14166   OPENJDK_TARGET_OS="$VAR_OS"
14167   if test "x$VAR_OS_TYPE" != x; then
14168     OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE"
14169   else
14170     OPENJDK_TARGET_OS_TYPE="$VAR_OS"
14171   fi
14172   if test "x$VAR_OS_ENV" != x; then
14173     OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
14174   else
14175     OPENJDK_TARGET_OS_ENV="$VAR_OS"
14176   fi
14177   OPENJDK_TARGET_CPU="$VAR_CPU"
14178   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
14179   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
14180   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
14181 
14182 
14183 
14184 
14185 
14186 
14187 
14188 
14189   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
14190 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
14191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
14192 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
14193 
14194 
14195 
14196 # Check whether --with-target-bits was given.
14197 if test "${with_target_bits+set}" = set; then :
14198   withval=$with_target_bits;
14199 fi
14200 
14201 
14202   # We have three types of compiles:
14203   # native  == normal compilation, target system == build system
14204   # cross   == traditional cross compilation, target system != build system; special toolchain needed
14205   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
14206   #
14207   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
14208     # We're doing a proper cross-compilation
14209     COMPILE_TYPE="cross"
14210   else
14211     COMPILE_TYPE="native"
14212   fi
14213 
14214   if test "x$with_target_bits" != x; then
14215     if test "x$COMPILE_TYPE" = "xcross"; then
14216       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
14217     fi
14218 
14219     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14220       # A reduced build is requested
14221       COMPILE_TYPE="reduced"
14222       OPENJDK_TARGET_CPU_BITS=32
14223       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
14224         OPENJDK_TARGET_CPU=x86
14225       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
14226         OPENJDK_TARGET_CPU=sparc
14227       else
14228         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
14229       fi
14230     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
14231       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
14232     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
14233       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
14234 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
14235     else
14236       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
14237     fi
14238   fi
14239 
14240 
14241   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
14242 $as_echo_n "checking compilation type... " >&6; }
14243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
14244 $as_echo "$COMPILE_TYPE" >&6; }
14245 
14246 
14247   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
14248     REQUIRED_OS_NAME=SunOS
14249     REQUIRED_OS_VERSION=5.10
14250   fi
14251   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
14252     REQUIRED_OS_NAME=Linux
14253     REQUIRED_OS_VERSION=2.6
14254   fi
14255   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
14256     REQUIRED_OS_NAME=Windows
14257     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
14258       REQUIRED_OS_VERSION=5.2
14259     else
14260       REQUIRED_OS_VERSION=5.1
14261     fi
14262   fi
14263   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14264     REQUIRED_OS_NAME=Darwin
14265     REQUIRED_OS_VERSION=11.2
14266   fi
14267 
14268 
14269 
14270 
14271 
14272   # Also store the legacy naming of the cpu.
14273   # Ie i586 and amd64 instead of x86 and x86_64
14274   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
14275   if test "x$OPENJDK_TARGET_CPU" = xx86; then
14276     OPENJDK_TARGET_CPU_LEGACY="i586"
14277   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14278     # On all platforms except MacOSX replace x86_64 with amd64.
14279     OPENJDK_TARGET_CPU_LEGACY="amd64"
14280   fi
14281 
14282 
14283   # And the second legacy naming of the cpu.
14284   # Ie i386 and amd64 instead of x86 and x86_64.
14285   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
14286   if test "x$OPENJDK_TARGET_CPU" = xx86; then
14287     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
14288   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14289     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
14290   fi
14291 
14292 
14293   # This is the name of the cpu (but using i386 and amd64 instead of
14294   # x86 and x86_64, respectively), preceeded by a /, to be used when
14295   # locating libraries. On macosx, it's empty, though.
14296   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
14297   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
14298     OPENJDK_TARGET_CPU_LIBDIR=""
14299   fi
14300 
14301 
14302   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
14303   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
14304   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
14305   OPENJDK_TARGET_CPU_ISADIR=""
14306   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
14307     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14308       OPENJDK_TARGET_CPU_ISADIR="/amd64"
14309     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
14310       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
14311     fi
14312   fi
14313 
14314 
14315   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
14316   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
14317   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
14318     # On linux only, we replace x86 with i386.
14319     OPENJDK_TARGET_CPU_OSARCH="i386"
14320   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14321     # On all platforms except macosx, we replace x86_64 with amd64.
14322     OPENJDK_TARGET_CPU_OSARCH="amd64"
14323   fi
14324 
14325 
14326   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
14327   if test "x$OPENJDK_TARGET_CPU" = xx86; then
14328     OPENJDK_TARGET_CPU_JLI="i386"
14329   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14330     # On all platforms except macosx, we replace x86_64 with amd64.
14331     OPENJDK_TARGET_CPU_JLI="amd64"
14332   fi
14333   # Now setup the -D flags for building libjli.
14334   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
14335   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
14336     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
14337       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
14338     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
14339       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
14340     fi
14341   fi
14342 
14343 
14344   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
14345       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
14346   else
14347       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE}
14348   fi
14349 
14350 
14351   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14352     A_LP64="LP64:="
14353     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
14354     # unpack200.exe
14355     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
14356       ADD_LP64="-D_LP64=1"
14357     fi
14358   fi
14359   LP64=$A_LP64
14360 
14361 
14362   if test "x$COMPILE_TYPE" = "xcross"; then
14363     # FIXME: ... or should this include reduced builds..?
14364     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
14365   else
14366     DEFINE_CROSS_COMPILE_ARCH=""
14367   fi
14368 
14369 
14370   # ZERO_ARCHDEF is used to enable architecture-specific code
14371   case "${OPENJDK_TARGET_CPU}" in
14372     ppc)     ZERO_ARCHDEF=PPC32 ;;
14373     ppc64)   ZERO_ARCHDEF=PPC64 ;;
14374     s390*)   ZERO_ARCHDEF=S390  ;;
14375     sparc*)  ZERO_ARCHDEF=SPARC ;;
14376     x86_64*) ZERO_ARCHDEF=AMD64 ;;
14377     x86)     ZERO_ARCHDEF=IA32  ;;
14378     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
14379   esac
14380 
14381 
14382 
14383 
14384 # Continue setting up basic stuff. Most remaining code require fundamental tools.
14385 
14386   # Save the current directory this script was started from
14387   CURDIR="$PWD"
14388 
14389   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
14390     PATH_SEP=";"
14391 
14392   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
14393   if test $SRC_ROOT_LENGTH -gt 100; then
14394     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
14395   fi
14396 
14397   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14398     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
14399 $as_echo_n "checking cygwin release... " >&6; }
14400     CYGWIN_VERSION=`$UNAME -r`
14401     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
14402 $as_echo "$CYGWIN_VERSION" >&6; }
14403     WINDOWS_ENV_VENDOR='cygwin'
14404     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
14405 
14406     CYGWIN_VERSION_OK=`$ECHO $CYGWIN_VERSION | $GREP ^1.7.`
14407     if test "x$CYGWIN_VERSION_OK" = x; then
14408       { $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
14409 $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;}
14410       as_fn_error $? "Cannot continue" "$LINENO" 5
14411     fi
14412     if test "x$CYGPATH" = x; then
14413       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
14414     fi
14415     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
14416 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
14417     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
14418     cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"`
14419     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
14420     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
14421     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
14422 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
14423     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
14424     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
14425     if test "x$test_cygdrive_prefix" = x; then
14426       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
14427     fi
14428   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14429     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
14430 $as_echo_n "checking msys release... " >&6; }
14431     MSYS_VERSION=`$UNAME -r`
14432     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
14433 $as_echo "$MSYS_VERSION" >&6; }
14434 
14435     WINDOWS_ENV_VENDOR='msys'
14436     WINDOWS_ENV_VERSION="$MSYS_VERSION"
14437 
14438     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
14439 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
14440     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
14441     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
14442 
14443   windows_path="$MSYS_ROOT_PATH"
14444   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14445     unix_path=`$CYGPATH -u "$windows_path"`
14446     MSYS_ROOT_PATH="$unix_path"
14447   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14448     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14449     MSYS_ROOT_PATH="$unix_path"
14450   fi
14451 
14452     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
14453 $as_echo "$MSYS_ROOT_PATH" >&6; }
14454     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
14455   else
14456     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
14457   fi
14458 
14459   # Test if windows or unix (cygwin/msys) find is first in path.
14460   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
14461 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
14462   FIND_BINARY_OUTPUT=`find --version 2>&1`
14463   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
14464     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
14465 $as_echo "unix style" >&6; }
14466   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
14467     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
14468 $as_echo "Windows" >&6; }
14469     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
14470 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
14471     { $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
14472 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
14473     as_fn_error $? "Cannot continue" "$LINENO" 5
14474   else
14475     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
14476 $as_echo "unknown" >&6; }
14477     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
14478 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
14479   fi
14480 
14481   else
14482     PATH_SEP=":"
14483   fi
14484 
14485 
14486   # We get the top-level directory from the supporting wrappers.
14487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
14488 $as_echo_n "checking for top-level directory... " >&6; }
14489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
14490 $as_echo "$TOPDIR" >&6; }
14491 
14492 
14493   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
14494 
14495   # Only process if variable expands to non-empty
14496 
14497   if test "x$CURDIR" != x; then
14498     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14499 
14500   # Input might be given as Windows format, start by converting to
14501   # unix format.
14502   path="$CURDIR"
14503   new_path=`$CYGPATH -u "$path"`
14504 
14505   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14506   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14507   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14508   # "foo.exe" is OK but "foo" is an error.
14509   #
14510   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14511   # It is also a way to make sure we got the proper file name for the real test later on.
14512   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14513   if test "x$test_shortpath" = x; then
14514     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14515 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14516     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
14517   fi
14518 
14519   # Call helper function which possibly converts this using DOS-style short mode.
14520   # If so, the updated path is stored in $new_path.
14521 
14522   input_path="$new_path"
14523   # Check if we need to convert this using DOS-style short mode. If the path
14524   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14525   # take no chances and rewrite it.
14526   # Note: m4 eats our [], so we need to use [ and ] instead.
14527   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14528   if test "x$has_forbidden_chars" != x; then
14529     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14530     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14531     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14532     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14533       # Going to short mode and back again did indeed matter. Since short mode is
14534       # case insensitive, let's make it lowercase to improve readability.
14535       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14536       # Now convert it back to Unix-stile (cygpath)
14537       input_path=`$CYGPATH -u "$shortmode_path"`
14538       new_path="$input_path"
14539     fi
14540   fi
14541 
14542   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14543   if test "x$test_cygdrive_prefix" = x; then
14544     # As a simple fix, exclude /usr/bin since it's not a real path.
14545     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14546       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14547       # a path prefixed by /cygdrive for fixpath to work.
14548       new_path="$CYGWIN_ROOT_PATH$input_path"
14549     fi
14550   fi
14551 
14552 
14553   if test "x$path" != "x$new_path"; then
14554     CURDIR="$new_path"
14555     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14556 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14557   fi
14558 
14559     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14560 
14561   path="$CURDIR"
14562   has_colon=`$ECHO $path | $GREP ^.:`
14563   new_path="$path"
14564   if test "x$has_colon" = x; then
14565     # Not in mixed or Windows style, start by that.
14566     new_path=`cmd //c echo $path`
14567   fi
14568 
14569 
14570   input_path="$new_path"
14571   # Check if we need to convert this using DOS-style short mode. If the path
14572   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14573   # take no chances and rewrite it.
14574   # Note: m4 eats our [], so we need to use [ and ] instead.
14575   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14576   if test "x$has_forbidden_chars" != x; then
14577     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14578     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14579   fi
14580 
14581 
14582   windows_path="$new_path"
14583   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14584     unix_path=`$CYGPATH -u "$windows_path"`
14585     new_path="$unix_path"
14586   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14587     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14588     new_path="$unix_path"
14589   fi
14590 
14591   if test "x$path" != "x$new_path"; then
14592     CURDIR="$new_path"
14593     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14594 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14595   fi
14596 
14597   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14598   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14599 
14600     else
14601       # We're on a unix platform. Hooray! :)
14602       path="$CURDIR"
14603       has_space=`$ECHO "$path" | $GREP " "`
14604       if test "x$has_space" != x; then
14605         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14606 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14607         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14608       fi
14609 
14610       # Use eval to expand a potential ~
14611       eval path="$path"
14612       if test ! -f "$path" && test ! -d "$path"; then
14613         as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14614       fi
14615 
14616       CURDIR="`cd "$path"; $THEPWDCMD -L`"
14617     fi
14618   fi
14619 
14620 
14621   # Only process if variable expands to non-empty
14622 
14623   if test "x$TOPDIR" != x; then
14624     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14625 
14626   # Input might be given as Windows format, start by converting to
14627   # unix format.
14628   path="$TOPDIR"
14629   new_path=`$CYGPATH -u "$path"`
14630 
14631   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14632   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14633   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14634   # "foo.exe" is OK but "foo" is an error.
14635   #
14636   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14637   # It is also a way to make sure we got the proper file name for the real test later on.
14638   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14639   if test "x$test_shortpath" = x; then
14640     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14641 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14642     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
14643   fi
14644 
14645   # Call helper function which possibly converts this using DOS-style short mode.
14646   # If so, the updated path is stored in $new_path.
14647 
14648   input_path="$new_path"
14649   # Check if we need to convert this using DOS-style short mode. If the path
14650   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14651   # take no chances and rewrite it.
14652   # Note: m4 eats our [], so we need to use [ and ] instead.
14653   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14654   if test "x$has_forbidden_chars" != x; then
14655     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14656     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14657     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14658     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14659       # Going to short mode and back again did indeed matter. Since short mode is
14660       # case insensitive, let's make it lowercase to improve readability.
14661       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14662       # Now convert it back to Unix-stile (cygpath)
14663       input_path=`$CYGPATH -u "$shortmode_path"`
14664       new_path="$input_path"
14665     fi
14666   fi
14667 
14668   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14669   if test "x$test_cygdrive_prefix" = x; then
14670     # As a simple fix, exclude /usr/bin since it's not a real path.
14671     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14672       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14673       # a path prefixed by /cygdrive for fixpath to work.
14674       new_path="$CYGWIN_ROOT_PATH$input_path"
14675     fi
14676   fi
14677 
14678 
14679   if test "x$path" != "x$new_path"; then
14680     TOPDIR="$new_path"
14681     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14682 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14683   fi
14684 
14685     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14686 
14687   path="$TOPDIR"
14688   has_colon=`$ECHO $path | $GREP ^.:`
14689   new_path="$path"
14690   if test "x$has_colon" = x; then
14691     # Not in mixed or Windows style, start by that.
14692     new_path=`cmd //c echo $path`
14693   fi
14694 
14695 
14696   input_path="$new_path"
14697   # Check if we need to convert this using DOS-style short mode. If the path
14698   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14699   # take no chances and rewrite it.
14700   # Note: m4 eats our [], so we need to use [ and ] instead.
14701   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14702   if test "x$has_forbidden_chars" != x; then
14703     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14704     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14705   fi
14706 
14707 
14708   windows_path="$new_path"
14709   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14710     unix_path=`$CYGPATH -u "$windows_path"`
14711     new_path="$unix_path"
14712   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14713     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14714     new_path="$unix_path"
14715   fi
14716 
14717   if test "x$path" != "x$new_path"; then
14718     TOPDIR="$new_path"
14719     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14720 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14721   fi
14722 
14723   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14724   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14725 
14726     else
14727       # We're on a unix platform. Hooray! :)
14728       path="$TOPDIR"
14729       has_space=`$ECHO "$path" | $GREP " "`
14730       if test "x$has_space" != x; then
14731         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14732 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14733         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14734       fi
14735 
14736       # Use eval to expand a potential ~
14737       eval path="$path"
14738       if test ! -f "$path" && test ! -d "$path"; then
14739         as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14740       fi
14741 
14742       TOPDIR="`cd "$path"; $THEPWDCMD -L`"
14743     fi
14744   fi
14745 
14746   # SRC_ROOT is a traditional alias for TOPDIR.
14747   SRC_ROOT=$TOPDIR
14748 
14749   # Locate the directory of this script.
14750   AUTOCONF_DIR=$TOPDIR/common/autoconf
14751 
14752 
14753   # Setup default logging of stdout and stderr to build.log in the output root.
14754   BUILD_LOG='$(OUTPUT_ROOT)/build.log'
14755   BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old'
14756   BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
14757 
14758 
14759 
14760 
14761 
14762 # Check if it's a pure open build or if custom sources are to be used.
14763 
14764   # Check whether --enable-openjdk-only was given.
14765 if test "${enable_openjdk_only+set}" = set; then :
14766   enableval=$enable_openjdk_only;
14767 else
14768   enable_openjdk_only="no"
14769 fi
14770 
14771 
14772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
14773 $as_echo_n "checking for presence of closed sources... " >&6; }
14774   if test -d "$SRC_ROOT/jdk/src/closed"; then
14775     CLOSED_SOURCE_PRESENT=yes
14776   else
14777     CLOSED_SOURCE_PRESENT=no
14778   fi
14779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
14780 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
14781 
14782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
14783 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
14784   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
14785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
14786 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
14787 
14788   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
14789     OPENJDK=true
14790     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14791       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
14792 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
14793     fi
14794   else
14795     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14796       OPENJDK=true
14797     else
14798       OPENJDK=false
14799     fi
14800   fi
14801 
14802   if test "x$OPENJDK" = "xtrue"; then
14803     SET_OPENJDK="OPENJDK=true"
14804   fi
14805 
14806 
14807 
14808   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
14809   # the IncludeCustomExtension macro.
14810 
14811 
14812 # Check whether --with-custom-make-dir was given.
14813 if test "${with_custom_make_dir+set}" = set; then :
14814   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
14815 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
14816 fi
14817 
14818 
14819 
14820 
14821 # These are needed to be able to create a configuration name (and thus the output directory)
14822 
14823 ###############################################################################
14824 #
14825 # Check which variant of the JDK that we want to build.
14826 # Currently we have:
14827 #    normal:   standard edition
14828 #    embedded: cut down to a smaller footprint
14829 #
14830 # Effectively the JDK variant gives a name to a specific set of
14831 # modules to compile into the JDK. In the future, these modules
14832 # might even be Jigsaw modules.
14833 #
14834   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
14835 $as_echo_n "checking which variant of the JDK to build... " >&6; }
14836 
14837 # Check whether --with-jdk-variant was given.
14838 if test "${with_jdk_variant+set}" = set; then :
14839   withval=$with_jdk_variant;
14840 fi
14841 
14842 
14843   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
14844     JAVASE_EMBEDDED=""
14845     MINIMIZE_RAM_USAGE=""
14846     JDK_VARIANT="normal"
14847   elif test "x$with_jdk_variant" = xembedded; then
14848     if test "x$OPENJDK" = xtrue; then
14849       as_fn_error $? "When building OpenJDK only, embedded is not available" "$LINENO" 5
14850     fi
14851     JAVASE_EMBEDDED="JAVASE_EMBEDDED:=true"
14852     # Once we only have the configure based build for hotspot, this could
14853     # simply set the compiler define directly, and we can then remove that
14854     # from hotspot/make/<os>/makefiles/gcc.make
14855     MINIMIZE_RAM_USAGE="MINIMIZE_RAM_USAGE:=true"
14856     JDK_VARIANT="embedded"
14857   else
14858     as_fn_error $? "The available JDK variants are: normal, embedded" "$LINENO" 5
14859   fi
14860 
14861 
14862 
14863 
14864 
14865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
14866 $as_echo "$JDK_VARIANT" >&6; }
14867 
14868 
14869 ###############################################################################
14870 #
14871 # Check which interpreter of the JVM we want to build.
14872 # Currently we have:
14873 #    template: Template interpreter (the default)
14874 #    cpp     : C++ interpreter
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
14876 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
14877 
14878 # Check whether --with-jvm-interpreter was given.
14879 if test "${with_jvm_interpreter+set}" = set; then :
14880   withval=$with_jvm_interpreter;
14881 fi
14882 
14883 
14884 if test "x$with_jvm_interpreter" = x; then
14885      with_jvm_interpreter="template"
14886 fi
14887 
14888 JVM_INTERPRETER="$with_jvm_interpreter"
14889 
14890 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
14891    as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
14892 fi
14893 
14894 
14895 
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
14897 $as_echo "$with_jvm_interpreter" >&6; }
14898 
14899 
14900 
14901   ###############################################################################
14902   #
14903   # Check which variants of the JVM that we want to build.
14904   # Currently we have:
14905   #    server: normal interpreter and a tiered C1/C2 compiler
14906   #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
14907   #    minimal1: reduced form of client with optional VM services and features stripped out
14908   #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
14909   #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
14910   #    zero: no machine code interpreter, no compiler
14911   #    zeroshark: zero interpreter and shark/llvm compiler backend
14912 #    core: interpreter only, no compiler (only works on some platforms)
14913   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
14914 $as_echo_n "checking which variants of the JVM to build... " >&6; }
14915 
14916 # Check whether --with-jvm-variants was given.
14917 if test "${with_jvm_variants+set}" = set; then :
14918   withval=$with_jvm_variants;
14919 fi
14920 
14921 
14922   if test "x$with_jvm_variants" = x; then
14923     with_jvm_variants="server"
14924   fi
14925 
14926   JVM_VARIANTS=",$with_jvm_variants,"
14927   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,//'`
14928 
14929   if test "x$TEST_VARIANTS" != "x,"; then
14930      as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
14931   fi
14932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
14933 $as_echo "$with_jvm_variants" >&6; }
14934 
14935   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
14936   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
14937   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
14938   JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
14939   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
14940   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
14941   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
14942 
14943   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14944     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14945       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
14946     fi
14947   fi
14948   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14949     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14950       as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
14951     fi
14952   fi
14953   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14954     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14955       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
14956     fi
14957   fi
14958 
14959   # Replace the commas with AND for use in the build directory name.
14960   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
14961   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/'`
14962   if test "x$COUNT_VARIANTS" != "x,1"; then
14963     BUILDING_MULTIPLE_JVM_VARIANTS=yes
14964   else
14965     BUILDING_MULTIPLE_JVM_VARIANTS=no
14966   fi
14967 
14968 
14969 
14970 
14971 
14972 
14973 
14974 
14975 
14976 
14977   INCLUDE_SA=true
14978   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
14979     INCLUDE_SA=false
14980   fi
14981   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
14982     INCLUDE_SA=false
14983   fi
14984   if test "x$OPENJDK_TARGET_OS" = xaix ; then
14985     INCLUDE_SA=false
14986   fi
14987   if test "x$OPENJDK_TARGET_CPU" = xaarch64; then
14988     INCLUDE_SA=false
14989   fi
14990 
14991 
14992   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14993     MACOSX_UNIVERSAL="true"
14994   fi
14995 
14996 
14997 
14998 
14999   ###############################################################################
15000   #
15001   # Set the debug level
15002   #    release: no debug information, all optimizations, no asserts.
15003   #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
15004   #    fastdebug: debug information (-g), all optimizations, all asserts
15005   #    slowdebug: debug information (-g), no optimizations, all asserts
15006   #
15007   DEBUG_LEVEL="release"
15008   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
15009 $as_echo_n "checking which debug level to use... " >&6; }
15010   # Check whether --enable-debug was given.
15011 if test "${enable_debug+set}" = set; then :
15012   enableval=$enable_debug;
15013         ENABLE_DEBUG="${enableval}"
15014         DEBUG_LEVEL="fastdebug"
15015 
15016 else
15017   ENABLE_DEBUG="no"
15018 fi
15019 
15020 
15021 
15022 # Check whether --with-debug-level was given.
15023 if test "${with_debug_level+set}" = set; then :
15024   withval=$with_debug_level;
15025         DEBUG_LEVEL="${withval}"
15026         if test "x$ENABLE_DEBUG" = xyes; then
15027           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
15028         fi
15029 
15030 fi
15031 
15032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
15033 $as_echo "$DEBUG_LEVEL" >&6; }
15034 
15035   if test "x$DEBUG_LEVEL" != xrelease && \
15036       test "x$DEBUG_LEVEL" != xoptimized && \
15037       test "x$DEBUG_LEVEL" != xfastdebug && \
15038       test "x$DEBUG_LEVEL" != xslowdebug; then
15039     as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
15040   fi
15041 
15042 
15043   ###############################################################################
15044   #
15045   # Setup legacy vars/targets and new vars to deal with different debug levels.
15046   #
15047 
15048   case $DEBUG_LEVEL in
15049     release )
15050       VARIANT="OPT"
15051       FASTDEBUG="false"
15052       DEBUG_CLASSFILES="false"
15053       BUILD_VARIANT_RELEASE=""
15054       HOTSPOT_DEBUG_LEVEL="product"
15055       HOTSPOT_EXPORT="product"
15056       ;;
15057     fastdebug )
15058       VARIANT="DBG"
15059       FASTDEBUG="true"
15060       DEBUG_CLASSFILES="true"
15061       BUILD_VARIANT_RELEASE="-fastdebug"
15062       HOTSPOT_DEBUG_LEVEL="fastdebug"
15063       HOTSPOT_EXPORT="fastdebug"
15064       ;;
15065     slowdebug )
15066       VARIANT="DBG"
15067       FASTDEBUG="false"
15068       DEBUG_CLASSFILES="true"
15069       BUILD_VARIANT_RELEASE="-debug"
15070       HOTSPOT_DEBUG_LEVEL="debug"
15071       HOTSPOT_EXPORT="debug"
15072       ;;
15073     optimized )
15074       VARIANT="OPT"
15075       FASTDEBUG="false"
15076       DEBUG_CLASSFILES="false"
15077       BUILD_VARIANT_RELEASE="-optimized"
15078       HOTSPOT_DEBUG_LEVEL="optimized"
15079       HOTSPOT_EXPORT="optimized"
15080       ;;
15081   esac
15082 
15083   # The debug level 'optimized' is a little special because it is currently only
15084   # applicable to the HotSpot build where it means to build a completely
15085   # optimized version of the VM without any debugging code (like for the
15086   # 'release' debug level which is called 'product' in the HotSpot build) but
15087   # with the exception that it can contain additional code which is otherwise
15088   # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to
15089   # test new and/or experimental features which are not intended for customer
15090   # shipment. Because these new features need to be tested and benchmarked in
15091   # real world scenarios, we want to build the containing JDK at the 'release'
15092   # debug level.
15093   if test "x$DEBUG_LEVEL" = xoptimized; then
15094     DEBUG_LEVEL="release"
15095   fi
15096 
15097   #####
15098   # Generate the legacy makefile targets for hotspot.
15099   # The hotspot api for selecting the build artifacts, really, needs to be improved.
15100   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
15101   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
15102   # But until then ...
15103   HOTSPOT_TARGET=""
15104 
15105   if test "x$JVM_VARIANT_SERVER" = xtrue; then
15106     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
15107   fi
15108 
15109   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
15110     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
15111   fi
15112 
15113   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
15114     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
15115   fi
15116 
15117   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
15118     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
15119   fi
15120 
15121   if test "x$JVM_VARIANT_ZERO" = xtrue; then
15122     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
15123   fi
15124 
15125   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
15126     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
15127   fi
15128 
15129   if test "x$JVM_VARIANT_CORE" = xtrue; then
15130     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
15131   fi
15132 
15133   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
15134 
15135   # On Macosx universal binaries are produced, but they only contain
15136   # 64 bit intel. This invalidates control of which jvms are built
15137   # from configure, but only server is valid anyway. Fix this
15138   # when hotspot makefiles are rewritten.
15139   if test "x$MACOSX_UNIVERSAL" = xtrue; then
15140     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
15141   fi
15142 
15143   #####
15144 
15145 
15146 
15147 
15148 
15149 
15150 
15151 
15152 # With basic setup done, call the custom early hook.
15153 
15154   # We must intercept this option early to be able to disable ccache.
15155 
15156 # Check whether --with-parfait was given.
15157 if test "${with_parfait+set}" = set; then :
15158   withval=$with_parfait;
15159 fi
15160 
15161 
15162   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parfait" >&5
15163 $as_echo_n "checking for parfait... " >&6; }
15164 
15165   PARFAIT_DIR="$with_parfait"
15166   if test "x$with_parfait" != x; then
15167     if test "x$OPENJDK_BUILD_CPU_BITS" = x32; then
15168       { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
15169 $as_echo "not supported" >&6; }
15170       as_fn_error $? "Parfait cannot be enabled on 32-bit build hosts. (insufficient address space)" "$LINENO" 5
15171     fi
15172 
15173     if test "x$enable_ccache" = xyes; then
15174       { $as_echo "$as_me:${as_lineno-$LINENO}: result: misconfiguration" >&5
15175 $as_echo "misconfiguration" >&6; }
15176       as_fn_error $? "It is not possible to enable ccache when using parfait. Please remove --enable-ccache." "$LINENO" 5
15177     fi
15178 
15179     if test "x$with_parfait" = xyes; then
15180       { $as_echo "$as_me:${as_lineno-$LINENO}: result: misconfiguration" >&5
15181 $as_echo "misconfiguration" >&6; }
15182       as_fn_error $? "Parfait location cannot be automatically detected. Please specify a dir when using --with-parfait" "$LINENO" 5
15183     fi
15184 
15185     if test ! -x "$PARFAIT_DIR/bin/parfait"; then
15186       { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15187 $as_echo "not found" >&6; }
15188       { $as_echo "$as_me:${as_lineno-$LINENO}: $PARFAIT_DIR/bin/parfait is not found or not executable." >&5
15189 $as_echo "$as_me: $PARFAIT_DIR/bin/parfait is not found or not executable." >&6;}
15190       as_fn_error $? "This does not seem to be a valid parfait installation: $PARFAIT_DIR" "$LINENO" 5
15191     fi
15192 
15193     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PARFAIT_DIR" >&5
15194 $as_echo "$PARFAIT_DIR" >&6; }
15195 
15196     # Display parfait version for user convenience.
15197     { $as_echo "$as_me:${as_lineno-$LINENO}: checking parfait version" >&5
15198 $as_echo_n "checking parfait version... " >&6; }
15199     PARFAIT_VERSION=`$PARFAIT_DIR/bin/parfait --version 2>&1`
15200     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PARFAIT_VERSION" >&5
15201 $as_echo "$PARFAIT_VERSION" >&6; }
15202   else
15203     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not enabled" >&5
15204 $as_echo "not enabled" >&6; }
15205   fi
15206 
15207 
15208 
15209 
15210 
15211 # Check whether --with-parfait-baseline was given.
15212 if test "${with_parfait_baseline+set}" = set; then :
15213   withval=$with_parfait_baseline;
15214 fi
15215 
15216 
15217   if test "x${with_parfait_baseline}" != x; then
15218     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parfait baseline" >&5
15219 $as_echo_n "checking for parfait baseline... " >&6; }
15220     if test "x$PARFAIT_DIR" != "x"; then
15221       if test "x$with_parfait_baseline" = xyes; then
15222         { $as_echo "$as_me:${as_lineno-$LINENO}: result: misconfiguration" >&5
15223 $as_echo "misconfiguration" >&6; }
15224         as_fn_error $? "Parfait baseline URI cannot be automatically detected. Please specify a URI when using --with-parfait-baseline" "$LINENO" 5
15225       fi
15226       PARFAIT_BASELINE="${with_parfait_baseline}"
15227       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PARFAIT_BASELINE" >&5
15228 $as_echo "$PARFAIT_BASELINE" >&6; }
15229     else
15230       { $as_echo "$as_me:${as_lineno-$LINENO}: result: misconfiguration" >&5
15231 $as_echo "misconfiguration" >&6; }
15232       as_fn_error $? "Specifying Parfait baseline requires Parfait support to be enabled" "$LINENO" 5
15233     fi
15234   fi
15235 
15236 
15237 
15238 
15239 
15240 
15241 
15242 
15243   # --with-java-devtools feature can be used for open too, so don't guard all of it
15244   # from OPENJDK=true, but only the closed specific parts further down.
15245 
15246 
15247 # Check whether --with-java-path was given.
15248 if test "${with_java_path+set}" = set; then :
15249   withval=$with_java_path;
15250 fi
15251 
15252 
15253 # Check whether --with-java-devtools was given.
15254 if test "${with_java_devtools+set}" = set; then :
15255   withval=$with_java_devtools;
15256 fi
15257 
15258 
15259   # Fallback to --with-java-path for backwards compatibility.
15260   if test "x$with_java_devtools" = x; then
15261     with_java_devtools="$with_java_path"
15262   fi
15263 
15264   # Only use it to derive things for the new build if --with-java-devtools is explicitly given
15265   if test "x$with_java_devtools" != x; then
15266     if test "x$with_java_devtools" != xyes; then
15267       # override default value
15268       java_devtools="$with_java_devtools"
15269     else
15270       # Set default for use in deploy regardless of if --with-java-devtools is set.
15271       if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then
15272         java_devtools="/cygdrive/j/devtools"
15273       elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then
15274         java_devtools="/j/devtools"
15275       else
15276         java_devtools="/java/devtools"
15277       fi
15278     fi
15279 
15280     if test "x$OPENJDK_TARGET_OS" = xsolaris; then
15281       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit in $java_devtools" >&5
15282 $as_echo_n "checking for devkit in $java_devtools... " >&6; }
15283       if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
15284         devkit="$java_devtools/i386/devkit/SS12u3-Solaris10u10"
15285         if test -d "$devkit"; then
15286           { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris Studio in $devkit" >&5
15287 $as_echo "Solaris Studio in $devkit" >&6; }
15288           with_devkit="$devkit"
15289         else
15290           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15291 $as_echo "no" >&6; }
15292         fi
15293       elif test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
15294         devkit="$java_devtools/sparc/devkit/SS12u3-Solaris10u10"
15295         if test -d "$devkit"; then
15296           { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris Studio in $devkit" >&5
15297 $as_echo "Solaris Studio in $devkit" >&6; }
15298           with_devkit="$devkit"
15299         else
15300           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15301 $as_echo "no" >&6; }
15302         fi
15303       fi
15304     elif test "x$OPENJDK_TARGET_OS" = xlinux; then
15305       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit in $java_devtools" >&5
15306 $as_echo_n "checking for devkit in $java_devtools... " >&6; }
15307       devkit="$java_devtools/linux/devkit/gcc4.8.2-OEL5.5"
15308       if test -d "$devkit"; then
15309         { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC in $devkit" >&5
15310 $as_echo "GCC in $devkit" >&6; }
15311         with_devkit="$devkit"
15312       else
15313         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15314 $as_echo "no" >&6; }
15315       fi
15316       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for plugin devkit in $java_devtools" >&5
15317 $as_echo_n "checking for plugin devkit in $java_devtools... " >&6; }
15318       plugin_devkit="$java_devtools/linux/devkit/plugin-gcc4.1.2-OEL5.5"
15319       if test -d "$plugin_devkit"; then
15320         { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC in $plugin_devkit" >&5
15321 $as_echo "GCC in $plugin_devkit" >&6; }
15322         with_plugin_devkit="$plugin_devkit"
15323       else
15324         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15325 $as_echo "no" >&6; }
15326       fi
15327     fi
15328 
15329     if test "x$OPENJDK" = "xtrue"; then
15330     # Setup freetype
15331       if test -z "$with_freetype"; then
15332         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype in $java_devtools" >&5
15333 $as_echo_n "checking for freetype in $java_devtools... " >&6; }
15334         if test "x$OPENJDK_TARGET_OS" = xwindows; then
15335           freetype_base_dir="$java_devtools/win32"
15336         fi
15337         if test "x$freetype_base_dir" != x; then
15338           freetype_dir="$freetype_base_dir/freetype-$OPENJDK_TARGET_CPU_LEGACY"
15339           if test -d "$freetype_dir"; then
15340             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_dir" >&5
15341 $as_echo "$freetype_dir" >&6; }
15342             with_freetype="$freetype_dir"
15343           else
15344             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15345 $as_echo "no" >&6; }
15346           fi
15347         fi
15348       fi
15349     fi
15350 
15351     # Below here are only closed dependencies
15352     if test "x$OPENJDK" = "xfalse"; then
15353 
15354       # Setup ant
15355       if test -z "$with_ant_home"; then
15356         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ant in $java_devtools" >&5
15357 $as_echo_n "checking for ant in $java_devtools... " >&6; }
15358         ant_home="$java_devtools/share/ant/1.7.1"
15359         if test -d "$ant_home"; then
15360           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant_home" >&5
15361 $as_echo "$ant_home" >&6; }
15362           with_ant_home="$ant_home"
15363         else
15364           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15365 $as_echo "no" >&6; }
15366         fi
15367       fi
15368 
15369       # Setup junit
15370       if test -z "$with_junit_dir"; then
15371         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for junit in $java_devtools" >&5
15372 $as_echo_n "checking for junit in $java_devtools... " >&6; }
15373         junit_dir="$java_devtools/share/junit/junit-4.5"
15374         if test -d "$junit_dir"; then
15375           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $junit_dir" >&5
15376 $as_echo "$junit_dir" >&6; }
15377           with_junit_dir="$junit_dir"
15378         else
15379           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15380 $as_echo "no" >&6; }
15381         fi
15382       fi
15383 
15384       if test "x$OPENJDK_TARGET_OS" = xsolaris; then
15385         # Setup devtools path
15386         if test "x$OPENJDK_TARGET_CPU" = xx86 || test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15387           devtools_arch_dir=i386
15388         else
15389           devtools_arch_dir=sparc
15390         fi
15391         if test -z "$with_devtools_path"; then
15392           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devtools path in $java_devtools" >&5
15393 $as_echo_n "checking for devtools path in $java_devtools... " >&6; }
15394           devtools_path="$java_devtools/$devtools_arch_dir/bin"
15395           if test -d "$devtools_path"; then
15396             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $devtools_path" >&5
15397 $as_echo "$devtools_path" >&6; }
15398             with_devtools_path="$devtools_path"
15399           else
15400             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15401 $as_echo "no" >&6; }
15402           fi
15403         fi
15404       fi
15405 
15406       if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15407         if test -z "$with_sparkle_framework"; then
15408           # Setup Sparkle Framework
15409           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sparkle framework in $java_devtools" >&5
15410 $as_echo_n "checking for sparkle framework in $java_devtools... " >&6; }
15411           sparkle_framework_dir="$java_devtools/macosx/Sparkle/1.5b6"
15412           if test -d "$sparkle_framework_dir"; then
15413             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sparkle_framework_dir" >&5
15414 $as_echo "$sparkle_framework_dir" >&6; }
15415             with_sparkle_framework="$sparkle_framework_dir"
15416           else
15417             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15418 $as_echo "no" >&6; }
15419           fi
15420         fi
15421       fi
15422 
15423       if test "x$OPENJDK_TARGET_OS" != xsolaris; then
15424         if test -z "$with_javafx_zip_dir"; then
15425           # Setup JAVAFX cobundle
15426           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAFX cobundle in $java_devtools" >&5
15427 $as_echo_n "checking for JAVAFX cobundle in $java_devtools... " >&6; }
15428           javafx_zip_dir="${java_devtools}/../re/javafx/jdk-cobundle/9"
15429           if test -d "$javafx_zip_dir"; then
15430             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $javafx_zip_dir" >&5
15431 $as_echo "$javafx_zip_dir" >&6; }
15432             with_javafx_zip_dir="$javafx_zip_dir"
15433           else
15434             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15435 $as_echo "no" >&6; }
15436           fi
15437         fi
15438       fi
15439       if test "x$OPENJDK_TARGET_OS" != xsolaris; then
15440         if test -z "$with_jmc_zip_dir"; then
15441           # Setup JMC cobundle
15442           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JMC cobundle in $java_devtools" >&5
15443 $as_echo_n "checking for JMC cobundle in $java_devtools... " >&6; }
15444           jmc_zip_dir="${java_devtools}/../re/jmcbundles/jdk-cobundle/9"
15445           if test -d "$jmc_zip_dir"; then
15446             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jmc_zip_dir" >&5
15447 $as_echo "$jmc_zip_dir" >&6; }
15448             with_jmc_zip_dir="$jmc_zip_dir"
15449           else
15450             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15451 $as_echo "no" >&6; }
15452           fi
15453         fi
15454       fi
15455     fi
15456   fi
15457 
15458 
15459 # Check if we have devkits, extra paths or sysroot set.
15460 
15461 
15462 # Check whether --with-devkit was given.
15463 if test "${with_devkit+set}" = set; then :
15464   withval=$with_devkit;
15465 
15466   # Only process if variable expands to non-empty
15467 
15468   if test "x$with_devkit" != x; then
15469     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15470 
15471   # Input might be given as Windows format, start by converting to
15472   # unix format.
15473   path="$with_devkit"
15474   new_path=`$CYGPATH -u "$path"`
15475 
15476   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15477   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15478   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15479   # "foo.exe" is OK but "foo" is an error.
15480   #
15481   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15482   # It is also a way to make sure we got the proper file name for the real test later on.
15483   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15484   if test "x$test_shortpath" = x; then
15485     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
15486 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
15487     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
15488   fi
15489 
15490   # Call helper function which possibly converts this using DOS-style short mode.
15491   # If so, the updated path is stored in $new_path.
15492 
15493   input_path="$new_path"
15494   # Check if we need to convert this using DOS-style short mode. If the path
15495   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15496   # take no chances and rewrite it.
15497   # Note: m4 eats our [], so we need to use [ and ] instead.
15498   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15499   if test "x$has_forbidden_chars" != x; then
15500     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15501     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15502     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15503     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15504       # Going to short mode and back again did indeed matter. Since short mode is
15505       # case insensitive, let's make it lowercase to improve readability.
15506       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15507       # Now convert it back to Unix-stile (cygpath)
15508       input_path=`$CYGPATH -u "$shortmode_path"`
15509       new_path="$input_path"
15510     fi
15511   fi
15512 
15513   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15514   if test "x$test_cygdrive_prefix" = x; then
15515     # As a simple fix, exclude /usr/bin since it's not a real path.
15516     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15517       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15518       # a path prefixed by /cygdrive for fixpath to work.
15519       new_path="$CYGWIN_ROOT_PATH$input_path"
15520     fi
15521   fi
15522 
15523 
15524   if test "x$path" != "x$new_path"; then
15525     with_devkit="$new_path"
15526     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
15527 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
15528   fi
15529 
15530     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15531 
15532   path="$with_devkit"
15533   has_colon=`$ECHO $path | $GREP ^.:`
15534   new_path="$path"
15535   if test "x$has_colon" = x; then
15536     # Not in mixed or Windows style, start by that.
15537     new_path=`cmd //c echo $path`
15538   fi
15539 
15540 
15541   input_path="$new_path"
15542   # Check if we need to convert this using DOS-style short mode. If the path
15543   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15544   # take no chances and rewrite it.
15545   # Note: m4 eats our [], so we need to use [ and ] instead.
15546   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15547   if test "x$has_forbidden_chars" != x; then
15548     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15549     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15550   fi
15551 
15552 
15553   windows_path="$new_path"
15554   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15555     unix_path=`$CYGPATH -u "$windows_path"`
15556     new_path="$unix_path"
15557   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15558     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15559     new_path="$unix_path"
15560   fi
15561 
15562   if test "x$path" != "x$new_path"; then
15563     with_devkit="$new_path"
15564     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
15565 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
15566   fi
15567 
15568   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15569   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15570 
15571     else
15572       # We're on a unix platform. Hooray! :)
15573       path="$with_devkit"
15574       has_space=`$ECHO "$path" | $GREP " "`
15575       if test "x$has_space" != x; then
15576         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
15577 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
15578         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15579       fi
15580 
15581       # Use eval to expand a potential ~
15582       eval path="$path"
15583       if test ! -f "$path" && test ! -d "$path"; then
15584         as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
15585       fi
15586 
15587       with_devkit="`cd "$path"; $THEPWDCMD -L`"
15588     fi
15589   fi
15590 
15591         DEVKIT_ROOT="$with_devkit"
15592         # Check for a meta data info file in the root of the devkit
15593         if test -f "$DEVKIT_ROOT/devkit.info"; then
15594           # This potentially sets the following:
15595           # DEVKIT_NAME: A descriptive name of the devkit
15596           # DEVKIT_TOOLCHAIN_PATH: Corresponds to --with-toolchain-path
15597           # DEVKIT_EXTRA_PATH: Corresponds to --with-extra-path
15598           # DEVKIT_SYSROOT: Corresponds to --with-sysroot
15599           . $DEVKIT_ROOT/devkit.info
15600         fi
15601 
15602         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
15603 $as_echo_n "checking for devkit... " >&6; }
15604         if test "x$DEVKIT_NAME" != x; then
15605           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
15606 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
15607         else
15608           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
15609 $as_echo "$DEVKIT_ROOT" >&6; }
15610         fi
15611 
15612         if test "x$DEVKIT_EXTRA_PATH" != x; then
15613 
15614   if test "x$DEVKIT_EXTRA_PATH" != x; then
15615     if test "x$EXTRA_PATH" = x; then
15616       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
15617     else
15618       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
15619     fi
15620   fi
15621 
15622         fi
15623 
15624         # Fallback default of just /bin if DEVKIT_PATH is not defined
15625         if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
15626           DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
15627         fi
15628 
15629   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
15630     if test "x$TOOLCHAIN_PATH" = x; then
15631       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
15632     else
15633       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
15634     fi
15635   fi
15636 
15637 
15638         # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
15639         # places for backwards compatiblity.
15640         if test "x$DEVKIT_SYSROOT" != x; then
15641           SYSROOT="$DEVKIT_SYSROOT"
15642         elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
15643           SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
15644         elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
15645           SYSROOT="$DEVKIT_ROOT/$host/sys-root"
15646         fi
15647 
15648 
15649 fi
15650 
15651 
15652   # You can force the sysroot if the sysroot encoded into the compiler tools
15653   # is not correct.
15654 
15655 # Check whether --with-sys-root was given.
15656 if test "${with_sys_root+set}" = set; then :
15657   withval=$with_sys_root; SYSROOT=$with_sys_root
15658 
15659 fi
15660 
15661 
15662 
15663 # Check whether --with-sysroot was given.
15664 if test "${with_sysroot+set}" = set; then :
15665   withval=$with_sysroot; SYSROOT=$with_sysroot
15666 
15667 fi
15668 
15669 
15670 
15671 # Check whether --with-tools-dir was given.
15672 if test "${with_tools_dir+set}" = set; then :
15673   withval=$with_tools_dir;
15674   if test "x$with_tools_dir" != x; then
15675     if test "x$TOOLCHAIN_PATH" = x; then
15676       TOOLCHAIN_PATH="$with_tools_dir"
15677     else
15678       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
15679     fi
15680   fi
15681 
15682 
15683 fi
15684 
15685 
15686 
15687 # Check whether --with-toolchain-path was given.
15688 if test "${with_toolchain_path+set}" = set; then :
15689   withval=$with_toolchain_path;
15690   if test "x$with_toolchain_path" != x; then
15691     if test "x$TOOLCHAIN_PATH" = x; then
15692       TOOLCHAIN_PATH="$with_toolchain_path"
15693     else
15694       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
15695     fi
15696   fi
15697 
15698 
15699 fi
15700 
15701 
15702 
15703 # Check whether --with-extra-path was given.
15704 if test "${with_extra_path+set}" = set; then :
15705   withval=$with_extra_path;
15706   if test "x$with_extra_path" != x; then
15707     if test "x$EXTRA_PATH" = x; then
15708       EXTRA_PATH="$with_extra_path"
15709     else
15710       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
15711     fi
15712   fi
15713 
15714 
15715 fi
15716 
15717 
15718   if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then
15719     # detect if Xcode is installed by running xcodebuild -version
15720     # if no Xcode installed, xcodebuild exits with 1
15721     # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0
15722     if /usr/bin/xcodebuild -version >/dev/null 2>&1; then
15723       # We need to use xcodebuild in the toolchain dir provided by the user, this will
15724       # fall back on the stub binary in /usr/bin/xcodebuild
15725       # Extract the first word of "xcodebuild", so it can be a program name with args.
15726 set dummy xcodebuild; ac_word=$2
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15728 $as_echo_n "checking for $ac_word... " >&6; }
15729 if ${ac_cv_path_XCODEBUILD+:} false; then :
15730   $as_echo_n "(cached) " >&6
15731 else
15732   case $XCODEBUILD in
15733   [\\/]* | ?:[\\/]*)
15734   ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
15735   ;;
15736   *)
15737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15738 for as_dir in $TOOLCHAIN_PATH
15739 do
15740   IFS=$as_save_IFS
15741   test -z "$as_dir" && as_dir=.
15742     for ac_exec_ext in '' $ac_executable_extensions; do
15743   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15744     ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
15745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15746     break 2
15747   fi
15748 done
15749   done
15750 IFS=$as_save_IFS
15751 
15752   test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild"
15753   ;;
15754 esac
15755 fi
15756 XCODEBUILD=$ac_cv_path_XCODEBUILD
15757 if test -n "$XCODEBUILD"; then
15758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
15759 $as_echo "$XCODEBUILD" >&6; }
15760 else
15761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15762 $as_echo "no" >&6; }
15763 fi
15764 
15765 
15766     else
15767       # this should result in SYSROOT being empty, unless --with-sysroot is provided
15768       # when only the command line tools are installed there are no SDKs, so headers
15769       # are copied into the system frameworks
15770       XCODEBUILD=
15771 
15772     fi
15773 
15774     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5
15775 $as_echo_n "checking for sdk name... " >&6; }
15776 
15777 # Check whether --with-sdk-name was given.
15778 if test "${with_sdk_name+set}" = set; then :
15779   withval=$with_sdk_name; SDKNAME=$with_sdk_name
15780 
15781 fi
15782 
15783     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5
15784 $as_echo "$SDKNAME" >&6; }
15785 
15786     # if toolchain path is specified then don't rely on system headers, they may not compile
15787     HAVE_SYSTEM_FRAMEWORK_HEADERS=0
15788     test -z "$TOOLCHAIN_PATH" && \
15789       HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?`
15790 
15791     if test -z "$SYSROOT"; then
15792       if test -n "$XCODEBUILD"; then
15793         # if we don't have system headers, use default SDK name (last resort)
15794         if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
15795           SDKNAME=${SDKNAME:-macosx}
15796         fi
15797 
15798         if test -n "$SDKNAME"; then
15799           # Call xcodebuild to determine SYSROOT
15800           SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | grep '^Path: ' | sed 's/Path: //'`
15801         fi
15802       else
15803         if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
15804           as_fn_error $? "No xcodebuild tool and no system framework headers found, use --with-sysroot or --with-sdk-name to provide a path to a valid SDK" "$LINENO" 5
15805         fi
15806       fi
15807     else
15808       # warn user if --with-sdk-name was also set
15809       if test -n "$with_sdk_name"; then
15810         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5
15811 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;}
15812       fi
15813     fi
15814 
15815     if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then
15816       # If no system framework headers, then SYSROOT must be set, or we won't build
15817       as_fn_error $? "Unable to determine SYSROOT and no headers found in /System/Library/Frameworks. Check Xcode configuration, --with-sysroot or --with-sdk-name arguments." "$LINENO" 5
15818     fi
15819 
15820     # Perform a basic sanity test
15821     if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then
15822       if test -z "$SYSROOT"; then
15823         as_fn_error $? "Unable to find required framework headers, provide a path to an SDK via --with-sysroot or --with-sdk-name and be sure Xcode is installed properly" "$LINENO" 5
15824       else
15825         as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5
15826       fi
15827     fi
15828 
15829     # set SDKROOT too, Xcode tools will pick it up
15830     SDKROOT=$SYSROOT
15831 
15832   fi
15833 
15834   # Prepend the extra path to the global path
15835 
15836   if test "x$EXTRA_PATH" != x; then
15837     if test "x$PATH" = x; then
15838       PATH="$EXTRA_PATH"
15839     else
15840       PATH="$EXTRA_PATH:$PATH"
15841     fi
15842   fi
15843 
15844 
15845   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
15846     # Add extra search paths on solaris for utilities like ar and as etc...
15847     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
15848   fi
15849 
15850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
15851 $as_echo_n "checking for sysroot... " >&6; }
15852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
15853 $as_echo "$SYSROOT" >&6; }
15854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
15855 $as_echo_n "checking for toolchain path... " >&6; }
15856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
15857 $as_echo "$TOOLCHAIN_PATH" >&6; }
15858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
15859 $as_echo_n "checking for extra path... " >&6; }
15860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
15861 $as_echo "$EXTRA_PATH" >&6; }
15862 
15863 
15864 # To properly create a configuration name, we need to have the OpenJDK target
15865 # and options (variants and debug level) parsed.
15866 
15867 
15868 
15869 # Check whether --with-conf-name was given.
15870 if test "${with_conf_name+set}" = set; then :
15871   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
15872 fi
15873 
15874 
15875   # Test from where we are running configure, in or outside of src root.
15876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
15877 $as_echo_n "checking where to store configuration... " >&6; }
15878   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
15879       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
15880       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
15881     # We are running configure from the src root.
15882     # Create a default ./build/target-variant-debuglevel output root.
15883     if test "x${CONF_NAME}" = x; then
15884       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
15885 $as_echo "in default location" >&6; }
15886       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
15887     else
15888       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
15889 $as_echo "in build directory with custom name" >&6; }
15890     fi
15891     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
15892     $MKDIR -p "$OUTPUT_ROOT"
15893     if test ! -d "$OUTPUT_ROOT"; then
15894       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
15895     fi
15896   else
15897     # We are running configure from outside of the src dir.
15898     # Then use the current directory as output dir!
15899     # If configuration is situated in normal build directory, just use the build
15900     # directory name as configuration name, otherwise use the complete path.
15901     if test "x${CONF_NAME}" = x; then
15902       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
15903     fi
15904     OUTPUT_ROOT="$CURDIR"
15905     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
15906 $as_echo "in current directory" >&6; }
15907 
15908     # WARNING: This might be a bad thing to do. You need to be sure you want to
15909     # have a configuration in this directory. Do some sanity checks!
15910 
15911     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
15912       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
15913       # other files
15914       files_present=`$LS $OUTPUT_ROOT`
15915       # Configure has already touched config.log and confdefs.h in the current dir when this check
15916       # is performed.
15917       filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \
15918       | $TR -d '\n'`
15919       if test "x$filtered_files" != x; then
15920         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
15921 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
15922         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
15923 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
15924         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
15925 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
15926         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
15927 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
15928         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
15929 $as_echo "$as_me: seriously mess up just about everything." >&6;}
15930         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
15931 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
15932         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
15933 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
15934         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
15935       fi
15936     fi
15937   fi
15938   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
15939 $as_echo_n "checking what configuration name to use... " >&6; }
15940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
15941 $as_echo "$CONF_NAME" >&6; }
15942 
15943 
15944   # Only process if variable expands to non-empty
15945 
15946   if test "x$OUTPUT_ROOT" != x; then
15947     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15948 
15949   # Input might be given as Windows format, start by converting to
15950   # unix format.
15951   path="$OUTPUT_ROOT"
15952   new_path=`$CYGPATH -u "$path"`
15953 
15954   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15955   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15956   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15957   # "foo.exe" is OK but "foo" is an error.
15958   #
15959   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15960   # It is also a way to make sure we got the proper file name for the real test later on.
15961   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15962   if test "x$test_shortpath" = x; then
15963     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
15964 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
15965     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
15966   fi
15967 
15968   # Call helper function which possibly converts this using DOS-style short mode.
15969   # If so, the updated path is stored in $new_path.
15970 
15971   input_path="$new_path"
15972   # Check if we need to convert this using DOS-style short mode. If the path
15973   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15974   # take no chances and rewrite it.
15975   # Note: m4 eats our [], so we need to use [ and ] instead.
15976   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15977   if test "x$has_forbidden_chars" != x; then
15978     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15979     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15980     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15981     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15982       # Going to short mode and back again did indeed matter. Since short mode is
15983       # case insensitive, let's make it lowercase to improve readability.
15984       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15985       # Now convert it back to Unix-stile (cygpath)
15986       input_path=`$CYGPATH -u "$shortmode_path"`
15987       new_path="$input_path"
15988     fi
15989   fi
15990 
15991   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15992   if test "x$test_cygdrive_prefix" = x; then
15993     # As a simple fix, exclude /usr/bin since it's not a real path.
15994     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15995       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15996       # a path prefixed by /cygdrive for fixpath to work.
15997       new_path="$CYGWIN_ROOT_PATH$input_path"
15998     fi
15999   fi
16000 
16001 
16002   if test "x$path" != "x$new_path"; then
16003     OUTPUT_ROOT="$new_path"
16004     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
16005 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
16006   fi
16007 
16008     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16009 
16010   path="$OUTPUT_ROOT"
16011   has_colon=`$ECHO $path | $GREP ^.:`
16012   new_path="$path"
16013   if test "x$has_colon" = x; then
16014     # Not in mixed or Windows style, start by that.
16015     new_path=`cmd //c echo $path`
16016   fi
16017 
16018 
16019   input_path="$new_path"
16020   # Check if we need to convert this using DOS-style short mode. If the path
16021   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16022   # take no chances and rewrite it.
16023   # Note: m4 eats our [], so we need to use [ and ] instead.
16024   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16025   if test "x$has_forbidden_chars" != x; then
16026     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16027     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16028   fi
16029 
16030 
16031   windows_path="$new_path"
16032   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16033     unix_path=`$CYGPATH -u "$windows_path"`
16034     new_path="$unix_path"
16035   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16036     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16037     new_path="$unix_path"
16038   fi
16039 
16040   if test "x$path" != "x$new_path"; then
16041     OUTPUT_ROOT="$new_path"
16042     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
16043 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
16044   fi
16045 
16046   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16047   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16048 
16049     else
16050       # We're on a unix platform. Hooray! :)
16051       path="$OUTPUT_ROOT"
16052       has_space=`$ECHO "$path" | $GREP " "`
16053       if test "x$has_space" != x; then
16054         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
16055 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
16056         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16057       fi
16058 
16059       # Use eval to expand a potential ~
16060       eval path="$path"
16061       if test ! -f "$path" && test ! -d "$path"; then
16062         as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
16063       fi
16064 
16065       OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
16066     fi
16067   fi
16068 
16069 
16070   SPEC=$OUTPUT_ROOT/spec.gmk
16071 
16072   CONF_NAME=$CONF_NAME
16073 
16074   OUTPUT_ROOT=$OUTPUT_ROOT
16075 
16076 
16077   # The spec.gmk file contains all variables for the make system.
16078   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
16079 
16080   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
16081   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
16082 
16083   # The bootcycle-spec.gmk file contains support for boot cycle builds.
16084   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
16085 
16086   # The compare.sh is used to compare the build output to other builds.
16087   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
16088 
16089   # The generated Makefile knows where the spec.gmk is and where the source is.
16090   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
16091   # which will look for generated configurations
16092   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
16093 
16094 
16095 
16096 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
16097 
16098   for ac_prog in apt-get yum port pkgutil pkgadd
16099 do
16100   # Extract the first word of "$ac_prog", so it can be a program name with args.
16101 set dummy $ac_prog; ac_word=$2
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16103 $as_echo_n "checking for $ac_word... " >&6; }
16104 if ${ac_cv_prog_PKGHANDLER+:} false; then :
16105   $as_echo_n "(cached) " >&6
16106 else
16107   if test -n "$PKGHANDLER"; then
16108   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
16109 else
16110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16111 for as_dir in $PATH
16112 do
16113   IFS=$as_save_IFS
16114   test -z "$as_dir" && as_dir=.
16115     for ac_exec_ext in '' $ac_executable_extensions; do
16116   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16117     ac_cv_prog_PKGHANDLER="$ac_prog"
16118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16119     break 2
16120   fi
16121 done
16122   done
16123 IFS=$as_save_IFS
16124 
16125 fi
16126 fi
16127 PKGHANDLER=$ac_cv_prog_PKGHANDLER
16128 if test -n "$PKGHANDLER"; then
16129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
16130 $as_echo "$PKGHANDLER" >&6; }
16131 else
16132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16133 $as_echo "no" >&6; }
16134 fi
16135 
16136 
16137   test -n "$PKGHANDLER" && break
16138 done
16139 
16140 
16141 
16142 # Setup tools that requires more complex handling, or that is not needed by the configure script.
16143 
16144 
16145   # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky.
16146   if test "x$MAKE" != x; then
16147     # User has supplied a make, test it.
16148     if test ! -f "$MAKE"; then
16149       as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5
16150     fi
16151 
16152   MAKE_CANDIDATE=""$MAKE""
16153   DESCRIPTION="user supplied MAKE=$MAKE"
16154   if test "x$MAKE_CANDIDATE" != x; then
16155     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16156 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16157     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16158     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16159     if test "x$IS_GNU_MAKE" = x; then
16160       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16161 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16162     else
16163       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16164       if test "x$IS_MODERN_MAKE" = x; then
16165         { $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
16166 $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;}
16167       else
16168         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16169           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16170             MAKE_EXPECTED_ENV='cygwin'
16171           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16172             MAKE_EXPECTED_ENV='msys'
16173           else
16174             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16175           fi
16176           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16177           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16178         else
16179           # Not relevant for non-Windows
16180           IS_MAKE_CORRECT_ENV=true
16181         fi
16182         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16183           { $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
16184 $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;}
16185         else
16186           FOUND_MAKE=$MAKE_CANDIDATE
16187 
16188   # Only process if variable expands to non-empty
16189 
16190   if test "x$FOUND_MAKE" != x; then
16191     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16192 
16193   # First separate the path from the arguments. This will split at the first
16194   # space.
16195   complete="$FOUND_MAKE"
16196   path="${complete%% *}"
16197   tmp="$complete EOL"
16198   arguments="${tmp#* }"
16199 
16200   # Input might be given as Windows format, start by converting to
16201   # unix format.
16202   new_path=`$CYGPATH -u "$path"`
16203 
16204   # Now try to locate executable using which
16205   new_path=`$WHICH "$new_path" 2> /dev/null`
16206   # bat and cmd files are not always considered executable in cygwin causing which
16207   # to not find them
16208   if test "x$new_path" = x \
16209       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16210       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16211     new_path=`$CYGPATH -u "$path"`
16212   fi
16213   if test "x$new_path" = x; then
16214     # Oops. Which didn't find the executable.
16215     # The splitting of arguments from the executable at a space might have been incorrect,
16216     # since paths with space are more likely in Windows. Give it another try with the whole
16217     # argument.
16218     path="$complete"
16219     arguments="EOL"
16220     new_path=`$CYGPATH -u "$path"`
16221     new_path=`$WHICH "$new_path" 2> /dev/null`
16222     # bat and cmd files are not always considered executable in cygwin causing which
16223     # to not find them
16224     if test "x$new_path" = x \
16225         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16226         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16227       new_path=`$CYGPATH -u "$path"`
16228     fi
16229     if test "x$new_path" = x; then
16230       # It's still not found. Now this is an unrecoverable error.
16231       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16232 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16233       has_space=`$ECHO "$complete" | $GREP " "`
16234       if test "x$has_space" != x; then
16235         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16236 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16237       fi
16238       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16239     fi
16240   fi
16241 
16242   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16243   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16244   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16245   # "foo.exe" is OK but "foo" is an error.
16246   #
16247   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16248   # It is also a way to make sure we got the proper file name for the real test later on.
16249   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16250   if test "x$test_shortpath" = x; then
16251     # Short path failed, file does not exist as specified.
16252     # Try adding .exe or .cmd
16253     if test -f "${new_path}.exe"; then
16254       input_to_shortpath="${new_path}.exe"
16255     elif test -f "${new_path}.cmd"; then
16256       input_to_shortpath="${new_path}.cmd"
16257     else
16258       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16259 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16260       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16261 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16262       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16263     fi
16264   else
16265     input_to_shortpath="$new_path"
16266   fi
16267 
16268   # Call helper function which possibly converts this using DOS-style short mode.
16269   # If so, the updated path is stored in $new_path.
16270   new_path="$input_to_shortpath"
16271 
16272   input_path="$input_to_shortpath"
16273   # Check if we need to convert this using DOS-style short mode. If the path
16274   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16275   # take no chances and rewrite it.
16276   # Note: m4 eats our [], so we need to use [ and ] instead.
16277   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16278   if test "x$has_forbidden_chars" != x; then
16279     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16280     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16281     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16282     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16283       # Going to short mode and back again did indeed matter. Since short mode is
16284       # case insensitive, let's make it lowercase to improve readability.
16285       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16286       # Now convert it back to Unix-stile (cygpath)
16287       input_path=`$CYGPATH -u "$shortmode_path"`
16288       new_path="$input_path"
16289     fi
16290   fi
16291 
16292   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16293   if test "x$test_cygdrive_prefix" = x; then
16294     # As a simple fix, exclude /usr/bin since it's not a real path.
16295     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16296       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16297       # a path prefixed by /cygdrive for fixpath to work.
16298       new_path="$CYGWIN_ROOT_PATH$input_path"
16299     fi
16300   fi
16301 
16302   # remove trailing .exe if any
16303   new_path="${new_path/%.exe/}"
16304 
16305     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16306 
16307   # First separate the path from the arguments. This will split at the first
16308   # space.
16309   complete="$FOUND_MAKE"
16310   path="${complete%% *}"
16311   tmp="$complete EOL"
16312   arguments="${tmp#* }"
16313 
16314   # Input might be given as Windows format, start by converting to
16315   # unix format.
16316   new_path="$path"
16317 
16318   windows_path="$new_path"
16319   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16320     unix_path=`$CYGPATH -u "$windows_path"`
16321     new_path="$unix_path"
16322   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16323     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16324     new_path="$unix_path"
16325   fi
16326 
16327 
16328   # Now try to locate executable using which
16329   new_path=`$WHICH "$new_path" 2> /dev/null`
16330 
16331   if test "x$new_path" = x; then
16332     # Oops. Which didn't find the executable.
16333     # The splitting of arguments from the executable at a space might have been incorrect,
16334     # since paths with space are more likely in Windows. Give it another try with the whole
16335     # argument.
16336     path="$complete"
16337     arguments="EOL"
16338     new_path="$path"
16339 
16340   windows_path="$new_path"
16341   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16342     unix_path=`$CYGPATH -u "$windows_path"`
16343     new_path="$unix_path"
16344   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16345     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16346     new_path="$unix_path"
16347   fi
16348 
16349 
16350     new_path=`$WHICH "$new_path" 2> /dev/null`
16351     # bat and cmd files are not always considered executable in MSYS causing which
16352     # to not find them
16353     if test "x$new_path" = x \
16354         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16355         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16356       new_path="$path"
16357 
16358   windows_path="$new_path"
16359   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16360     unix_path=`$CYGPATH -u "$windows_path"`
16361     new_path="$unix_path"
16362   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16363     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16364     new_path="$unix_path"
16365   fi
16366 
16367     fi
16368 
16369     if test "x$new_path" = x; then
16370       # It's still not found. Now this is an unrecoverable error.
16371       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16372 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16373       has_space=`$ECHO "$complete" | $GREP " "`
16374       if test "x$has_space" != x; then
16375         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16376 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16377       fi
16378       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16379     fi
16380   fi
16381 
16382   # Now new_path has a complete unix path to the binary
16383   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16384     # Keep paths in /bin as-is, but remove trailing .exe if any
16385     new_path="${new_path/%.exe/}"
16386     # Do not save /bin paths to all_fixpath_prefixes!
16387   else
16388     # Not in mixed or Windows style, start by that.
16389     new_path=`cmd //c echo $new_path`
16390 
16391   input_path="$new_path"
16392   # Check if we need to convert this using DOS-style short mode. If the path
16393   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16394   # take no chances and rewrite it.
16395   # Note: m4 eats our [], so we need to use [ and ] instead.
16396   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16397   if test "x$has_forbidden_chars" != x; then
16398     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16399     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16400   fi
16401 
16402     # Output is in $new_path
16403 
16404   windows_path="$new_path"
16405   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16406     unix_path=`$CYGPATH -u "$windows_path"`
16407     new_path="$unix_path"
16408   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16409     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16410     new_path="$unix_path"
16411   fi
16412 
16413     # remove trailing .exe if any
16414     new_path="${new_path/%.exe/}"
16415 
16416     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16417     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16418   fi
16419 
16420     else
16421       # We're on a unix platform. Hooray! :)
16422       # First separate the path from the arguments. This will split at the first
16423       # space.
16424       complete="$FOUND_MAKE"
16425       path="${complete%% *}"
16426       tmp="$complete EOL"
16427       arguments="${tmp#* }"
16428 
16429       # Cannot rely on the command "which" here since it doesn't always work.
16430       is_absolute_path=`$ECHO "$path" | $GREP ^/`
16431       if test -z "$is_absolute_path"; then
16432         # Path to executable is not absolute. Find it.
16433         IFS_save="$IFS"
16434         IFS=:
16435         for p in $PATH; do
16436           if test -f "$p/$path" && test -x "$p/$path"; then
16437             new_path="$p/$path"
16438             break
16439           fi
16440         done
16441         IFS="$IFS_save"
16442       else
16443         # This is an absolute path, we can use it without further modifications.
16444         new_path="$path"
16445       fi
16446 
16447       if test "x$new_path" = x; then
16448         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16449 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16450         has_space=`$ECHO "$complete" | $GREP " "`
16451         if test "x$has_space" != x; then
16452           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16453 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16454         fi
16455         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16456       fi
16457     fi
16458 
16459     # Now join together the path and the arguments once again
16460     if test "x$arguments" != xEOL; then
16461       new_complete="$new_path ${arguments% *}"
16462     else
16463       new_complete="$new_path"
16464     fi
16465 
16466     if test "x$complete" != "x$new_complete"; then
16467       FOUND_MAKE="$new_complete"
16468       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16469 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16470     fi
16471   fi
16472 
16473         fi
16474       fi
16475     fi
16476   fi
16477 
16478     if test "x$FOUND_MAKE" = x; then
16479       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
16480     fi
16481   else
16482     # Try our hardest to locate a correct version of GNU make
16483     for ac_prog in gmake
16484 do
16485   # Extract the first word of "$ac_prog", so it can be a program name with args.
16486 set dummy $ac_prog; ac_word=$2
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16488 $as_echo_n "checking for $ac_word... " >&6; }
16489 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
16490   $as_echo_n "(cached) " >&6
16491 else
16492   case $CHECK_GMAKE in
16493   [\\/]* | ?:[\\/]*)
16494   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
16495   ;;
16496   *)
16497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16498 for as_dir in $PATH
16499 do
16500   IFS=$as_save_IFS
16501   test -z "$as_dir" && as_dir=.
16502     for ac_exec_ext in '' $ac_executable_extensions; do
16503   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16504     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
16505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16506     break 2
16507   fi
16508 done
16509   done
16510 IFS=$as_save_IFS
16511 
16512   ;;
16513 esac
16514 fi
16515 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
16516 if test -n "$CHECK_GMAKE"; then
16517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
16518 $as_echo "$CHECK_GMAKE" >&6; }
16519 else
16520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16521 $as_echo "no" >&6; }
16522 fi
16523 
16524 
16525   test -n "$CHECK_GMAKE" && break
16526 done
16527 
16528 
16529   MAKE_CANDIDATE=""$CHECK_GMAKE""
16530   DESCRIPTION="gmake in PATH"
16531   if test "x$MAKE_CANDIDATE" != x; then
16532     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16533 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16534     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16535     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16536     if test "x$IS_GNU_MAKE" = x; then
16537       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16538 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16539     else
16540       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16541       if test "x$IS_MODERN_MAKE" = x; then
16542         { $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
16543 $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;}
16544       else
16545         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16546           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16547             MAKE_EXPECTED_ENV='cygwin'
16548           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16549             MAKE_EXPECTED_ENV='msys'
16550           else
16551             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16552           fi
16553           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16554           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16555         else
16556           # Not relevant for non-Windows
16557           IS_MAKE_CORRECT_ENV=true
16558         fi
16559         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16560           { $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
16561 $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;}
16562         else
16563           FOUND_MAKE=$MAKE_CANDIDATE
16564 
16565   # Only process if variable expands to non-empty
16566 
16567   if test "x$FOUND_MAKE" != x; then
16568     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16569 
16570   # First separate the path from the arguments. This will split at the first
16571   # space.
16572   complete="$FOUND_MAKE"
16573   path="${complete%% *}"
16574   tmp="$complete EOL"
16575   arguments="${tmp#* }"
16576 
16577   # Input might be given as Windows format, start by converting to
16578   # unix format.
16579   new_path=`$CYGPATH -u "$path"`
16580 
16581   # Now try to locate executable using which
16582   new_path=`$WHICH "$new_path" 2> /dev/null`
16583   # bat and cmd files are not always considered executable in cygwin causing which
16584   # to not find them
16585   if test "x$new_path" = x \
16586       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16587       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16588     new_path=`$CYGPATH -u "$path"`
16589   fi
16590   if test "x$new_path" = x; then
16591     # Oops. Which didn't find the executable.
16592     # The splitting of arguments from the executable at a space might have been incorrect,
16593     # since paths with space are more likely in Windows. Give it another try with the whole
16594     # argument.
16595     path="$complete"
16596     arguments="EOL"
16597     new_path=`$CYGPATH -u "$path"`
16598     new_path=`$WHICH "$new_path" 2> /dev/null`
16599     # bat and cmd files are not always considered executable in cygwin causing which
16600     # to not find them
16601     if test "x$new_path" = x \
16602         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16603         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16604       new_path=`$CYGPATH -u "$path"`
16605     fi
16606     if test "x$new_path" = x; then
16607       # It's still not found. Now this is an unrecoverable error.
16608       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16609 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16610       has_space=`$ECHO "$complete" | $GREP " "`
16611       if test "x$has_space" != x; then
16612         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16613 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16614       fi
16615       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16616     fi
16617   fi
16618 
16619   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16620   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16621   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16622   # "foo.exe" is OK but "foo" is an error.
16623   #
16624   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16625   # It is also a way to make sure we got the proper file name for the real test later on.
16626   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16627   if test "x$test_shortpath" = x; then
16628     # Short path failed, file does not exist as specified.
16629     # Try adding .exe or .cmd
16630     if test -f "${new_path}.exe"; then
16631       input_to_shortpath="${new_path}.exe"
16632     elif test -f "${new_path}.cmd"; then
16633       input_to_shortpath="${new_path}.cmd"
16634     else
16635       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16636 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16637       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16638 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16639       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16640     fi
16641   else
16642     input_to_shortpath="$new_path"
16643   fi
16644 
16645   # Call helper function which possibly converts this using DOS-style short mode.
16646   # If so, the updated path is stored in $new_path.
16647   new_path="$input_to_shortpath"
16648 
16649   input_path="$input_to_shortpath"
16650   # Check if we need to convert this using DOS-style short mode. If the path
16651   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16652   # take no chances and rewrite it.
16653   # Note: m4 eats our [], so we need to use [ and ] instead.
16654   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16655   if test "x$has_forbidden_chars" != x; then
16656     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16657     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16658     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16659     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16660       # Going to short mode and back again did indeed matter. Since short mode is
16661       # case insensitive, let's make it lowercase to improve readability.
16662       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16663       # Now convert it back to Unix-stile (cygpath)
16664       input_path=`$CYGPATH -u "$shortmode_path"`
16665       new_path="$input_path"
16666     fi
16667   fi
16668 
16669   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16670   if test "x$test_cygdrive_prefix" = x; then
16671     # As a simple fix, exclude /usr/bin since it's not a real path.
16672     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16673       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16674       # a path prefixed by /cygdrive for fixpath to work.
16675       new_path="$CYGWIN_ROOT_PATH$input_path"
16676     fi
16677   fi
16678 
16679   # remove trailing .exe if any
16680   new_path="${new_path/%.exe/}"
16681 
16682     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16683 
16684   # First separate the path from the arguments. This will split at the first
16685   # space.
16686   complete="$FOUND_MAKE"
16687   path="${complete%% *}"
16688   tmp="$complete EOL"
16689   arguments="${tmp#* }"
16690 
16691   # Input might be given as Windows format, start by converting to
16692   # unix format.
16693   new_path="$path"
16694 
16695   windows_path="$new_path"
16696   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16697     unix_path=`$CYGPATH -u "$windows_path"`
16698     new_path="$unix_path"
16699   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16700     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16701     new_path="$unix_path"
16702   fi
16703 
16704 
16705   # Now try to locate executable using which
16706   new_path=`$WHICH "$new_path" 2> /dev/null`
16707 
16708   if test "x$new_path" = x; then
16709     # Oops. Which didn't find the executable.
16710     # The splitting of arguments from the executable at a space might have been incorrect,
16711     # since paths with space are more likely in Windows. Give it another try with the whole
16712     # argument.
16713     path="$complete"
16714     arguments="EOL"
16715     new_path="$path"
16716 
16717   windows_path="$new_path"
16718   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16719     unix_path=`$CYGPATH -u "$windows_path"`
16720     new_path="$unix_path"
16721   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16722     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16723     new_path="$unix_path"
16724   fi
16725 
16726 
16727     new_path=`$WHICH "$new_path" 2> /dev/null`
16728     # bat and cmd files are not always considered executable in MSYS causing which
16729     # to not find them
16730     if test "x$new_path" = x \
16731         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16732         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16733       new_path="$path"
16734 
16735   windows_path="$new_path"
16736   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16737     unix_path=`$CYGPATH -u "$windows_path"`
16738     new_path="$unix_path"
16739   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16740     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16741     new_path="$unix_path"
16742   fi
16743 
16744     fi
16745 
16746     if test "x$new_path" = x; then
16747       # It's still not found. Now this is an unrecoverable error.
16748       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16749 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16750       has_space=`$ECHO "$complete" | $GREP " "`
16751       if test "x$has_space" != x; then
16752         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16753 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16754       fi
16755       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16756     fi
16757   fi
16758 
16759   # Now new_path has a complete unix path to the binary
16760   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16761     # Keep paths in /bin as-is, but remove trailing .exe if any
16762     new_path="${new_path/%.exe/}"
16763     # Do not save /bin paths to all_fixpath_prefixes!
16764   else
16765     # Not in mixed or Windows style, start by that.
16766     new_path=`cmd //c echo $new_path`
16767 
16768   input_path="$new_path"
16769   # Check if we need to convert this using DOS-style short mode. If the path
16770   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16771   # take no chances and rewrite it.
16772   # Note: m4 eats our [], so we need to use [ and ] instead.
16773   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16774   if test "x$has_forbidden_chars" != x; then
16775     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16776     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16777   fi
16778 
16779     # Output is in $new_path
16780 
16781   windows_path="$new_path"
16782   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16783     unix_path=`$CYGPATH -u "$windows_path"`
16784     new_path="$unix_path"
16785   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16786     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16787     new_path="$unix_path"
16788   fi
16789 
16790     # remove trailing .exe if any
16791     new_path="${new_path/%.exe/}"
16792 
16793     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16794     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16795   fi
16796 
16797     else
16798       # We're on a unix platform. Hooray! :)
16799       # First separate the path from the arguments. This will split at the first
16800       # space.
16801       complete="$FOUND_MAKE"
16802       path="${complete%% *}"
16803       tmp="$complete EOL"
16804       arguments="${tmp#* }"
16805 
16806       # Cannot rely on the command "which" here since it doesn't always work.
16807       is_absolute_path=`$ECHO "$path" | $GREP ^/`
16808       if test -z "$is_absolute_path"; then
16809         # Path to executable is not absolute. Find it.
16810         IFS_save="$IFS"
16811         IFS=:
16812         for p in $PATH; do
16813           if test -f "$p/$path" && test -x "$p/$path"; then
16814             new_path="$p/$path"
16815             break
16816           fi
16817         done
16818         IFS="$IFS_save"
16819       else
16820         # This is an absolute path, we can use it without further modifications.
16821         new_path="$path"
16822       fi
16823 
16824       if test "x$new_path" = x; then
16825         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16826 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16827         has_space=`$ECHO "$complete" | $GREP " "`
16828         if test "x$has_space" != x; then
16829           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16830 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16831         fi
16832         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16833       fi
16834     fi
16835 
16836     # Now join together the path and the arguments once again
16837     if test "x$arguments" != xEOL; then
16838       new_complete="$new_path ${arguments% *}"
16839     else
16840       new_complete="$new_path"
16841     fi
16842 
16843     if test "x$complete" != "x$new_complete"; then
16844       FOUND_MAKE="$new_complete"
16845       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16846 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16847     fi
16848   fi
16849 
16850         fi
16851       fi
16852     fi
16853   fi
16854 
16855 
16856     if test "x$FOUND_MAKE" = x; then
16857       for ac_prog in make
16858 do
16859   # Extract the first word of "$ac_prog", so it can be a program name with args.
16860 set dummy $ac_prog; ac_word=$2
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16862 $as_echo_n "checking for $ac_word... " >&6; }
16863 if ${ac_cv_path_CHECK_MAKE+:} false; then :
16864   $as_echo_n "(cached) " >&6
16865 else
16866   case $CHECK_MAKE in
16867   [\\/]* | ?:[\\/]*)
16868   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
16869   ;;
16870   *)
16871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16872 for as_dir in $PATH
16873 do
16874   IFS=$as_save_IFS
16875   test -z "$as_dir" && as_dir=.
16876     for ac_exec_ext in '' $ac_executable_extensions; do
16877   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16878     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
16879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16880     break 2
16881   fi
16882 done
16883   done
16884 IFS=$as_save_IFS
16885 
16886   ;;
16887 esac
16888 fi
16889 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
16890 if test -n "$CHECK_MAKE"; then
16891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
16892 $as_echo "$CHECK_MAKE" >&6; }
16893 else
16894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16895 $as_echo "no" >&6; }
16896 fi
16897 
16898 
16899   test -n "$CHECK_MAKE" && break
16900 done
16901 
16902 
16903   MAKE_CANDIDATE=""$CHECK_MAKE""
16904   DESCRIPTION="make in PATH"
16905   if test "x$MAKE_CANDIDATE" != x; then
16906     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16907 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16908     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16909     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16910     if test "x$IS_GNU_MAKE" = x; then
16911       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16912 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16913     else
16914       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16915       if test "x$IS_MODERN_MAKE" = x; then
16916         { $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
16917 $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;}
16918       else
16919         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16920           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16921             MAKE_EXPECTED_ENV='cygwin'
16922           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16923             MAKE_EXPECTED_ENV='msys'
16924           else
16925             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16926           fi
16927           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16928           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16929         else
16930           # Not relevant for non-Windows
16931           IS_MAKE_CORRECT_ENV=true
16932         fi
16933         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16934           { $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
16935 $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;}
16936         else
16937           FOUND_MAKE=$MAKE_CANDIDATE
16938 
16939   # Only process if variable expands to non-empty
16940 
16941   if test "x$FOUND_MAKE" != x; then
16942     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16943 
16944   # First separate the path from the arguments. This will split at the first
16945   # space.
16946   complete="$FOUND_MAKE"
16947   path="${complete%% *}"
16948   tmp="$complete EOL"
16949   arguments="${tmp#* }"
16950 
16951   # Input might be given as Windows format, start by converting to
16952   # unix format.
16953   new_path=`$CYGPATH -u "$path"`
16954 
16955   # Now try to locate executable using which
16956   new_path=`$WHICH "$new_path" 2> /dev/null`
16957   # bat and cmd files are not always considered executable in cygwin causing which
16958   # to not find them
16959   if test "x$new_path" = x \
16960       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16961       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16962     new_path=`$CYGPATH -u "$path"`
16963   fi
16964   if test "x$new_path" = x; then
16965     # Oops. Which didn't find the executable.
16966     # The splitting of arguments from the executable at a space might have been incorrect,
16967     # since paths with space are more likely in Windows. Give it another try with the whole
16968     # argument.
16969     path="$complete"
16970     arguments="EOL"
16971     new_path=`$CYGPATH -u "$path"`
16972     new_path=`$WHICH "$new_path" 2> /dev/null`
16973     # bat and cmd files are not always considered executable in cygwin causing which
16974     # to not find them
16975     if test "x$new_path" = x \
16976         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16977         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16978       new_path=`$CYGPATH -u "$path"`
16979     fi
16980     if test "x$new_path" = x; then
16981       # It's still not found. Now this is an unrecoverable error.
16982       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16983 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16984       has_space=`$ECHO "$complete" | $GREP " "`
16985       if test "x$has_space" != x; then
16986         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16987 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16988       fi
16989       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16990     fi
16991   fi
16992 
16993   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16994   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16995   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16996   # "foo.exe" is OK but "foo" is an error.
16997   #
16998   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16999   # It is also a way to make sure we got the proper file name for the real test later on.
17000   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17001   if test "x$test_shortpath" = x; then
17002     # Short path failed, file does not exist as specified.
17003     # Try adding .exe or .cmd
17004     if test -f "${new_path}.exe"; then
17005       input_to_shortpath="${new_path}.exe"
17006     elif test -f "${new_path}.cmd"; then
17007       input_to_shortpath="${new_path}.cmd"
17008     else
17009       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17010 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17011       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17012 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17013       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17014     fi
17015   else
17016     input_to_shortpath="$new_path"
17017   fi
17018 
17019   # Call helper function which possibly converts this using DOS-style short mode.
17020   # If so, the updated path is stored in $new_path.
17021   new_path="$input_to_shortpath"
17022 
17023   input_path="$input_to_shortpath"
17024   # Check if we need to convert this using DOS-style short mode. If the path
17025   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17026   # take no chances and rewrite it.
17027   # Note: m4 eats our [], so we need to use [ and ] instead.
17028   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17029   if test "x$has_forbidden_chars" != x; then
17030     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17031     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17032     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17033     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17034       # Going to short mode and back again did indeed matter. Since short mode is
17035       # case insensitive, let's make it lowercase to improve readability.
17036       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17037       # Now convert it back to Unix-stile (cygpath)
17038       input_path=`$CYGPATH -u "$shortmode_path"`
17039       new_path="$input_path"
17040     fi
17041   fi
17042 
17043   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17044   if test "x$test_cygdrive_prefix" = x; then
17045     # As a simple fix, exclude /usr/bin since it's not a real path.
17046     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17047       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17048       # a path prefixed by /cygdrive for fixpath to work.
17049       new_path="$CYGWIN_ROOT_PATH$input_path"
17050     fi
17051   fi
17052 
17053   # remove trailing .exe if any
17054   new_path="${new_path/%.exe/}"
17055 
17056     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17057 
17058   # First separate the path from the arguments. This will split at the first
17059   # space.
17060   complete="$FOUND_MAKE"
17061   path="${complete%% *}"
17062   tmp="$complete EOL"
17063   arguments="${tmp#* }"
17064 
17065   # Input might be given as Windows format, start by converting to
17066   # unix format.
17067   new_path="$path"
17068 
17069   windows_path="$new_path"
17070   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17071     unix_path=`$CYGPATH -u "$windows_path"`
17072     new_path="$unix_path"
17073   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17074     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17075     new_path="$unix_path"
17076   fi
17077 
17078 
17079   # Now try to locate executable using which
17080   new_path=`$WHICH "$new_path" 2> /dev/null`
17081 
17082   if test "x$new_path" = x; then
17083     # Oops. Which didn't find the executable.
17084     # The splitting of arguments from the executable at a space might have been incorrect,
17085     # since paths with space are more likely in Windows. Give it another try with the whole
17086     # argument.
17087     path="$complete"
17088     arguments="EOL"
17089     new_path="$path"
17090 
17091   windows_path="$new_path"
17092   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17093     unix_path=`$CYGPATH -u "$windows_path"`
17094     new_path="$unix_path"
17095   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17096     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17097     new_path="$unix_path"
17098   fi
17099 
17100 
17101     new_path=`$WHICH "$new_path" 2> /dev/null`
17102     # bat and cmd files are not always considered executable in MSYS causing which
17103     # to not find them
17104     if test "x$new_path" = x \
17105         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17106         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17107       new_path="$path"
17108 
17109   windows_path="$new_path"
17110   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17111     unix_path=`$CYGPATH -u "$windows_path"`
17112     new_path="$unix_path"
17113   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17114     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17115     new_path="$unix_path"
17116   fi
17117 
17118     fi
17119 
17120     if test "x$new_path" = x; then
17121       # It's still not found. Now this is an unrecoverable error.
17122       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17123 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17124       has_space=`$ECHO "$complete" | $GREP " "`
17125       if test "x$has_space" != x; then
17126         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17127 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17128       fi
17129       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17130     fi
17131   fi
17132 
17133   # Now new_path has a complete unix path to the binary
17134   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17135     # Keep paths in /bin as-is, but remove trailing .exe if any
17136     new_path="${new_path/%.exe/}"
17137     # Do not save /bin paths to all_fixpath_prefixes!
17138   else
17139     # Not in mixed or Windows style, start by that.
17140     new_path=`cmd //c echo $new_path`
17141 
17142   input_path="$new_path"
17143   # Check if we need to convert this using DOS-style short mode. If the path
17144   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17145   # take no chances and rewrite it.
17146   # Note: m4 eats our [], so we need to use [ and ] instead.
17147   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17148   if test "x$has_forbidden_chars" != x; then
17149     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17150     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17151   fi
17152 
17153     # Output is in $new_path
17154 
17155   windows_path="$new_path"
17156   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17157     unix_path=`$CYGPATH -u "$windows_path"`
17158     new_path="$unix_path"
17159   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17160     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17161     new_path="$unix_path"
17162   fi
17163 
17164     # remove trailing .exe if any
17165     new_path="${new_path/%.exe/}"
17166 
17167     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17168     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17169   fi
17170 
17171     else
17172       # We're on a unix platform. Hooray! :)
17173       # First separate the path from the arguments. This will split at the first
17174       # space.
17175       complete="$FOUND_MAKE"
17176       path="${complete%% *}"
17177       tmp="$complete EOL"
17178       arguments="${tmp#* }"
17179 
17180       # Cannot rely on the command "which" here since it doesn't always work.
17181       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17182       if test -z "$is_absolute_path"; then
17183         # Path to executable is not absolute. Find it.
17184         IFS_save="$IFS"
17185         IFS=:
17186         for p in $PATH; do
17187           if test -f "$p/$path" && test -x "$p/$path"; then
17188             new_path="$p/$path"
17189             break
17190           fi
17191         done
17192         IFS="$IFS_save"
17193       else
17194         # This is an absolute path, we can use it without further modifications.
17195         new_path="$path"
17196       fi
17197 
17198       if test "x$new_path" = x; then
17199         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17200 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17201         has_space=`$ECHO "$complete" | $GREP " "`
17202         if test "x$has_space" != x; then
17203           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17204 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17205         fi
17206         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17207       fi
17208     fi
17209 
17210     # Now join together the path and the arguments once again
17211     if test "x$arguments" != xEOL; then
17212       new_complete="$new_path ${arguments% *}"
17213     else
17214       new_complete="$new_path"
17215     fi
17216 
17217     if test "x$complete" != "x$new_complete"; then
17218       FOUND_MAKE="$new_complete"
17219       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17220 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17221     fi
17222   fi
17223 
17224         fi
17225       fi
17226     fi
17227   fi
17228 
17229     fi
17230 
17231     if test "x$FOUND_MAKE" = x; then
17232       if test "x$TOOLCHAIN_PATH" != x; then
17233         # We have a toolchain path, check that as well before giving up.
17234         OLD_PATH=$PATH
17235         PATH=$TOOLCHAIN_PATH:$PATH
17236         for ac_prog in gmake
17237 do
17238   # Extract the first word of "$ac_prog", so it can be a program name with args.
17239 set dummy $ac_prog; ac_word=$2
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17241 $as_echo_n "checking for $ac_word... " >&6; }
17242 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
17243   $as_echo_n "(cached) " >&6
17244 else
17245   case $CHECK_TOOLSDIR_GMAKE in
17246   [\\/]* | ?:[\\/]*)
17247   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
17248   ;;
17249   *)
17250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17251 for as_dir in $PATH
17252 do
17253   IFS=$as_save_IFS
17254   test -z "$as_dir" && as_dir=.
17255     for ac_exec_ext in '' $ac_executable_extensions; do
17256   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17257     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
17258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17259     break 2
17260   fi
17261 done
17262   done
17263 IFS=$as_save_IFS
17264 
17265   ;;
17266 esac
17267 fi
17268 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
17269 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
17270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
17271 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
17272 else
17273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17274 $as_echo "no" >&6; }
17275 fi
17276 
17277 
17278   test -n "$CHECK_TOOLSDIR_GMAKE" && break
17279 done
17280 
17281 
17282   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
17283   DESCRIPTION="gmake in tools-dir"
17284   if test "x$MAKE_CANDIDATE" != x; then
17285     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17286 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17287     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17288     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17289     if test "x$IS_GNU_MAKE" = x; then
17290       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17291 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17292     else
17293       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
17294       if test "x$IS_MODERN_MAKE" = x; then
17295         { $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
17296 $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;}
17297       else
17298         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17299           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17300             MAKE_EXPECTED_ENV='cygwin'
17301           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17302             MAKE_EXPECTED_ENV='msys'
17303           else
17304             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17305           fi
17306           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17307           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17308         else
17309           # Not relevant for non-Windows
17310           IS_MAKE_CORRECT_ENV=true
17311         fi
17312         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17313           { $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
17314 $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;}
17315         else
17316           FOUND_MAKE=$MAKE_CANDIDATE
17317 
17318   # Only process if variable expands to non-empty
17319 
17320   if test "x$FOUND_MAKE" != x; then
17321     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17322 
17323   # First separate the path from the arguments. This will split at the first
17324   # space.
17325   complete="$FOUND_MAKE"
17326   path="${complete%% *}"
17327   tmp="$complete EOL"
17328   arguments="${tmp#* }"
17329 
17330   # Input might be given as Windows format, start by converting to
17331   # unix format.
17332   new_path=`$CYGPATH -u "$path"`
17333 
17334   # Now try to locate executable using which
17335   new_path=`$WHICH "$new_path" 2> /dev/null`
17336   # bat and cmd files are not always considered executable in cygwin causing which
17337   # to not find them
17338   if test "x$new_path" = x \
17339       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17340       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17341     new_path=`$CYGPATH -u "$path"`
17342   fi
17343   if test "x$new_path" = x; then
17344     # Oops. Which didn't find the executable.
17345     # The splitting of arguments from the executable at a space might have been incorrect,
17346     # since paths with space are more likely in Windows. Give it another try with the whole
17347     # argument.
17348     path="$complete"
17349     arguments="EOL"
17350     new_path=`$CYGPATH -u "$path"`
17351     new_path=`$WHICH "$new_path" 2> /dev/null`
17352     # bat and cmd files are not always considered executable in cygwin causing which
17353     # to not find them
17354     if test "x$new_path" = x \
17355         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17356         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17357       new_path=`$CYGPATH -u "$path"`
17358     fi
17359     if test "x$new_path" = x; then
17360       # It's still not found. Now this is an unrecoverable error.
17361       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17362 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17363       has_space=`$ECHO "$complete" | $GREP " "`
17364       if test "x$has_space" != x; then
17365         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17366 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17367       fi
17368       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17369     fi
17370   fi
17371 
17372   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17373   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17374   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17375   # "foo.exe" is OK but "foo" is an error.
17376   #
17377   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17378   # It is also a way to make sure we got the proper file name for the real test later on.
17379   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17380   if test "x$test_shortpath" = x; then
17381     # Short path failed, file does not exist as specified.
17382     # Try adding .exe or .cmd
17383     if test -f "${new_path}.exe"; then
17384       input_to_shortpath="${new_path}.exe"
17385     elif test -f "${new_path}.cmd"; then
17386       input_to_shortpath="${new_path}.cmd"
17387     else
17388       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17389 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17390       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17391 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17392       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17393     fi
17394   else
17395     input_to_shortpath="$new_path"
17396   fi
17397 
17398   # Call helper function which possibly converts this using DOS-style short mode.
17399   # If so, the updated path is stored in $new_path.
17400   new_path="$input_to_shortpath"
17401 
17402   input_path="$input_to_shortpath"
17403   # Check if we need to convert this using DOS-style short mode. If the path
17404   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17405   # take no chances and rewrite it.
17406   # Note: m4 eats our [], so we need to use [ and ] instead.
17407   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17408   if test "x$has_forbidden_chars" != x; then
17409     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17410     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17411     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17412     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17413       # Going to short mode and back again did indeed matter. Since short mode is
17414       # case insensitive, let's make it lowercase to improve readability.
17415       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17416       # Now convert it back to Unix-stile (cygpath)
17417       input_path=`$CYGPATH -u "$shortmode_path"`
17418       new_path="$input_path"
17419     fi
17420   fi
17421 
17422   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17423   if test "x$test_cygdrive_prefix" = x; then
17424     # As a simple fix, exclude /usr/bin since it's not a real path.
17425     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17426       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17427       # a path prefixed by /cygdrive for fixpath to work.
17428       new_path="$CYGWIN_ROOT_PATH$input_path"
17429     fi
17430   fi
17431 
17432   # remove trailing .exe if any
17433   new_path="${new_path/%.exe/}"
17434 
17435     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17436 
17437   # First separate the path from the arguments. This will split at the first
17438   # space.
17439   complete="$FOUND_MAKE"
17440   path="${complete%% *}"
17441   tmp="$complete EOL"
17442   arguments="${tmp#* }"
17443 
17444   # Input might be given as Windows format, start by converting to
17445   # unix format.
17446   new_path="$path"
17447 
17448   windows_path="$new_path"
17449   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17450     unix_path=`$CYGPATH -u "$windows_path"`
17451     new_path="$unix_path"
17452   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17453     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17454     new_path="$unix_path"
17455   fi
17456 
17457 
17458   # Now try to locate executable using which
17459   new_path=`$WHICH "$new_path" 2> /dev/null`
17460 
17461   if test "x$new_path" = x; then
17462     # Oops. Which didn't find the executable.
17463     # The splitting of arguments from the executable at a space might have been incorrect,
17464     # since paths with space are more likely in Windows. Give it another try with the whole
17465     # argument.
17466     path="$complete"
17467     arguments="EOL"
17468     new_path="$path"
17469 
17470   windows_path="$new_path"
17471   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17472     unix_path=`$CYGPATH -u "$windows_path"`
17473     new_path="$unix_path"
17474   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17475     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17476     new_path="$unix_path"
17477   fi
17478 
17479 
17480     new_path=`$WHICH "$new_path" 2> /dev/null`
17481     # bat and cmd files are not always considered executable in MSYS causing which
17482     # to not find them
17483     if test "x$new_path" = x \
17484         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17485         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17486       new_path="$path"
17487 
17488   windows_path="$new_path"
17489   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17490     unix_path=`$CYGPATH -u "$windows_path"`
17491     new_path="$unix_path"
17492   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17493     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17494     new_path="$unix_path"
17495   fi
17496 
17497     fi
17498 
17499     if test "x$new_path" = x; then
17500       # It's still not found. Now this is an unrecoverable error.
17501       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17502 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17503       has_space=`$ECHO "$complete" | $GREP " "`
17504       if test "x$has_space" != x; then
17505         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17506 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17507       fi
17508       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17509     fi
17510   fi
17511 
17512   # Now new_path has a complete unix path to the binary
17513   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17514     # Keep paths in /bin as-is, but remove trailing .exe if any
17515     new_path="${new_path/%.exe/}"
17516     # Do not save /bin paths to all_fixpath_prefixes!
17517   else
17518     # Not in mixed or Windows style, start by that.
17519     new_path=`cmd //c echo $new_path`
17520 
17521   input_path="$new_path"
17522   # Check if we need to convert this using DOS-style short mode. If the path
17523   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17524   # take no chances and rewrite it.
17525   # Note: m4 eats our [], so we need to use [ and ] instead.
17526   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17527   if test "x$has_forbidden_chars" != x; then
17528     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17529     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17530   fi
17531 
17532     # Output is in $new_path
17533 
17534   windows_path="$new_path"
17535   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17536     unix_path=`$CYGPATH -u "$windows_path"`
17537     new_path="$unix_path"
17538   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17539     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17540     new_path="$unix_path"
17541   fi
17542 
17543     # remove trailing .exe if any
17544     new_path="${new_path/%.exe/}"
17545 
17546     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17547     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17548   fi
17549 
17550     else
17551       # We're on a unix platform. Hooray! :)
17552       # First separate the path from the arguments. This will split at the first
17553       # space.
17554       complete="$FOUND_MAKE"
17555       path="${complete%% *}"
17556       tmp="$complete EOL"
17557       arguments="${tmp#* }"
17558 
17559       # Cannot rely on the command "which" here since it doesn't always work.
17560       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17561       if test -z "$is_absolute_path"; then
17562         # Path to executable is not absolute. Find it.
17563         IFS_save="$IFS"
17564         IFS=:
17565         for p in $PATH; do
17566           if test -f "$p/$path" && test -x "$p/$path"; then
17567             new_path="$p/$path"
17568             break
17569           fi
17570         done
17571         IFS="$IFS_save"
17572       else
17573         # This is an absolute path, we can use it without further modifications.
17574         new_path="$path"
17575       fi
17576 
17577       if test "x$new_path" = x; then
17578         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17579 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17580         has_space=`$ECHO "$complete" | $GREP " "`
17581         if test "x$has_space" != x; then
17582           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17583 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17584         fi
17585         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17586       fi
17587     fi
17588 
17589     # Now join together the path and the arguments once again
17590     if test "x$arguments" != xEOL; then
17591       new_complete="$new_path ${arguments% *}"
17592     else
17593       new_complete="$new_path"
17594     fi
17595 
17596     if test "x$complete" != "x$new_complete"; then
17597       FOUND_MAKE="$new_complete"
17598       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17599 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17600     fi
17601   fi
17602 
17603         fi
17604       fi
17605     fi
17606   fi
17607 
17608         if test "x$FOUND_MAKE" = x; then
17609           for ac_prog in make
17610 do
17611   # Extract the first word of "$ac_prog", so it can be a program name with args.
17612 set dummy $ac_prog; ac_word=$2
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17614 $as_echo_n "checking for $ac_word... " >&6; }
17615 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
17616   $as_echo_n "(cached) " >&6
17617 else
17618   case $CHECK_TOOLSDIR_MAKE in
17619   [\\/]* | ?:[\\/]*)
17620   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
17621   ;;
17622   *)
17623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17624 for as_dir in $PATH
17625 do
17626   IFS=$as_save_IFS
17627   test -z "$as_dir" && as_dir=.
17628     for ac_exec_ext in '' $ac_executable_extensions; do
17629   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17630     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
17631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17632     break 2
17633   fi
17634 done
17635   done
17636 IFS=$as_save_IFS
17637 
17638   ;;
17639 esac
17640 fi
17641 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
17642 if test -n "$CHECK_TOOLSDIR_MAKE"; then
17643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
17644 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
17645 else
17646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17647 $as_echo "no" >&6; }
17648 fi
17649 
17650 
17651   test -n "$CHECK_TOOLSDIR_MAKE" && break
17652 done
17653 
17654 
17655   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
17656   DESCRIPTION="make in tools-dir"
17657   if test "x$MAKE_CANDIDATE" != x; then
17658     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17659 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17660     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17661     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17662     if test "x$IS_GNU_MAKE" = x; then
17663       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17664 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17665     else
17666       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
17667       if test "x$IS_MODERN_MAKE" = x; then
17668         { $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
17669 $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;}
17670       else
17671         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17672           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17673             MAKE_EXPECTED_ENV='cygwin'
17674           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17675             MAKE_EXPECTED_ENV='msys'
17676           else
17677             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17678           fi
17679           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17680           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17681         else
17682           # Not relevant for non-Windows
17683           IS_MAKE_CORRECT_ENV=true
17684         fi
17685         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17686           { $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
17687 $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;}
17688         else
17689           FOUND_MAKE=$MAKE_CANDIDATE
17690 
17691   # Only process if variable expands to non-empty
17692 
17693   if test "x$FOUND_MAKE" != x; then
17694     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17695 
17696   # First separate the path from the arguments. This will split at the first
17697   # space.
17698   complete="$FOUND_MAKE"
17699   path="${complete%% *}"
17700   tmp="$complete EOL"
17701   arguments="${tmp#* }"
17702 
17703   # Input might be given as Windows format, start by converting to
17704   # unix format.
17705   new_path=`$CYGPATH -u "$path"`
17706 
17707   # Now try to locate executable using which
17708   new_path=`$WHICH "$new_path" 2> /dev/null`
17709   # bat and cmd files are not always considered executable in cygwin causing which
17710   # to not find them
17711   if test "x$new_path" = x \
17712       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17713       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17714     new_path=`$CYGPATH -u "$path"`
17715   fi
17716   if test "x$new_path" = x; then
17717     # Oops. Which didn't find the executable.
17718     # The splitting of arguments from the executable at a space might have been incorrect,
17719     # since paths with space are more likely in Windows. Give it another try with the whole
17720     # argument.
17721     path="$complete"
17722     arguments="EOL"
17723     new_path=`$CYGPATH -u "$path"`
17724     new_path=`$WHICH "$new_path" 2> /dev/null`
17725     # bat and cmd files are not always considered executable in cygwin causing which
17726     # to not find them
17727     if test "x$new_path" = x \
17728         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17729         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17730       new_path=`$CYGPATH -u "$path"`
17731     fi
17732     if test "x$new_path" = x; then
17733       # It's still not found. Now this is an unrecoverable error.
17734       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17735 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17736       has_space=`$ECHO "$complete" | $GREP " "`
17737       if test "x$has_space" != x; then
17738         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17739 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17740       fi
17741       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17742     fi
17743   fi
17744 
17745   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17746   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17747   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17748   # "foo.exe" is OK but "foo" is an error.
17749   #
17750   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17751   # It is also a way to make sure we got the proper file name for the real test later on.
17752   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17753   if test "x$test_shortpath" = x; then
17754     # Short path failed, file does not exist as specified.
17755     # Try adding .exe or .cmd
17756     if test -f "${new_path}.exe"; then
17757       input_to_shortpath="${new_path}.exe"
17758     elif test -f "${new_path}.cmd"; then
17759       input_to_shortpath="${new_path}.cmd"
17760     else
17761       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17762 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17763       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17764 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17765       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17766     fi
17767   else
17768     input_to_shortpath="$new_path"
17769   fi
17770 
17771   # Call helper function which possibly converts this using DOS-style short mode.
17772   # If so, the updated path is stored in $new_path.
17773   new_path="$input_to_shortpath"
17774 
17775   input_path="$input_to_shortpath"
17776   # Check if we need to convert this using DOS-style short mode. If the path
17777   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17778   # take no chances and rewrite it.
17779   # Note: m4 eats our [], so we need to use [ and ] instead.
17780   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17781   if test "x$has_forbidden_chars" != x; then
17782     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17783     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17784     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17785     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17786       # Going to short mode and back again did indeed matter. Since short mode is
17787       # case insensitive, let's make it lowercase to improve readability.
17788       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17789       # Now convert it back to Unix-stile (cygpath)
17790       input_path=`$CYGPATH -u "$shortmode_path"`
17791       new_path="$input_path"
17792     fi
17793   fi
17794 
17795   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17796   if test "x$test_cygdrive_prefix" = x; then
17797     # As a simple fix, exclude /usr/bin since it's not a real path.
17798     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17799       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17800       # a path prefixed by /cygdrive for fixpath to work.
17801       new_path="$CYGWIN_ROOT_PATH$input_path"
17802     fi
17803   fi
17804 
17805   # remove trailing .exe if any
17806   new_path="${new_path/%.exe/}"
17807 
17808     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17809 
17810   # First separate the path from the arguments. This will split at the first
17811   # space.
17812   complete="$FOUND_MAKE"
17813   path="${complete%% *}"
17814   tmp="$complete EOL"
17815   arguments="${tmp#* }"
17816 
17817   # Input might be given as Windows format, start by converting to
17818   # unix format.
17819   new_path="$path"
17820 
17821   windows_path="$new_path"
17822   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17823     unix_path=`$CYGPATH -u "$windows_path"`
17824     new_path="$unix_path"
17825   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17826     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17827     new_path="$unix_path"
17828   fi
17829 
17830 
17831   # Now try to locate executable using which
17832   new_path=`$WHICH "$new_path" 2> /dev/null`
17833 
17834   if test "x$new_path" = x; then
17835     # Oops. Which didn't find the executable.
17836     # The splitting of arguments from the executable at a space might have been incorrect,
17837     # since paths with space are more likely in Windows. Give it another try with the whole
17838     # argument.
17839     path="$complete"
17840     arguments="EOL"
17841     new_path="$path"
17842 
17843   windows_path="$new_path"
17844   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17845     unix_path=`$CYGPATH -u "$windows_path"`
17846     new_path="$unix_path"
17847   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17848     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17849     new_path="$unix_path"
17850   fi
17851 
17852 
17853     new_path=`$WHICH "$new_path" 2> /dev/null`
17854     # bat and cmd files are not always considered executable in MSYS causing which
17855     # to not find them
17856     if test "x$new_path" = x \
17857         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17858         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17859       new_path="$path"
17860 
17861   windows_path="$new_path"
17862   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17863     unix_path=`$CYGPATH -u "$windows_path"`
17864     new_path="$unix_path"
17865   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17866     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17867     new_path="$unix_path"
17868   fi
17869 
17870     fi
17871 
17872     if test "x$new_path" = x; then
17873       # It's still not found. Now this is an unrecoverable error.
17874       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17875 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17876       has_space=`$ECHO "$complete" | $GREP " "`
17877       if test "x$has_space" != x; then
17878         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17879 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17880       fi
17881       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17882     fi
17883   fi
17884 
17885   # Now new_path has a complete unix path to the binary
17886   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17887     # Keep paths in /bin as-is, but remove trailing .exe if any
17888     new_path="${new_path/%.exe/}"
17889     # Do not save /bin paths to all_fixpath_prefixes!
17890   else
17891     # Not in mixed or Windows style, start by that.
17892     new_path=`cmd //c echo $new_path`
17893 
17894   input_path="$new_path"
17895   # Check if we need to convert this using DOS-style short mode. If the path
17896   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17897   # take no chances and rewrite it.
17898   # Note: m4 eats our [], so we need to use [ and ] instead.
17899   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17900   if test "x$has_forbidden_chars" != x; then
17901     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17902     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17903   fi
17904 
17905     # Output is in $new_path
17906 
17907   windows_path="$new_path"
17908   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17909     unix_path=`$CYGPATH -u "$windows_path"`
17910     new_path="$unix_path"
17911   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17912     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17913     new_path="$unix_path"
17914   fi
17915 
17916     # remove trailing .exe if any
17917     new_path="${new_path/%.exe/}"
17918 
17919     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17920     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17921   fi
17922 
17923     else
17924       # We're on a unix platform. Hooray! :)
17925       # First separate the path from the arguments. This will split at the first
17926       # space.
17927       complete="$FOUND_MAKE"
17928       path="${complete%% *}"
17929       tmp="$complete EOL"
17930       arguments="${tmp#* }"
17931 
17932       # Cannot rely on the command "which" here since it doesn't always work.
17933       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17934       if test -z "$is_absolute_path"; then
17935         # Path to executable is not absolute. Find it.
17936         IFS_save="$IFS"
17937         IFS=:
17938         for p in $PATH; do
17939           if test -f "$p/$path" && test -x "$p/$path"; then
17940             new_path="$p/$path"
17941             break
17942           fi
17943         done
17944         IFS="$IFS_save"
17945       else
17946         # This is an absolute path, we can use it without further modifications.
17947         new_path="$path"
17948       fi
17949 
17950       if test "x$new_path" = x; then
17951         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17952 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17953         has_space=`$ECHO "$complete" | $GREP " "`
17954         if test "x$has_space" != x; then
17955           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17956 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17957         fi
17958         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17959       fi
17960     fi
17961 
17962     # Now join together the path and the arguments once again
17963     if test "x$arguments" != xEOL; then
17964       new_complete="$new_path ${arguments% *}"
17965     else
17966       new_complete="$new_path"
17967     fi
17968 
17969     if test "x$complete" != "x$new_complete"; then
17970       FOUND_MAKE="$new_complete"
17971       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17972 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17973     fi
17974   fi
17975 
17976         fi
17977       fi
17978     fi
17979   fi
17980 
17981         fi
17982         PATH=$OLD_PATH
17983       fi
17984     fi
17985 
17986     if test "x$FOUND_MAKE" = x; then
17987       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
17988     fi
17989   fi
17990 
17991   MAKE=$FOUND_MAKE
17992 
17993   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
17994 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
17995 
17996 
17997   # Check if make supports the output sync option and if so, setup using it.
17998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5
17999 $as_echo_n "checking if make --output-sync is supported... " >&6; }
18000   if $MAKE --version -O > /dev/null 2>&1; then
18001     OUTPUT_SYNC_SUPPORTED=true
18002     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18003 $as_echo "yes" >&6; }
18004     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5
18005 $as_echo_n "checking for output-sync value... " >&6; }
18006 
18007 # Check whether --with-output-sync was given.
18008 if test "${with_output_sync+set}" = set; then :
18009   withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync
18010 fi
18011 
18012     if test "x$OUTPUT_SYNC" = "x"; then
18013       OUTPUT_SYNC=none
18014     fi
18015     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5
18016 $as_echo "$OUTPUT_SYNC" >&6; }
18017     if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then
18018       as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5
18019     fi
18020   else
18021     OUTPUT_SYNC_SUPPORTED=false
18022     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18023 $as_echo "no" >&6; }
18024   fi
18025 
18026 
18027 
18028 
18029 
18030 
18031   # Test if find supports -delete
18032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
18033 $as_echo_n "checking if find supports -delete... " >&6; }
18034   FIND_DELETE="-delete"
18035 
18036   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
18037 
18038   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
18039 
18040   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
18041   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
18042     # No, it does not.
18043     rm $DELETEDIR/TestIfFindSupportsDelete
18044     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
18045       # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list
18046       FIND_DELETE="-print | xargs rm"
18047     else
18048       FIND_DELETE="-exec rm \{\} \+"
18049     fi
18050     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18051 $as_echo "no" >&6; }
18052   else
18053     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18054 $as_echo "yes" >&6; }
18055   fi
18056   rmdir $DELETEDIR
18057 
18058 
18059 
18060   # These tools might not be installed by default,
18061   # need hint on how to install them.
18062 
18063 
18064 
18065   # Publish this variable in the help.
18066 
18067 
18068   if test "x$UNZIP" = x; then
18069     # The variable is not set by user, try to locate tool using the code snippet
18070     for ac_prog in unzip
18071 do
18072   # Extract the first word of "$ac_prog", so it can be a program name with args.
18073 set dummy $ac_prog; ac_word=$2
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18075 $as_echo_n "checking for $ac_word... " >&6; }
18076 if ${ac_cv_path_UNZIP+:} false; then :
18077   $as_echo_n "(cached) " >&6
18078 else
18079   case $UNZIP in
18080   [\\/]* | ?:[\\/]*)
18081   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
18082   ;;
18083   *)
18084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18085 for as_dir in $PATH
18086 do
18087   IFS=$as_save_IFS
18088   test -z "$as_dir" && as_dir=.
18089     for ac_exec_ext in '' $ac_executable_extensions; do
18090   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18091     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
18092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18093     break 2
18094   fi
18095 done
18096   done
18097 IFS=$as_save_IFS
18098 
18099   ;;
18100 esac
18101 fi
18102 UNZIP=$ac_cv_path_UNZIP
18103 if test -n "$UNZIP"; then
18104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
18105 $as_echo "$UNZIP" >&6; }
18106 else
18107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18108 $as_echo "no" >&6; }
18109 fi
18110 
18111 
18112   test -n "$UNZIP" && break
18113 done
18114 
18115   else
18116     # The variable is set, but is it from the command line or the environment?
18117 
18118     # Try to remove the string !UNZIP! from our list.
18119     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
18120     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18121       # If it failed, the variable was not from the command line. Ignore it,
18122       # but warn the user (except for BASH, which is always set by the calling BASH).
18123       if test "xUNZIP" != xBASH; then
18124         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
18125 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
18126       fi
18127       # Try to locate tool using the code snippet
18128       for ac_prog in unzip
18129 do
18130   # Extract the first word of "$ac_prog", so it can be a program name with args.
18131 set dummy $ac_prog; ac_word=$2
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18133 $as_echo_n "checking for $ac_word... " >&6; }
18134 if ${ac_cv_path_UNZIP+:} false; then :
18135   $as_echo_n "(cached) " >&6
18136 else
18137   case $UNZIP in
18138   [\\/]* | ?:[\\/]*)
18139   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
18140   ;;
18141   *)
18142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18143 for as_dir in $PATH
18144 do
18145   IFS=$as_save_IFS
18146   test -z "$as_dir" && as_dir=.
18147     for ac_exec_ext in '' $ac_executable_extensions; do
18148   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18149     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
18150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18151     break 2
18152   fi
18153 done
18154   done
18155 IFS=$as_save_IFS
18156 
18157   ;;
18158 esac
18159 fi
18160 UNZIP=$ac_cv_path_UNZIP
18161 if test -n "$UNZIP"; then
18162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
18163 $as_echo "$UNZIP" >&6; }
18164 else
18165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18166 $as_echo "no" >&6; }
18167 fi
18168 
18169 
18170   test -n "$UNZIP" && break
18171 done
18172 
18173     else
18174       # If it succeeded, then it was overridden by the user. We will use it
18175       # for the tool.
18176 
18177       # First remove it from the list of overridden variables, so we can test
18178       # for unknown variables in the end.
18179       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18180 
18181       # Check if the provided tool contains a complete path.
18182       tool_specified="$UNZIP"
18183       tool_basename="${tool_specified##*/}"
18184       if test "x$tool_basename" = "x$tool_specified"; then
18185         # A command without a complete path is provided, search $PATH.
18186         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
18187 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
18188         # Extract the first word of "$tool_basename", so it can be a program name with args.
18189 set dummy $tool_basename; ac_word=$2
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18191 $as_echo_n "checking for $ac_word... " >&6; }
18192 if ${ac_cv_path_UNZIP+:} false; then :
18193   $as_echo_n "(cached) " >&6
18194 else
18195   case $UNZIP in
18196   [\\/]* | ?:[\\/]*)
18197   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
18198   ;;
18199   *)
18200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18201 for as_dir in $PATH
18202 do
18203   IFS=$as_save_IFS
18204   test -z "$as_dir" && as_dir=.
18205     for ac_exec_ext in '' $ac_executable_extensions; do
18206   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18207     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
18208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18209     break 2
18210   fi
18211 done
18212   done
18213 IFS=$as_save_IFS
18214 
18215   ;;
18216 esac
18217 fi
18218 UNZIP=$ac_cv_path_UNZIP
18219 if test -n "$UNZIP"; then
18220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
18221 $as_echo "$UNZIP" >&6; }
18222 else
18223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18224 $as_echo "no" >&6; }
18225 fi
18226 
18227 
18228         if test "x$UNZIP" = x; then
18229           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18230         fi
18231       else
18232         # Otherwise we believe it is a complete path. Use it as it is.
18233         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
18234 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
18235         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
18236 $as_echo_n "checking for UNZIP... " >&6; }
18237         if test ! -x "$tool_specified"; then
18238           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18239 $as_echo "not found" >&6; }
18240           as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
18241         fi
18242         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18243 $as_echo "$tool_specified" >&6; }
18244       fi
18245     fi
18246   fi
18247 
18248 
18249 
18250   if test "x$UNZIP" = x; then
18251     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
18252   fi
18253 
18254 
18255 
18256 
18257 
18258   # Publish this variable in the help.
18259 
18260 
18261   if test "x$ZIP" = x; then
18262     # The variable is not set by user, try to locate tool using the code snippet
18263     for ac_prog in zip
18264 do
18265   # Extract the first word of "$ac_prog", so it can be a program name with args.
18266 set dummy $ac_prog; ac_word=$2
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18268 $as_echo_n "checking for $ac_word... " >&6; }
18269 if ${ac_cv_path_ZIP+:} false; then :
18270   $as_echo_n "(cached) " >&6
18271 else
18272   case $ZIP in
18273   [\\/]* | ?:[\\/]*)
18274   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
18275   ;;
18276   *)
18277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18278 for as_dir in $PATH
18279 do
18280   IFS=$as_save_IFS
18281   test -z "$as_dir" && as_dir=.
18282     for ac_exec_ext in '' $ac_executable_extensions; do
18283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18284     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
18285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18286     break 2
18287   fi
18288 done
18289   done
18290 IFS=$as_save_IFS
18291 
18292   ;;
18293 esac
18294 fi
18295 ZIP=$ac_cv_path_ZIP
18296 if test -n "$ZIP"; then
18297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
18298 $as_echo "$ZIP" >&6; }
18299 else
18300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18301 $as_echo "no" >&6; }
18302 fi
18303 
18304 
18305   test -n "$ZIP" && break
18306 done
18307 
18308   else
18309     # The variable is set, but is it from the command line or the environment?
18310 
18311     # Try to remove the string !ZIP! from our list.
18312     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
18313     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18314       # If it failed, the variable was not from the command line. Ignore it,
18315       # but warn the user (except for BASH, which is always set by the calling BASH).
18316       if test "xZIP" != xBASH; then
18317         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
18318 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
18319       fi
18320       # Try to locate tool using the code snippet
18321       for ac_prog in zip
18322 do
18323   # Extract the first word of "$ac_prog", so it can be a program name with args.
18324 set dummy $ac_prog; ac_word=$2
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18326 $as_echo_n "checking for $ac_word... " >&6; }
18327 if ${ac_cv_path_ZIP+:} false; then :
18328   $as_echo_n "(cached) " >&6
18329 else
18330   case $ZIP in
18331   [\\/]* | ?:[\\/]*)
18332   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
18333   ;;
18334   *)
18335   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18336 for as_dir in $PATH
18337 do
18338   IFS=$as_save_IFS
18339   test -z "$as_dir" && as_dir=.
18340     for ac_exec_ext in '' $ac_executable_extensions; do
18341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18342     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
18343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18344     break 2
18345   fi
18346 done
18347   done
18348 IFS=$as_save_IFS
18349 
18350   ;;
18351 esac
18352 fi
18353 ZIP=$ac_cv_path_ZIP
18354 if test -n "$ZIP"; then
18355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
18356 $as_echo "$ZIP" >&6; }
18357 else
18358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18359 $as_echo "no" >&6; }
18360 fi
18361 
18362 
18363   test -n "$ZIP" && break
18364 done
18365 
18366     else
18367       # If it succeeded, then it was overridden by the user. We will use it
18368       # for the tool.
18369 
18370       # First remove it from the list of overridden variables, so we can test
18371       # for unknown variables in the end.
18372       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18373 
18374       # Check if the provided tool contains a complete path.
18375       tool_specified="$ZIP"
18376       tool_basename="${tool_specified##*/}"
18377       if test "x$tool_basename" = "x$tool_specified"; then
18378         # A command without a complete path is provided, search $PATH.
18379         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
18380 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
18381         # Extract the first word of "$tool_basename", so it can be a program name with args.
18382 set dummy $tool_basename; ac_word=$2
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18384 $as_echo_n "checking for $ac_word... " >&6; }
18385 if ${ac_cv_path_ZIP+:} false; then :
18386   $as_echo_n "(cached) " >&6
18387 else
18388   case $ZIP in
18389   [\\/]* | ?:[\\/]*)
18390   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
18391   ;;
18392   *)
18393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18394 for as_dir in $PATH
18395 do
18396   IFS=$as_save_IFS
18397   test -z "$as_dir" && as_dir=.
18398     for ac_exec_ext in '' $ac_executable_extensions; do
18399   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18400     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
18401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18402     break 2
18403   fi
18404 done
18405   done
18406 IFS=$as_save_IFS
18407 
18408   ;;
18409 esac
18410 fi
18411 ZIP=$ac_cv_path_ZIP
18412 if test -n "$ZIP"; then
18413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
18414 $as_echo "$ZIP" >&6; }
18415 else
18416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18417 $as_echo "no" >&6; }
18418 fi
18419 
18420 
18421         if test "x$ZIP" = x; then
18422           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18423         fi
18424       else
18425         # Otherwise we believe it is a complete path. Use it as it is.
18426         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
18427 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
18428         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
18429 $as_echo_n "checking for ZIP... " >&6; }
18430         if test ! -x "$tool_specified"; then
18431           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18432 $as_echo "not found" >&6; }
18433           as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
18434         fi
18435         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18436 $as_echo "$tool_specified" >&6; }
18437       fi
18438     fi
18439   fi
18440 
18441 
18442 
18443   if test "x$ZIP" = x; then
18444     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
18445   fi
18446 
18447 
18448 
18449   # Non-required basic tools
18450 
18451 
18452 
18453   # Publish this variable in the help.
18454 
18455 
18456   if test "x$LDD" = x; then
18457     # The variable is not set by user, try to locate tool using the code snippet
18458     for ac_prog in ldd
18459 do
18460   # Extract the first word of "$ac_prog", so it can be a program name with args.
18461 set dummy $ac_prog; ac_word=$2
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18463 $as_echo_n "checking for $ac_word... " >&6; }
18464 if ${ac_cv_path_LDD+:} false; then :
18465   $as_echo_n "(cached) " >&6
18466 else
18467   case $LDD in
18468   [\\/]* | ?:[\\/]*)
18469   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
18470   ;;
18471   *)
18472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18473 for as_dir in $PATH
18474 do
18475   IFS=$as_save_IFS
18476   test -z "$as_dir" && as_dir=.
18477     for ac_exec_ext in '' $ac_executable_extensions; do
18478   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18479     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
18480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18481     break 2
18482   fi
18483 done
18484   done
18485 IFS=$as_save_IFS
18486 
18487   ;;
18488 esac
18489 fi
18490 LDD=$ac_cv_path_LDD
18491 if test -n "$LDD"; then
18492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
18493 $as_echo "$LDD" >&6; }
18494 else
18495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18496 $as_echo "no" >&6; }
18497 fi
18498 
18499 
18500   test -n "$LDD" && break
18501 done
18502 
18503   else
18504     # The variable is set, but is it from the command line or the environment?
18505 
18506     # Try to remove the string !LDD! from our list.
18507     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
18508     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18509       # If it failed, the variable was not from the command line. Ignore it,
18510       # but warn the user (except for BASH, which is always set by the calling BASH).
18511       if test "xLDD" != xBASH; then
18512         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
18513 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
18514       fi
18515       # Try to locate tool using the code snippet
18516       for ac_prog in ldd
18517 do
18518   # Extract the first word of "$ac_prog", so it can be a program name with args.
18519 set dummy $ac_prog; ac_word=$2
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18521 $as_echo_n "checking for $ac_word... " >&6; }
18522 if ${ac_cv_path_LDD+:} false; then :
18523   $as_echo_n "(cached) " >&6
18524 else
18525   case $LDD in
18526   [\\/]* | ?:[\\/]*)
18527   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
18528   ;;
18529   *)
18530   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18531 for as_dir in $PATH
18532 do
18533   IFS=$as_save_IFS
18534   test -z "$as_dir" && as_dir=.
18535     for ac_exec_ext in '' $ac_executable_extensions; do
18536   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18537     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
18538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18539     break 2
18540   fi
18541 done
18542   done
18543 IFS=$as_save_IFS
18544 
18545   ;;
18546 esac
18547 fi
18548 LDD=$ac_cv_path_LDD
18549 if test -n "$LDD"; then
18550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
18551 $as_echo "$LDD" >&6; }
18552 else
18553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18554 $as_echo "no" >&6; }
18555 fi
18556 
18557 
18558   test -n "$LDD" && break
18559 done
18560 
18561     else
18562       # If it succeeded, then it was overridden by the user. We will use it
18563       # for the tool.
18564 
18565       # First remove it from the list of overridden variables, so we can test
18566       # for unknown variables in the end.
18567       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18568 
18569       # Check if the provided tool contains a complete path.
18570       tool_specified="$LDD"
18571       tool_basename="${tool_specified##*/}"
18572       if test "x$tool_basename" = "x$tool_specified"; then
18573         # A command without a complete path is provided, search $PATH.
18574         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
18575 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
18576         # Extract the first word of "$tool_basename", so it can be a program name with args.
18577 set dummy $tool_basename; ac_word=$2
18578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18579 $as_echo_n "checking for $ac_word... " >&6; }
18580 if ${ac_cv_path_LDD+:} false; then :
18581   $as_echo_n "(cached) " >&6
18582 else
18583   case $LDD in
18584   [\\/]* | ?:[\\/]*)
18585   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
18586   ;;
18587   *)
18588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18589 for as_dir in $PATH
18590 do
18591   IFS=$as_save_IFS
18592   test -z "$as_dir" && as_dir=.
18593     for ac_exec_ext in '' $ac_executable_extensions; do
18594   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18595     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
18596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18597     break 2
18598   fi
18599 done
18600   done
18601 IFS=$as_save_IFS
18602 
18603   ;;
18604 esac
18605 fi
18606 LDD=$ac_cv_path_LDD
18607 if test -n "$LDD"; then
18608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
18609 $as_echo "$LDD" >&6; }
18610 else
18611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18612 $as_echo "no" >&6; }
18613 fi
18614 
18615 
18616         if test "x$LDD" = x; then
18617           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18618         fi
18619       else
18620         # Otherwise we believe it is a complete path. Use it as it is.
18621         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
18622 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
18623         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
18624 $as_echo_n "checking for LDD... " >&6; }
18625         if test ! -x "$tool_specified"; then
18626           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18627 $as_echo "not found" >&6; }
18628           as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
18629         fi
18630         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18631 $as_echo "$tool_specified" >&6; }
18632       fi
18633     fi
18634   fi
18635 
18636 
18637   if test "x$LDD" = "x"; then
18638     # List shared lib dependencies is used for
18639     # debug output and checking for forbidden dependencies.
18640     # We can build without it.
18641     LDD="true"
18642   fi
18643 
18644 
18645   # Publish this variable in the help.
18646 
18647 
18648   if test "x$OTOOL" = x; then
18649     # The variable is not set by user, try to locate tool using the code snippet
18650     for ac_prog in otool
18651 do
18652   # Extract the first word of "$ac_prog", so it can be a program name with args.
18653 set dummy $ac_prog; ac_word=$2
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18655 $as_echo_n "checking for $ac_word... " >&6; }
18656 if ${ac_cv_path_OTOOL+:} false; then :
18657   $as_echo_n "(cached) " >&6
18658 else
18659   case $OTOOL in
18660   [\\/]* | ?:[\\/]*)
18661   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
18662   ;;
18663   *)
18664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18665 for as_dir in $PATH
18666 do
18667   IFS=$as_save_IFS
18668   test -z "$as_dir" && as_dir=.
18669     for ac_exec_ext in '' $ac_executable_extensions; do
18670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18671     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
18672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18673     break 2
18674   fi
18675 done
18676   done
18677 IFS=$as_save_IFS
18678 
18679   ;;
18680 esac
18681 fi
18682 OTOOL=$ac_cv_path_OTOOL
18683 if test -n "$OTOOL"; then
18684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
18685 $as_echo "$OTOOL" >&6; }
18686 else
18687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18688 $as_echo "no" >&6; }
18689 fi
18690 
18691 
18692   test -n "$OTOOL" && break
18693 done
18694 
18695   else
18696     # The variable is set, but is it from the command line or the environment?
18697 
18698     # Try to remove the string !OTOOL! from our list.
18699     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
18700     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18701       # If it failed, the variable was not from the command line. Ignore it,
18702       # but warn the user (except for BASH, which is always set by the calling BASH).
18703       if test "xOTOOL" != xBASH; then
18704         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
18705 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
18706       fi
18707       # Try to locate tool using the code snippet
18708       for ac_prog in otool
18709 do
18710   # Extract the first word of "$ac_prog", so it can be a program name with args.
18711 set dummy $ac_prog; ac_word=$2
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18713 $as_echo_n "checking for $ac_word... " >&6; }
18714 if ${ac_cv_path_OTOOL+:} false; then :
18715   $as_echo_n "(cached) " >&6
18716 else
18717   case $OTOOL in
18718   [\\/]* | ?:[\\/]*)
18719   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
18720   ;;
18721   *)
18722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18723 for as_dir in $PATH
18724 do
18725   IFS=$as_save_IFS
18726   test -z "$as_dir" && as_dir=.
18727     for ac_exec_ext in '' $ac_executable_extensions; do
18728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18729     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
18730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18731     break 2
18732   fi
18733 done
18734   done
18735 IFS=$as_save_IFS
18736 
18737   ;;
18738 esac
18739 fi
18740 OTOOL=$ac_cv_path_OTOOL
18741 if test -n "$OTOOL"; then
18742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
18743 $as_echo "$OTOOL" >&6; }
18744 else
18745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18746 $as_echo "no" >&6; }
18747 fi
18748 
18749 
18750   test -n "$OTOOL" && break
18751 done
18752 
18753     else
18754       # If it succeeded, then it was overridden by the user. We will use it
18755       # for the tool.
18756 
18757       # First remove it from the list of overridden variables, so we can test
18758       # for unknown variables in the end.
18759       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18760 
18761       # Check if the provided tool contains a complete path.
18762       tool_specified="$OTOOL"
18763       tool_basename="${tool_specified##*/}"
18764       if test "x$tool_basename" = "x$tool_specified"; then
18765         # A command without a complete path is provided, search $PATH.
18766         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
18767 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
18768         # Extract the first word of "$tool_basename", so it can be a program name with args.
18769 set dummy $tool_basename; ac_word=$2
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18771 $as_echo_n "checking for $ac_word... " >&6; }
18772 if ${ac_cv_path_OTOOL+:} false; then :
18773   $as_echo_n "(cached) " >&6
18774 else
18775   case $OTOOL in
18776   [\\/]* | ?:[\\/]*)
18777   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
18778   ;;
18779   *)
18780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18781 for as_dir in $PATH
18782 do
18783   IFS=$as_save_IFS
18784   test -z "$as_dir" && as_dir=.
18785     for ac_exec_ext in '' $ac_executable_extensions; do
18786   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18787     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
18788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18789     break 2
18790   fi
18791 done
18792   done
18793 IFS=$as_save_IFS
18794 
18795   ;;
18796 esac
18797 fi
18798 OTOOL=$ac_cv_path_OTOOL
18799 if test -n "$OTOOL"; then
18800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
18801 $as_echo "$OTOOL" >&6; }
18802 else
18803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18804 $as_echo "no" >&6; }
18805 fi
18806 
18807 
18808         if test "x$OTOOL" = x; then
18809           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18810         fi
18811       else
18812         # Otherwise we believe it is a complete path. Use it as it is.
18813         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
18814 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
18815         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
18816 $as_echo_n "checking for OTOOL... " >&6; }
18817         if test ! -x "$tool_specified"; then
18818           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18819 $as_echo "not found" >&6; }
18820           as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
18821         fi
18822         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18823 $as_echo "$tool_specified" >&6; }
18824       fi
18825     fi
18826   fi
18827 
18828 
18829   if test "x$OTOOL" = "x"; then
18830     OTOOL="true"
18831   fi
18832 
18833 
18834   # Publish this variable in the help.
18835 
18836 
18837   if test "x$READELF" = x; then
18838     # The variable is not set by user, try to locate tool using the code snippet
18839     for ac_prog in greadelf readelf
18840 do
18841   # Extract the first word of "$ac_prog", so it can be a program name with args.
18842 set dummy $ac_prog; ac_word=$2
18843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18844 $as_echo_n "checking for $ac_word... " >&6; }
18845 if ${ac_cv_path_READELF+:} false; then :
18846   $as_echo_n "(cached) " >&6
18847 else
18848   case $READELF in
18849   [\\/]* | ?:[\\/]*)
18850   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
18851   ;;
18852   *)
18853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18854 for as_dir in $PATH
18855 do
18856   IFS=$as_save_IFS
18857   test -z "$as_dir" && as_dir=.
18858     for ac_exec_ext in '' $ac_executable_extensions; do
18859   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18860     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
18861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18862     break 2
18863   fi
18864 done
18865   done
18866 IFS=$as_save_IFS
18867 
18868   ;;
18869 esac
18870 fi
18871 READELF=$ac_cv_path_READELF
18872 if test -n "$READELF"; then
18873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
18874 $as_echo "$READELF" >&6; }
18875 else
18876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18877 $as_echo "no" >&6; }
18878 fi
18879 
18880 
18881   test -n "$READELF" && break
18882 done
18883 
18884   else
18885     # The variable is set, but is it from the command line or the environment?
18886 
18887     # Try to remove the string !READELF! from our list.
18888     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
18889     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18890       # If it failed, the variable was not from the command line. Ignore it,
18891       # but warn the user (except for BASH, which is always set by the calling BASH).
18892       if test "xREADELF" != xBASH; then
18893         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
18894 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
18895       fi
18896       # Try to locate tool using the code snippet
18897       for ac_prog in greadelf readelf
18898 do
18899   # Extract the first word of "$ac_prog", so it can be a program name with args.
18900 set dummy $ac_prog; ac_word=$2
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18902 $as_echo_n "checking for $ac_word... " >&6; }
18903 if ${ac_cv_path_READELF+:} false; then :
18904   $as_echo_n "(cached) " >&6
18905 else
18906   case $READELF in
18907   [\\/]* | ?:[\\/]*)
18908   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
18909   ;;
18910   *)
18911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18912 for as_dir in $PATH
18913 do
18914   IFS=$as_save_IFS
18915   test -z "$as_dir" && as_dir=.
18916     for ac_exec_ext in '' $ac_executable_extensions; do
18917   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18918     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
18919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18920     break 2
18921   fi
18922 done
18923   done
18924 IFS=$as_save_IFS
18925 
18926   ;;
18927 esac
18928 fi
18929 READELF=$ac_cv_path_READELF
18930 if test -n "$READELF"; then
18931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
18932 $as_echo "$READELF" >&6; }
18933 else
18934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18935 $as_echo "no" >&6; }
18936 fi
18937 
18938 
18939   test -n "$READELF" && break
18940 done
18941 
18942     else
18943       # If it succeeded, then it was overridden by the user. We will use it
18944       # for the tool.
18945 
18946       # First remove it from the list of overridden variables, so we can test
18947       # for unknown variables in the end.
18948       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18949 
18950       # Check if the provided tool contains a complete path.
18951       tool_specified="$READELF"
18952       tool_basename="${tool_specified##*/}"
18953       if test "x$tool_basename" = "x$tool_specified"; then
18954         # A command without a complete path is provided, search $PATH.
18955         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
18956 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
18957         # Extract the first word of "$tool_basename", so it can be a program name with args.
18958 set dummy $tool_basename; ac_word=$2
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18960 $as_echo_n "checking for $ac_word... " >&6; }
18961 if ${ac_cv_path_READELF+:} false; then :
18962   $as_echo_n "(cached) " >&6
18963 else
18964   case $READELF in
18965   [\\/]* | ?:[\\/]*)
18966   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
18967   ;;
18968   *)
18969   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18970 for as_dir in $PATH
18971 do
18972   IFS=$as_save_IFS
18973   test -z "$as_dir" && as_dir=.
18974     for ac_exec_ext in '' $ac_executable_extensions; do
18975   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18976     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
18977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18978     break 2
18979   fi
18980 done
18981   done
18982 IFS=$as_save_IFS
18983 
18984   ;;
18985 esac
18986 fi
18987 READELF=$ac_cv_path_READELF
18988 if test -n "$READELF"; then
18989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
18990 $as_echo "$READELF" >&6; }
18991 else
18992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18993 $as_echo "no" >&6; }
18994 fi
18995 
18996 
18997         if test "x$READELF" = x; then
18998           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18999         fi
19000       else
19001         # Otherwise we believe it is a complete path. Use it as it is.
19002         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
19003 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
19004         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
19005 $as_echo_n "checking for READELF... " >&6; }
19006         if test ! -x "$tool_specified"; then
19007           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19008 $as_echo "not found" >&6; }
19009           as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
19010         fi
19011         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19012 $as_echo "$tool_specified" >&6; }
19013       fi
19014     fi
19015   fi
19016 
19017 
19018 
19019 
19020   # Publish this variable in the help.
19021 
19022 
19023   if test "x$HG" = x; then
19024     # The variable is not set by user, try to locate tool using the code snippet
19025     for ac_prog in hg
19026 do
19027   # Extract the first word of "$ac_prog", so it can be a program name with args.
19028 set dummy $ac_prog; ac_word=$2
19029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19030 $as_echo_n "checking for $ac_word... " >&6; }
19031 if ${ac_cv_path_HG+:} false; then :
19032   $as_echo_n "(cached) " >&6
19033 else
19034   case $HG in
19035   [\\/]* | ?:[\\/]*)
19036   ac_cv_path_HG="$HG" # Let the user override the test with a path.
19037   ;;
19038   *)
19039   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19040 for as_dir in $PATH
19041 do
19042   IFS=$as_save_IFS
19043   test -z "$as_dir" && as_dir=.
19044     for ac_exec_ext in '' $ac_executable_extensions; do
19045   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19046     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
19047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19048     break 2
19049   fi
19050 done
19051   done
19052 IFS=$as_save_IFS
19053 
19054   ;;
19055 esac
19056 fi
19057 HG=$ac_cv_path_HG
19058 if test -n "$HG"; then
19059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
19060 $as_echo "$HG" >&6; }
19061 else
19062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19063 $as_echo "no" >&6; }
19064 fi
19065 
19066 
19067   test -n "$HG" && break
19068 done
19069 
19070   else
19071     # The variable is set, but is it from the command line or the environment?
19072 
19073     # Try to remove the string !HG! from our list.
19074     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
19075     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19076       # If it failed, the variable was not from the command line. Ignore it,
19077       # but warn the user (except for BASH, which is always set by the calling BASH).
19078       if test "xHG" != xBASH; then
19079         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
19080 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
19081       fi
19082       # Try to locate tool using the code snippet
19083       for ac_prog in hg
19084 do
19085   # Extract the first word of "$ac_prog", so it can be a program name with args.
19086 set dummy $ac_prog; ac_word=$2
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19088 $as_echo_n "checking for $ac_word... " >&6; }
19089 if ${ac_cv_path_HG+:} false; then :
19090   $as_echo_n "(cached) " >&6
19091 else
19092   case $HG in
19093   [\\/]* | ?:[\\/]*)
19094   ac_cv_path_HG="$HG" # Let the user override the test with a path.
19095   ;;
19096   *)
19097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19098 for as_dir in $PATH
19099 do
19100   IFS=$as_save_IFS
19101   test -z "$as_dir" && as_dir=.
19102     for ac_exec_ext in '' $ac_executable_extensions; do
19103   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19104     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
19105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19106     break 2
19107   fi
19108 done
19109   done
19110 IFS=$as_save_IFS
19111 
19112   ;;
19113 esac
19114 fi
19115 HG=$ac_cv_path_HG
19116 if test -n "$HG"; then
19117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
19118 $as_echo "$HG" >&6; }
19119 else
19120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19121 $as_echo "no" >&6; }
19122 fi
19123 
19124 
19125   test -n "$HG" && break
19126 done
19127 
19128     else
19129       # If it succeeded, then it was overridden by the user. We will use it
19130       # for the tool.
19131 
19132       # First remove it from the list of overridden variables, so we can test
19133       # for unknown variables in the end.
19134       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19135 
19136       # Check if the provided tool contains a complete path.
19137       tool_specified="$HG"
19138       tool_basename="${tool_specified##*/}"
19139       if test "x$tool_basename" = "x$tool_specified"; then
19140         # A command without a complete path is provided, search $PATH.
19141         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
19142 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
19143         # Extract the first word of "$tool_basename", so it can be a program name with args.
19144 set dummy $tool_basename; ac_word=$2
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19146 $as_echo_n "checking for $ac_word... " >&6; }
19147 if ${ac_cv_path_HG+:} false; then :
19148   $as_echo_n "(cached) " >&6
19149 else
19150   case $HG in
19151   [\\/]* | ?:[\\/]*)
19152   ac_cv_path_HG="$HG" # Let the user override the test with a path.
19153   ;;
19154   *)
19155   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19156 for as_dir in $PATH
19157 do
19158   IFS=$as_save_IFS
19159   test -z "$as_dir" && as_dir=.
19160     for ac_exec_ext in '' $ac_executable_extensions; do
19161   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19162     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
19163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19164     break 2
19165   fi
19166 done
19167   done
19168 IFS=$as_save_IFS
19169 
19170   ;;
19171 esac
19172 fi
19173 HG=$ac_cv_path_HG
19174 if test -n "$HG"; then
19175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
19176 $as_echo "$HG" >&6; }
19177 else
19178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19179 $as_echo "no" >&6; }
19180 fi
19181 
19182 
19183         if test "x$HG" = x; then
19184           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19185         fi
19186       else
19187         # Otherwise we believe it is a complete path. Use it as it is.
19188         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
19189 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
19190         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
19191 $as_echo_n "checking for HG... " >&6; }
19192         if test ! -x "$tool_specified"; then
19193           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19194 $as_echo "not found" >&6; }
19195           as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
19196         fi
19197         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19198 $as_echo "$tool_specified" >&6; }
19199       fi
19200     fi
19201   fi
19202 
19203 
19204 
19205 
19206   # Publish this variable in the help.
19207 
19208 
19209   if test "x$STAT" = x; then
19210     # The variable is not set by user, try to locate tool using the code snippet
19211     for ac_prog in stat
19212 do
19213   # Extract the first word of "$ac_prog", so it can be a program name with args.
19214 set dummy $ac_prog; ac_word=$2
19215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19216 $as_echo_n "checking for $ac_word... " >&6; }
19217 if ${ac_cv_path_STAT+:} false; then :
19218   $as_echo_n "(cached) " >&6
19219 else
19220   case $STAT in
19221   [\\/]* | ?:[\\/]*)
19222   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
19223   ;;
19224   *)
19225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19226 for as_dir in $PATH
19227 do
19228   IFS=$as_save_IFS
19229   test -z "$as_dir" && as_dir=.
19230     for ac_exec_ext in '' $ac_executable_extensions; do
19231   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19232     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
19233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19234     break 2
19235   fi
19236 done
19237   done
19238 IFS=$as_save_IFS
19239 
19240   ;;
19241 esac
19242 fi
19243 STAT=$ac_cv_path_STAT
19244 if test -n "$STAT"; then
19245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
19246 $as_echo "$STAT" >&6; }
19247 else
19248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19249 $as_echo "no" >&6; }
19250 fi
19251 
19252 
19253   test -n "$STAT" && break
19254 done
19255 
19256   else
19257     # The variable is set, but is it from the command line or the environment?
19258 
19259     # Try to remove the string !STAT! from our list.
19260     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
19261     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19262       # If it failed, the variable was not from the command line. Ignore it,
19263       # but warn the user (except for BASH, which is always set by the calling BASH).
19264       if test "xSTAT" != xBASH; then
19265         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
19266 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
19267       fi
19268       # Try to locate tool using the code snippet
19269       for ac_prog in stat
19270 do
19271   # Extract the first word of "$ac_prog", so it can be a program name with args.
19272 set dummy $ac_prog; ac_word=$2
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19274 $as_echo_n "checking for $ac_word... " >&6; }
19275 if ${ac_cv_path_STAT+:} false; then :
19276   $as_echo_n "(cached) " >&6
19277 else
19278   case $STAT in
19279   [\\/]* | ?:[\\/]*)
19280   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
19281   ;;
19282   *)
19283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19284 for as_dir in $PATH
19285 do
19286   IFS=$as_save_IFS
19287   test -z "$as_dir" && as_dir=.
19288     for ac_exec_ext in '' $ac_executable_extensions; do
19289   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19290     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
19291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19292     break 2
19293   fi
19294 done
19295   done
19296 IFS=$as_save_IFS
19297 
19298   ;;
19299 esac
19300 fi
19301 STAT=$ac_cv_path_STAT
19302 if test -n "$STAT"; then
19303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
19304 $as_echo "$STAT" >&6; }
19305 else
19306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19307 $as_echo "no" >&6; }
19308 fi
19309 
19310 
19311   test -n "$STAT" && break
19312 done
19313 
19314     else
19315       # If it succeeded, then it was overridden by the user. We will use it
19316       # for the tool.
19317 
19318       # First remove it from the list of overridden variables, so we can test
19319       # for unknown variables in the end.
19320       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19321 
19322       # Check if the provided tool contains a complete path.
19323       tool_specified="$STAT"
19324       tool_basename="${tool_specified##*/}"
19325       if test "x$tool_basename" = "x$tool_specified"; then
19326         # A command without a complete path is provided, search $PATH.
19327         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
19328 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
19329         # Extract the first word of "$tool_basename", so it can be a program name with args.
19330 set dummy $tool_basename; ac_word=$2
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19332 $as_echo_n "checking for $ac_word... " >&6; }
19333 if ${ac_cv_path_STAT+:} false; then :
19334   $as_echo_n "(cached) " >&6
19335 else
19336   case $STAT in
19337   [\\/]* | ?:[\\/]*)
19338   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
19339   ;;
19340   *)
19341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19342 for as_dir in $PATH
19343 do
19344   IFS=$as_save_IFS
19345   test -z "$as_dir" && as_dir=.
19346     for ac_exec_ext in '' $ac_executable_extensions; do
19347   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19348     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
19349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19350     break 2
19351   fi
19352 done
19353   done
19354 IFS=$as_save_IFS
19355 
19356   ;;
19357 esac
19358 fi
19359 STAT=$ac_cv_path_STAT
19360 if test -n "$STAT"; then
19361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
19362 $as_echo "$STAT" >&6; }
19363 else
19364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19365 $as_echo "no" >&6; }
19366 fi
19367 
19368 
19369         if test "x$STAT" = x; then
19370           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19371         fi
19372       else
19373         # Otherwise we believe it is a complete path. Use it as it is.
19374         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
19375 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
19376         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
19377 $as_echo_n "checking for STAT... " >&6; }
19378         if test ! -x "$tool_specified"; then
19379           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19380 $as_echo "not found" >&6; }
19381           as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
19382         fi
19383         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19384 $as_echo "$tool_specified" >&6; }
19385       fi
19386     fi
19387   fi
19388 
19389 
19390 
19391 
19392   # Publish this variable in the help.
19393 
19394 
19395   if test "x$TIME" = x; then
19396     # The variable is not set by user, try to locate tool using the code snippet
19397     for ac_prog in time
19398 do
19399   # Extract the first word of "$ac_prog", so it can be a program name with args.
19400 set dummy $ac_prog; ac_word=$2
19401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19402 $as_echo_n "checking for $ac_word... " >&6; }
19403 if ${ac_cv_path_TIME+:} false; then :
19404   $as_echo_n "(cached) " >&6
19405 else
19406   case $TIME in
19407   [\\/]* | ?:[\\/]*)
19408   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
19409   ;;
19410   *)
19411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19412 for as_dir in $PATH
19413 do
19414   IFS=$as_save_IFS
19415   test -z "$as_dir" && as_dir=.
19416     for ac_exec_ext in '' $ac_executable_extensions; do
19417   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19418     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
19419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19420     break 2
19421   fi
19422 done
19423   done
19424 IFS=$as_save_IFS
19425 
19426   ;;
19427 esac
19428 fi
19429 TIME=$ac_cv_path_TIME
19430 if test -n "$TIME"; then
19431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
19432 $as_echo "$TIME" >&6; }
19433 else
19434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19435 $as_echo "no" >&6; }
19436 fi
19437 
19438 
19439   test -n "$TIME" && break
19440 done
19441 
19442   else
19443     # The variable is set, but is it from the command line or the environment?
19444 
19445     # Try to remove the string !TIME! from our list.
19446     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
19447     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19448       # If it failed, the variable was not from the command line. Ignore it,
19449       # but warn the user (except for BASH, which is always set by the calling BASH).
19450       if test "xTIME" != xBASH; then
19451         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
19452 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
19453       fi
19454       # Try to locate tool using the code snippet
19455       for ac_prog in time
19456 do
19457   # Extract the first word of "$ac_prog", so it can be a program name with args.
19458 set dummy $ac_prog; ac_word=$2
19459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19460 $as_echo_n "checking for $ac_word... " >&6; }
19461 if ${ac_cv_path_TIME+:} false; then :
19462   $as_echo_n "(cached) " >&6
19463 else
19464   case $TIME in
19465   [\\/]* | ?:[\\/]*)
19466   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
19467   ;;
19468   *)
19469   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19470 for as_dir in $PATH
19471 do
19472   IFS=$as_save_IFS
19473   test -z "$as_dir" && as_dir=.
19474     for ac_exec_ext in '' $ac_executable_extensions; do
19475   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19476     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
19477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19478     break 2
19479   fi
19480 done
19481   done
19482 IFS=$as_save_IFS
19483 
19484   ;;
19485 esac
19486 fi
19487 TIME=$ac_cv_path_TIME
19488 if test -n "$TIME"; then
19489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
19490 $as_echo "$TIME" >&6; }
19491 else
19492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19493 $as_echo "no" >&6; }
19494 fi
19495 
19496 
19497   test -n "$TIME" && break
19498 done
19499 
19500     else
19501       # If it succeeded, then it was overridden by the user. We will use it
19502       # for the tool.
19503 
19504       # First remove it from the list of overridden variables, so we can test
19505       # for unknown variables in the end.
19506       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19507 
19508       # Check if the provided tool contains a complete path.
19509       tool_specified="$TIME"
19510       tool_basename="${tool_specified##*/}"
19511       if test "x$tool_basename" = "x$tool_specified"; then
19512         # A command without a complete path is provided, search $PATH.
19513         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
19514 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
19515         # Extract the first word of "$tool_basename", so it can be a program name with args.
19516 set dummy $tool_basename; ac_word=$2
19517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19518 $as_echo_n "checking for $ac_word... " >&6; }
19519 if ${ac_cv_path_TIME+:} false; then :
19520   $as_echo_n "(cached) " >&6
19521 else
19522   case $TIME in
19523   [\\/]* | ?:[\\/]*)
19524   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
19525   ;;
19526   *)
19527   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19528 for as_dir in $PATH
19529 do
19530   IFS=$as_save_IFS
19531   test -z "$as_dir" && as_dir=.
19532     for ac_exec_ext in '' $ac_executable_extensions; do
19533   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19534     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
19535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19536     break 2
19537   fi
19538 done
19539   done
19540 IFS=$as_save_IFS
19541 
19542   ;;
19543 esac
19544 fi
19545 TIME=$ac_cv_path_TIME
19546 if test -n "$TIME"; then
19547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
19548 $as_echo "$TIME" >&6; }
19549 else
19550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19551 $as_echo "no" >&6; }
19552 fi
19553 
19554 
19555         if test "x$TIME" = x; then
19556           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19557         fi
19558       else
19559         # Otherwise we believe it is a complete path. Use it as it is.
19560         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
19561 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
19562         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
19563 $as_echo_n "checking for TIME... " >&6; }
19564         if test ! -x "$tool_specified"; then
19565           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19566 $as_echo "not found" >&6; }
19567           as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
19568         fi
19569         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19570 $as_echo "$tool_specified" >&6; }
19571       fi
19572     fi
19573   fi
19574 
19575 
19576   # Check if it's GNU time
19577   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
19578   if test "x$IS_GNU_TIME" != x; then
19579     IS_GNU_TIME=yes
19580   else
19581     IS_GNU_TIME=no
19582   fi
19583 
19584 
19585   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
19586 
19587 
19588 
19589   # Publish this variable in the help.
19590 
19591 
19592   if test "x$DSYMUTIL" = x; then
19593     # The variable is not set by user, try to locate tool using the code snippet
19594     for ac_prog in dsymutil
19595 do
19596   # Extract the first word of "$ac_prog", so it can be a program name with args.
19597 set dummy $ac_prog; ac_word=$2
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19599 $as_echo_n "checking for $ac_word... " >&6; }
19600 if ${ac_cv_path_DSYMUTIL+:} false; then :
19601   $as_echo_n "(cached) " >&6
19602 else
19603   case $DSYMUTIL in
19604   [\\/]* | ?:[\\/]*)
19605   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
19606   ;;
19607   *)
19608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19609 for as_dir in $PATH
19610 do
19611   IFS=$as_save_IFS
19612   test -z "$as_dir" && as_dir=.
19613     for ac_exec_ext in '' $ac_executable_extensions; do
19614   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19615     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
19616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19617     break 2
19618   fi
19619 done
19620   done
19621 IFS=$as_save_IFS
19622 
19623   ;;
19624 esac
19625 fi
19626 DSYMUTIL=$ac_cv_path_DSYMUTIL
19627 if test -n "$DSYMUTIL"; then
19628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
19629 $as_echo "$DSYMUTIL" >&6; }
19630 else
19631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19632 $as_echo "no" >&6; }
19633 fi
19634 
19635 
19636   test -n "$DSYMUTIL" && break
19637 done
19638 
19639   else
19640     # The variable is set, but is it from the command line or the environment?
19641 
19642     # Try to remove the string !DSYMUTIL! from our list.
19643     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
19644     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19645       # If it failed, the variable was not from the command line. Ignore it,
19646       # but warn the user (except for BASH, which is always set by the calling BASH).
19647       if test "xDSYMUTIL" != xBASH; then
19648         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
19649 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
19650       fi
19651       # Try to locate tool using the code snippet
19652       for ac_prog in dsymutil
19653 do
19654   # Extract the first word of "$ac_prog", so it can be a program name with args.
19655 set dummy $ac_prog; ac_word=$2
19656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19657 $as_echo_n "checking for $ac_word... " >&6; }
19658 if ${ac_cv_path_DSYMUTIL+:} false; then :
19659   $as_echo_n "(cached) " >&6
19660 else
19661   case $DSYMUTIL in
19662   [\\/]* | ?:[\\/]*)
19663   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
19664   ;;
19665   *)
19666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19667 for as_dir in $PATH
19668 do
19669   IFS=$as_save_IFS
19670   test -z "$as_dir" && as_dir=.
19671     for ac_exec_ext in '' $ac_executable_extensions; do
19672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19673     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
19674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19675     break 2
19676   fi
19677 done
19678   done
19679 IFS=$as_save_IFS
19680 
19681   ;;
19682 esac
19683 fi
19684 DSYMUTIL=$ac_cv_path_DSYMUTIL
19685 if test -n "$DSYMUTIL"; then
19686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
19687 $as_echo "$DSYMUTIL" >&6; }
19688 else
19689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19690 $as_echo "no" >&6; }
19691 fi
19692 
19693 
19694   test -n "$DSYMUTIL" && break
19695 done
19696 
19697     else
19698       # If it succeeded, then it was overridden by the user. We will use it
19699       # for the tool.
19700 
19701       # First remove it from the list of overridden variables, so we can test
19702       # for unknown variables in the end.
19703       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19704 
19705       # Check if the provided tool contains a complete path.
19706       tool_specified="$DSYMUTIL"
19707       tool_basename="${tool_specified##*/}"
19708       if test "x$tool_basename" = "x$tool_specified"; then
19709         # A command without a complete path is provided, search $PATH.
19710         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
19711 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
19712         # Extract the first word of "$tool_basename", so it can be a program name with args.
19713 set dummy $tool_basename; ac_word=$2
19714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19715 $as_echo_n "checking for $ac_word... " >&6; }
19716 if ${ac_cv_path_DSYMUTIL+:} false; then :
19717   $as_echo_n "(cached) " >&6
19718 else
19719   case $DSYMUTIL in
19720   [\\/]* | ?:[\\/]*)
19721   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
19722   ;;
19723   *)
19724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19725 for as_dir in $PATH
19726 do
19727   IFS=$as_save_IFS
19728   test -z "$as_dir" && as_dir=.
19729     for ac_exec_ext in '' $ac_executable_extensions; do
19730   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19731     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
19732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19733     break 2
19734   fi
19735 done
19736   done
19737 IFS=$as_save_IFS
19738 
19739   ;;
19740 esac
19741 fi
19742 DSYMUTIL=$ac_cv_path_DSYMUTIL
19743 if test -n "$DSYMUTIL"; then
19744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
19745 $as_echo "$DSYMUTIL" >&6; }
19746 else
19747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19748 $as_echo "no" >&6; }
19749 fi
19750 
19751 
19752         if test "x$DSYMUTIL" = x; then
19753           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19754         fi
19755       else
19756         # Otherwise we believe it is a complete path. Use it as it is.
19757         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
19758 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
19759         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
19760 $as_echo_n "checking for DSYMUTIL... " >&6; }
19761         if test ! -x "$tool_specified"; then
19762           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19763 $as_echo "not found" >&6; }
19764           as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
19765         fi
19766         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19767 $as_echo "$tool_specified" >&6; }
19768       fi
19769     fi
19770   fi
19771 
19772 
19773 
19774   if test "x$DSYMUTIL" = x; then
19775     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
19776   fi
19777 
19778 
19779 
19780 
19781 
19782   # Publish this variable in the help.
19783 
19784 
19785   if test "x$XATTR" = x; then
19786     # The variable is not set by user, try to locate tool using the code snippet
19787     for ac_prog in xattr
19788 do
19789   # Extract the first word of "$ac_prog", so it can be a program name with args.
19790 set dummy $ac_prog; ac_word=$2
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19792 $as_echo_n "checking for $ac_word... " >&6; }
19793 if ${ac_cv_path_XATTR+:} false; then :
19794   $as_echo_n "(cached) " >&6
19795 else
19796   case $XATTR in
19797   [\\/]* | ?:[\\/]*)
19798   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19799   ;;
19800   *)
19801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19802 for as_dir in $PATH
19803 do
19804   IFS=$as_save_IFS
19805   test -z "$as_dir" && as_dir=.
19806     for ac_exec_ext in '' $ac_executable_extensions; do
19807   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19808     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19810     break 2
19811   fi
19812 done
19813   done
19814 IFS=$as_save_IFS
19815 
19816   ;;
19817 esac
19818 fi
19819 XATTR=$ac_cv_path_XATTR
19820 if test -n "$XATTR"; then
19821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19822 $as_echo "$XATTR" >&6; }
19823 else
19824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19825 $as_echo "no" >&6; }
19826 fi
19827 
19828 
19829   test -n "$XATTR" && break
19830 done
19831 
19832   else
19833     # The variable is set, but is it from the command line or the environment?
19834 
19835     # Try to remove the string !XATTR! from our list.
19836     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
19837     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19838       # If it failed, the variable was not from the command line. Ignore it,
19839       # but warn the user (except for BASH, which is always set by the calling BASH).
19840       if test "xXATTR" != xBASH; then
19841         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
19842 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
19843       fi
19844       # Try to locate tool using the code snippet
19845       for ac_prog in xattr
19846 do
19847   # Extract the first word of "$ac_prog", so it can be a program name with args.
19848 set dummy $ac_prog; ac_word=$2
19849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19850 $as_echo_n "checking for $ac_word... " >&6; }
19851 if ${ac_cv_path_XATTR+:} false; then :
19852   $as_echo_n "(cached) " >&6
19853 else
19854   case $XATTR in
19855   [\\/]* | ?:[\\/]*)
19856   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19857   ;;
19858   *)
19859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19860 for as_dir in $PATH
19861 do
19862   IFS=$as_save_IFS
19863   test -z "$as_dir" && as_dir=.
19864     for ac_exec_ext in '' $ac_executable_extensions; do
19865   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19866     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19868     break 2
19869   fi
19870 done
19871   done
19872 IFS=$as_save_IFS
19873 
19874   ;;
19875 esac
19876 fi
19877 XATTR=$ac_cv_path_XATTR
19878 if test -n "$XATTR"; then
19879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19880 $as_echo "$XATTR" >&6; }
19881 else
19882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19883 $as_echo "no" >&6; }
19884 fi
19885 
19886 
19887   test -n "$XATTR" && break
19888 done
19889 
19890     else
19891       # If it succeeded, then it was overridden by the user. We will use it
19892       # for the tool.
19893 
19894       # First remove it from the list of overridden variables, so we can test
19895       # for unknown variables in the end.
19896       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19897 
19898       # Check if the provided tool contains a complete path.
19899       tool_specified="$XATTR"
19900       tool_basename="${tool_specified##*/}"
19901       if test "x$tool_basename" = "x$tool_specified"; then
19902         # A command without a complete path is provided, search $PATH.
19903         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
19904 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
19905         # Extract the first word of "$tool_basename", so it can be a program name with args.
19906 set dummy $tool_basename; ac_word=$2
19907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19908 $as_echo_n "checking for $ac_word... " >&6; }
19909 if ${ac_cv_path_XATTR+:} false; then :
19910   $as_echo_n "(cached) " >&6
19911 else
19912   case $XATTR in
19913   [\\/]* | ?:[\\/]*)
19914   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19915   ;;
19916   *)
19917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19918 for as_dir in $PATH
19919 do
19920   IFS=$as_save_IFS
19921   test -z "$as_dir" && as_dir=.
19922     for ac_exec_ext in '' $ac_executable_extensions; do
19923   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19924     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19926     break 2
19927   fi
19928 done
19929   done
19930 IFS=$as_save_IFS
19931 
19932   ;;
19933 esac
19934 fi
19935 XATTR=$ac_cv_path_XATTR
19936 if test -n "$XATTR"; then
19937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19938 $as_echo "$XATTR" >&6; }
19939 else
19940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19941 $as_echo "no" >&6; }
19942 fi
19943 
19944 
19945         if test "x$XATTR" = x; then
19946           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19947         fi
19948       else
19949         # Otherwise we believe it is a complete path. Use it as it is.
19950         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
19951 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
19952         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
19953 $as_echo_n "checking for XATTR... " >&6; }
19954         if test ! -x "$tool_specified"; then
19955           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19956 $as_echo "not found" >&6; }
19957           as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
19958         fi
19959         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19960 $as_echo "$tool_specified" >&6; }
19961       fi
19962     fi
19963   fi
19964 
19965 
19966 
19967   if test "x$XATTR" = x; then
19968     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
19969   fi
19970 
19971 
19972 
19973 
19974   # Publish this variable in the help.
19975 
19976 
19977   if test "x$CODESIGN" = x; then
19978     # The variable is not set by user, try to locate tool using the code snippet
19979     for ac_prog in codesign
19980 do
19981   # Extract the first word of "$ac_prog", so it can be a program name with args.
19982 set dummy $ac_prog; ac_word=$2
19983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19984 $as_echo_n "checking for $ac_word... " >&6; }
19985 if ${ac_cv_path_CODESIGN+:} false; then :
19986   $as_echo_n "(cached) " >&6
19987 else
19988   case $CODESIGN in
19989   [\\/]* | ?:[\\/]*)
19990   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19991   ;;
19992   *)
19993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19994 for as_dir in $PATH
19995 do
19996   IFS=$as_save_IFS
19997   test -z "$as_dir" && as_dir=.
19998     for ac_exec_ext in '' $ac_executable_extensions; do
19999   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20000     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
20001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20002     break 2
20003   fi
20004 done
20005   done
20006 IFS=$as_save_IFS
20007 
20008   ;;
20009 esac
20010 fi
20011 CODESIGN=$ac_cv_path_CODESIGN
20012 if test -n "$CODESIGN"; then
20013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
20014 $as_echo "$CODESIGN" >&6; }
20015 else
20016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20017 $as_echo "no" >&6; }
20018 fi
20019 
20020 
20021   test -n "$CODESIGN" && break
20022 done
20023 
20024   else
20025     # The variable is set, but is it from the command line or the environment?
20026 
20027     # Try to remove the string !CODESIGN! from our list.
20028     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
20029     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20030       # If it failed, the variable was not from the command line. Ignore it,
20031       # but warn the user (except for BASH, which is always set by the calling BASH).
20032       if test "xCODESIGN" != xBASH; then
20033         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
20034 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
20035       fi
20036       # Try to locate tool using the code snippet
20037       for ac_prog in codesign
20038 do
20039   # Extract the first word of "$ac_prog", so it can be a program name with args.
20040 set dummy $ac_prog; ac_word=$2
20041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20042 $as_echo_n "checking for $ac_word... " >&6; }
20043 if ${ac_cv_path_CODESIGN+:} false; then :
20044   $as_echo_n "(cached) " >&6
20045 else
20046   case $CODESIGN in
20047   [\\/]* | ?:[\\/]*)
20048   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
20049   ;;
20050   *)
20051   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20052 for as_dir in $PATH
20053 do
20054   IFS=$as_save_IFS
20055   test -z "$as_dir" && as_dir=.
20056     for ac_exec_ext in '' $ac_executable_extensions; do
20057   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20058     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
20059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20060     break 2
20061   fi
20062 done
20063   done
20064 IFS=$as_save_IFS
20065 
20066   ;;
20067 esac
20068 fi
20069 CODESIGN=$ac_cv_path_CODESIGN
20070 if test -n "$CODESIGN"; then
20071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
20072 $as_echo "$CODESIGN" >&6; }
20073 else
20074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20075 $as_echo "no" >&6; }
20076 fi
20077 
20078 
20079   test -n "$CODESIGN" && break
20080 done
20081 
20082     else
20083       # If it succeeded, then it was overridden by the user. We will use it
20084       # for the tool.
20085 
20086       # First remove it from the list of overridden variables, so we can test
20087       # for unknown variables in the end.
20088       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20089 
20090       # Check if the provided tool contains a complete path.
20091       tool_specified="$CODESIGN"
20092       tool_basename="${tool_specified##*/}"
20093       if test "x$tool_basename" = "x$tool_specified"; then
20094         # A command without a complete path is provided, search $PATH.
20095         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
20096 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
20097         # Extract the first word of "$tool_basename", so it can be a program name with args.
20098 set dummy $tool_basename; ac_word=$2
20099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20100 $as_echo_n "checking for $ac_word... " >&6; }
20101 if ${ac_cv_path_CODESIGN+:} false; then :
20102   $as_echo_n "(cached) " >&6
20103 else
20104   case $CODESIGN in
20105   [\\/]* | ?:[\\/]*)
20106   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
20107   ;;
20108   *)
20109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20110 for as_dir in $PATH
20111 do
20112   IFS=$as_save_IFS
20113   test -z "$as_dir" && as_dir=.
20114     for ac_exec_ext in '' $ac_executable_extensions; do
20115   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20116     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
20117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20118     break 2
20119   fi
20120 done
20121   done
20122 IFS=$as_save_IFS
20123 
20124   ;;
20125 esac
20126 fi
20127 CODESIGN=$ac_cv_path_CODESIGN
20128 if test -n "$CODESIGN"; then
20129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
20130 $as_echo "$CODESIGN" >&6; }
20131 else
20132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20133 $as_echo "no" >&6; }
20134 fi
20135 
20136 
20137         if test "x$CODESIGN" = x; then
20138           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20139         fi
20140       else
20141         # Otherwise we believe it is a complete path. Use it as it is.
20142         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
20143 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
20144         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
20145 $as_echo_n "checking for CODESIGN... " >&6; }
20146         if test ! -x "$tool_specified"; then
20147           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20148 $as_echo "not found" >&6; }
20149           as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
20150         fi
20151         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20152 $as_echo "$tool_specified" >&6; }
20153       fi
20154     fi
20155   fi
20156 
20157 
20158     if test "x$CODESIGN" != "x"; then
20159       # Verify that the openjdk_codesign certificate is present
20160       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
20161 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
20162       rm -f codesign-testfile
20163       touch codesign-testfile
20164       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
20165       rm -f codesign-testfile
20166       if test "x$CODESIGN" = x; then
20167         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20168 $as_echo "no" >&6; }
20169       else
20170         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20171 $as_echo "yes" >&6; }
20172       fi
20173     fi
20174   fi
20175 
20176 
20177   # Test if bash supports pipefail.
20178   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5
20179 $as_echo_n "checking if bash supports pipefail... " >&6; }
20180   if ${BASH} -c 'set -o pipefail'; then
20181     BASH_ARGS="$BASH_ARGS -o pipefail"
20182     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20183 $as_echo "yes" >&6; }
20184   else
20185     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20186 $as_echo "no" >&6; }
20187   fi
20188 
20189   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5
20190 $as_echo_n "checking if bash supports errexit (-e)... " >&6; }
20191   if ${BASH} -e -c 'true'; then
20192     BASH_ARGS="$BASH_ARGS -e"
20193     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20194 $as_echo "yes" >&6; }
20195   else
20196     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20197 $as_echo "no" >&6; }
20198   fi
20199 
20200 
20201 
20202 
20203 # Check if pkg-config is available.
20204 
20205 
20206 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20207         if test -n "$ac_tool_prefix"; then
20208   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20209 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20211 $as_echo_n "checking for $ac_word... " >&6; }
20212 if ${ac_cv_path_PKG_CONFIG+:} false; then :
20213   $as_echo_n "(cached) " >&6
20214 else
20215   case $PKG_CONFIG in
20216   [\\/]* | ?:[\\/]*)
20217   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20218   ;;
20219   *)
20220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20221 for as_dir in $PATH
20222 do
20223   IFS=$as_save_IFS
20224   test -z "$as_dir" && as_dir=.
20225     for ac_exec_ext in '' $ac_executable_extensions; do
20226   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20227     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20229     break 2
20230   fi
20231 done
20232   done
20233 IFS=$as_save_IFS
20234 
20235   ;;
20236 esac
20237 fi
20238 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20239 if test -n "$PKG_CONFIG"; then
20240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20241 $as_echo "$PKG_CONFIG" >&6; }
20242 else
20243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20244 $as_echo "no" >&6; }
20245 fi
20246 
20247 
20248 fi
20249 if test -z "$ac_cv_path_PKG_CONFIG"; then
20250   ac_pt_PKG_CONFIG=$PKG_CONFIG
20251   # Extract the first word of "pkg-config", so it can be a program name with args.
20252 set dummy pkg-config; ac_word=$2
20253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20254 $as_echo_n "checking for $ac_word... " >&6; }
20255 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
20256   $as_echo_n "(cached) " >&6
20257 else
20258   case $ac_pt_PKG_CONFIG in
20259   [\\/]* | ?:[\\/]*)
20260   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20261   ;;
20262   *)
20263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20264 for as_dir in $PATH
20265 do
20266   IFS=$as_save_IFS
20267   test -z "$as_dir" && as_dir=.
20268     for ac_exec_ext in '' $ac_executable_extensions; do
20269   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20270     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20272     break 2
20273   fi
20274 done
20275   done
20276 IFS=$as_save_IFS
20277 
20278   ;;
20279 esac
20280 fi
20281 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20282 if test -n "$ac_pt_PKG_CONFIG"; then
20283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20284 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
20285 else
20286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20287 $as_echo "no" >&6; }
20288 fi
20289 
20290   if test "x$ac_pt_PKG_CONFIG" = x; then
20291     PKG_CONFIG=""
20292   else
20293     case $cross_compiling:$ac_tool_warned in
20294 yes:)
20295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20297 ac_tool_warned=yes ;;
20298 esac
20299     PKG_CONFIG=$ac_pt_PKG_CONFIG
20300   fi
20301 else
20302   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20303 fi
20304 
20305 fi
20306 if test -n "$PKG_CONFIG"; then
20307         _pkg_min_version=0.9.0
20308         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
20309 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20310         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20311                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20312 $as_echo "yes" >&6; }
20313         else
20314                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20315 $as_echo "no" >&6; }
20316                 PKG_CONFIG=""
20317         fi
20318 
20319 fi
20320 
20321 # After basic tools have been setup, we can check build os specific details.
20322 
20323   ###############################################################################
20324 
20325   # Note that this is the build platform OS version!
20326 
20327   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
20328   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
20329   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
20330   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
20331 
20332 
20333 
20334 
20335 
20336 # Setup builddeps, for automatic downloading of tools we need.
20337 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in
20338 # boot-jdk setup, but we need to have basic tools setup first.
20339 
20340 
20341 # Check whether --with-builddeps-conf was given.
20342 if test "${with_builddeps_conf+set}" = set; then :
20343   withval=$with_builddeps_conf;
20344 fi
20345 
20346 
20347 
20348 # Check whether --with-builddeps-server was given.
20349 if test "${with_builddeps_server+set}" = set; then :
20350   withval=$with_builddeps_server;
20351 fi
20352 
20353 
20354 
20355 # Check whether --with-builddeps-dir was given.
20356 if test "${with_builddeps_dir+set}" = set; then :
20357   withval=$with_builddeps_dir;
20358 else
20359   with_builddeps_dir=/localhome/builddeps
20360 fi
20361 
20362 
20363 
20364 # Check whether --with-builddeps-group was given.
20365 if test "${with_builddeps_group+set}" = set; then :
20366   withval=$with_builddeps_group;
20367 fi
20368 
20369 
20370 
20371 
20372   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
20373     if test "x$with_builddeps_conf" != x; then
20374       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5
20375 $as_echo_n "checking for supplied builddeps configuration file... " >&6; }
20376       builddepsfile=$with_builddeps_conf
20377       if test -s $builddepsfile; then
20378         . $builddepsfile
20379         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5
20380 $as_echo "loaded!" >&6; }
20381       else
20382         as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5
20383       fi
20384     else
20385       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5
20386 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; }
20387       builddepsfile=`mktemp`
20388       touch $builddepsfile
20389       # Put all found confs into a single file.
20390       find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile
20391       # Source the file to acquire the variables
20392       if test -s $builddepsfile; then
20393         . $builddepsfile
20394         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5
20395 $as_echo "found at least one!" >&6; }
20396       else
20397         as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5
20398       fi
20399     fi
20400     # Create build and target names that use _ instead of "-" and ".".
20401     # This is necessary to use them in variable names.
20402     build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
20403     target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
20404     # Extract rewrite information for build and target
20405     eval rewritten_build=\${REWRITE_${build_var}}
20406     if test "x$rewritten_build" = x; then
20407       rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME}
20408       echo Build stays the same $rewritten_build
20409     else
20410       echo Rewriting build for builddeps into $rewritten_build
20411     fi
20412     eval rewritten_target=\${REWRITE_${target_var}}
20413     if test "x$rewritten_target" = x; then
20414       rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
20415       echo Target stays the same $rewritten_target
20416     else
20417       echo Rewriting target for builddeps into $rewritten_target
20418     fi
20419     rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
20420     rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
20421   fi
20422   for ac_prog in 7z unzip
20423 do
20424   # Extract the first word of "$ac_prog", so it can be a program name with args.
20425 set dummy $ac_prog; ac_word=$2
20426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20427 $as_echo_n "checking for $ac_word... " >&6; }
20428 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then :
20429   $as_echo_n "(cached) " >&6
20430 else
20431   if test -n "$BDEPS_UNZIP"; then
20432   ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
20433 else
20434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20435 for as_dir in $PATH
20436 do
20437   IFS=$as_save_IFS
20438   test -z "$as_dir" && as_dir=.
20439     for ac_exec_ext in '' $ac_executable_extensions; do
20440   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20441     ac_cv_prog_BDEPS_UNZIP="$ac_prog"
20442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20443     break 2
20444   fi
20445 done
20446   done
20447 IFS=$as_save_IFS
20448 
20449 fi
20450 fi
20451 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
20452 if test -n "$BDEPS_UNZIP"; then
20453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
20454 $as_echo "$BDEPS_UNZIP" >&6; }
20455 else
20456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20457 $as_echo "no" >&6; }
20458 fi
20459 
20460 
20461   test -n "$BDEPS_UNZIP" && break
20462 done
20463 
20464   if test "x$BDEPS_UNZIP" = x7z; then
20465     BDEPS_UNZIP="7z x"
20466   fi
20467 
20468   for ac_prog in wget lftp ftp
20469 do
20470   # Extract the first word of "$ac_prog", so it can be a program name with args.
20471 set dummy $ac_prog; ac_word=$2
20472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20473 $as_echo_n "checking for $ac_word... " >&6; }
20474 if ${ac_cv_prog_BDEPS_FTP+:} false; then :
20475   $as_echo_n "(cached) " >&6
20476 else
20477   if test -n "$BDEPS_FTP"; then
20478   ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
20479 else
20480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20481 for as_dir in $PATH
20482 do
20483   IFS=$as_save_IFS
20484   test -z "$as_dir" && as_dir=.
20485     for ac_exec_ext in '' $ac_executable_extensions; do
20486   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20487     ac_cv_prog_BDEPS_FTP="$ac_prog"
20488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20489     break 2
20490   fi
20491 done
20492   done
20493 IFS=$as_save_IFS
20494 
20495 fi
20496 fi
20497 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
20498 if test -n "$BDEPS_FTP"; then
20499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
20500 $as_echo "$BDEPS_FTP" >&6; }
20501 else
20502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20503 $as_echo "no" >&6; }
20504 fi
20505 
20506 
20507   test -n "$BDEPS_FTP" && break
20508 done
20509 
20510 
20511 
20512 ###############################################################################
20513 #
20514 # Determine OpenJDK variants, options and version numbers.
20515 #
20516 ###############################################################################
20517 
20518 # We need build & target for this.
20519 
20520 
20521   ###############################################################################
20522   #
20523   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
20524   # We always build headless support.
20525   #
20526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
20527 $as_echo_n "checking headful support... " >&6; }
20528   # Check whether --enable-headful was given.
20529 if test "${enable_headful+set}" = set; then :
20530   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
20531 else
20532   SUPPORT_HEADFUL=yes
20533 fi
20534 
20535 
20536   SUPPORT_HEADLESS=yes
20537   BUILD_HEADLESS="BUILD_HEADLESS:=true"
20538 
20539   if test "x$SUPPORT_HEADFUL" = xyes; then
20540     # We are building both headful and headless.
20541     headful_msg="include support for both headful and headless"
20542   fi
20543 
20544   if test "x$SUPPORT_HEADFUL" = xno; then
20545     # Thus we are building headless only.
20546     BUILD_HEADLESS="BUILD_HEADLESS:=true"
20547     headful_msg="headless only"
20548   fi
20549 
20550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
20551 $as_echo "$headful_msg" >&6; }
20552 
20553 
20554 
20555 
20556 
20557   # Control wether Hotspot runs Queens test after build.
20558   # Check whether --enable-hotspot-test-in-build was given.
20559 if test "${enable_hotspot_test_in_build+set}" = set; then :
20560   enableval=$enable_hotspot_test_in_build;
20561 else
20562   enable_hotspot_test_in_build=no
20563 fi
20564 
20565   if test "x$enable_hotspot_test_in_build" = "xyes"; then
20566     TEST_IN_BUILD=true
20567   else
20568     TEST_IN_BUILD=false
20569   fi
20570 
20571 
20572   ###############################################################################
20573   #
20574   # Choose cacerts source file
20575   #
20576 
20577 # Check whether --with-cacerts-file was given.
20578 if test "${with_cacerts_file+set}" = set; then :
20579   withval=$with_cacerts_file;
20580 fi
20581 
20582   if test "x$with_cacerts_file" != x; then
20583     CACERTS_FILE=$with_cacerts_file
20584   fi
20585 
20586 
20587   ###############################################################################
20588   #
20589   # Enable or disable unlimited crypto
20590   #
20591   # Check whether --enable-unlimited-crypto was given.
20592 if test "${enable_unlimited_crypto+set}" = set; then :
20593   enableval=$enable_unlimited_crypto;
20594 else
20595   enable_unlimited_crypto=no
20596 fi
20597 
20598   if test "x$enable_unlimited_crypto" = "xyes"; then
20599     UNLIMITED_CRYPTO=true
20600   else
20601     UNLIMITED_CRYPTO=false
20602   fi
20603 
20604 
20605   ###############################################################################
20606   #
20607   # Enable or disable the elliptic curve crypto implementation
20608   #
20609 
20610 
20611   ###############################################################################
20612   #
20613   # --enable-rmiconnector-iiop
20614   #
20615   # Check whether --enable-rmiconnector-iiop was given.
20616 if test "${enable_rmiconnector_iiop+set}" = set; then :
20617   enableval=$enable_rmiconnector_iiop;
20618 fi
20619 
20620   if test "x$enable_rmiconnector_iiop" = "xyes"; then
20621     RMICONNECTOR_IIOP=true
20622   else
20623     RMICONNECTOR_IIOP=false
20624   fi
20625 
20626 
20627   ###############################################################################
20628   #
20629   # Compress jars
20630   #
20631   COMPRESS_JARS=false
20632 
20633 
20634 
20635 
20636   # Source the version numbers
20637   . $AUTOCONF_DIR/version-numbers
20638 
20639   # Get the settings from parameters
20640 
20641 # Check whether --with-milestone was given.
20642 if test "${with_milestone+set}" = set; then :
20643   withval=$with_milestone;
20644 fi
20645 
20646   if test "x$with_milestone" = xyes; then
20647     as_fn_error $? "Milestone must have a value" "$LINENO" 5
20648   elif test "x$with_milestone" != x; then
20649     MILESTONE="$with_milestone"
20650   fi
20651   if test "x$MILESTONE" = x; then
20652     MILESTONE=internal
20653   fi
20654 
20655 
20656 # Check whether --with-update-version was given.
20657 if test "${with_update_version+set}" = set; then :
20658   withval=$with_update_version;
20659 fi
20660 
20661   if test "x$with_update_version" = xyes; then
20662     as_fn_error $? "Update version must have a value" "$LINENO" 5
20663   elif test "x$with_update_version" != x; then
20664     JDK_UPDATE_VERSION="$with_update_version"
20665     # On macosx 10.7, it's not possible to set --with-update-version=0X due
20666     # to a bug in expr (which reduces it to just X). To work around this, we
20667     # always add a 0 to one digit update versions.
20668     if test "${#JDK_UPDATE_VERSION}" = "1"; then
20669       JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
20670     fi
20671   fi
20672 
20673 
20674 # Check whether --with-user-release-suffix was given.
20675 if test "${with_user_release_suffix+set}" = set; then :
20676   withval=$with_user_release_suffix;
20677 fi
20678 
20679   if test "x$with_user_release_suffix" = xyes; then
20680     as_fn_error $? "Release suffix must have a value" "$LINENO" 5
20681   elif test "x$with_user_release_suffix" != x; then
20682     USER_RELEASE_SUFFIX="$with_user_release_suffix"
20683   fi
20684 
20685 
20686 # Check whether --with-build-number was given.
20687 if test "${with_build_number+set}" = set; then :
20688   withval=$with_build_number;
20689 fi
20690 
20691   if test "x$with_build_number" = xyes; then
20692     as_fn_error $? "Build number must have a value" "$LINENO" 5
20693   elif test "x$with_build_number" != x; then
20694     JDK_BUILD_NUMBER="$with_build_number"
20695   fi
20696   # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
20697   if test "x$JDK_BUILD_NUMBER" = x; then
20698     JDK_BUILD_NUMBER=b00
20699     if test "x$USER_RELEASE_SUFFIX" = x; then
20700       BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
20701       # Avoid [:alnum:] since it depends on the locale.
20702       CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
20703       USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20704     fi
20705   fi
20706 
20707   # Now set the JDK version, milestone, build number etc.
20708 
20709 
20710 
20711 
20712 
20713 
20714 
20715 
20716 
20717 
20718 
20719 
20720 
20721 
20722 
20723 
20724 # Check whether --with-copyright-year was given.
20725 if test "${with_copyright_year+set}" = set; then :
20726   withval=$with_copyright_year;
20727 fi
20728 
20729   if test "x$with_copyright_year" = xyes; then
20730     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
20731   elif test "x$with_copyright_year" != x; then
20732     COPYRIGHT_YEAR="$with_copyright_year"
20733   else
20734     COPYRIGHT_YEAR=`date +'%Y'`
20735   fi
20736 
20737 
20738   if test "x$JDK_UPDATE_VERSION" != x; then
20739     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
20740   else
20741     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
20742   fi
20743 
20744 
20745   COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
20746 
20747 
20748 
20749 ###############################################################################
20750 #
20751 # Setup BootJDK, used to bootstrap the build.
20752 #
20753 ###############################################################################
20754 
20755 
20756   BOOT_JDK_FOUND=no
20757 
20758 # Check whether --with-boot-jdk was given.
20759 if test "${with_boot_jdk+set}" = set; then :
20760   withval=$with_boot_jdk;
20761 fi
20762 
20763 
20764   # We look for the Boot JDK through various means, going from more certain to
20765   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
20766   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
20767   # must check if this is indeed valid; otherwise we'll continue looking.
20768 
20769   # Test: Is bootjdk explicitely set by command line arguments?
20770 
20771   if test "x$BOOT_JDK_FOUND" = xno; then
20772     # Now execute the test
20773 
20774   if test "x$with_boot_jdk" != x; then
20775     BOOT_JDK=$with_boot_jdk
20776     BOOT_JDK_FOUND=maybe
20777     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
20778 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
20779   fi
20780 
20781 
20782     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20783     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20784       # Do we have a bin/java?
20785       if test ! -x "$BOOT_JDK/bin/java"; then
20786         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20787 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20788         BOOT_JDK_FOUND=no
20789       else
20790         # Do we have a bin/javac?
20791         if test ! -x "$BOOT_JDK/bin/javac"; then
20792           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20793 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20794           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20795 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20796           BOOT_JDK_FOUND=no
20797         else
20798           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20799           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20800 
20801           # Extra M4 quote needed to protect [] in grep expression.
20802           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
20803           if test "x$FOUND_CORRECT_VERSION" = x; then
20804             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20805 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20806             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
20807 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
20808             BOOT_JDK_FOUND=no
20809           else
20810             # We're done! :-)
20811             BOOT_JDK_FOUND=yes
20812 
20813   # Only process if variable expands to non-empty
20814 
20815   if test "x$BOOT_JDK" != x; then
20816     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20817 
20818   # Input might be given as Windows format, start by converting to
20819   # unix format.
20820   path="$BOOT_JDK"
20821   new_path=`$CYGPATH -u "$path"`
20822 
20823   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20824   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20825   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20826   # "foo.exe" is OK but "foo" is an error.
20827   #
20828   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20829   # It is also a way to make sure we got the proper file name for the real test later on.
20830   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20831   if test "x$test_shortpath" = x; then
20832     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20833 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20834     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20835   fi
20836 
20837   # Call helper function which possibly converts this using DOS-style short mode.
20838   # If so, the updated path is stored in $new_path.
20839 
20840   input_path="$new_path"
20841   # Check if we need to convert this using DOS-style short mode. If the path
20842   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20843   # take no chances and rewrite it.
20844   # Note: m4 eats our [], so we need to use [ and ] instead.
20845   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20846   if test "x$has_forbidden_chars" != x; then
20847     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20848     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20849     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20850     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20851       # Going to short mode and back again did indeed matter. Since short mode is
20852       # case insensitive, let's make it lowercase to improve readability.
20853       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20854       # Now convert it back to Unix-stile (cygpath)
20855       input_path=`$CYGPATH -u "$shortmode_path"`
20856       new_path="$input_path"
20857     fi
20858   fi
20859 
20860   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20861   if test "x$test_cygdrive_prefix" = x; then
20862     # As a simple fix, exclude /usr/bin since it's not a real path.
20863     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20864       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20865       # a path prefixed by /cygdrive for fixpath to work.
20866       new_path="$CYGWIN_ROOT_PATH$input_path"
20867     fi
20868   fi
20869 
20870 
20871   if test "x$path" != "x$new_path"; then
20872     BOOT_JDK="$new_path"
20873     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20874 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20875   fi
20876 
20877     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20878 
20879   path="$BOOT_JDK"
20880   has_colon=`$ECHO $path | $GREP ^.:`
20881   new_path="$path"
20882   if test "x$has_colon" = x; then
20883     # Not in mixed or Windows style, start by that.
20884     new_path=`cmd //c echo $path`
20885   fi
20886 
20887 
20888   input_path="$new_path"
20889   # Check if we need to convert this using DOS-style short mode. If the path
20890   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20891   # take no chances and rewrite it.
20892   # Note: m4 eats our [], so we need to use [ and ] instead.
20893   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20894   if test "x$has_forbidden_chars" != x; then
20895     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20896     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20897   fi
20898 
20899 
20900   windows_path="$new_path"
20901   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20902     unix_path=`$CYGPATH -u "$windows_path"`
20903     new_path="$unix_path"
20904   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20905     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20906     new_path="$unix_path"
20907   fi
20908 
20909   if test "x$path" != "x$new_path"; then
20910     BOOT_JDK="$new_path"
20911     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20912 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20913   fi
20914 
20915   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20916   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20917 
20918     else
20919       # We're on a unix platform. Hooray! :)
20920       path="$BOOT_JDK"
20921       has_space=`$ECHO "$path" | $GREP " "`
20922       if test "x$has_space" != x; then
20923         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20924 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20925         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20926       fi
20927 
20928       # Use eval to expand a potential ~
20929       eval path="$path"
20930       if test ! -f "$path" && test ! -d "$path"; then
20931         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20932       fi
20933 
20934       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20935     fi
20936   fi
20937 
20938             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20939 $as_echo_n "checking for Boot JDK... " >&6; }
20940             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20941 $as_echo "$BOOT_JDK" >&6; }
20942             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20943 $as_echo_n "checking Boot JDK version... " >&6; }
20944             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20945             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20946 $as_echo "$BOOT_JDK_VERSION" >&6; }
20947           fi # end check jdk version
20948         fi # end check javac
20949       fi # end check java
20950     fi # end check boot jdk found
20951   fi
20952 
20953   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
20954     # Having specified an argument which is incorrect will produce an instant failure;
20955     # we should not go on looking
20956     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
20957   fi
20958 
20959   # Test: Is bootjdk available from builddeps?
20960 
20961   if test "x$BOOT_JDK_FOUND" = xno; then
20962     # Now execute the test
20963 
20964 
20965 
20966   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
20967     # Source the builddeps file again, to make sure it uses the latest variables!
20968     . $builddepsfile
20969     # Look for a target and build machine specific resource!
20970     eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
20971     if test "x$resource" = x; then
20972       # Ok, lets instead look for a target specific resource
20973       eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}}
20974     fi
20975     if test "x$resource" = x; then
20976       # Ok, lets instead look for a build specific resource
20977       eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}}
20978     fi
20979     if test "x$resource" = x; then
20980       # Ok, lets instead look for a generic resource
20981       # (The bootjdk comes from M4 and not the shell, thus no need for eval here.)
20982       resource=${builddep_bootjdk}
20983     fi
20984     if test "x$resource" != x; then
20985       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5
20986 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;}
20987       # If the resource in the builddeps.conf file is an existing directory,
20988       # for example /java/linux/cups
20989       if test -d ${resource}; then
20990         depdir=${resource}
20991       else
20992 
20993   # bootjdk is for example mymodule
20994   # $resource is for example libs/general/libmymod_1_2_3.zip
20995   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
20996   # $with_builddeps_dir is for example /localhome/builddeps
20997   # depdir is the name of the variable into which we store the depdir, eg MYMOD
20998   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
20999   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
21000   filename=`basename $resource`
21001   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
21002   filebase=${filename%%.*}
21003   extension=${filename#*.}
21004   installdir=$with_builddeps_dir/$filebase
21005   if test ! -f $installdir/$filename.unpacked; then
21006     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5
21007 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;}
21008     if test ! -d $installdir; then
21009       mkdir -p $installdir
21010     fi
21011     if test ! -d $installdir; then
21012       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
21013     fi
21014     tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX`
21015     touch $tmpfile
21016     if test ! -f $tmpfile; then
21017       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
21018     fi
21019 
21020   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
21021   # $tmpfile is the local file name for the downloaded file.
21022   VALID_TOOL=no
21023   if test "x$BDEPS_FTP" = xwget; then
21024     VALID_TOOL=yes
21025     wget -O $tmpfile $with_builddeps_server/$resource
21026   fi
21027   if test "x$BDEPS_FTP" = xlftp; then
21028     VALID_TOOL=yes
21029     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
21030   fi
21031   if test "x$BDEPS_FTP" = xftp; then
21032     VALID_TOOL=yes
21033     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
21034     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
21035     FTPUSERPWD=${FTPSERVER%%@*}
21036     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
21037       FTPUSER=${userpwd%%:*}
21038       FTPPWD=${userpwd#*@}
21039       FTPSERVER=${FTPSERVER#*@}
21040     else
21041       FTPUSER=ftp
21042       FTPPWD=ftp
21043     fi
21044     # the "pass" command does not work on some
21045     # ftp clients (read ftp.exe) but if it works,
21046     # passive mode is better!
21047     ( \
21048         echo "user $FTPUSER $FTPPWD"        ; \
21049         echo "pass"                         ; \
21050         echo "bin"                          ; \
21051         echo "get $FTPPATH $tmpfile"              ; \
21052     ) | ftp -in $FTPSERVER
21053   fi
21054   if test "x$VALID_TOOL" != xyes; then
21055     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
21056   fi
21057 
21058     mv $tmpfile $installdir/$filename
21059     if test ! -s $installdir/$filename; then
21060       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
21061     fi
21062     case "$extension" in
21063       zip)  echo "Unzipping $installdir/$filename..."
21064         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
21065         ;;
21066       tar.gz) echo "Untaring $installdir/$filename..."
21067         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
21068         ;;
21069       tgz) echo "Untaring $installdir/$filename..."
21070         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
21071         ;;
21072       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
21073         ;;
21074     esac
21075   fi
21076   if test -f $installdir/$filename.unpacked; then
21077     depdir=$installdir
21078   fi
21079 
21080       fi
21081       # Source the builddeps file again, because in the previous command, the depdir
21082       # was updated to point at the current build dependency install directory.
21083       . $builddepsfile
21084       # Now extract variables from the builddeps.conf files.
21085       theroot=${builddep_bootjdk_ROOT}
21086       thecflags=${builddep_bootjdk_CFLAGS}
21087       thelibs=${builddep_bootjdk_LIBS}
21088       if test "x$depdir" = x; then
21089         as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5
21090       fi
21091       BOOT_JDK=$depdir
21092       if test "x$theroot" != x; then
21093         BOOT_JDK="$theroot"
21094       fi
21095       if test "x$thecflags" != x; then
21096         BOOT_JDK_CFLAGS="$thecflags"
21097       fi
21098       if test "x$thelibs" != x; then
21099         BOOT_JDK_LIBS="$thelibs"
21100       fi
21101       BOOT_JDK_FOUND=maybe
21102       else BOOT_JDK_FOUND=no
21103 
21104     fi
21105     else BOOT_JDK_FOUND=no
21106 
21107   fi
21108 
21109 
21110 
21111     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21112     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21113       # Do we have a bin/java?
21114       if test ! -x "$BOOT_JDK/bin/java"; then
21115         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21116 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21117         BOOT_JDK_FOUND=no
21118       else
21119         # Do we have a bin/javac?
21120         if test ! -x "$BOOT_JDK/bin/javac"; then
21121           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21122 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21123           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21124 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21125           BOOT_JDK_FOUND=no
21126         else
21127           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21128           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21129 
21130           # Extra M4 quote needed to protect [] in grep expression.
21131           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
21132           if test "x$FOUND_CORRECT_VERSION" = x; then
21133             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21134 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21135             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
21136 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
21137             BOOT_JDK_FOUND=no
21138           else
21139             # We're done! :-)
21140             BOOT_JDK_FOUND=yes
21141 
21142   # Only process if variable expands to non-empty
21143 
21144   if test "x$BOOT_JDK" != x; then
21145     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21146 
21147   # Input might be given as Windows format, start by converting to
21148   # unix format.
21149   path="$BOOT_JDK"
21150   new_path=`$CYGPATH -u "$path"`
21151 
21152   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21153   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21154   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21155   # "foo.exe" is OK but "foo" is an error.
21156   #
21157   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21158   # It is also a way to make sure we got the proper file name for the real test later on.
21159   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21160   if test "x$test_shortpath" = x; then
21161     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21162 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21163     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21164   fi
21165 
21166   # Call helper function which possibly converts this using DOS-style short mode.
21167   # If so, the updated path is stored in $new_path.
21168 
21169   input_path="$new_path"
21170   # Check if we need to convert this using DOS-style short mode. If the path
21171   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21172   # take no chances and rewrite it.
21173   # Note: m4 eats our [], so we need to use [ and ] instead.
21174   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21175   if test "x$has_forbidden_chars" != x; then
21176     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21177     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21178     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21179     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21180       # Going to short mode and back again did indeed matter. Since short mode is
21181       # case insensitive, let's make it lowercase to improve readability.
21182       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21183       # Now convert it back to Unix-stile (cygpath)
21184       input_path=`$CYGPATH -u "$shortmode_path"`
21185       new_path="$input_path"
21186     fi
21187   fi
21188 
21189   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21190   if test "x$test_cygdrive_prefix" = x; then
21191     # As a simple fix, exclude /usr/bin since it's not a real path.
21192     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21193       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21194       # a path prefixed by /cygdrive for fixpath to work.
21195       new_path="$CYGWIN_ROOT_PATH$input_path"
21196     fi
21197   fi
21198 
21199 
21200   if test "x$path" != "x$new_path"; then
21201     BOOT_JDK="$new_path"
21202     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21203 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21204   fi
21205 
21206     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21207 
21208   path="$BOOT_JDK"
21209   has_colon=`$ECHO $path | $GREP ^.:`
21210   new_path="$path"
21211   if test "x$has_colon" = x; then
21212     # Not in mixed or Windows style, start by that.
21213     new_path=`cmd //c echo $path`
21214   fi
21215 
21216 
21217   input_path="$new_path"
21218   # Check if we need to convert this using DOS-style short mode. If the path
21219   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21220   # take no chances and rewrite it.
21221   # Note: m4 eats our [], so we need to use [ and ] instead.
21222   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21223   if test "x$has_forbidden_chars" != x; then
21224     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21225     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21226   fi
21227 
21228 
21229   windows_path="$new_path"
21230   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21231     unix_path=`$CYGPATH -u "$windows_path"`
21232     new_path="$unix_path"
21233   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21234     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21235     new_path="$unix_path"
21236   fi
21237 
21238   if test "x$path" != "x$new_path"; then
21239     BOOT_JDK="$new_path"
21240     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21241 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21242   fi
21243 
21244   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21245   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21246 
21247     else
21248       # We're on a unix platform. Hooray! :)
21249       path="$BOOT_JDK"
21250       has_space=`$ECHO "$path" | $GREP " "`
21251       if test "x$has_space" != x; then
21252         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21253 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21254         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21255       fi
21256 
21257       # Use eval to expand a potential ~
21258       eval path="$path"
21259       if test ! -f "$path" && test ! -d "$path"; then
21260         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21261       fi
21262 
21263       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21264     fi
21265   fi
21266 
21267             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21268 $as_echo_n "checking for Boot JDK... " >&6; }
21269             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21270 $as_echo "$BOOT_JDK" >&6; }
21271             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21272 $as_echo_n "checking Boot JDK version... " >&6; }
21273             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21274             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21275 $as_echo "$BOOT_JDK_VERSION" >&6; }
21276           fi # end check jdk version
21277         fi # end check javac
21278       fi # end check java
21279     fi # end check boot jdk found
21280   fi
21281 
21282 
21283   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
21284 
21285   if test "x$BOOT_JDK_FOUND" = xno; then
21286     # Now execute the test
21287 
21288   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
21289     # First check at user selected default
21290 
21291   if test "x$BOOT_JDK_FOUND" = xno; then
21292     # Now execute the test
21293 
21294   if test -x /usr/libexec/java_home; then
21295     BOOT_JDK=`/usr/libexec/java_home `
21296     BOOT_JDK_FOUND=maybe
21297     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
21298 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
21299   fi
21300 
21301 
21302     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21303     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21304       # Do we have a bin/java?
21305       if test ! -x "$BOOT_JDK/bin/java"; then
21306         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21307 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21308         BOOT_JDK_FOUND=no
21309       else
21310         # Do we have a bin/javac?
21311         if test ! -x "$BOOT_JDK/bin/javac"; then
21312           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21313 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21314           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21315 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21316           BOOT_JDK_FOUND=no
21317         else
21318           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21319           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21320 
21321           # Extra M4 quote needed to protect [] in grep expression.
21322           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
21323           if test "x$FOUND_CORRECT_VERSION" = x; then
21324             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21325 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21326             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
21327 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
21328             BOOT_JDK_FOUND=no
21329           else
21330             # We're done! :-)
21331             BOOT_JDK_FOUND=yes
21332 
21333   # Only process if variable expands to non-empty
21334 
21335   if test "x$BOOT_JDK" != x; then
21336     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21337 
21338   # Input might be given as Windows format, start by converting to
21339   # unix format.
21340   path="$BOOT_JDK"
21341   new_path=`$CYGPATH -u "$path"`
21342 
21343   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21344   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21345   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21346   # "foo.exe" is OK but "foo" is an error.
21347   #
21348   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21349   # It is also a way to make sure we got the proper file name for the real test later on.
21350   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21351   if test "x$test_shortpath" = x; then
21352     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21353 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21354     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21355   fi
21356 
21357   # Call helper function which possibly converts this using DOS-style short mode.
21358   # If so, the updated path is stored in $new_path.
21359 
21360   input_path="$new_path"
21361   # Check if we need to convert this using DOS-style short mode. If the path
21362   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21363   # take no chances and rewrite it.
21364   # Note: m4 eats our [], so we need to use [ and ] instead.
21365   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21366   if test "x$has_forbidden_chars" != x; then
21367     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21368     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21369     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21370     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21371       # Going to short mode and back again did indeed matter. Since short mode is
21372       # case insensitive, let's make it lowercase to improve readability.
21373       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21374       # Now convert it back to Unix-stile (cygpath)
21375       input_path=`$CYGPATH -u "$shortmode_path"`
21376       new_path="$input_path"
21377     fi
21378   fi
21379 
21380   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21381   if test "x$test_cygdrive_prefix" = x; then
21382     # As a simple fix, exclude /usr/bin since it's not a real path.
21383     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21384       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21385       # a path prefixed by /cygdrive for fixpath to work.
21386       new_path="$CYGWIN_ROOT_PATH$input_path"
21387     fi
21388   fi
21389 
21390 
21391   if test "x$path" != "x$new_path"; then
21392     BOOT_JDK="$new_path"
21393     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21394 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21395   fi
21396 
21397     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21398 
21399   path="$BOOT_JDK"
21400   has_colon=`$ECHO $path | $GREP ^.:`
21401   new_path="$path"
21402   if test "x$has_colon" = x; then
21403     # Not in mixed or Windows style, start by that.
21404     new_path=`cmd //c echo $path`
21405   fi
21406 
21407 
21408   input_path="$new_path"
21409   # Check if we need to convert this using DOS-style short mode. If the path
21410   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21411   # take no chances and rewrite it.
21412   # Note: m4 eats our [], so we need to use [ and ] instead.
21413   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21414   if test "x$has_forbidden_chars" != x; then
21415     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21416     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21417   fi
21418 
21419 
21420   windows_path="$new_path"
21421   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21422     unix_path=`$CYGPATH -u "$windows_path"`
21423     new_path="$unix_path"
21424   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21425     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21426     new_path="$unix_path"
21427   fi
21428 
21429   if test "x$path" != "x$new_path"; then
21430     BOOT_JDK="$new_path"
21431     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21432 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21433   fi
21434 
21435   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21436   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21437 
21438     else
21439       # We're on a unix platform. Hooray! :)
21440       path="$BOOT_JDK"
21441       has_space=`$ECHO "$path" | $GREP " "`
21442       if test "x$has_space" != x; then
21443         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21444 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21445         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21446       fi
21447 
21448       # Use eval to expand a potential ~
21449       eval path="$path"
21450       if test ! -f "$path" && test ! -d "$path"; then
21451         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21452       fi
21453 
21454       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21455     fi
21456   fi
21457 
21458             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21459 $as_echo_n "checking for Boot JDK... " >&6; }
21460             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21461 $as_echo "$BOOT_JDK" >&6; }
21462             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21463 $as_echo_n "checking Boot JDK version... " >&6; }
21464             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21465             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21466 $as_echo "$BOOT_JDK_VERSION" >&6; }
21467           fi # end check jdk version
21468         fi # end check javac
21469       fi # end check java
21470     fi # end check boot jdk found
21471   fi
21472 
21473     # If that did not work out (e.g. too old), try explicit versions instead
21474 
21475   if test "x$BOOT_JDK_FOUND" = xno; then
21476     # Now execute the test
21477 
21478   if test -x /usr/libexec/java_home; then
21479     BOOT_JDK=`/usr/libexec/java_home -v 1.9`
21480     BOOT_JDK_FOUND=maybe
21481     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5
21482 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;}
21483   fi
21484 
21485 
21486     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21487     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21488       # Do we have a bin/java?
21489       if test ! -x "$BOOT_JDK/bin/java"; then
21490         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21491 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21492         BOOT_JDK_FOUND=no
21493       else
21494         # Do we have a bin/javac?
21495         if test ! -x "$BOOT_JDK/bin/javac"; then
21496           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21497 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21498           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21499 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21500           BOOT_JDK_FOUND=no
21501         else
21502           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21503           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21504 
21505           # Extra M4 quote needed to protect [] in grep expression.
21506           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
21507           if test "x$FOUND_CORRECT_VERSION" = x; then
21508             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21509 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21510             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
21511 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
21512             BOOT_JDK_FOUND=no
21513           else
21514             # We're done! :-)
21515             BOOT_JDK_FOUND=yes
21516 
21517   # Only process if variable expands to non-empty
21518 
21519   if test "x$BOOT_JDK" != x; then
21520     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21521 
21522   # Input might be given as Windows format, start by converting to
21523   # unix format.
21524   path="$BOOT_JDK"
21525   new_path=`$CYGPATH -u "$path"`
21526 
21527   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21528   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21529   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21530   # "foo.exe" is OK but "foo" is an error.
21531   #
21532   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21533   # It is also a way to make sure we got the proper file name for the real test later on.
21534   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21535   if test "x$test_shortpath" = x; then
21536     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21537 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21538     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21539   fi
21540 
21541   # Call helper function which possibly converts this using DOS-style short mode.
21542   # If so, the updated path is stored in $new_path.
21543 
21544   input_path="$new_path"
21545   # Check if we need to convert this using DOS-style short mode. If the path
21546   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21547   # take no chances and rewrite it.
21548   # Note: m4 eats our [], so we need to use [ and ] instead.
21549   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21550   if test "x$has_forbidden_chars" != x; then
21551     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21552     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21553     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21554     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21555       # Going to short mode and back again did indeed matter. Since short mode is
21556       # case insensitive, let's make it lowercase to improve readability.
21557       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21558       # Now convert it back to Unix-stile (cygpath)
21559       input_path=`$CYGPATH -u "$shortmode_path"`
21560       new_path="$input_path"
21561     fi
21562   fi
21563 
21564   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21565   if test "x$test_cygdrive_prefix" = x; then
21566     # As a simple fix, exclude /usr/bin since it's not a real path.
21567     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21568       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21569       # a path prefixed by /cygdrive for fixpath to work.
21570       new_path="$CYGWIN_ROOT_PATH$input_path"
21571     fi
21572   fi
21573 
21574 
21575   if test "x$path" != "x$new_path"; then
21576     BOOT_JDK="$new_path"
21577     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21578 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21579   fi
21580 
21581     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21582 
21583   path="$BOOT_JDK"
21584   has_colon=`$ECHO $path | $GREP ^.:`
21585   new_path="$path"
21586   if test "x$has_colon" = x; then
21587     # Not in mixed or Windows style, start by that.
21588     new_path=`cmd //c echo $path`
21589   fi
21590 
21591 
21592   input_path="$new_path"
21593   # Check if we need to convert this using DOS-style short mode. If the path
21594   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21595   # take no chances and rewrite it.
21596   # Note: m4 eats our [], so we need to use [ and ] instead.
21597   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21598   if test "x$has_forbidden_chars" != x; then
21599     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21600     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21601   fi
21602 
21603 
21604   windows_path="$new_path"
21605   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21606     unix_path=`$CYGPATH -u "$windows_path"`
21607     new_path="$unix_path"
21608   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21609     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21610     new_path="$unix_path"
21611   fi
21612 
21613   if test "x$path" != "x$new_path"; then
21614     BOOT_JDK="$new_path"
21615     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21616 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21617   fi
21618 
21619   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21620   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21621 
21622     else
21623       # We're on a unix platform. Hooray! :)
21624       path="$BOOT_JDK"
21625       has_space=`$ECHO "$path" | $GREP " "`
21626       if test "x$has_space" != x; then
21627         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21628 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21629         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21630       fi
21631 
21632       # Use eval to expand a potential ~
21633       eval path="$path"
21634       if test ! -f "$path" && test ! -d "$path"; then
21635         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21636       fi
21637 
21638       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21639     fi
21640   fi
21641 
21642             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21643 $as_echo_n "checking for Boot JDK... " >&6; }
21644             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21645 $as_echo "$BOOT_JDK" >&6; }
21646             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21647 $as_echo_n "checking Boot JDK version... " >&6; }
21648             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21649             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21650 $as_echo "$BOOT_JDK_VERSION" >&6; }
21651           fi # end check jdk version
21652         fi # end check javac
21653       fi # end check java
21654     fi # end check boot jdk found
21655   fi
21656 
21657 
21658   if test "x$BOOT_JDK_FOUND" = xno; then
21659     # Now execute the test
21660 
21661   if test -x /usr/libexec/java_home; then
21662     BOOT_JDK=`/usr/libexec/java_home -v 1.8`
21663     BOOT_JDK_FOUND=maybe
21664     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5
21665 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;}
21666   fi
21667 
21668 
21669     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21670     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21671       # Do we have a bin/java?
21672       if test ! -x "$BOOT_JDK/bin/java"; then
21673         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21674 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21675         BOOT_JDK_FOUND=no
21676       else
21677         # Do we have a bin/javac?
21678         if test ! -x "$BOOT_JDK/bin/javac"; then
21679           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21680 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21681           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21682 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21683           BOOT_JDK_FOUND=no
21684         else
21685           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21686           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21687 
21688           # Extra M4 quote needed to protect [] in grep expression.
21689           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
21690           if test "x$FOUND_CORRECT_VERSION" = x; then
21691             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21692 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21693             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
21694 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
21695             BOOT_JDK_FOUND=no
21696           else
21697             # We're done! :-)
21698             BOOT_JDK_FOUND=yes
21699 
21700   # Only process if variable expands to non-empty
21701 
21702   if test "x$BOOT_JDK" != x; then
21703     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21704 
21705   # Input might be given as Windows format, start by converting to
21706   # unix format.
21707   path="$BOOT_JDK"
21708   new_path=`$CYGPATH -u "$path"`
21709 
21710   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21711   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21712   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21713   # "foo.exe" is OK but "foo" is an error.
21714   #
21715   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21716   # It is also a way to make sure we got the proper file name for the real test later on.
21717   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21718   if test "x$test_shortpath" = x; then
21719     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21720 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21721     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21722   fi
21723 
21724   # Call helper function which possibly converts this using DOS-style short mode.
21725   # If so, the updated path is stored in $new_path.
21726 
21727   input_path="$new_path"
21728   # Check if we need to convert this using DOS-style short mode. If the path
21729   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21730   # take no chances and rewrite it.
21731   # Note: m4 eats our [], so we need to use [ and ] instead.
21732   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21733   if test "x$has_forbidden_chars" != x; then
21734     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21735     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21736     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21737     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21738       # Going to short mode and back again did indeed matter. Since short mode is
21739       # case insensitive, let's make it lowercase to improve readability.
21740       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21741       # Now convert it back to Unix-stile (cygpath)
21742       input_path=`$CYGPATH -u "$shortmode_path"`
21743       new_path="$input_path"
21744     fi
21745   fi
21746 
21747   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21748   if test "x$test_cygdrive_prefix" = x; then
21749     # As a simple fix, exclude /usr/bin since it's not a real path.
21750     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21751       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21752       # a path prefixed by /cygdrive for fixpath to work.
21753       new_path="$CYGWIN_ROOT_PATH$input_path"
21754     fi
21755   fi
21756 
21757 
21758   if test "x$path" != "x$new_path"; then
21759     BOOT_JDK="$new_path"
21760     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21761 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21762   fi
21763 
21764     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21765 
21766   path="$BOOT_JDK"
21767   has_colon=`$ECHO $path | $GREP ^.:`
21768   new_path="$path"
21769   if test "x$has_colon" = x; then
21770     # Not in mixed or Windows style, start by that.
21771     new_path=`cmd //c echo $path`
21772   fi
21773 
21774 
21775   input_path="$new_path"
21776   # Check if we need to convert this using DOS-style short mode. If the path
21777   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21778   # take no chances and rewrite it.
21779   # Note: m4 eats our [], so we need to use [ and ] instead.
21780   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21781   if test "x$has_forbidden_chars" != x; then
21782     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21783     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21784   fi
21785 
21786 
21787   windows_path="$new_path"
21788   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21789     unix_path=`$CYGPATH -u "$windows_path"`
21790     new_path="$unix_path"
21791   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21792     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21793     new_path="$unix_path"
21794   fi
21795 
21796   if test "x$path" != "x$new_path"; then
21797     BOOT_JDK="$new_path"
21798     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21799 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21800   fi
21801 
21802   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21803   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21804 
21805     else
21806       # We're on a unix platform. Hooray! :)
21807       path="$BOOT_JDK"
21808       has_space=`$ECHO "$path" | $GREP " "`
21809       if test "x$has_space" != x; then
21810         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21811 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21812         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21813       fi
21814 
21815       # Use eval to expand a potential ~
21816       eval path="$path"
21817       if test ! -f "$path" && test ! -d "$path"; then
21818         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21819       fi
21820 
21821       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21822     fi
21823   fi
21824 
21825             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21826 $as_echo_n "checking for Boot JDK... " >&6; }
21827             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21828 $as_echo "$BOOT_JDK" >&6; }
21829             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21830 $as_echo_n "checking Boot JDK version... " >&6; }
21831             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21832             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21833 $as_echo "$BOOT_JDK_VERSION" >&6; }
21834           fi # end check jdk version
21835         fi # end check javac
21836       fi # end check java
21837     fi # end check boot jdk found
21838   fi
21839 
21840 
21841   if test "x$BOOT_JDK_FOUND" = xno; then
21842     # Now execute the test
21843 
21844   if test -x /usr/libexec/java_home; then
21845     BOOT_JDK=`/usr/libexec/java_home -v 1.7`
21846     BOOT_JDK_FOUND=maybe
21847     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5
21848 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;}
21849   fi
21850 
21851 
21852     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21853     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21854       # Do we have a bin/java?
21855       if test ! -x "$BOOT_JDK/bin/java"; then
21856         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21857 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21858         BOOT_JDK_FOUND=no
21859       else
21860         # Do we have a bin/javac?
21861         if test ! -x "$BOOT_JDK/bin/javac"; then
21862           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21863 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21864           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21865 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21866           BOOT_JDK_FOUND=no
21867         else
21868           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21869           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21870 
21871           # Extra M4 quote needed to protect [] in grep expression.
21872           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
21873           if test "x$FOUND_CORRECT_VERSION" = x; then
21874             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21875 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21876             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
21877 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
21878             BOOT_JDK_FOUND=no
21879           else
21880             # We're done! :-)
21881             BOOT_JDK_FOUND=yes
21882 
21883   # Only process if variable expands to non-empty
21884 
21885   if test "x$BOOT_JDK" != x; then
21886     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21887 
21888   # Input might be given as Windows format, start by converting to
21889   # unix format.
21890   path="$BOOT_JDK"
21891   new_path=`$CYGPATH -u "$path"`
21892 
21893   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21894   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21895   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21896   # "foo.exe" is OK but "foo" is an error.
21897   #
21898   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21899   # It is also a way to make sure we got the proper file name for the real test later on.
21900   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21901   if test "x$test_shortpath" = x; then
21902     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21903 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21904     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21905   fi
21906 
21907   # Call helper function which possibly converts this using DOS-style short mode.
21908   # If so, the updated path is stored in $new_path.
21909 
21910   input_path="$new_path"
21911   # Check if we need to convert this using DOS-style short mode. If the path
21912   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21913   # take no chances and rewrite it.
21914   # Note: m4 eats our [], so we need to use [ and ] instead.
21915   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21916   if test "x$has_forbidden_chars" != x; then
21917     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21918     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21919     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21920     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21921       # Going to short mode and back again did indeed matter. Since short mode is
21922       # case insensitive, let's make it lowercase to improve readability.
21923       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21924       # Now convert it back to Unix-stile (cygpath)
21925       input_path=`$CYGPATH -u "$shortmode_path"`
21926       new_path="$input_path"
21927     fi
21928   fi
21929 
21930   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21931   if test "x$test_cygdrive_prefix" = x; then
21932     # As a simple fix, exclude /usr/bin since it's not a real path.
21933     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21934       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21935       # a path prefixed by /cygdrive for fixpath to work.
21936       new_path="$CYGWIN_ROOT_PATH$input_path"
21937     fi
21938   fi
21939 
21940 
21941   if test "x$path" != "x$new_path"; then
21942     BOOT_JDK="$new_path"
21943     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21944 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21945   fi
21946 
21947     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21948 
21949   path="$BOOT_JDK"
21950   has_colon=`$ECHO $path | $GREP ^.:`
21951   new_path="$path"
21952   if test "x$has_colon" = x; then
21953     # Not in mixed or Windows style, start by that.
21954     new_path=`cmd //c echo $path`
21955   fi
21956 
21957 
21958   input_path="$new_path"
21959   # Check if we need to convert this using DOS-style short mode. If the path
21960   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21961   # take no chances and rewrite it.
21962   # Note: m4 eats our [], so we need to use [ and ] instead.
21963   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21964   if test "x$has_forbidden_chars" != x; then
21965     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21966     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21967   fi
21968 
21969 
21970   windows_path="$new_path"
21971   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21972     unix_path=`$CYGPATH -u "$windows_path"`
21973     new_path="$unix_path"
21974   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21975     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21976     new_path="$unix_path"
21977   fi
21978 
21979   if test "x$path" != "x$new_path"; then
21980     BOOT_JDK="$new_path"
21981     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21982 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21983   fi
21984 
21985   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21986   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21987 
21988     else
21989       # We're on a unix platform. Hooray! :)
21990       path="$BOOT_JDK"
21991       has_space=`$ECHO "$path" | $GREP " "`
21992       if test "x$has_space" != x; then
21993         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21994 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21995         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21996       fi
21997 
21998       # Use eval to expand a potential ~
21999       eval path="$path"
22000       if test ! -f "$path" && test ! -d "$path"; then
22001         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22002       fi
22003 
22004       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22005     fi
22006   fi
22007 
22008             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22009 $as_echo_n "checking for Boot JDK... " >&6; }
22010             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22011 $as_echo "$BOOT_JDK" >&6; }
22012             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22013 $as_echo_n "checking Boot JDK version... " >&6; }
22014             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22015             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22016 $as_echo "$BOOT_JDK_VERSION" >&6; }
22017           fi # end check jdk version
22018         fi # end check javac
22019       fi # end check java
22020     fi # end check boot jdk found
22021   fi
22022 
22023   fi
22024 
22025 
22026     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22027     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22028       # Do we have a bin/java?
22029       if test ! -x "$BOOT_JDK/bin/java"; then
22030         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22031 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22032         BOOT_JDK_FOUND=no
22033       else
22034         # Do we have a bin/javac?
22035         if test ! -x "$BOOT_JDK/bin/javac"; then
22036           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22037 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22038           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22039 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22040           BOOT_JDK_FOUND=no
22041         else
22042           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22043           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22044 
22045           # Extra M4 quote needed to protect [] in grep expression.
22046           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
22047           if test "x$FOUND_CORRECT_VERSION" = x; then
22048             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22049 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22050             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
22051 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
22052             BOOT_JDK_FOUND=no
22053           else
22054             # We're done! :-)
22055             BOOT_JDK_FOUND=yes
22056 
22057   # Only process if variable expands to non-empty
22058 
22059   if test "x$BOOT_JDK" != x; then
22060     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22061 
22062   # Input might be given as Windows format, start by converting to
22063   # unix format.
22064   path="$BOOT_JDK"
22065   new_path=`$CYGPATH -u "$path"`
22066 
22067   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22068   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22069   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22070   # "foo.exe" is OK but "foo" is an error.
22071   #
22072   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22073   # It is also a way to make sure we got the proper file name for the real test later on.
22074   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22075   if test "x$test_shortpath" = x; then
22076     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22077 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22078     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22079   fi
22080 
22081   # Call helper function which possibly converts this using DOS-style short mode.
22082   # If so, the updated path is stored in $new_path.
22083 
22084   input_path="$new_path"
22085   # Check if we need to convert this using DOS-style short mode. If the path
22086   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22087   # take no chances and rewrite it.
22088   # Note: m4 eats our [], so we need to use [ and ] instead.
22089   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22090   if test "x$has_forbidden_chars" != x; then
22091     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22092     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22093     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22094     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22095       # Going to short mode and back again did indeed matter. Since short mode is
22096       # case insensitive, let's make it lowercase to improve readability.
22097       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22098       # Now convert it back to Unix-stile (cygpath)
22099       input_path=`$CYGPATH -u "$shortmode_path"`
22100       new_path="$input_path"
22101     fi
22102   fi
22103 
22104   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22105   if test "x$test_cygdrive_prefix" = x; then
22106     # As a simple fix, exclude /usr/bin since it's not a real path.
22107     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22108       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22109       # a path prefixed by /cygdrive for fixpath to work.
22110       new_path="$CYGWIN_ROOT_PATH$input_path"
22111     fi
22112   fi
22113 
22114 
22115   if test "x$path" != "x$new_path"; then
22116     BOOT_JDK="$new_path"
22117     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22118 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22119   fi
22120 
22121     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22122 
22123   path="$BOOT_JDK"
22124   has_colon=`$ECHO $path | $GREP ^.:`
22125   new_path="$path"
22126   if test "x$has_colon" = x; then
22127     # Not in mixed or Windows style, start by that.
22128     new_path=`cmd //c echo $path`
22129   fi
22130 
22131 
22132   input_path="$new_path"
22133   # Check if we need to convert this using DOS-style short mode. If the path
22134   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22135   # take no chances and rewrite it.
22136   # Note: m4 eats our [], so we need to use [ and ] instead.
22137   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22138   if test "x$has_forbidden_chars" != x; then
22139     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22140     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22141   fi
22142 
22143 
22144   windows_path="$new_path"
22145   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22146     unix_path=`$CYGPATH -u "$windows_path"`
22147     new_path="$unix_path"
22148   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22149     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22150     new_path="$unix_path"
22151   fi
22152 
22153   if test "x$path" != "x$new_path"; then
22154     BOOT_JDK="$new_path"
22155     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22156 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22157   fi
22158 
22159   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22160   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22161 
22162     else
22163       # We're on a unix platform. Hooray! :)
22164       path="$BOOT_JDK"
22165       has_space=`$ECHO "$path" | $GREP " "`
22166       if test "x$has_space" != x; then
22167         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22168 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22169         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22170       fi
22171 
22172       # Use eval to expand a potential ~
22173       eval path="$path"
22174       if test ! -f "$path" && test ! -d "$path"; then
22175         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22176       fi
22177 
22178       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22179     fi
22180   fi
22181 
22182             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22183 $as_echo_n "checking for Boot JDK... " >&6; }
22184             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22185 $as_echo "$BOOT_JDK" >&6; }
22186             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22187 $as_echo_n "checking Boot JDK version... " >&6; }
22188             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22189             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22190 $as_echo "$BOOT_JDK_VERSION" >&6; }
22191           fi # end check jdk version
22192         fi # end check javac
22193       fi # end check java
22194     fi # end check boot jdk found
22195   fi
22196 
22197 
22198   # Test: Is $JAVA_HOME set?
22199 
22200   if test "x$BOOT_JDK_FOUND" = xno; then
22201     # Now execute the test
22202 
22203   if test "x$JAVA_HOME" != x; then
22204     JAVA_HOME_PROCESSED="$JAVA_HOME"
22205 
22206   # Only process if variable expands to non-empty
22207 
22208   if test "x$JAVA_HOME_PROCESSED" != x; then
22209     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22210 
22211   # Input might be given as Windows format, start by converting to
22212   # unix format.
22213   path="$JAVA_HOME_PROCESSED"
22214   new_path=`$CYGPATH -u "$path"`
22215 
22216   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22217   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22218   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22219   # "foo.exe" is OK but "foo" is an error.
22220   #
22221   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22222   # It is also a way to make sure we got the proper file name for the real test later on.
22223   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22224   if test "x$test_shortpath" = x; then
22225     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
22226 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
22227     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
22228   fi
22229 
22230   # Call helper function which possibly converts this using DOS-style short mode.
22231   # If so, the updated path is stored in $new_path.
22232 
22233   input_path="$new_path"
22234   # Check if we need to convert this using DOS-style short mode. If the path
22235   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22236   # take no chances and rewrite it.
22237   # Note: m4 eats our [], so we need to use [ and ] instead.
22238   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22239   if test "x$has_forbidden_chars" != x; then
22240     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22241     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22242     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22243     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22244       # Going to short mode and back again did indeed matter. Since short mode is
22245       # case insensitive, let's make it lowercase to improve readability.
22246       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22247       # Now convert it back to Unix-stile (cygpath)
22248       input_path=`$CYGPATH -u "$shortmode_path"`
22249       new_path="$input_path"
22250     fi
22251   fi
22252 
22253   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22254   if test "x$test_cygdrive_prefix" = x; then
22255     # As a simple fix, exclude /usr/bin since it's not a real path.
22256     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22257       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22258       # a path prefixed by /cygdrive for fixpath to work.
22259       new_path="$CYGWIN_ROOT_PATH$input_path"
22260     fi
22261   fi
22262 
22263 
22264   if test "x$path" != "x$new_path"; then
22265     JAVA_HOME_PROCESSED="$new_path"
22266     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
22267 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
22268   fi
22269 
22270     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22271 
22272   path="$JAVA_HOME_PROCESSED"
22273   has_colon=`$ECHO $path | $GREP ^.:`
22274   new_path="$path"
22275   if test "x$has_colon" = x; then
22276     # Not in mixed or Windows style, start by that.
22277     new_path=`cmd //c echo $path`
22278   fi
22279 
22280 
22281   input_path="$new_path"
22282   # Check if we need to convert this using DOS-style short mode. If the path
22283   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22284   # take no chances and rewrite it.
22285   # Note: m4 eats our [], so we need to use [ and ] instead.
22286   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22287   if test "x$has_forbidden_chars" != x; then
22288     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22289     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22290   fi
22291 
22292 
22293   windows_path="$new_path"
22294   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22295     unix_path=`$CYGPATH -u "$windows_path"`
22296     new_path="$unix_path"
22297   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22298     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22299     new_path="$unix_path"
22300   fi
22301 
22302   if test "x$path" != "x$new_path"; then
22303     JAVA_HOME_PROCESSED="$new_path"
22304     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
22305 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
22306   fi
22307 
22308   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22309   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22310 
22311     else
22312       # We're on a unix platform. Hooray! :)
22313       path="$JAVA_HOME_PROCESSED"
22314       has_space=`$ECHO "$path" | $GREP " "`
22315       if test "x$has_space" != x; then
22316         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
22317 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
22318         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22319       fi
22320 
22321       # Use eval to expand a potential ~
22322       eval path="$path"
22323       if test ! -f "$path" && test ! -d "$path"; then
22324         as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
22325       fi
22326 
22327       JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
22328     fi
22329   fi
22330 
22331     if test ! -d "$JAVA_HOME_PROCESSED"; then
22332       { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
22333 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
22334     else
22335       # Aha, the user has set a JAVA_HOME
22336       # let us use that as the Boot JDK.
22337       BOOT_JDK="$JAVA_HOME_PROCESSED"
22338       BOOT_JDK_FOUND=maybe
22339       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
22340 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
22341     fi
22342   fi
22343 
22344 
22345     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22346     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22347       # Do we have a bin/java?
22348       if test ! -x "$BOOT_JDK/bin/java"; then
22349         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22350 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22351         BOOT_JDK_FOUND=no
22352       else
22353         # Do we have a bin/javac?
22354         if test ! -x "$BOOT_JDK/bin/javac"; then
22355           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22356 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22357           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22358 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22359           BOOT_JDK_FOUND=no
22360         else
22361           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22362           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22363 
22364           # Extra M4 quote needed to protect [] in grep expression.
22365           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
22366           if test "x$FOUND_CORRECT_VERSION" = x; then
22367             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22368 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22369             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
22370 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
22371             BOOT_JDK_FOUND=no
22372           else
22373             # We're done! :-)
22374             BOOT_JDK_FOUND=yes
22375 
22376   # Only process if variable expands to non-empty
22377 
22378   if test "x$BOOT_JDK" != x; then
22379     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22380 
22381   # Input might be given as Windows format, start by converting to
22382   # unix format.
22383   path="$BOOT_JDK"
22384   new_path=`$CYGPATH -u "$path"`
22385 
22386   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22387   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22388   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22389   # "foo.exe" is OK but "foo" is an error.
22390   #
22391   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22392   # It is also a way to make sure we got the proper file name for the real test later on.
22393   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22394   if test "x$test_shortpath" = x; then
22395     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22396 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22397     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22398   fi
22399 
22400   # Call helper function which possibly converts this using DOS-style short mode.
22401   # If so, the updated path is stored in $new_path.
22402 
22403   input_path="$new_path"
22404   # Check if we need to convert this using DOS-style short mode. If the path
22405   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22406   # take no chances and rewrite it.
22407   # Note: m4 eats our [], so we need to use [ and ] instead.
22408   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22409   if test "x$has_forbidden_chars" != x; then
22410     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22411     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22412     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22413     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22414       # Going to short mode and back again did indeed matter. Since short mode is
22415       # case insensitive, let's make it lowercase to improve readability.
22416       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22417       # Now convert it back to Unix-stile (cygpath)
22418       input_path=`$CYGPATH -u "$shortmode_path"`
22419       new_path="$input_path"
22420     fi
22421   fi
22422 
22423   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22424   if test "x$test_cygdrive_prefix" = x; then
22425     # As a simple fix, exclude /usr/bin since it's not a real path.
22426     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22427       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22428       # a path prefixed by /cygdrive for fixpath to work.
22429       new_path="$CYGWIN_ROOT_PATH$input_path"
22430     fi
22431   fi
22432 
22433 
22434   if test "x$path" != "x$new_path"; then
22435     BOOT_JDK="$new_path"
22436     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22437 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22438   fi
22439 
22440     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22441 
22442   path="$BOOT_JDK"
22443   has_colon=`$ECHO $path | $GREP ^.:`
22444   new_path="$path"
22445   if test "x$has_colon" = x; then
22446     # Not in mixed or Windows style, start by that.
22447     new_path=`cmd //c echo $path`
22448   fi
22449 
22450 
22451   input_path="$new_path"
22452   # Check if we need to convert this using DOS-style short mode. If the path
22453   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22454   # take no chances and rewrite it.
22455   # Note: m4 eats our [], so we need to use [ and ] instead.
22456   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22457   if test "x$has_forbidden_chars" != x; then
22458     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22459     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22460   fi
22461 
22462 
22463   windows_path="$new_path"
22464   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22465     unix_path=`$CYGPATH -u "$windows_path"`
22466     new_path="$unix_path"
22467   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22468     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22469     new_path="$unix_path"
22470   fi
22471 
22472   if test "x$path" != "x$new_path"; then
22473     BOOT_JDK="$new_path"
22474     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22475 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22476   fi
22477 
22478   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22479   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22480 
22481     else
22482       # We're on a unix platform. Hooray! :)
22483       path="$BOOT_JDK"
22484       has_space=`$ECHO "$path" | $GREP " "`
22485       if test "x$has_space" != x; then
22486         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22487 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22488         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22489       fi
22490 
22491       # Use eval to expand a potential ~
22492       eval path="$path"
22493       if test ! -f "$path" && test ! -d "$path"; then
22494         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22495       fi
22496 
22497       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22498     fi
22499   fi
22500 
22501             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22502 $as_echo_n "checking for Boot JDK... " >&6; }
22503             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22504 $as_echo "$BOOT_JDK" >&6; }
22505             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22506 $as_echo_n "checking Boot JDK version... " >&6; }
22507             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22508             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22509 $as_echo "$BOOT_JDK_VERSION" >&6; }
22510           fi # end check jdk version
22511         fi # end check javac
22512       fi # end check java
22513     fi # end check boot jdk found
22514   fi
22515 
22516 
22517   # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
22518 
22519   if test "x$BOOT_JDK_FOUND" = xno; then
22520     # Now execute the test
22521 
22522   # Extract the first word of "javac", so it can be a program name with args.
22523 set dummy javac; ac_word=$2
22524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22525 $as_echo_n "checking for $ac_word... " >&6; }
22526 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
22527   $as_echo_n "(cached) " >&6
22528 else
22529   case $JAVAC_CHECK in
22530   [\\/]* | ?:[\\/]*)
22531   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
22532   ;;
22533   *)
22534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22535 for as_dir in $PATH
22536 do
22537   IFS=$as_save_IFS
22538   test -z "$as_dir" && as_dir=.
22539     for ac_exec_ext in '' $ac_executable_extensions; do
22540   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22541     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
22542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22543     break 2
22544   fi
22545 done
22546   done
22547 IFS=$as_save_IFS
22548 
22549   ;;
22550 esac
22551 fi
22552 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
22553 if test -n "$JAVAC_CHECK"; then
22554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
22555 $as_echo "$JAVAC_CHECK" >&6; }
22556 else
22557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22558 $as_echo "no" >&6; }
22559 fi
22560 
22561 
22562   # Extract the first word of "java", so it can be a program name with args.
22563 set dummy java; ac_word=$2
22564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22565 $as_echo_n "checking for $ac_word... " >&6; }
22566 if ${ac_cv_path_JAVA_CHECK+:} false; then :
22567   $as_echo_n "(cached) " >&6
22568 else
22569   case $JAVA_CHECK in
22570   [\\/]* | ?:[\\/]*)
22571   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
22572   ;;
22573   *)
22574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22575 for as_dir in $PATH
22576 do
22577   IFS=$as_save_IFS
22578   test -z "$as_dir" && as_dir=.
22579     for ac_exec_ext in '' $ac_executable_extensions; do
22580   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22581     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
22582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22583     break 2
22584   fi
22585 done
22586   done
22587 IFS=$as_save_IFS
22588 
22589   ;;
22590 esac
22591 fi
22592 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
22593 if test -n "$JAVA_CHECK"; then
22594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
22595 $as_echo "$JAVA_CHECK" >&6; }
22596 else
22597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22598 $as_echo "no" >&6; }
22599 fi
22600 
22601 
22602   BINARY="$JAVAC_CHECK"
22603   if test "x$JAVAC_CHECK" = x; then
22604     BINARY="$JAVA_CHECK"
22605   fi
22606   if test "x$BINARY" != x; then
22607     # So there is a java(c) binary, it might be part of a JDK.
22608     # Lets find the JDK/JRE directory by following symbolic links.
22609     # Linux/GNU systems often have links from /usr/bin/java to
22610     # /etc/alternatives/java to the real JDK binary.
22611 
22612   if test "x$OPENJDK_BUILD_OS" != xwindows; then
22613     # Follow a chain of symbolic links. Use readlink
22614     # where it exists, else fall back to horribly
22615     # complicated shell code.
22616     if test "x$READLINK_TESTED" != yes; then
22617       # On MacOSX there is a readlink tool with a different
22618       # purpose than the GNU readlink tool. Check the found readlink.
22619       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
22620       if test "x$ISGNU" = x; then
22621         # A readlink that we do not know how to use.
22622         # Are there other non-GNU readlinks out there?
22623         READLINK_TESTED=yes
22624         READLINK=
22625       fi
22626     fi
22627 
22628     if test "x$READLINK" != x; then
22629       BINARY=`$READLINK -f $BINARY`
22630     else
22631       # Save the current directory for restoring afterwards
22632       STARTDIR=$PWD
22633       COUNTER=0
22634       sym_link_dir=`$DIRNAME $BINARY`
22635       sym_link_file=`$BASENAME $BINARY`
22636       cd $sym_link_dir
22637       # Use -P flag to resolve symlinks in directories.
22638       cd `$THEPWDCMD -P`
22639       sym_link_dir=`$THEPWDCMD -P`
22640       # Resolve file symlinks
22641       while test $COUNTER -lt 20; do
22642         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
22643         if test "x$ISLINK" == x; then
22644           # This is not a symbolic link! We are done!
22645           break
22646         fi
22647         # Again resolve directory symlinks since the target of the just found
22648         # link could be in a different directory
22649         cd `$DIRNAME $ISLINK`
22650         sym_link_dir=`$THEPWDCMD -P`
22651         sym_link_file=`$BASENAME $ISLINK`
22652         let COUNTER=COUNTER+1
22653       done
22654       cd $STARTDIR
22655       BINARY=$sym_link_dir/$sym_link_file
22656     fi
22657   fi
22658 
22659     BOOT_JDK=`dirname "$BINARY"`
22660     BOOT_JDK=`cd "$BOOT_JDK/.."; pwd`
22661     if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
22662       # Looks like we found ourselves an JDK
22663       BOOT_JDK_FOUND=maybe
22664       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5
22665 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;}
22666     fi
22667   fi
22668 
22669 
22670     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22671     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22672       # Do we have a bin/java?
22673       if test ! -x "$BOOT_JDK/bin/java"; then
22674         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22675 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22676         BOOT_JDK_FOUND=no
22677       else
22678         # Do we have a bin/javac?
22679         if test ! -x "$BOOT_JDK/bin/javac"; then
22680           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22681 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22682           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22683 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22684           BOOT_JDK_FOUND=no
22685         else
22686           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22687           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22688 
22689           # Extra M4 quote needed to protect [] in grep expression.
22690           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
22691           if test "x$FOUND_CORRECT_VERSION" = x; then
22692             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22693 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22694             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
22695 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
22696             BOOT_JDK_FOUND=no
22697           else
22698             # We're done! :-)
22699             BOOT_JDK_FOUND=yes
22700 
22701   # Only process if variable expands to non-empty
22702 
22703   if test "x$BOOT_JDK" != x; then
22704     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22705 
22706   # Input might be given as Windows format, start by converting to
22707   # unix format.
22708   path="$BOOT_JDK"
22709   new_path=`$CYGPATH -u "$path"`
22710 
22711   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22712   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22713   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22714   # "foo.exe" is OK but "foo" is an error.
22715   #
22716   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22717   # It is also a way to make sure we got the proper file name for the real test later on.
22718   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22719   if test "x$test_shortpath" = x; then
22720     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22721 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22722     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22723   fi
22724 
22725   # Call helper function which possibly converts this using DOS-style short mode.
22726   # If so, the updated path is stored in $new_path.
22727 
22728   input_path="$new_path"
22729   # Check if we need to convert this using DOS-style short mode. If the path
22730   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22731   # take no chances and rewrite it.
22732   # Note: m4 eats our [], so we need to use [ and ] instead.
22733   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22734   if test "x$has_forbidden_chars" != x; then
22735     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22736     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22737     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22738     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22739       # Going to short mode and back again did indeed matter. Since short mode is
22740       # case insensitive, let's make it lowercase to improve readability.
22741       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22742       # Now convert it back to Unix-stile (cygpath)
22743       input_path=`$CYGPATH -u "$shortmode_path"`
22744       new_path="$input_path"
22745     fi
22746   fi
22747 
22748   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22749   if test "x$test_cygdrive_prefix" = x; then
22750     # As a simple fix, exclude /usr/bin since it's not a real path.
22751     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22752       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22753       # a path prefixed by /cygdrive for fixpath to work.
22754       new_path="$CYGWIN_ROOT_PATH$input_path"
22755     fi
22756   fi
22757 
22758 
22759   if test "x$path" != "x$new_path"; then
22760     BOOT_JDK="$new_path"
22761     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22762 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22763   fi
22764 
22765     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22766 
22767   path="$BOOT_JDK"
22768   has_colon=`$ECHO $path | $GREP ^.:`
22769   new_path="$path"
22770   if test "x$has_colon" = x; then
22771     # Not in mixed or Windows style, start by that.
22772     new_path=`cmd //c echo $path`
22773   fi
22774 
22775 
22776   input_path="$new_path"
22777   # Check if we need to convert this using DOS-style short mode. If the path
22778   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22779   # take no chances and rewrite it.
22780   # Note: m4 eats our [], so we need to use [ and ] instead.
22781   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22782   if test "x$has_forbidden_chars" != x; then
22783     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22784     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22785   fi
22786 
22787 
22788   windows_path="$new_path"
22789   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22790     unix_path=`$CYGPATH -u "$windows_path"`
22791     new_path="$unix_path"
22792   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22793     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22794     new_path="$unix_path"
22795   fi
22796 
22797   if test "x$path" != "x$new_path"; then
22798     BOOT_JDK="$new_path"
22799     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22800 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22801   fi
22802 
22803   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22804   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22805 
22806     else
22807       # We're on a unix platform. Hooray! :)
22808       path="$BOOT_JDK"
22809       has_space=`$ECHO "$path" | $GREP " "`
22810       if test "x$has_space" != x; then
22811         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22812 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22813         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22814       fi
22815 
22816       # Use eval to expand a potential ~
22817       eval path="$path"
22818       if test ! -f "$path" && test ! -d "$path"; then
22819         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22820       fi
22821 
22822       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22823     fi
22824   fi
22825 
22826             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22827 $as_echo_n "checking for Boot JDK... " >&6; }
22828             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22829 $as_echo "$BOOT_JDK" >&6; }
22830             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22831 $as_echo_n "checking Boot JDK version... " >&6; }
22832             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22833             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22834 $as_echo "$BOOT_JDK_VERSION" >&6; }
22835           fi # end check jdk version
22836         fi # end check javac
22837       fi # end check java
22838     fi # end check boot jdk found
22839   fi
22840 
22841 
22842   # Test: Is there a JDK installed in default, well-known locations?
22843 
22844   if test "x$BOOT_JDK_FOUND" = xno; then
22845     # Now execute the test
22846 
22847   if test "x$OPENJDK_TARGET_OS" = xwindows; then
22848 
22849   if test "x$BOOT_JDK_FOUND" = xno; then
22850     # Now execute the test
22851 
22852   if test "x$ProgramW6432" != x; then
22853     VIRTUAL_DIR="$ProgramW6432/Java"
22854 
22855   windows_path="$VIRTUAL_DIR"
22856   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22857     unix_path=`$CYGPATH -u "$windows_path"`
22858     VIRTUAL_DIR="$unix_path"
22859   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22860     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22861     VIRTUAL_DIR="$unix_path"
22862   fi
22863 
22864 
22865   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22866   BOOT_JDK_SUFFIX=""
22867   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22868   if test "x$ALL_JDKS_FOUND" != x; then
22869     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22870 
22871   if test "x$BOOT_JDK_FOUND" = xno; then
22872     # Now execute the test
22873 
22874         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22875         if test -d "$BOOT_JDK"; then
22876           BOOT_JDK_FOUND=maybe
22877           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22878 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22879         fi
22880 
22881 
22882     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22883     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22884       # Do we have a bin/java?
22885       if test ! -x "$BOOT_JDK/bin/java"; then
22886         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22887 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22888         BOOT_JDK_FOUND=no
22889       else
22890         # Do we have a bin/javac?
22891         if test ! -x "$BOOT_JDK/bin/javac"; then
22892           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22893 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22894           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22895 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22896           BOOT_JDK_FOUND=no
22897         else
22898           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22899           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22900 
22901           # Extra M4 quote needed to protect [] in grep expression.
22902           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
22903           if test "x$FOUND_CORRECT_VERSION" = x; then
22904             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22905 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22906             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
22907 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
22908             BOOT_JDK_FOUND=no
22909           else
22910             # We're done! :-)
22911             BOOT_JDK_FOUND=yes
22912 
22913   # Only process if variable expands to non-empty
22914 
22915   if test "x$BOOT_JDK" != x; then
22916     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22917 
22918   # Input might be given as Windows format, start by converting to
22919   # unix format.
22920   path="$BOOT_JDK"
22921   new_path=`$CYGPATH -u "$path"`
22922 
22923   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22924   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22925   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22926   # "foo.exe" is OK but "foo" is an error.
22927   #
22928   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22929   # It is also a way to make sure we got the proper file name for the real test later on.
22930   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22931   if test "x$test_shortpath" = x; then
22932     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22933 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22934     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22935   fi
22936 
22937   # Call helper function which possibly converts this using DOS-style short mode.
22938   # If so, the updated path is stored in $new_path.
22939 
22940   input_path="$new_path"
22941   # Check if we need to convert this using DOS-style short mode. If the path
22942   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22943   # take no chances and rewrite it.
22944   # Note: m4 eats our [], so we need to use [ and ] instead.
22945   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22946   if test "x$has_forbidden_chars" != x; then
22947     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22948     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22949     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22950     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22951       # Going to short mode and back again did indeed matter. Since short mode is
22952       # case insensitive, let's make it lowercase to improve readability.
22953       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22954       # Now convert it back to Unix-stile (cygpath)
22955       input_path=`$CYGPATH -u "$shortmode_path"`
22956       new_path="$input_path"
22957     fi
22958   fi
22959 
22960   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22961   if test "x$test_cygdrive_prefix" = x; then
22962     # As a simple fix, exclude /usr/bin since it's not a real path.
22963     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22964       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22965       # a path prefixed by /cygdrive for fixpath to work.
22966       new_path="$CYGWIN_ROOT_PATH$input_path"
22967     fi
22968   fi
22969 
22970 
22971   if test "x$path" != "x$new_path"; then
22972     BOOT_JDK="$new_path"
22973     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22974 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22975   fi
22976 
22977     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22978 
22979   path="$BOOT_JDK"
22980   has_colon=`$ECHO $path | $GREP ^.:`
22981   new_path="$path"
22982   if test "x$has_colon" = x; then
22983     # Not in mixed or Windows style, start by that.
22984     new_path=`cmd //c echo $path`
22985   fi
22986 
22987 
22988   input_path="$new_path"
22989   # Check if we need to convert this using DOS-style short mode. If the path
22990   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22991   # take no chances and rewrite it.
22992   # Note: m4 eats our [], so we need to use [ and ] instead.
22993   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22994   if test "x$has_forbidden_chars" != x; then
22995     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22996     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22997   fi
22998 
22999 
23000   windows_path="$new_path"
23001   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23002     unix_path=`$CYGPATH -u "$windows_path"`
23003     new_path="$unix_path"
23004   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23005     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23006     new_path="$unix_path"
23007   fi
23008 
23009   if test "x$path" != "x$new_path"; then
23010     BOOT_JDK="$new_path"
23011     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23012 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23013   fi
23014 
23015   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23016   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23017 
23018     else
23019       # We're on a unix platform. Hooray! :)
23020       path="$BOOT_JDK"
23021       has_space=`$ECHO "$path" | $GREP " "`
23022       if test "x$has_space" != x; then
23023         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23024 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23025         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23026       fi
23027 
23028       # Use eval to expand a potential ~
23029       eval path="$path"
23030       if test ! -f "$path" && test ! -d "$path"; then
23031         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23032       fi
23033 
23034       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23035     fi
23036   fi
23037 
23038             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23039 $as_echo_n "checking for Boot JDK... " >&6; }
23040             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23041 $as_echo "$BOOT_JDK" >&6; }
23042             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23043 $as_echo_n "checking Boot JDK version... " >&6; }
23044             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23045             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23046 $as_echo "$BOOT_JDK_VERSION" >&6; }
23047           fi # end check jdk version
23048         fi # end check javac
23049       fi # end check java
23050     fi # end check boot jdk found
23051   fi
23052 
23053     done
23054   fi
23055 
23056   fi
23057 
23058 
23059     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23060     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23061       # Do we have a bin/java?
23062       if test ! -x "$BOOT_JDK/bin/java"; then
23063         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23064 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23065         BOOT_JDK_FOUND=no
23066       else
23067         # Do we have a bin/javac?
23068         if test ! -x "$BOOT_JDK/bin/javac"; then
23069           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23070 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23071           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23072 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23073           BOOT_JDK_FOUND=no
23074         else
23075           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23076           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23077 
23078           # Extra M4 quote needed to protect [] in grep expression.
23079           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23080           if test "x$FOUND_CORRECT_VERSION" = x; then
23081             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23082 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23083             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23084 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23085             BOOT_JDK_FOUND=no
23086           else
23087             # We're done! :-)
23088             BOOT_JDK_FOUND=yes
23089 
23090   # Only process if variable expands to non-empty
23091 
23092   if test "x$BOOT_JDK" != x; then
23093     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23094 
23095   # Input might be given as Windows format, start by converting to
23096   # unix format.
23097   path="$BOOT_JDK"
23098   new_path=`$CYGPATH -u "$path"`
23099 
23100   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23101   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23102   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23103   # "foo.exe" is OK but "foo" is an error.
23104   #
23105   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23106   # It is also a way to make sure we got the proper file name for the real test later on.
23107   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23108   if test "x$test_shortpath" = x; then
23109     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23110 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23111     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23112   fi
23113 
23114   # Call helper function which possibly converts this using DOS-style short mode.
23115   # If so, the updated path is stored in $new_path.
23116 
23117   input_path="$new_path"
23118   # Check if we need to convert this using DOS-style short mode. If the path
23119   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23120   # take no chances and rewrite it.
23121   # Note: m4 eats our [], so we need to use [ and ] instead.
23122   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23123   if test "x$has_forbidden_chars" != x; then
23124     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23125     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23126     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23127     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23128       # Going to short mode and back again did indeed matter. Since short mode is
23129       # case insensitive, let's make it lowercase to improve readability.
23130       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23131       # Now convert it back to Unix-stile (cygpath)
23132       input_path=`$CYGPATH -u "$shortmode_path"`
23133       new_path="$input_path"
23134     fi
23135   fi
23136 
23137   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23138   if test "x$test_cygdrive_prefix" = x; then
23139     # As a simple fix, exclude /usr/bin since it's not a real path.
23140     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23141       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23142       # a path prefixed by /cygdrive for fixpath to work.
23143       new_path="$CYGWIN_ROOT_PATH$input_path"
23144     fi
23145   fi
23146 
23147 
23148   if test "x$path" != "x$new_path"; then
23149     BOOT_JDK="$new_path"
23150     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23151 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23152   fi
23153 
23154     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23155 
23156   path="$BOOT_JDK"
23157   has_colon=`$ECHO $path | $GREP ^.:`
23158   new_path="$path"
23159   if test "x$has_colon" = x; then
23160     # Not in mixed or Windows style, start by that.
23161     new_path=`cmd //c echo $path`
23162   fi
23163 
23164 
23165   input_path="$new_path"
23166   # Check if we need to convert this using DOS-style short mode. If the path
23167   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23168   # take no chances and rewrite it.
23169   # Note: m4 eats our [], so we need to use [ and ] instead.
23170   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23171   if test "x$has_forbidden_chars" != x; then
23172     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23173     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23174   fi
23175 
23176 
23177   windows_path="$new_path"
23178   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23179     unix_path=`$CYGPATH -u "$windows_path"`
23180     new_path="$unix_path"
23181   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23182     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23183     new_path="$unix_path"
23184   fi
23185 
23186   if test "x$path" != "x$new_path"; then
23187     BOOT_JDK="$new_path"
23188     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23189 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23190   fi
23191 
23192   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23193   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23194 
23195     else
23196       # We're on a unix platform. Hooray! :)
23197       path="$BOOT_JDK"
23198       has_space=`$ECHO "$path" | $GREP " "`
23199       if test "x$has_space" != x; then
23200         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23201 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23202         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23203       fi
23204 
23205       # Use eval to expand a potential ~
23206       eval path="$path"
23207       if test ! -f "$path" && test ! -d "$path"; then
23208         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23209       fi
23210 
23211       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23212     fi
23213   fi
23214 
23215             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23216 $as_echo_n "checking for Boot JDK... " >&6; }
23217             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23218 $as_echo "$BOOT_JDK" >&6; }
23219             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23220 $as_echo_n "checking Boot JDK version... " >&6; }
23221             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23222             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23223 $as_echo "$BOOT_JDK_VERSION" >&6; }
23224           fi # end check jdk version
23225         fi # end check javac
23226       fi # end check java
23227     fi # end check boot jdk found
23228   fi
23229 
23230 
23231   if test "x$BOOT_JDK_FOUND" = xno; then
23232     # Now execute the test
23233 
23234   if test "x$PROGRAMW6432" != x; then
23235     VIRTUAL_DIR="$PROGRAMW6432/Java"
23236 
23237   windows_path="$VIRTUAL_DIR"
23238   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23239     unix_path=`$CYGPATH -u "$windows_path"`
23240     VIRTUAL_DIR="$unix_path"
23241   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23242     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23243     VIRTUAL_DIR="$unix_path"
23244   fi
23245 
23246 
23247   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
23248   BOOT_JDK_SUFFIX=""
23249   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23250   if test "x$ALL_JDKS_FOUND" != x; then
23251     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23252 
23253   if test "x$BOOT_JDK_FOUND" = xno; then
23254     # Now execute the test
23255 
23256         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23257         if test -d "$BOOT_JDK"; then
23258           BOOT_JDK_FOUND=maybe
23259           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23260 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23261         fi
23262 
23263 
23264     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23265     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23266       # Do we have a bin/java?
23267       if test ! -x "$BOOT_JDK/bin/java"; then
23268         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23269 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23270         BOOT_JDK_FOUND=no
23271       else
23272         # Do we have a bin/javac?
23273         if test ! -x "$BOOT_JDK/bin/javac"; then
23274           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23275 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23276           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23277 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23278           BOOT_JDK_FOUND=no
23279         else
23280           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23281           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23282 
23283           # Extra M4 quote needed to protect [] in grep expression.
23284           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23285           if test "x$FOUND_CORRECT_VERSION" = x; then
23286             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23287 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23288             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23289 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23290             BOOT_JDK_FOUND=no
23291           else
23292             # We're done! :-)
23293             BOOT_JDK_FOUND=yes
23294 
23295   # Only process if variable expands to non-empty
23296 
23297   if test "x$BOOT_JDK" != x; then
23298     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23299 
23300   # Input might be given as Windows format, start by converting to
23301   # unix format.
23302   path="$BOOT_JDK"
23303   new_path=`$CYGPATH -u "$path"`
23304 
23305   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23306   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23307   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23308   # "foo.exe" is OK but "foo" is an error.
23309   #
23310   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23311   # It is also a way to make sure we got the proper file name for the real test later on.
23312   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23313   if test "x$test_shortpath" = x; then
23314     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23315 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23316     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23317   fi
23318 
23319   # Call helper function which possibly converts this using DOS-style short mode.
23320   # If so, the updated path is stored in $new_path.
23321 
23322   input_path="$new_path"
23323   # Check if we need to convert this using DOS-style short mode. If the path
23324   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23325   # take no chances and rewrite it.
23326   # Note: m4 eats our [], so we need to use [ and ] instead.
23327   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23328   if test "x$has_forbidden_chars" != x; then
23329     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23330     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23331     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23332     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23333       # Going to short mode and back again did indeed matter. Since short mode is
23334       # case insensitive, let's make it lowercase to improve readability.
23335       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23336       # Now convert it back to Unix-stile (cygpath)
23337       input_path=`$CYGPATH -u "$shortmode_path"`
23338       new_path="$input_path"
23339     fi
23340   fi
23341 
23342   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23343   if test "x$test_cygdrive_prefix" = x; then
23344     # As a simple fix, exclude /usr/bin since it's not a real path.
23345     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23346       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23347       # a path prefixed by /cygdrive for fixpath to work.
23348       new_path="$CYGWIN_ROOT_PATH$input_path"
23349     fi
23350   fi
23351 
23352 
23353   if test "x$path" != "x$new_path"; then
23354     BOOT_JDK="$new_path"
23355     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23356 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23357   fi
23358 
23359     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23360 
23361   path="$BOOT_JDK"
23362   has_colon=`$ECHO $path | $GREP ^.:`
23363   new_path="$path"
23364   if test "x$has_colon" = x; then
23365     # Not in mixed or Windows style, start by that.
23366     new_path=`cmd //c echo $path`
23367   fi
23368 
23369 
23370   input_path="$new_path"
23371   # Check if we need to convert this using DOS-style short mode. If the path
23372   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23373   # take no chances and rewrite it.
23374   # Note: m4 eats our [], so we need to use [ and ] instead.
23375   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23376   if test "x$has_forbidden_chars" != x; then
23377     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23378     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23379   fi
23380 
23381 
23382   windows_path="$new_path"
23383   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23384     unix_path=`$CYGPATH -u "$windows_path"`
23385     new_path="$unix_path"
23386   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23387     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23388     new_path="$unix_path"
23389   fi
23390 
23391   if test "x$path" != "x$new_path"; then
23392     BOOT_JDK="$new_path"
23393     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23394 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23395   fi
23396 
23397   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23398   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23399 
23400     else
23401       # We're on a unix platform. Hooray! :)
23402       path="$BOOT_JDK"
23403       has_space=`$ECHO "$path" | $GREP " "`
23404       if test "x$has_space" != x; then
23405         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23406 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23407         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23408       fi
23409 
23410       # Use eval to expand a potential ~
23411       eval path="$path"
23412       if test ! -f "$path" && test ! -d "$path"; then
23413         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23414       fi
23415 
23416       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23417     fi
23418   fi
23419 
23420             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23421 $as_echo_n "checking for Boot JDK... " >&6; }
23422             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23423 $as_echo "$BOOT_JDK" >&6; }
23424             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23425 $as_echo_n "checking Boot JDK version... " >&6; }
23426             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23427             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23428 $as_echo "$BOOT_JDK_VERSION" >&6; }
23429           fi # end check jdk version
23430         fi # end check javac
23431       fi # end check java
23432     fi # end check boot jdk found
23433   fi
23434 
23435     done
23436   fi
23437 
23438   fi
23439 
23440 
23441     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23442     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23443       # Do we have a bin/java?
23444       if test ! -x "$BOOT_JDK/bin/java"; then
23445         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23446 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23447         BOOT_JDK_FOUND=no
23448       else
23449         # Do we have a bin/javac?
23450         if test ! -x "$BOOT_JDK/bin/javac"; then
23451           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23452 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23453           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23454 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23455           BOOT_JDK_FOUND=no
23456         else
23457           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23458           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23459 
23460           # Extra M4 quote needed to protect [] in grep expression.
23461           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23462           if test "x$FOUND_CORRECT_VERSION" = x; then
23463             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23464 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23465             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23466 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23467             BOOT_JDK_FOUND=no
23468           else
23469             # We're done! :-)
23470             BOOT_JDK_FOUND=yes
23471 
23472   # Only process if variable expands to non-empty
23473 
23474   if test "x$BOOT_JDK" != x; then
23475     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23476 
23477   # Input might be given as Windows format, start by converting to
23478   # unix format.
23479   path="$BOOT_JDK"
23480   new_path=`$CYGPATH -u "$path"`
23481 
23482   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23483   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23484   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23485   # "foo.exe" is OK but "foo" is an error.
23486   #
23487   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23488   # It is also a way to make sure we got the proper file name for the real test later on.
23489   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23490   if test "x$test_shortpath" = x; then
23491     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23492 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23493     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23494   fi
23495 
23496   # Call helper function which possibly converts this using DOS-style short mode.
23497   # If so, the updated path is stored in $new_path.
23498 
23499   input_path="$new_path"
23500   # Check if we need to convert this using DOS-style short mode. If the path
23501   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23502   # take no chances and rewrite it.
23503   # Note: m4 eats our [], so we need to use [ and ] instead.
23504   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23505   if test "x$has_forbidden_chars" != x; then
23506     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23507     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23508     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23509     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23510       # Going to short mode and back again did indeed matter. Since short mode is
23511       # case insensitive, let's make it lowercase to improve readability.
23512       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23513       # Now convert it back to Unix-stile (cygpath)
23514       input_path=`$CYGPATH -u "$shortmode_path"`
23515       new_path="$input_path"
23516     fi
23517   fi
23518 
23519   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23520   if test "x$test_cygdrive_prefix" = x; then
23521     # As a simple fix, exclude /usr/bin since it's not a real path.
23522     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23523       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23524       # a path prefixed by /cygdrive for fixpath to work.
23525       new_path="$CYGWIN_ROOT_PATH$input_path"
23526     fi
23527   fi
23528 
23529 
23530   if test "x$path" != "x$new_path"; then
23531     BOOT_JDK="$new_path"
23532     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23533 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23534   fi
23535 
23536     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23537 
23538   path="$BOOT_JDK"
23539   has_colon=`$ECHO $path | $GREP ^.:`
23540   new_path="$path"
23541   if test "x$has_colon" = x; then
23542     # Not in mixed or Windows style, start by that.
23543     new_path=`cmd //c echo $path`
23544   fi
23545 
23546 
23547   input_path="$new_path"
23548   # Check if we need to convert this using DOS-style short mode. If the path
23549   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23550   # take no chances and rewrite it.
23551   # Note: m4 eats our [], so we need to use [ and ] instead.
23552   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23553   if test "x$has_forbidden_chars" != x; then
23554     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23555     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23556   fi
23557 
23558 
23559   windows_path="$new_path"
23560   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23561     unix_path=`$CYGPATH -u "$windows_path"`
23562     new_path="$unix_path"
23563   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23564     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23565     new_path="$unix_path"
23566   fi
23567 
23568   if test "x$path" != "x$new_path"; then
23569     BOOT_JDK="$new_path"
23570     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23571 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23572   fi
23573 
23574   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23575   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23576 
23577     else
23578       # We're on a unix platform. Hooray! :)
23579       path="$BOOT_JDK"
23580       has_space=`$ECHO "$path" | $GREP " "`
23581       if test "x$has_space" != x; then
23582         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23583 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23584         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23585       fi
23586 
23587       # Use eval to expand a potential ~
23588       eval path="$path"
23589       if test ! -f "$path" && test ! -d "$path"; then
23590         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23591       fi
23592 
23593       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23594     fi
23595   fi
23596 
23597             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23598 $as_echo_n "checking for Boot JDK... " >&6; }
23599             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23600 $as_echo "$BOOT_JDK" >&6; }
23601             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23602 $as_echo_n "checking Boot JDK version... " >&6; }
23603             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23604             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23605 $as_echo "$BOOT_JDK_VERSION" >&6; }
23606           fi # end check jdk version
23607         fi # end check javac
23608       fi # end check java
23609     fi # end check boot jdk found
23610   fi
23611 
23612 
23613   if test "x$BOOT_JDK_FOUND" = xno; then
23614     # Now execute the test
23615 
23616   if test "x$PROGRAMFILES" != x; then
23617     VIRTUAL_DIR="$PROGRAMFILES/Java"
23618 
23619   windows_path="$VIRTUAL_DIR"
23620   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23621     unix_path=`$CYGPATH -u "$windows_path"`
23622     VIRTUAL_DIR="$unix_path"
23623   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23624     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23625     VIRTUAL_DIR="$unix_path"
23626   fi
23627 
23628 
23629   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
23630   BOOT_JDK_SUFFIX=""
23631   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23632   if test "x$ALL_JDKS_FOUND" != x; then
23633     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23634 
23635   if test "x$BOOT_JDK_FOUND" = xno; then
23636     # Now execute the test
23637 
23638         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23639         if test -d "$BOOT_JDK"; then
23640           BOOT_JDK_FOUND=maybe
23641           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23642 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23643         fi
23644 
23645 
23646     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23647     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23648       # Do we have a bin/java?
23649       if test ! -x "$BOOT_JDK/bin/java"; then
23650         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23651 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23652         BOOT_JDK_FOUND=no
23653       else
23654         # Do we have a bin/javac?
23655         if test ! -x "$BOOT_JDK/bin/javac"; then
23656           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23657 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23658           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23659 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23660           BOOT_JDK_FOUND=no
23661         else
23662           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23663           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23664 
23665           # Extra M4 quote needed to protect [] in grep expression.
23666           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23667           if test "x$FOUND_CORRECT_VERSION" = x; then
23668             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23669 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23670             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23671 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23672             BOOT_JDK_FOUND=no
23673           else
23674             # We're done! :-)
23675             BOOT_JDK_FOUND=yes
23676 
23677   # Only process if variable expands to non-empty
23678 
23679   if test "x$BOOT_JDK" != x; then
23680     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23681 
23682   # Input might be given as Windows format, start by converting to
23683   # unix format.
23684   path="$BOOT_JDK"
23685   new_path=`$CYGPATH -u "$path"`
23686 
23687   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23688   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23689   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23690   # "foo.exe" is OK but "foo" is an error.
23691   #
23692   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23693   # It is also a way to make sure we got the proper file name for the real test later on.
23694   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23695   if test "x$test_shortpath" = x; then
23696     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23697 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23698     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23699   fi
23700 
23701   # Call helper function which possibly converts this using DOS-style short mode.
23702   # If so, the updated path is stored in $new_path.
23703 
23704   input_path="$new_path"
23705   # Check if we need to convert this using DOS-style short mode. If the path
23706   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23707   # take no chances and rewrite it.
23708   # Note: m4 eats our [], so we need to use [ and ] instead.
23709   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23710   if test "x$has_forbidden_chars" != x; then
23711     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23712     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23713     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23714     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23715       # Going to short mode and back again did indeed matter. Since short mode is
23716       # case insensitive, let's make it lowercase to improve readability.
23717       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23718       # Now convert it back to Unix-stile (cygpath)
23719       input_path=`$CYGPATH -u "$shortmode_path"`
23720       new_path="$input_path"
23721     fi
23722   fi
23723 
23724   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23725   if test "x$test_cygdrive_prefix" = x; then
23726     # As a simple fix, exclude /usr/bin since it's not a real path.
23727     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23728       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23729       # a path prefixed by /cygdrive for fixpath to work.
23730       new_path="$CYGWIN_ROOT_PATH$input_path"
23731     fi
23732   fi
23733 
23734 
23735   if test "x$path" != "x$new_path"; then
23736     BOOT_JDK="$new_path"
23737     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23738 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23739   fi
23740 
23741     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23742 
23743   path="$BOOT_JDK"
23744   has_colon=`$ECHO $path | $GREP ^.:`
23745   new_path="$path"
23746   if test "x$has_colon" = x; then
23747     # Not in mixed or Windows style, start by that.
23748     new_path=`cmd //c echo $path`
23749   fi
23750 
23751 
23752   input_path="$new_path"
23753   # Check if we need to convert this using DOS-style short mode. If the path
23754   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23755   # take no chances and rewrite it.
23756   # Note: m4 eats our [], so we need to use [ and ] instead.
23757   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23758   if test "x$has_forbidden_chars" != x; then
23759     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23760     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23761   fi
23762 
23763 
23764   windows_path="$new_path"
23765   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23766     unix_path=`$CYGPATH -u "$windows_path"`
23767     new_path="$unix_path"
23768   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23769     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23770     new_path="$unix_path"
23771   fi
23772 
23773   if test "x$path" != "x$new_path"; then
23774     BOOT_JDK="$new_path"
23775     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23776 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23777   fi
23778 
23779   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23780   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23781 
23782     else
23783       # We're on a unix platform. Hooray! :)
23784       path="$BOOT_JDK"
23785       has_space=`$ECHO "$path" | $GREP " "`
23786       if test "x$has_space" != x; then
23787         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23788 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23789         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23790       fi
23791 
23792       # Use eval to expand a potential ~
23793       eval path="$path"
23794       if test ! -f "$path" && test ! -d "$path"; then
23795         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23796       fi
23797 
23798       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23799     fi
23800   fi
23801 
23802             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23803 $as_echo_n "checking for Boot JDK... " >&6; }
23804             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23805 $as_echo "$BOOT_JDK" >&6; }
23806             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23807 $as_echo_n "checking Boot JDK version... " >&6; }
23808             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23809             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23810 $as_echo "$BOOT_JDK_VERSION" >&6; }
23811           fi # end check jdk version
23812         fi # end check javac
23813       fi # end check java
23814     fi # end check boot jdk found
23815   fi
23816 
23817     done
23818   fi
23819 
23820   fi
23821 
23822 
23823     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23824     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23825       # Do we have a bin/java?
23826       if test ! -x "$BOOT_JDK/bin/java"; then
23827         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23828 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23829         BOOT_JDK_FOUND=no
23830       else
23831         # Do we have a bin/javac?
23832         if test ! -x "$BOOT_JDK/bin/javac"; then
23833           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23834 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23835           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23836 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23837           BOOT_JDK_FOUND=no
23838         else
23839           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23840           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23841 
23842           # Extra M4 quote needed to protect [] in grep expression.
23843           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23844           if test "x$FOUND_CORRECT_VERSION" = x; then
23845             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23846 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23847             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23848 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23849             BOOT_JDK_FOUND=no
23850           else
23851             # We're done! :-)
23852             BOOT_JDK_FOUND=yes
23853 
23854   # Only process if variable expands to non-empty
23855 
23856   if test "x$BOOT_JDK" != x; then
23857     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23858 
23859   # Input might be given as Windows format, start by converting to
23860   # unix format.
23861   path="$BOOT_JDK"
23862   new_path=`$CYGPATH -u "$path"`
23863 
23864   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23865   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23866   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23867   # "foo.exe" is OK but "foo" is an error.
23868   #
23869   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23870   # It is also a way to make sure we got the proper file name for the real test later on.
23871   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23872   if test "x$test_shortpath" = x; then
23873     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23874 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23875     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23876   fi
23877 
23878   # Call helper function which possibly converts this using DOS-style short mode.
23879   # If so, the updated path is stored in $new_path.
23880 
23881   input_path="$new_path"
23882   # Check if we need to convert this using DOS-style short mode. If the path
23883   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23884   # take no chances and rewrite it.
23885   # Note: m4 eats our [], so we need to use [ and ] instead.
23886   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23887   if test "x$has_forbidden_chars" != x; then
23888     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23889     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23890     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23891     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23892       # Going to short mode and back again did indeed matter. Since short mode is
23893       # case insensitive, let's make it lowercase to improve readability.
23894       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23895       # Now convert it back to Unix-stile (cygpath)
23896       input_path=`$CYGPATH -u "$shortmode_path"`
23897       new_path="$input_path"
23898     fi
23899   fi
23900 
23901   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23902   if test "x$test_cygdrive_prefix" = x; then
23903     # As a simple fix, exclude /usr/bin since it's not a real path.
23904     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23905       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23906       # a path prefixed by /cygdrive for fixpath to work.
23907       new_path="$CYGWIN_ROOT_PATH$input_path"
23908     fi
23909   fi
23910 
23911 
23912   if test "x$path" != "x$new_path"; then
23913     BOOT_JDK="$new_path"
23914     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23915 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23916   fi
23917 
23918     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23919 
23920   path="$BOOT_JDK"
23921   has_colon=`$ECHO $path | $GREP ^.:`
23922   new_path="$path"
23923   if test "x$has_colon" = x; then
23924     # Not in mixed or Windows style, start by that.
23925     new_path=`cmd //c echo $path`
23926   fi
23927 
23928 
23929   input_path="$new_path"
23930   # Check if we need to convert this using DOS-style short mode. If the path
23931   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23932   # take no chances and rewrite it.
23933   # Note: m4 eats our [], so we need to use [ and ] instead.
23934   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23935   if test "x$has_forbidden_chars" != x; then
23936     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23937     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23938   fi
23939 
23940 
23941   windows_path="$new_path"
23942   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23943     unix_path=`$CYGPATH -u "$windows_path"`
23944     new_path="$unix_path"
23945   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23946     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23947     new_path="$unix_path"
23948   fi
23949 
23950   if test "x$path" != "x$new_path"; then
23951     BOOT_JDK="$new_path"
23952     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23953 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23954   fi
23955 
23956   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23957   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23958 
23959     else
23960       # We're on a unix platform. Hooray! :)
23961       path="$BOOT_JDK"
23962       has_space=`$ECHO "$path" | $GREP " "`
23963       if test "x$has_space" != x; then
23964         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23965 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23966         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23967       fi
23968 
23969       # Use eval to expand a potential ~
23970       eval path="$path"
23971       if test ! -f "$path" && test ! -d "$path"; then
23972         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23973       fi
23974 
23975       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23976     fi
23977   fi
23978 
23979             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23980 $as_echo_n "checking for Boot JDK... " >&6; }
23981             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23982 $as_echo "$BOOT_JDK" >&6; }
23983             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23984 $as_echo_n "checking Boot JDK version... " >&6; }
23985             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23986             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23987 $as_echo "$BOOT_JDK_VERSION" >&6; }
23988           fi # end check jdk version
23989         fi # end check javac
23990       fi # end check java
23991     fi # end check boot jdk found
23992   fi
23993 
23994 
23995   if test "x$BOOT_JDK_FOUND" = xno; then
23996     # Now execute the test
23997 
23998   if test "x$ProgramFiles" != x; then
23999     VIRTUAL_DIR="$ProgramFiles/Java"
24000 
24001   windows_path="$VIRTUAL_DIR"
24002   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24003     unix_path=`$CYGPATH -u "$windows_path"`
24004     VIRTUAL_DIR="$unix_path"
24005   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24006     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24007     VIRTUAL_DIR="$unix_path"
24008   fi
24009 
24010 
24011   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
24012   BOOT_JDK_SUFFIX=""
24013   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24014   if test "x$ALL_JDKS_FOUND" != x; then
24015     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24016 
24017   if test "x$BOOT_JDK_FOUND" = xno; then
24018     # Now execute the test
24019 
24020         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24021         if test -d "$BOOT_JDK"; then
24022           BOOT_JDK_FOUND=maybe
24023           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24024 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24025         fi
24026 
24027 
24028     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24029     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24030       # Do we have a bin/java?
24031       if test ! -x "$BOOT_JDK/bin/java"; then
24032         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24033 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24034         BOOT_JDK_FOUND=no
24035       else
24036         # Do we have a bin/javac?
24037         if test ! -x "$BOOT_JDK/bin/javac"; then
24038           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24039 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24040           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24041 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24042           BOOT_JDK_FOUND=no
24043         else
24044           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24045           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24046 
24047           # Extra M4 quote needed to protect [] in grep expression.
24048           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24049           if test "x$FOUND_CORRECT_VERSION" = x; then
24050             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24051 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24052             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24053 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24054             BOOT_JDK_FOUND=no
24055           else
24056             # We're done! :-)
24057             BOOT_JDK_FOUND=yes
24058 
24059   # Only process if variable expands to non-empty
24060 
24061   if test "x$BOOT_JDK" != x; then
24062     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24063 
24064   # Input might be given as Windows format, start by converting to
24065   # unix format.
24066   path="$BOOT_JDK"
24067   new_path=`$CYGPATH -u "$path"`
24068 
24069   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24070   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24071   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24072   # "foo.exe" is OK but "foo" is an error.
24073   #
24074   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24075   # It is also a way to make sure we got the proper file name for the real test later on.
24076   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24077   if test "x$test_shortpath" = x; then
24078     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24079 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24080     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24081   fi
24082 
24083   # Call helper function which possibly converts this using DOS-style short mode.
24084   # If so, the updated path is stored in $new_path.
24085 
24086   input_path="$new_path"
24087   # Check if we need to convert this using DOS-style short mode. If the path
24088   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24089   # take no chances and rewrite it.
24090   # Note: m4 eats our [], so we need to use [ and ] instead.
24091   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24092   if test "x$has_forbidden_chars" != x; then
24093     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24094     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24095     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24096     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24097       # Going to short mode and back again did indeed matter. Since short mode is
24098       # case insensitive, let's make it lowercase to improve readability.
24099       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24100       # Now convert it back to Unix-stile (cygpath)
24101       input_path=`$CYGPATH -u "$shortmode_path"`
24102       new_path="$input_path"
24103     fi
24104   fi
24105 
24106   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24107   if test "x$test_cygdrive_prefix" = x; then
24108     # As a simple fix, exclude /usr/bin since it's not a real path.
24109     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24110       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24111       # a path prefixed by /cygdrive for fixpath to work.
24112       new_path="$CYGWIN_ROOT_PATH$input_path"
24113     fi
24114   fi
24115 
24116 
24117   if test "x$path" != "x$new_path"; then
24118     BOOT_JDK="$new_path"
24119     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24120 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24121   fi
24122 
24123     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24124 
24125   path="$BOOT_JDK"
24126   has_colon=`$ECHO $path | $GREP ^.:`
24127   new_path="$path"
24128   if test "x$has_colon" = x; then
24129     # Not in mixed or Windows style, start by that.
24130     new_path=`cmd //c echo $path`
24131   fi
24132 
24133 
24134   input_path="$new_path"
24135   # Check if we need to convert this using DOS-style short mode. If the path
24136   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24137   # take no chances and rewrite it.
24138   # Note: m4 eats our [], so we need to use [ and ] instead.
24139   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24140   if test "x$has_forbidden_chars" != x; then
24141     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24142     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24143   fi
24144 
24145 
24146   windows_path="$new_path"
24147   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24148     unix_path=`$CYGPATH -u "$windows_path"`
24149     new_path="$unix_path"
24150   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24151     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24152     new_path="$unix_path"
24153   fi
24154 
24155   if test "x$path" != "x$new_path"; then
24156     BOOT_JDK="$new_path"
24157     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24158 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24159   fi
24160 
24161   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24162   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24163 
24164     else
24165       # We're on a unix platform. Hooray! :)
24166       path="$BOOT_JDK"
24167       has_space=`$ECHO "$path" | $GREP " "`
24168       if test "x$has_space" != x; then
24169         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24170 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24171         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24172       fi
24173 
24174       # Use eval to expand a potential ~
24175       eval path="$path"
24176       if test ! -f "$path" && test ! -d "$path"; then
24177         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24178       fi
24179 
24180       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24181     fi
24182   fi
24183 
24184             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24185 $as_echo_n "checking for Boot JDK... " >&6; }
24186             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24187 $as_echo "$BOOT_JDK" >&6; }
24188             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24189 $as_echo_n "checking Boot JDK version... " >&6; }
24190             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24191             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24192 $as_echo "$BOOT_JDK_VERSION" >&6; }
24193           fi # end check jdk version
24194         fi # end check javac
24195       fi # end check java
24196     fi # end check boot jdk found
24197   fi
24198 
24199     done
24200   fi
24201 
24202   fi
24203 
24204 
24205     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24206     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24207       # Do we have a bin/java?
24208       if test ! -x "$BOOT_JDK/bin/java"; then
24209         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24210 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24211         BOOT_JDK_FOUND=no
24212       else
24213         # Do we have a bin/javac?
24214         if test ! -x "$BOOT_JDK/bin/javac"; then
24215           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24216 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24217           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24218 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24219           BOOT_JDK_FOUND=no
24220         else
24221           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24222           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24223 
24224           # Extra M4 quote needed to protect [] in grep expression.
24225           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24226           if test "x$FOUND_CORRECT_VERSION" = x; then
24227             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24228 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24229             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24230 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24231             BOOT_JDK_FOUND=no
24232           else
24233             # We're done! :-)
24234             BOOT_JDK_FOUND=yes
24235 
24236   # Only process if variable expands to non-empty
24237 
24238   if test "x$BOOT_JDK" != x; then
24239     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24240 
24241   # Input might be given as Windows format, start by converting to
24242   # unix format.
24243   path="$BOOT_JDK"
24244   new_path=`$CYGPATH -u "$path"`
24245 
24246   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24247   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24248   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24249   # "foo.exe" is OK but "foo" is an error.
24250   #
24251   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24252   # It is also a way to make sure we got the proper file name for the real test later on.
24253   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24254   if test "x$test_shortpath" = 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 $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24258   fi
24259 
24260   # Call helper function which possibly converts this using DOS-style short mode.
24261   # If so, the updated path is stored in $new_path.
24262 
24263   input_path="$new_path"
24264   # Check if we need to convert this using DOS-style short mode. If the path
24265   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24266   # take no chances and rewrite it.
24267   # Note: m4 eats our [], so we need to use [ and ] instead.
24268   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24269   if test "x$has_forbidden_chars" != x; then
24270     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24271     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24272     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24273     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24274       # Going to short mode and back again did indeed matter. Since short mode is
24275       # case insensitive, let's make it lowercase to improve readability.
24276       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24277       # Now convert it back to Unix-stile (cygpath)
24278       input_path=`$CYGPATH -u "$shortmode_path"`
24279       new_path="$input_path"
24280     fi
24281   fi
24282 
24283   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24284   if test "x$test_cygdrive_prefix" = x; then
24285     # As a simple fix, exclude /usr/bin since it's not a real path.
24286     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24287       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24288       # a path prefixed by /cygdrive for fixpath to work.
24289       new_path="$CYGWIN_ROOT_PATH$input_path"
24290     fi
24291   fi
24292 
24293 
24294   if test "x$path" != "x$new_path"; then
24295     BOOT_JDK="$new_path"
24296     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24297 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24298   fi
24299 
24300     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24301 
24302   path="$BOOT_JDK"
24303   has_colon=`$ECHO $path | $GREP ^.:`
24304   new_path="$path"
24305   if test "x$has_colon" = x; then
24306     # Not in mixed or Windows style, start by that.
24307     new_path=`cmd //c echo $path`
24308   fi
24309 
24310 
24311   input_path="$new_path"
24312   # Check if we need to convert this using DOS-style short mode. If the path
24313   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24314   # take no chances and rewrite it.
24315   # Note: m4 eats our [], so we need to use [ and ] instead.
24316   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24317   if test "x$has_forbidden_chars" != x; then
24318     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24319     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24320   fi
24321 
24322 
24323   windows_path="$new_path"
24324   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24325     unix_path=`$CYGPATH -u "$windows_path"`
24326     new_path="$unix_path"
24327   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24328     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24329     new_path="$unix_path"
24330   fi
24331 
24332   if test "x$path" != "x$new_path"; then
24333     BOOT_JDK="$new_path"
24334     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24335 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24336   fi
24337 
24338   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24339   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24340 
24341     else
24342       # We're on a unix platform. Hooray! :)
24343       path="$BOOT_JDK"
24344       has_space=`$ECHO "$path" | $GREP " "`
24345       if test "x$has_space" != x; then
24346         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24347 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24348         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24349       fi
24350 
24351       # Use eval to expand a potential ~
24352       eval path="$path"
24353       if test ! -f "$path" && test ! -d "$path"; then
24354         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24355       fi
24356 
24357       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24358     fi
24359   fi
24360 
24361             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24362 $as_echo_n "checking for Boot JDK... " >&6; }
24363             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24364 $as_echo "$BOOT_JDK" >&6; }
24365             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24366 $as_echo_n "checking Boot JDK version... " >&6; }
24367             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24368             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24369 $as_echo "$BOOT_JDK_VERSION" >&6; }
24370           fi # end check jdk version
24371         fi # end check javac
24372       fi # end check java
24373     fi # end check boot jdk found
24374   fi
24375 
24376 
24377   if test "x$BOOT_JDK_FOUND" = xno; then
24378     # Now execute the test
24379 
24380   BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java"
24381   BOOT_JDK_SUFFIX=""
24382   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24383   if test "x$ALL_JDKS_FOUND" != x; then
24384     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24385 
24386   if test "x$BOOT_JDK_FOUND" = xno; then
24387     # Now execute the test
24388 
24389         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24390         if test -d "$BOOT_JDK"; then
24391           BOOT_JDK_FOUND=maybe
24392           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24393 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24394         fi
24395 
24396 
24397     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24398     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24399       # Do we have a bin/java?
24400       if test ! -x "$BOOT_JDK/bin/java"; then
24401         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24402 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24403         BOOT_JDK_FOUND=no
24404       else
24405         # Do we have a bin/javac?
24406         if test ! -x "$BOOT_JDK/bin/javac"; then
24407           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24408 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24409           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24410 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24411           BOOT_JDK_FOUND=no
24412         else
24413           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24414           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24415 
24416           # Extra M4 quote needed to protect [] in grep expression.
24417           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24418           if test "x$FOUND_CORRECT_VERSION" = x; then
24419             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24420 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24421             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24422 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24423             BOOT_JDK_FOUND=no
24424           else
24425             # We're done! :-)
24426             BOOT_JDK_FOUND=yes
24427 
24428   # Only process if variable expands to non-empty
24429 
24430   if test "x$BOOT_JDK" != x; then
24431     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24432 
24433   # Input might be given as Windows format, start by converting to
24434   # unix format.
24435   path="$BOOT_JDK"
24436   new_path=`$CYGPATH -u "$path"`
24437 
24438   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24439   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24440   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24441   # "foo.exe" is OK but "foo" is an error.
24442   #
24443   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24444   # It is also a way to make sure we got the proper file name for the real test later on.
24445   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24446   if test "x$test_shortpath" = x; then
24447     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24448 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24449     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24450   fi
24451 
24452   # Call helper function which possibly converts this using DOS-style short mode.
24453   # If so, the updated path is stored in $new_path.
24454 
24455   input_path="$new_path"
24456   # Check if we need to convert this using DOS-style short mode. If the path
24457   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24458   # take no chances and rewrite it.
24459   # Note: m4 eats our [], so we need to use [ and ] instead.
24460   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24461   if test "x$has_forbidden_chars" != x; then
24462     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24463     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24464     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24465     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24466       # Going to short mode and back again did indeed matter. Since short mode is
24467       # case insensitive, let's make it lowercase to improve readability.
24468       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24469       # Now convert it back to Unix-stile (cygpath)
24470       input_path=`$CYGPATH -u "$shortmode_path"`
24471       new_path="$input_path"
24472     fi
24473   fi
24474 
24475   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24476   if test "x$test_cygdrive_prefix" = x; then
24477     # As a simple fix, exclude /usr/bin since it's not a real path.
24478     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24479       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24480       # a path prefixed by /cygdrive for fixpath to work.
24481       new_path="$CYGWIN_ROOT_PATH$input_path"
24482     fi
24483   fi
24484 
24485 
24486   if test "x$path" != "x$new_path"; then
24487     BOOT_JDK="$new_path"
24488     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24489 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24490   fi
24491 
24492     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24493 
24494   path="$BOOT_JDK"
24495   has_colon=`$ECHO $path | $GREP ^.:`
24496   new_path="$path"
24497   if test "x$has_colon" = x; then
24498     # Not in mixed or Windows style, start by that.
24499     new_path=`cmd //c echo $path`
24500   fi
24501 
24502 
24503   input_path="$new_path"
24504   # Check if we need to convert this using DOS-style short mode. If the path
24505   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24506   # take no chances and rewrite it.
24507   # Note: m4 eats our [], so we need to use [ and ] instead.
24508   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24509   if test "x$has_forbidden_chars" != x; then
24510     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24511     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24512   fi
24513 
24514 
24515   windows_path="$new_path"
24516   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24517     unix_path=`$CYGPATH -u "$windows_path"`
24518     new_path="$unix_path"
24519   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24520     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24521     new_path="$unix_path"
24522   fi
24523 
24524   if test "x$path" != "x$new_path"; then
24525     BOOT_JDK="$new_path"
24526     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24527 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24528   fi
24529 
24530   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24531   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24532 
24533     else
24534       # We're on a unix platform. Hooray! :)
24535       path="$BOOT_JDK"
24536       has_space=`$ECHO "$path" | $GREP " "`
24537       if test "x$has_space" != 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 $? "Spaces are not allowed in this path." "$LINENO" 5
24541       fi
24542 
24543       # Use eval to expand a potential ~
24544       eval path="$path"
24545       if test ! -f "$path" && test ! -d "$path"; then
24546         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24547       fi
24548 
24549       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24550     fi
24551   fi
24552 
24553             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24554 $as_echo_n "checking for Boot JDK... " >&6; }
24555             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24556 $as_echo "$BOOT_JDK" >&6; }
24557             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24558 $as_echo_n "checking Boot JDK version... " >&6; }
24559             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24560             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24561 $as_echo "$BOOT_JDK_VERSION" >&6; }
24562           fi # end check jdk version
24563         fi # end check javac
24564       fi # end check java
24565     fi # end check boot jdk found
24566   fi
24567 
24568     done
24569   fi
24570 
24571 
24572     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24573     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24574       # Do we have a bin/java?
24575       if test ! -x "$BOOT_JDK/bin/java"; then
24576         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24577 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24578         BOOT_JDK_FOUND=no
24579       else
24580         # Do we have a bin/javac?
24581         if test ! -x "$BOOT_JDK/bin/javac"; then
24582           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24583 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24584           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24585 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24586           BOOT_JDK_FOUND=no
24587         else
24588           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24589           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24590 
24591           # Extra M4 quote needed to protect [] in grep expression.
24592           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24593           if test "x$FOUND_CORRECT_VERSION" = x; then
24594             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24595 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24596             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24597 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24598             BOOT_JDK_FOUND=no
24599           else
24600             # We're done! :-)
24601             BOOT_JDK_FOUND=yes
24602 
24603   # Only process if variable expands to non-empty
24604 
24605   if test "x$BOOT_JDK" != x; then
24606     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24607 
24608   # Input might be given as Windows format, start by converting to
24609   # unix format.
24610   path="$BOOT_JDK"
24611   new_path=`$CYGPATH -u "$path"`
24612 
24613   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24614   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24615   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24616   # "foo.exe" is OK but "foo" is an error.
24617   #
24618   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24619   # It is also a way to make sure we got the proper file name for the real test later on.
24620   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24621   if test "x$test_shortpath" = x; then
24622     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24623 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24624     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24625   fi
24626 
24627   # Call helper function which possibly converts this using DOS-style short mode.
24628   # If so, the updated path is stored in $new_path.
24629 
24630   input_path="$new_path"
24631   # Check if we need to convert this using DOS-style short mode. If the path
24632   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24633   # take no chances and rewrite it.
24634   # Note: m4 eats our [], so we need to use [ and ] instead.
24635   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24636   if test "x$has_forbidden_chars" != x; then
24637     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24638     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24639     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24640     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24641       # Going to short mode and back again did indeed matter. Since short mode is
24642       # case insensitive, let's make it lowercase to improve readability.
24643       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24644       # Now convert it back to Unix-stile (cygpath)
24645       input_path=`$CYGPATH -u "$shortmode_path"`
24646       new_path="$input_path"
24647     fi
24648   fi
24649 
24650   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24651   if test "x$test_cygdrive_prefix" = x; then
24652     # As a simple fix, exclude /usr/bin since it's not a real path.
24653     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24654       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24655       # a path prefixed by /cygdrive for fixpath to work.
24656       new_path="$CYGWIN_ROOT_PATH$input_path"
24657     fi
24658   fi
24659 
24660 
24661   if test "x$path" != "x$new_path"; then
24662     BOOT_JDK="$new_path"
24663     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24664 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24665   fi
24666 
24667     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24668 
24669   path="$BOOT_JDK"
24670   has_colon=`$ECHO $path | $GREP ^.:`
24671   new_path="$path"
24672   if test "x$has_colon" = x; then
24673     # Not in mixed or Windows style, start by that.
24674     new_path=`cmd //c echo $path`
24675   fi
24676 
24677 
24678   input_path="$new_path"
24679   # Check if we need to convert this using DOS-style short mode. If the path
24680   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24681   # take no chances and rewrite it.
24682   # Note: m4 eats our [], so we need to use [ and ] instead.
24683   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24684   if test "x$has_forbidden_chars" != x; then
24685     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24686     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24687   fi
24688 
24689 
24690   windows_path="$new_path"
24691   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24692     unix_path=`$CYGPATH -u "$windows_path"`
24693     new_path="$unix_path"
24694   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24695     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24696     new_path="$unix_path"
24697   fi
24698 
24699   if test "x$path" != "x$new_path"; then
24700     BOOT_JDK="$new_path"
24701     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24702 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24703   fi
24704 
24705   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24706   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24707 
24708     else
24709       # We're on a unix platform. Hooray! :)
24710       path="$BOOT_JDK"
24711       has_space=`$ECHO "$path" | $GREP " "`
24712       if test "x$has_space" != x; then
24713         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24714 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24715         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24716       fi
24717 
24718       # Use eval to expand a potential ~
24719       eval path="$path"
24720       if test ! -f "$path" && test ! -d "$path"; then
24721         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24722       fi
24723 
24724       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24725     fi
24726   fi
24727 
24728             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24729 $as_echo_n "checking for Boot JDK... " >&6; }
24730             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24731 $as_echo "$BOOT_JDK" >&6; }
24732             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24733 $as_echo_n "checking Boot JDK version... " >&6; }
24734             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24735             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24736 $as_echo "$BOOT_JDK_VERSION" >&6; }
24737           fi # end check jdk version
24738         fi # end check javac
24739       fi # end check java
24740     fi # end check boot jdk found
24741   fi
24742 
24743   elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
24744 
24745   if test "x$BOOT_JDK_FOUND" = xno; then
24746     # Now execute the test
24747 
24748   BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines"
24749   BOOT_JDK_SUFFIX="/Contents/Home"
24750   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24751   if test "x$ALL_JDKS_FOUND" != x; then
24752     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24753 
24754   if test "x$BOOT_JDK_FOUND" = xno; then
24755     # Now execute the test
24756 
24757         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24758         if test -d "$BOOT_JDK"; then
24759           BOOT_JDK_FOUND=maybe
24760           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24761 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24762         fi
24763 
24764 
24765     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24766     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24767       # Do we have a bin/java?
24768       if test ! -x "$BOOT_JDK/bin/java"; then
24769         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24770 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24771         BOOT_JDK_FOUND=no
24772       else
24773         # Do we have a bin/javac?
24774         if test ! -x "$BOOT_JDK/bin/javac"; then
24775           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24776 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24777           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24778 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24779           BOOT_JDK_FOUND=no
24780         else
24781           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24782           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24783 
24784           # Extra M4 quote needed to protect [] in grep expression.
24785           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24786           if test "x$FOUND_CORRECT_VERSION" = x; then
24787             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24788 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24789             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24790 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24791             BOOT_JDK_FOUND=no
24792           else
24793             # We're done! :-)
24794             BOOT_JDK_FOUND=yes
24795 
24796   # Only process if variable expands to non-empty
24797 
24798   if test "x$BOOT_JDK" != x; then
24799     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24800 
24801   # Input might be given as Windows format, start by converting to
24802   # unix format.
24803   path="$BOOT_JDK"
24804   new_path=`$CYGPATH -u "$path"`
24805 
24806   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24807   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24808   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24809   # "foo.exe" is OK but "foo" is an error.
24810   #
24811   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24812   # It is also a way to make sure we got the proper file name for the real test later on.
24813   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24814   if test "x$test_shortpath" = x; then
24815     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24816 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24817     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24818   fi
24819 
24820   # Call helper function which possibly converts this using DOS-style short mode.
24821   # If so, the updated path is stored in $new_path.
24822 
24823   input_path="$new_path"
24824   # Check if we need to convert this using DOS-style short mode. If the path
24825   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24826   # take no chances and rewrite it.
24827   # Note: m4 eats our [], so we need to use [ and ] instead.
24828   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24829   if test "x$has_forbidden_chars" != x; then
24830     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24831     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24832     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24833     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24834       # Going to short mode and back again did indeed matter. Since short mode is
24835       # case insensitive, let's make it lowercase to improve readability.
24836       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24837       # Now convert it back to Unix-stile (cygpath)
24838       input_path=`$CYGPATH -u "$shortmode_path"`
24839       new_path="$input_path"
24840     fi
24841   fi
24842 
24843   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24844   if test "x$test_cygdrive_prefix" = x; then
24845     # As a simple fix, exclude /usr/bin since it's not a real path.
24846     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24847       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24848       # a path prefixed by /cygdrive for fixpath to work.
24849       new_path="$CYGWIN_ROOT_PATH$input_path"
24850     fi
24851   fi
24852 
24853 
24854   if test "x$path" != "x$new_path"; then
24855     BOOT_JDK="$new_path"
24856     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24857 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24858   fi
24859 
24860     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24861 
24862   path="$BOOT_JDK"
24863   has_colon=`$ECHO $path | $GREP ^.:`
24864   new_path="$path"
24865   if test "x$has_colon" = x; then
24866     # Not in mixed or Windows style, start by that.
24867     new_path=`cmd //c echo $path`
24868   fi
24869 
24870 
24871   input_path="$new_path"
24872   # Check if we need to convert this using DOS-style short mode. If the path
24873   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24874   # take no chances and rewrite it.
24875   # Note: m4 eats our [], so we need to use [ and ] instead.
24876   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24877   if test "x$has_forbidden_chars" != x; then
24878     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24879     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24880   fi
24881 
24882 
24883   windows_path="$new_path"
24884   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24885     unix_path=`$CYGPATH -u "$windows_path"`
24886     new_path="$unix_path"
24887   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24888     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24889     new_path="$unix_path"
24890   fi
24891 
24892   if test "x$path" != "x$new_path"; then
24893     BOOT_JDK="$new_path"
24894     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24895 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24896   fi
24897 
24898   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24899   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24900 
24901     else
24902       # We're on a unix platform. Hooray! :)
24903       path="$BOOT_JDK"
24904       has_space=`$ECHO "$path" | $GREP " "`
24905       if test "x$has_space" != x; then
24906         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24907 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24908         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24909       fi
24910 
24911       # Use eval to expand a potential ~
24912       eval path="$path"
24913       if test ! -f "$path" && test ! -d "$path"; then
24914         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24915       fi
24916 
24917       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24918     fi
24919   fi
24920 
24921             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24922 $as_echo_n "checking for Boot JDK... " >&6; }
24923             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24924 $as_echo "$BOOT_JDK" >&6; }
24925             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24926 $as_echo_n "checking Boot JDK version... " >&6; }
24927             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24928             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24929 $as_echo "$BOOT_JDK_VERSION" >&6; }
24930           fi # end check jdk version
24931         fi # end check javac
24932       fi # end check java
24933     fi # end check boot jdk found
24934   fi
24935 
24936     done
24937   fi
24938 
24939 
24940     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24941     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24942       # Do we have a bin/java?
24943       if test ! -x "$BOOT_JDK/bin/java"; then
24944         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24945 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24946         BOOT_JDK_FOUND=no
24947       else
24948         # Do we have a bin/javac?
24949         if test ! -x "$BOOT_JDK/bin/javac"; then
24950           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24951 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24952           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24953 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24954           BOOT_JDK_FOUND=no
24955         else
24956           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24957           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24958 
24959           # Extra M4 quote needed to protect [] in grep expression.
24960           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24961           if test "x$FOUND_CORRECT_VERSION" = x; then
24962             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24963 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24964             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24965 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24966             BOOT_JDK_FOUND=no
24967           else
24968             # We're done! :-)
24969             BOOT_JDK_FOUND=yes
24970 
24971   # Only process if variable expands to non-empty
24972 
24973   if test "x$BOOT_JDK" != x; then
24974     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24975 
24976   # Input might be given as Windows format, start by converting to
24977   # unix format.
24978   path="$BOOT_JDK"
24979   new_path=`$CYGPATH -u "$path"`
24980 
24981   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24982   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24983   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24984   # "foo.exe" is OK but "foo" is an error.
24985   #
24986   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24987   # It is also a way to make sure we got the proper file name for the real test later on.
24988   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24989   if test "x$test_shortpath" = x; then
24990     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24991 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24992     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24993   fi
24994 
24995   # Call helper function which possibly converts this using DOS-style short mode.
24996   # If so, the updated path is stored in $new_path.
24997 
24998   input_path="$new_path"
24999   # Check if we need to convert this using DOS-style short mode. If the path
25000   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25001   # take no chances and rewrite it.
25002   # Note: m4 eats our [], so we need to use [ and ] instead.
25003   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
25004   if test "x$has_forbidden_chars" != x; then
25005     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25006     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
25007     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
25008     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
25009       # Going to short mode and back again did indeed matter. Since short mode is
25010       # case insensitive, let's make it lowercase to improve readability.
25011       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25012       # Now convert it back to Unix-stile (cygpath)
25013       input_path=`$CYGPATH -u "$shortmode_path"`
25014       new_path="$input_path"
25015     fi
25016   fi
25017 
25018   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
25019   if test "x$test_cygdrive_prefix" = x; then
25020     # As a simple fix, exclude /usr/bin since it's not a real path.
25021     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
25022       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
25023       # a path prefixed by /cygdrive for fixpath to work.
25024       new_path="$CYGWIN_ROOT_PATH$input_path"
25025     fi
25026   fi
25027 
25028 
25029   if test "x$path" != "x$new_path"; then
25030     BOOT_JDK="$new_path"
25031     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25032 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25033   fi
25034 
25035     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25036 
25037   path="$BOOT_JDK"
25038   has_colon=`$ECHO $path | $GREP ^.:`
25039   new_path="$path"
25040   if test "x$has_colon" = x; then
25041     # Not in mixed or Windows style, start by that.
25042     new_path=`cmd //c echo $path`
25043   fi
25044 
25045 
25046   input_path="$new_path"
25047   # Check if we need to convert this using DOS-style short mode. If the path
25048   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25049   # take no chances and rewrite it.
25050   # Note: m4 eats our [], so we need to use [ and ] instead.
25051   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
25052   if test "x$has_forbidden_chars" != x; then
25053     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25054     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25055   fi
25056 
25057 
25058   windows_path="$new_path"
25059   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25060     unix_path=`$CYGPATH -u "$windows_path"`
25061     new_path="$unix_path"
25062   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25063     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25064     new_path="$unix_path"
25065   fi
25066 
25067   if test "x$path" != "x$new_path"; then
25068     BOOT_JDK="$new_path"
25069