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 DISABLE_WARNING_PREFIX
 743 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 744 ZERO_ARCHFLAG
 745 LDFLAGS_CXX_JDK
 746 LDFLAGS_JDKEXE_SUFFIX
 747 LDFLAGS_JDKLIB_SUFFIX
 748 LDFLAGS_JDKEXE
 749 LDFLAGS_JDKLIB
 750 CXXFLAGS_JDKEXE
 751 CXXFLAGS_JDKLIB
 752 CFLAGS_JDKEXE
 753 CFLAGS_JDKLIB
 754 MACOSX_VERSION_MIN
 755 LEGACY_EXTRA_LDFLAGS
 756 LEGACY_EXTRA_CXXFLAGS
 757 LEGACY_EXTRA_CFLAGS
 758 CXX_O_FLAG_NONE
 759 CXX_O_FLAG_DEBUG
 760 CXX_O_FLAG_NORM
 761 CXX_O_FLAG_HI
 762 CXX_O_FLAG_HIGHEST
 763 C_O_FLAG_NONE
 764 C_O_FLAG_DEBUG
 765 C_O_FLAG_NORM
 766 C_O_FLAG_HI
 767 C_O_FLAG_HIGHEST
 768 CXXFLAGS_DEBUG_OPTIONS
 769 CFLAGS_DEBUG_OPTIONS
 770 CXXFLAGS_DEBUG_SYMBOLS
 771 CFLAGS_DEBUG_SYMBOLS
 772 CXX_FLAG_DEPS
 773 C_FLAG_DEPS
 774 SET_SHARED_LIBRARY_MAPFILE
 775 SET_SHARED_LIBRARY_NAME
 776 SET_SHARED_LIBRARY_ORIGIN
 777 SET_EXECUTABLE_ORIGIN
 778 SHARED_LIBRARY_FLAGS
 779 CXX_FLAG_REORDER
 780 C_FLAG_REORDER
 781 SYSROOT_LDFLAGS
 782 SYSROOT_CFLAGS
 783 RC_FLAGS
 784 AR_OUT_OPTION
 785 LD_OUT_OPTION
 786 EXE_OUT_OPTION
 787 CC_OUT_OPTION
 788 POST_MCS_CMD
 789 POST_STRIP_CMD
 790 ARFLAGS
 791 COMPILER_TARGET_BITS_FLAG
 792 JT_HOME
 793 JTREGEXE
 794 USING_BROKEN_SUSE_LD
 795 PACKAGE_PATH
 796 LDEXECXX
 797 LDEXE
 798 USE_CLANG
 799 HOTSPOT_LD
 800 HOTSPOT_CXX
 801 HOTSPOT_RC
 802 HOTSPOT_MT
 803 BUILD_LD
 804 BUILD_CXX
 805 BUILD_CC
 806 ac_ct_OBJDUMP
 807 OBJDUMP
 808 ac_ct_OBJCOPY
 809 OBJCOPY
 810 ac_ct_NM
 811 ac_ct_STRIP
 812 MCS
 813 GNM
 814 NM
 815 STRIP
 816 MSBUILD
 817 DUMPBIN
 818 RC
 819 MT
 820 LIPO
 821 ac_ct_AR
 822 AR
 823 AS
 824 LDCXX
 825 LD
 826 CXXCPP
 827 CPP
 828 ac_ct_CXX
 829 CXXFLAGS
 830 CXX
 831 ac_ct_PROPER_COMPILER_CXX
 832 PROPER_COMPILER_CXX
 833 TOOLCHAIN_PATH_CXX
 834 POTENTIAL_CXX
 835 OBJEXT
 836 EXEEXT
 837 ac_ct_CC
 838 CPPFLAGS
 839 LDFLAGS
 840 CFLAGS
 841 CC
 842 ac_ct_PROPER_COMPILER_CC
 843 PROPER_COMPILER_CC
 844 TOOLCHAIN_PATH_CC
 845 POTENTIAL_CC
 846 VS_LIB
 847 VS_INCLUDE
 848 VS_PATH
 849 CYGWIN_LINK
 850 EXE_SUFFIX
 851 OBJ_SUFFIX
 852 STATIC_LIBRARY
 853 SHARED_LIBRARY
 854 STATIC_LIBRARY_SUFFIX
 855 SHARED_LIBRARY_SUFFIX
 856 LIBRARY_PREFIX
 857 TOOLCHAIN_TYPE
 858 BUILD_HOTSPOT
 859 HOTSPOT_DIST
 860 BUILD_OUTPUT
 861 OVERRIDE_SRC_ROOT
 862 ADD_SRC_ROOT
 863 JDK_TOPDIR
 864 NASHORN_TOPDIR
 865 HOTSPOT_TOPDIR
 866 JAXWS_TOPDIR
 867 JAXP_TOPDIR
 868 CORBA_TOPDIR
 869 LANGTOOLS_TOPDIR
 870 JAVAC_FLAGS
 871 BOOT_JDK_SOURCETARGET
 872 JARSIGNER
 873 NATIVE2ASCII
 874 JAR
 875 JAVAH
 876 JAVAC
 877 JAVA
 878 BOOT_JDK
 879 JAVA_CHECK
 880 JAVAC_CHECK
 881 COOKED_BUILD_NUMBER
 882 JDK_VERSION
 883 COPYRIGHT_YEAR
 884 MACOSX_BUNDLE_ID_BASE
 885 MACOSX_BUNDLE_NAME_BASE
 886 COMPANY_NAME
 887 JDK_RC_PLATFORM_NAME
 888 PRODUCT_SUFFIX
 889 PRODUCT_NAME
 890 LAUNCHER_NAME
 891 MILESTONE
 892 JDK_BUILD_NUMBER
 893 JDK_UPDATE_VERSION
 894 JDK_MICRO_VERSION
 895 JDK_MINOR_VERSION
 896 JDK_MAJOR_VERSION
 897 USER_RELEASE_SUFFIX
 898 COMPRESS_JARS
 899 RMICONNECTOR_IIOP
 900 UNLIMITED_CRYPTO
 901 CACERTS_FILE
 902 TEST_IN_BUILD
 903 BUILD_HEADLESS
 904 SUPPORT_HEADFUL
 905 SUPPORT_HEADLESS
 906 BDEPS_FTP
 907 BDEPS_UNZIP
 908 OS_VERSION_MICRO
 909 OS_VERSION_MINOR
 910 OS_VERSION_MAJOR
 911 PKG_CONFIG
 912 BASH_ARGS
 913 CODESIGN
 914 XATTR
 915 DSYMUTIL
 916 IS_GNU_TIME
 917 TIME
 918 STAT
 919 HG
 920 READELF
 921 OTOOL
 922 LDD
 923 ZIP
 924 UNZIP
 925 FIND_DELETE
 926 OUTPUT_SYNC
 927 OUTPUT_SYNC_SUPPORTED
 928 MAKE
 929 CHECK_TOOLSDIR_MAKE
 930 CHECK_TOOLSDIR_GMAKE
 931 CHECK_MAKE
 932 CHECK_GMAKE
 933 PKGHANDLER
 934 OUTPUT_ROOT
 935 CONF_NAME
 936 SPEC
 937 SDKROOT
 938 XCODEBUILD
 939 PARFAIT_BASELINE
 940 PARFAIT_DIR
 941 BUILD_VARIANT_RELEASE
 942 DEBUG_CLASSFILES
 943 FASTDEBUG
 944 VARIANT
 945 DEBUG_LEVEL
 946 MACOSX_UNIVERSAL
 947 INCLUDE_SA
 948 JVM_VARIANT_CORE
 949 JVM_VARIANT_ZEROSHARK
 950 JVM_VARIANT_ZERO
 951 JVM_VARIANT_KERNEL
 952 JVM_VARIANT_MINIMAL1
 953 JVM_VARIANT_CLIENT
 954 JVM_VARIANT_SERVER
 955 JVM_VARIANTS
 956 JVM_INTERPRETER
 957 JDK_VARIANT
 958 MINIMIZE_RAM_USAGE
 959 JAVASE_EMBEDDED
 960 SET_OPENJDK
 961 BUILD_LOG_WRAPPER
 962 BUILD_LOG_PREVIOUS
 963 BUILD_LOG
 964 TOPDIR
 965 PATH_SEP
 966 ZERO_ARCHDEF
 967 DEFINE_CROSS_COMPILE_ARCH
 968 LP64
 969 OPENJDK_TARGET_OS_EXPORT_DIR
 970 OPENJDK_TARGET_CPU_JLI_CFLAGS
 971 OPENJDK_TARGET_CPU_OSARCH
 972 OPENJDK_TARGET_CPU_ISADIR
 973 OPENJDK_TARGET_CPU_LIBDIR
 974 OPENJDK_TARGET_CPU_LEGACY_LIB
 975 OPENJDK_TARGET_CPU_LEGACY
 976 REQUIRED_OS_VERSION
 977 REQUIRED_OS_NAME
 978 COMPILE_TYPE
 979 OPENJDK_TARGET_CPU_ENDIAN
 980 OPENJDK_TARGET_CPU_BITS
 981 OPENJDK_TARGET_CPU_ARCH
 982 OPENJDK_TARGET_CPU
 983 OPENJDK_TARGET_OS_ENV
 984 OPENJDK_TARGET_OS_TYPE
 985 OPENJDK_TARGET_OS
 986 OPENJDK_BUILD_CPU_ENDIAN
 987 OPENJDK_BUILD_CPU_BITS
 988 OPENJDK_BUILD_CPU_ARCH
 989 OPENJDK_BUILD_CPU
 990 OPENJDK_BUILD_OS_ENV
 991 OPENJDK_BUILD_OS_TYPE
 992 OPENJDK_BUILD_OS
 993 OPENJDK_BUILD_AUTOCONF_NAME
 994 OPENJDK_TARGET_AUTOCONF_NAME
 995 target_os
 996 target_vendor
 997 target_cpu
 998 target
 999 host_os
1000 host_vendor
1001 host_cpu
1002 host
1003 build_os
1004 build_vendor
1005 build_cpu
1006 build
1007 CPIO
1008 SETFILE
1009 DF
1010 READLINK
1011 CYGPATH
1012 SED
1013 FGREP
1014 EGREP
1015 GREP
1016 AWK
1017 XARGS
1018 WHICH
1019 WC
1020 UNIQ
1021 UNAME
1022 TR
1023 TOUCH
1024 TEE
1025 TAR
1026 TAIL
1027 SORT
1028 SH
1029 RM
1030 PRINTF
1031 NAWK
1032 MV
1033 MKTEMP
1034 MKDIR
1035 LS
1036 LN
1037 HEAD
1038 FIND
1039 FILE
1040 EXPR
1041 ECHO
1042 DIRNAME
1043 DIFF
1044 DATE
1045 CUT
1046 CP
1047 COMM
1048 CMP
1049 CHMOD
1050 CAT
1051 BASH
1052 BASENAME
1053 DATE_WHEN_CONFIGURED
1054 ORIGINAL_PATH
1055 CONFIGURE_COMMAND_LINE
1056 target_alias
1057 host_alias
1058 build_alias
1059 LIBS
1060 ECHO_T
1061 ECHO_N
1062 ECHO_C
1063 DEFS
1064 mandir
1065 localedir
1066 libdir
1067 psdir
1068 pdfdir
1069 dvidir
1070 htmldir
1071 infodir
1072 docdir
1073 oldincludedir
1074 includedir
1075 localstatedir
1076 sharedstatedir
1077 sysconfdir
1078 datadir
1079 datarootdir
1080 libexecdir
1081 sbindir
1082 bindir
1083 program_transform_name
1084 prefix
1085 exec_prefix
1086 PACKAGE_URL
1087 PACKAGE_BUGREPORT
1088 PACKAGE_STRING
1089 PACKAGE_VERSION
1090 PACKAGE_TARNAME
1091 PACKAGE_NAME
1092 PATH_SEPARATOR
1093 SHELL'
1094 ac_subst_files=''
1095 ac_user_opts='
1096 enable_option_checking
1097 with_target_bits
1098 enable_openjdk_only
1099 with_custom_make_dir
1100 with_jdk_variant
1101 with_jvm_interpreter
1102 with_jvm_variants
1103 enable_debug
1104 with_debug_level
1105 with_parfait
1106 with_parfait_baseline
1107 with_java_path
1108 with_java_devtools
1109 with_devkit
1110 with_sys_root
1111 with_sysroot
1112 with_tools_dir
1113 with_toolchain_path
1114 with_extra_path
1115 with_sdk_name
1116 with_conf_name
1117 with_output_sync
1118 with_builddeps_conf
1119 with_builddeps_server
1120 with_builddeps_dir
1121 with_builddeps_group
1122 enable_headful
1123 enable_hotspot_test_in_build
1124 with_cacerts_file
1125 enable_unlimited_crypto
1126 enable_rmiconnector_iiop
1127 with_milestone
1128 with_update_version
1129 with_user_release_suffix
1130 with_build_number
1131 with_copyright_year
1132 with_boot_jdk
1133 with_add_source_root
1134 with_override_source_root
1135 with_adds_and_overrides
1136 with_override_langtools
1137 with_override_corba
1138 with_override_jaxp
1139 with_override_jaxws
1140 with_override_hotspot
1141 with_override_nashorn
1142 with_override_jdk
1143 with_import_hotspot
1144 with_toolchain_type
1145 with_toolchain_version
1146 with_jtreg
1147 with_extra_cflags
1148 with_extra_cxxflags
1149 with_extra_ldflags
1150 enable_debug_symbols
1151 enable_zip_debug_info
1152 with_x
1153 with_cups
1154 with_cups_include
1155 with_freetype
1156 with_freetype_include
1157 with_freetype_lib
1158 with_freetype_src
1159 enable_freetype_bundling
1160 with_alsa
1161 with_alsa_include
1162 with_alsa_lib
1163 with_libjpeg
1164 with_giflib
1165 with_lcms
1166 with_libpng
1167 with_zlib
1168 with_stdc__lib
1169 with_msvcr_dll
1170 with_msvcp_dll
1171 with_dxsdk
1172 with_dxsdk_lib
1173 with_dxsdk_include
1174 with_num_cores
1175 with_memory_size
1176 with_jobs
1177 with_boot_jdk_jvmargs
1178 with_sjavac_server_java
1179 enable_sjavac
1180 enable_precompiled_headers
1181 enable_ccache
1182 with_ccache_dir
1183 with_bundle_date
1184 with_sflt_lib_path
1185 enable_jfr
1186 enable_commercial_features
1187 with_plugin_devkit
1188 with_ant_home
1189 with_junit_dir
1190 with_sparkle_framework
1191 with_wix
1192 enable_signing
1193 with_ccss_signing
1194 with_lzma_path
1195 with_upx_path
1196 with_upx_filename
1197 with_javafx_zip_dir
1198 with_jmc_zip_dir
1199 with_bsdiff_dir
1200 with_jdk_debug_image_dir
1201 with_asmtools
1202 with_cpptasks
1203 with_ant_contrib
1204 with_tonga_jar
1205 enable_tonga
1206 enable_deploy
1207 enable_new_deploy_build
1208 enable_installer
1209 with_rtpatch_dir
1210 with_gcc29_compiler_kit
1211 with_devtools_path
1212 with_mozilla_headers
1213 '
1214       ac_precious_vars='build_alias
1215 host_alias
1216 target_alias
1217 BASENAME
1218 BASH
1219 CAT
1220 CHMOD
1221 CMP
1222 COMM
1223 CP
1224 CUT
1225 DATE
1226 DIFF
1227 DIRNAME
1228 ECHO
1229 EXPR
1230 FILE
1231 FIND
1232 HEAD
1233 LN
1234 LS
1235 MKDIR
1236 MKTEMP
1237 MV
1238 NAWK
1239 PRINTF
1240 RM
1241 SH
1242 SORT
1243 TAIL
1244 TAR
1245 TEE
1246 TOUCH
1247 TR
1248 UNAME
1249 UNIQ
1250 WC
1251 WHICH
1252 XARGS
1253 AWK
1254 GREP
1255 EGREP
1256 FGREP
1257 SED
1258 CYGPATH
1259 READLINK
1260 DF
1261 SETFILE
1262 CPIO
1263 UNZIP
1264 ZIP
1265 LDD
1266 OTOOL
1267 READELF
1268 HG
1269 STAT
1270 TIME
1271 DSYMUTIL
1272 XATTR
1273 CODESIGN
1274 PKG_CONFIG
1275 JAVA
1276 JAVAC
1277 JAVAH
1278 JAR
1279 NATIVE2ASCII
1280 JARSIGNER
1281 CC
1282 CFLAGS
1283 LDFLAGS
1284 LIBS
1285 CPPFLAGS
1286 CXX
1287 CXXFLAGS
1288 CCC
1289 CPP
1290 CXXCPP
1291 AS
1292 AR
1293 LIPO
1294 STRIP
1295 NM
1296 GNM
1297 MCS
1298 OBJCOPY
1299 OBJDUMP
1300 BUILD_CC
1301 BUILD_CXX
1302 BUILD_LD
1303 JTREGEXE
1304 XMKMF
1305 FREETYPE_CFLAGS
1306 FREETYPE_LIBS
1307 ALSA_CFLAGS
1308 ALSA_LIBS
1309 LCMS_CFLAGS
1310 LCMS_LIBS
1311 PNG_CFLAGS
1312 PNG_LIBS
1313 LIBFFI_CFLAGS
1314 LIBFFI_LIBS
1315 CCACHE
1316 MSGFMT
1317 PLUTIL
1318 IBTOOL
1319 OPENSSL
1320 INSTALL_NAME_TOOL
1321 ICONV'
1322 
1323 
1324 # Initialize some variables set by options.
1325 ac_init_help=
1326 ac_init_version=false
1327 ac_unrecognized_opts=
1328 ac_unrecognized_sep=
1329 # The variables have the same names as the options, with
1330 # dashes changed to underlines.
1331 cache_file=/dev/null
1332 exec_prefix=NONE
1333 no_create=
1334 no_recursion=
1335 prefix=NONE
1336 program_prefix=NONE
1337 program_suffix=NONE
1338 program_transform_name=s,x,x,
1339 silent=
1340 site=
1341 srcdir=
1342 verbose=
1343 x_includes=NONE
1344 x_libraries=NONE
1345 
1346 # Installation directory options.
1347 # These are left unexpanded so users can "make install exec_prefix=/foo"
1348 # and all the variables that are supposed to be based on exec_prefix
1349 # by default will actually change.
1350 # Use braces instead of parens because sh, perl, etc. also accept them.
1351 # (The list follows the same order as the GNU Coding Standards.)
1352 bindir='${exec_prefix}/bin'
1353 sbindir='${exec_prefix}/sbin'
1354 libexecdir='${exec_prefix}/libexec'
1355 datarootdir='${prefix}/share'
1356 datadir='${datarootdir}'
1357 sysconfdir='${prefix}/etc'
1358 sharedstatedir='${prefix}/com'
1359 localstatedir='${prefix}/var'
1360 includedir='${prefix}/include'
1361 oldincludedir='/usr/include'
1362 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1363 infodir='${datarootdir}/info'
1364 htmldir='${docdir}'
1365 dvidir='${docdir}'
1366 pdfdir='${docdir}'
1367 psdir='${docdir}'
1368 libdir='${exec_prefix}/lib'
1369 localedir='${datarootdir}/locale'
1370 mandir='${datarootdir}/man'
1371 
1372 ac_prev=
1373 ac_dashdash=
1374 for ac_option
1375 do
1376   # If the previous option needs an argument, assign it.
1377   if test -n "$ac_prev"; then
1378     eval $ac_prev=\$ac_option
1379     ac_prev=
1380     continue
1381   fi
1382 
1383   case $ac_option in
1384   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1385   *=)   ac_optarg= ;;
1386   *)    ac_optarg=yes ;;
1387   esac
1388 
1389   # Accept the important Cygnus configure options, so we can diagnose typos.
1390 
1391   case $ac_dashdash$ac_option in
1392   --)
1393     ac_dashdash=yes ;;
1394 
1395   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1396     ac_prev=bindir ;;
1397   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1398     bindir=$ac_optarg ;;
1399 
1400   -build | --build | --buil | --bui | --bu)
1401     ac_prev=build_alias ;;
1402   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1403     build_alias=$ac_optarg ;;
1404 
1405   -cache-file | --cache-file | --cache-fil | --cache-fi \
1406   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1407     ac_prev=cache_file ;;
1408   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1409   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1410     cache_file=$ac_optarg ;;
1411 
1412   --config-cache | -C)
1413     cache_file=config.cache ;;
1414 
1415   -datadir | --datadir | --datadi | --datad)
1416     ac_prev=datadir ;;
1417   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1418     datadir=$ac_optarg ;;
1419 
1420   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1421   | --dataroo | --dataro | --datar)
1422     ac_prev=datarootdir ;;
1423   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1424   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1425     datarootdir=$ac_optarg ;;
1426 
1427   -disable-* | --disable-*)
1428     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1429     # Reject names that are not valid shell variable names.
1430     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1431       as_fn_error $? "invalid feature name: $ac_useropt"
1432     ac_useropt_orig=$ac_useropt
1433     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1434     case $ac_user_opts in
1435       *"
1436 "enable_$ac_useropt"
1437 "*) ;;
1438       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1439          ac_unrecognized_sep=', ';;
1440     esac
1441     eval enable_$ac_useropt=no ;;
1442 
1443   -docdir | --docdir | --docdi | --doc | --do)
1444     ac_prev=docdir ;;
1445   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1446     docdir=$ac_optarg ;;
1447 
1448   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1449     ac_prev=dvidir ;;
1450   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1451     dvidir=$ac_optarg ;;
1452 
1453   -enable-* | --enable-*)
1454     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1455     # Reject names that are not valid shell variable names.
1456     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1457       as_fn_error $? "invalid feature name: $ac_useropt"
1458     ac_useropt_orig=$ac_useropt
1459     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1460     case $ac_user_opts in
1461       *"
1462 "enable_$ac_useropt"
1463 "*) ;;
1464       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1465          ac_unrecognized_sep=', ';;
1466     esac
1467     eval enable_$ac_useropt=\$ac_optarg ;;
1468 
1469   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1470   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1471   | --exec | --exe | --ex)
1472     ac_prev=exec_prefix ;;
1473   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1474   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1475   | --exec=* | --exe=* | --ex=*)
1476     exec_prefix=$ac_optarg ;;
1477 
1478   -gas | --gas | --ga | --g)
1479     # Obsolete; use --with-gas.
1480     with_gas=yes ;;
1481 
1482   -help | --help | --hel | --he | -h)
1483     ac_init_help=long ;;
1484   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1485     ac_init_help=recursive ;;
1486   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1487     ac_init_help=short ;;
1488 
1489   -host | --host | --hos | --ho)
1490     ac_prev=host_alias ;;
1491   -host=* | --host=* | --hos=* | --ho=*)
1492     host_alias=$ac_optarg ;;
1493 
1494   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1495     ac_prev=htmldir ;;
1496   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1497   | --ht=*)
1498     htmldir=$ac_optarg ;;
1499 
1500   -includedir | --includedir | --includedi | --included | --include \
1501   | --includ | --inclu | --incl | --inc)
1502     ac_prev=includedir ;;
1503   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1504   | --includ=* | --inclu=* | --incl=* | --inc=*)
1505     includedir=$ac_optarg ;;
1506 
1507   -infodir | --infodir | --infodi | --infod | --info | --inf)
1508     ac_prev=infodir ;;
1509   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1510     infodir=$ac_optarg ;;
1511 
1512   -libdir | --libdir | --libdi | --libd)
1513     ac_prev=libdir ;;
1514   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1515     libdir=$ac_optarg ;;
1516 
1517   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1518   | --libexe | --libex | --libe)
1519     ac_prev=libexecdir ;;
1520   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1521   | --libexe=* | --libex=* | --libe=*)
1522     libexecdir=$ac_optarg ;;
1523 
1524   -localedir | --localedir | --localedi | --localed | --locale)
1525     ac_prev=localedir ;;
1526   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1527     localedir=$ac_optarg ;;
1528 
1529   -localstatedir | --localstatedir | --localstatedi | --localstated \
1530   | --localstate | --localstat | --localsta | --localst | --locals)
1531     ac_prev=localstatedir ;;
1532   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1533   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1534     localstatedir=$ac_optarg ;;
1535 
1536   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1537     ac_prev=mandir ;;
1538   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1539     mandir=$ac_optarg ;;
1540 
1541   -nfp | --nfp | --nf)
1542     # Obsolete; use --without-fp.
1543     with_fp=no ;;
1544 
1545   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1546   | --no-cr | --no-c | -n)
1547     no_create=yes ;;
1548 
1549   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1550   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1551     no_recursion=yes ;;
1552 
1553   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1554   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1555   | --oldin | --oldi | --old | --ol | --o)
1556     ac_prev=oldincludedir ;;
1557   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1558   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1559   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1560     oldincludedir=$ac_optarg ;;
1561 
1562   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1563     ac_prev=prefix ;;
1564   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1565     prefix=$ac_optarg ;;
1566 
1567   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1568   | --program-pre | --program-pr | --program-p)
1569     ac_prev=program_prefix ;;
1570   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1571   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1572     program_prefix=$ac_optarg ;;
1573 
1574   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1575   | --program-suf | --program-su | --program-s)
1576     ac_prev=program_suffix ;;
1577   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1578   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1579     program_suffix=$ac_optarg ;;
1580 
1581   -program-transform-name | --program-transform-name \
1582   | --program-transform-nam | --program-transform-na \
1583   | --program-transform-n | --program-transform- \
1584   | --program-transform | --program-transfor \
1585   | --program-transfo | --program-transf \
1586   | --program-trans | --program-tran \
1587   | --progr-tra | --program-tr | --program-t)
1588     ac_prev=program_transform_name ;;
1589   -program-transform-name=* | --program-transform-name=* \
1590   | --program-transform-nam=* | --program-transform-na=* \
1591   | --program-transform-n=* | --program-transform-=* \
1592   | --program-transform=* | --program-transfor=* \
1593   | --program-transfo=* | --program-transf=* \
1594   | --program-trans=* | --program-tran=* \
1595   | --progr-tra=* | --program-tr=* | --program-t=*)
1596     program_transform_name=$ac_optarg ;;
1597 
1598   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1599     ac_prev=pdfdir ;;
1600   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1601     pdfdir=$ac_optarg ;;
1602 
1603   -psdir | --psdir | --psdi | --psd | --ps)
1604     ac_prev=psdir ;;
1605   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1606     psdir=$ac_optarg ;;
1607 
1608   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1609   | -silent | --silent | --silen | --sile | --sil)
1610     silent=yes ;;
1611 
1612   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1613     ac_prev=sbindir ;;
1614   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1615   | --sbi=* | --sb=*)
1616     sbindir=$ac_optarg ;;
1617 
1618   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1619   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1620   | --sharedst | --shareds | --shared | --share | --shar \
1621   | --sha | --sh)
1622     ac_prev=sharedstatedir ;;
1623   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1624   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1625   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1626   | --sha=* | --sh=*)
1627     sharedstatedir=$ac_optarg ;;
1628 
1629   -site | --site | --sit)
1630     ac_prev=site ;;
1631   -site=* | --site=* | --sit=*)
1632     site=$ac_optarg ;;
1633 
1634   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1635     ac_prev=srcdir ;;
1636   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1637     srcdir=$ac_optarg ;;
1638 
1639   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1640   | --syscon | --sysco | --sysc | --sys | --sy)
1641     ac_prev=sysconfdir ;;
1642   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1643   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1644     sysconfdir=$ac_optarg ;;
1645 
1646   -target | --target | --targe | --targ | --tar | --ta | --t)
1647     ac_prev=target_alias ;;
1648   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1649     target_alias=$ac_optarg ;;
1650 
1651   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1652     verbose=yes ;;
1653 
1654   -version | --version | --versio | --versi | --vers | -V)
1655     ac_init_version=: ;;
1656 
1657   -with-* | --with-*)
1658     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1659     # Reject names that are not valid shell variable names.
1660     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1661       as_fn_error $? "invalid package name: $ac_useropt"
1662     ac_useropt_orig=$ac_useropt
1663     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1664     case $ac_user_opts in
1665       *"
1666 "with_$ac_useropt"
1667 "*) ;;
1668       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1669          ac_unrecognized_sep=', ';;
1670     esac
1671     eval with_$ac_useropt=\$ac_optarg ;;
1672 
1673   -without-* | --without-*)
1674     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1675     # Reject names that are not valid shell variable names.
1676     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1677       as_fn_error $? "invalid package name: $ac_useropt"
1678     ac_useropt_orig=$ac_useropt
1679     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1680     case $ac_user_opts in
1681       *"
1682 "with_$ac_useropt"
1683 "*) ;;
1684       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1685          ac_unrecognized_sep=', ';;
1686     esac
1687     eval with_$ac_useropt=no ;;
1688 
1689   --x)
1690     # Obsolete; use --with-x.
1691     with_x=yes ;;
1692 
1693   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1694   | --x-incl | --x-inc | --x-in | --x-i)
1695     ac_prev=x_includes ;;
1696   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1697   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1698     x_includes=$ac_optarg ;;
1699 
1700   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1701   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1702     ac_prev=x_libraries ;;
1703   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1704   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1705     x_libraries=$ac_optarg ;;
1706 
1707   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1708 Try \`$0 --help' for more information"
1709     ;;
1710 
1711   *=*)
1712     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1713     # Reject names that are not valid shell variable names.
1714     case $ac_envvar in #(
1715       '' | [0-9]* | *[!_$as_cr_alnum]* )
1716       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1717     esac
1718     eval $ac_envvar=\$ac_optarg
1719     export $ac_envvar ;;
1720 
1721   *)
1722     # FIXME: should be removed in autoconf 3.0.
1723     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1724     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1725       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1726     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1727     ;;
1728 
1729   esac
1730 done
1731 
1732 if test -n "$ac_prev"; then
1733   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1734   as_fn_error $? "missing argument to $ac_option"
1735 fi
1736 
1737 if test -n "$ac_unrecognized_opts"; then
1738   case $enable_option_checking in
1739     no) ;;
1740     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1741     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1742   esac
1743 fi
1744 
1745 # Check all directory arguments for consistency.
1746 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1747                 datadir sysconfdir sharedstatedir localstatedir includedir \
1748                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1749                 libdir localedir mandir
1750 do
1751   eval ac_val=\$$ac_var
1752   # Remove trailing slashes.
1753   case $ac_val in
1754     */ )
1755       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1756       eval $ac_var=\$ac_val;;
1757   esac
1758   # Be sure to have absolute directory names.
1759   case $ac_val in
1760     [\\/$]* | ?:[\\/]* )  continue;;
1761     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1762   esac
1763   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1764 done
1765 
1766 # There might be people who depend on the old broken behavior: `$host'
1767 # used to hold the argument of --host etc.
1768 # FIXME: To remove some day.
1769 build=$build_alias
1770 host=$host_alias
1771 target=$target_alias
1772 
1773 # FIXME: To remove some day.
1774 if test "x$host_alias" != x; then
1775   if test "x$build_alias" = x; then
1776     cross_compiling=maybe
1777   elif test "x$build_alias" != "x$host_alias"; then
1778     cross_compiling=yes
1779   fi
1780 fi
1781 
1782 ac_tool_prefix=
1783 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1784 
1785 test "$silent" = yes && exec 6>/dev/null
1786 
1787 
1788 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1789 ac_ls_di=`ls -di .` &&
1790 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1791   as_fn_error $? "working directory cannot be determined"
1792 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1793   as_fn_error $? "pwd does not report name of working directory"
1794 
1795 
1796 # Find the source files, if location was not specified.
1797 if test -z "$srcdir"; then
1798   ac_srcdir_defaulted=yes
1799   # Try the directory containing this script, then the parent directory.
1800   ac_confdir=`$as_dirname -- "$as_myself" ||
1801 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1802          X"$as_myself" : 'X\(//\)[^/]' \| \
1803          X"$as_myself" : 'X\(//\)$' \| \
1804          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1805 $as_echo X"$as_myself" |
1806     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1807             s//\1/
1808             q
1809           }
1810           /^X\(\/\/\)[^/].*/{
1811             s//\1/
1812             q
1813           }
1814           /^X\(\/\/\)$/{
1815             s//\1/
1816             q
1817           }
1818           /^X\(\/\).*/{
1819             s//\1/
1820             q
1821           }
1822           s/.*/./; q'`
1823   srcdir=$ac_confdir
1824   if test ! -r "$srcdir/$ac_unique_file"; then
1825     srcdir=..
1826   fi
1827 else
1828   ac_srcdir_defaulted=no
1829 fi
1830 if test ! -r "$srcdir/$ac_unique_file"; then
1831   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1832   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1833 fi
1834 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1835 ac_abs_confdir=`(
1836         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1837         pwd)`
1838 # When building in place, set srcdir=.
1839 if test "$ac_abs_confdir" = "$ac_pwd"; then
1840   srcdir=.
1841 fi
1842 # Remove unnecessary trailing slashes from srcdir.
1843 # Double slashes in file names in object file debugging info
1844 # mess up M-x gdb in Emacs.
1845 case $srcdir in
1846 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1847 esac
1848 for ac_var in $ac_precious_vars; do
1849   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1850   eval ac_env_${ac_var}_value=\$${ac_var}
1851   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1852   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1853 done
1854 
1855 #
1856 # Report the --help message.
1857 #
1858 if test "$ac_init_help" = "long"; then
1859   # Omit some internal or obsolete options to make the list less imposing.
1860   # This message is too long to be a string in the A/UX 3.1 sh.
1861   cat <<_ACEOF
1862 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1863 
1864 Usage: $0 [OPTION]... [VAR=VALUE]...
1865 
1866 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1867 VAR=VALUE.  See below for descriptions of some of the useful variables.
1868 
1869 Defaults for the options are specified in brackets.
1870 
1871 Configuration:
1872   -h, --help              display this help and exit
1873       --help=short        display options specific to this package
1874       --help=recursive    display the short help of all the included packages
1875   -V, --version           display version information and exit
1876   -q, --quiet, --silent   do not print \`checking ...' messages
1877       --cache-file=FILE   cache test results in FILE [disabled]
1878   -C, --config-cache      alias for \`--cache-file=config.cache'
1879   -n, --no-create         do not create output files
1880       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1881 
1882 Installation directories:
1883   --prefix=PREFIX         install architecture-independent files in PREFIX
1884                           [$ac_default_prefix]
1885   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1886                           [PREFIX]
1887 
1888 By default, \`make install' will install all the files in
1889 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1890 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1891 for instance \`--prefix=\$HOME'.
1892 
1893 For better control, use the options below.
1894 
1895 Fine tuning of the installation directories:
1896   --bindir=DIR            user executables [EPREFIX/bin]
1897   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1898   --libexecdir=DIR        program executables [EPREFIX/libexec]
1899   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1900   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1901   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1902   --libdir=DIR            object code libraries [EPREFIX/lib]
1903   --includedir=DIR        C header files [PREFIX/include]
1904   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1905   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1906   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1907   --infodir=DIR           info documentation [DATAROOTDIR/info]
1908   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1909   --mandir=DIR            man documentation [DATAROOTDIR/man]
1910   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1911   --htmldir=DIR           html documentation [DOCDIR]
1912   --dvidir=DIR            dvi documentation [DOCDIR]
1913   --pdfdir=DIR            pdf documentation [DOCDIR]
1914   --psdir=DIR             ps documentation [DOCDIR]
1915 _ACEOF
1916 
1917   cat <<\_ACEOF
1918 
1919 X features:
1920   --x-includes=DIR    X include files are in DIR
1921   --x-libraries=DIR   X library files are in DIR
1922 
1923 System types:
1924   --build=BUILD     configure for building on BUILD [guessed]
1925   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1926   --target=TARGET   configure for building compilers for TARGET [HOST]
1927 _ACEOF
1928 fi
1929 
1930 if test -n "$ac_init_help"; then
1931   case $ac_init_help in
1932      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1933    esac
1934   cat <<\_ACEOF
1935 
1936 Optional Features:
1937   --disable-option-checking  ignore unrecognized --enable/--with options
1938   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1939   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1940   --enable-openjdk-only   suppress building custom source even if present
1941                           [disabled]
1942   --enable-debug          set the debug level to fastdebug (shorthand for
1943                           --with-debug-level=fastdebug) [disabled]
1944   --disable-headful       disable building headful support (graphical UI
1945                           support) [enabled]
1946   --enable-hotspot-test-in-build
1947                           run the Queens test after Hotspot build [disabled]
1948   --enable-unlimited-crypto
1949                           Enable unlimited crypto policy [disabled]
1950   --enable-rmiconnector-iiop
1951                           enable the JMX RMIConnector iiop transport
1952                           [disabled]
1953   --disable-debug-symbols disable generation of debug symbols [enabled]
1954   --disable-zip-debug-info
1955                           disable zipping of debug-info files [enabled]
1956   --disable-freetype-bundling
1957                           disable bundling of the freetype library with the
1958                           build result [enabled on Windows or when using
1959                           --with-freetype, disabled otherwise]
1960   --enable-sjavac         use sjavac to do fast incremental compiles
1961                           [disabled]
1962   --disable-precompiled-headers
1963                           disable using precompiled headers when compiling C++
1964                           [enabled]
1965   --enable-ccache         enable using ccache to speed up recompilations
1966                           [disabled]
1967   --disable-jfr           disable JFR [enabled, unless building embedded, or
1968                           ARM/PPC]
1969   --disable-commercial-features
1970                           disable commercial features [enabled]
1971   --enable-signing        if signing is enabled, configure will fail unless
1972                           the CCSS Client.jar is available
1973   --enable-tonga          explicitly enable tonga test build
1974   --enable-deploy[=yes/no/auto]
1975                           forces deploy build to be enabled if supported on
1976                           platform, missing dependencies become fatal errors.
1977                           Default is auto, where deploy is built if all
1978                           dependencies are present and otherwise just
1979                           disabled.
1980   --enable-new-deploy-build
1981                           enable the new deploy build system (otherwise use
1982                           the old), or 'compare' [disabled]
1983   --enable-installer[=yes/no/auto]
1984                           forces installer build to be enabled if supported on
1985                           platform, missing dependencies become fatal errors.
1986                           Default is auto, where installer is built if all
1987                           dependencies are present and otherwise just
1988                           disabled.
1989 
1990 Optional Packages:
1991   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1992   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1993   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1994                           support it), e.g. --with-target-bits=32 [guessed]
1995   --with-custom-make-dir  Deprecated. Option is kept for backwards
1996                           compatibility and is ignored
1997   --with-jdk-variant      JDK variant to build (normal, embedded) [normal]
1998   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1999   --with-jvm-variants     JVM variants (separated by commas) to build (server,
2000                           client, minimal1, kernel, zero, zeroshark, core)
2001                           [server]
2002   --with-debug-level      set the debug level (release, fastdebug, slowdebug,
2003                           optimized (HotSpot build only)) [release]
2004   --with-parfait          build using parfait tools in the specified directory
2005   --with-parfait-baseline specify URI of parfait baseline results
2006   --with-java-path        alias for --with-java-devtools. DEPRECATED
2007   --with-java-devtools    use the Oracle /java/devtools share as base for
2008                           tools and libraries [/java/devtools or J:/devtools]
2009   --with-devkit           use this devkit for compilers, tools and resources
2010   --with-sys-root         alias for --with-sysroot for backwards compatability
2011   --with-sysroot          use this directory as sysroot
2012   --with-tools-dir        alias for --with-toolchain-path for backwards
2013                           compatibility
2014   --with-toolchain-path   prepend these directories when searching for
2015                           toolchain binaries (compilers etc)
2016   --with-extra-path       prepend these directories to the default path
2017   --with-sdk-name         use the platform SDK of the given name. [macosx]
2018   --with-conf-name        use this as the name of the configuration [generated
2019                           from important configuration options]
2020   --with-output-sync      set make output sync type if supported by make.
2021                           [recurse]
2022   --with-builddeps-conf   use this configuration file for the builddeps
2023   --with-builddeps-server download and use build dependencies from this server
2024                           url
2025   --with-builddeps-dir    store downloaded build dependencies here
2026                           [/localhome/builddeps]
2027   --with-builddeps-group  chgrp the downloaded build dependencies to this
2028                           group
2029   --with-cacerts-file     specify alternative cacerts file
2030   --with-milestone        Set milestone value for build [internal]
2031   --with-update-version   Set update version value for build [b00]
2032   --with-user-release-suffix
2033                           Add a custom string to the version string if build
2034                           number is not set.[username_builddateb00]
2035   --with-build-number     Set build number value for build [b00]
2036   --with-copyright-year   Set copyright year value for build [current year]
2037   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
2038   --with-add-source-root  for each and every source directory, look in this
2039                           additional source root for the same directory; if it
2040                           exists and have files in it, include it in the build
2041   --with-override-source-root
2042                           for each and every source directory, look in this
2043                           override source root for the same directory; if it
2044                           exists, use that directory instead and ignore the
2045                           directory in the original source root
2046   --with-adds-and-overrides
2047                           use the subdirs 'adds' and 'overrides' in the
2048                           specified directory as add-source-root and
2049                           override-source-root
2050   --with-override-langtools
2051                           use this langtools dir for the build
2052   --with-override-corba   use this corba dir for the build
2053   --with-override-jaxp    use this jaxp dir for the build
2054   --with-override-jaxws   use this jaxws dir for the build
2055   --with-override-hotspot use this hotspot dir for the build
2056   --with-override-nashorn use this nashorn dir for the build
2057   --with-override-jdk     use this jdk dir for the build
2058   --with-import-hotspot   import hotspot binaries from this jdk image or
2059                           hotspot build dist dir instead of building from
2060                           source
2061   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
2062                           to show possible values [platform dependent]
2063   --with-toolchain-version
2064                           the version of the toolchain to look for, use
2065                           '--help' to show possible values [platform
2066                           dependent]
2067   --with-jtreg            Regression Test Harness [probed]
2068   --with-extra-cflags     extra flags to be used when compiling jdk c-files
2069   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
2070   --with-extra-ldflags    extra flags to be used when linking jdk
2071   --with-x                use the X Window System
2072   --with-cups             specify prefix directory for the cups package
2073                           (expecting the headers under PATH/include)
2074   --with-cups-include     specify directory for the cups include files
2075   --with-freetype         specify prefix directory for the freetype package
2076                           (expecting the libraries under PATH/lib and the
2077                           headers under PATH/include)
2078   --with-freetype-include specify directory for the freetype include files
2079   --with-freetype-lib     specify directory for the freetype library
2080   --with-freetype-src     specify directory with freetype sources to
2081                           automatically build the library (experimental,
2082                           Windows-only)
2083   --with-alsa             specify prefix directory for the alsa package
2084                           (expecting the libraries under PATH/lib and the
2085                           headers under PATH/include)
2086   --with-alsa-include     specify directory for the alsa include files
2087   --with-alsa-lib         specify directory for the alsa library
2088   --with-libjpeg          use libjpeg from build system or OpenJDK source
2089                           (system, bundled) [bundled]
2090   --with-giflib           use giflib from build system or OpenJDK source
2091                           (system, bundled) [bundled]
2092   --with-lcms             use lcms2 from build system or OpenJDK source
2093                           (system, bundled) [bundled]
2094   --with-libpng           use libpng from build system or OpenJDK source
2095                           (system, bundled) [bundled]
2096   --with-zlib             use zlib from build system or OpenJDK source
2097                           (system, bundled) [bundled]
2098   --with-stdc++lib=<static>,<dynamic>,<default>
2099                           force linking of the C++ runtime on Linux to either
2100                           static or dynamic, default is static with dynamic as
2101                           fallback
2102   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
2103                           (Windows only) [probed]
2104   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
2105                           (Windows only) [probed]
2106   --with-dxsdk            Deprecated. Option is kept for backwards
2107                           compatibility and is ignored
2108   --with-dxsdk-lib        Deprecated. Option is kept for backwards
2109                           compatibility and is ignored
2110   --with-dxsdk-include    Deprecated. Option is kept for backwards
2111                           compatibility and is ignored
2112   --with-num-cores        number of cores in the build system, e.g.
2113                           --with-num-cores=8 [probed]
2114   --with-memory-size      memory (in MB) available in the build system, e.g.
2115                           --with-memory-size=1024 [probed]
2116   --with-jobs             number of parallel jobs to let make run [calculated
2117                           based on cores and memory]
2118   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
2119                           invocations of boot JDK, overriding the default
2120                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
2121                           -enableassertions"
2122   --with-sjavac-server-java
2123                           use this java binary for running the sjavac
2124                           background server [Boot JDK java]
2125   --with-ccache-dir       where to store ccache files [~/.ccache]
2126   --with-bundle-date      specify a custom bundle date
2127   --with-sflt-lib-path    directory containing arm soft floating point library
2128   --with-plugin-devkit    provide a different compiler for building the plugin
2129   --with-ant-home         specify ant home
2130   --with-junit-dir        specify directory containing junit.jar which is used
2131                           for testing deploy
2132   --with-sparkle-framework
2133                           specify directory containing sparkle framework for
2134                           deploy on mac
2135   --with-wix              specify directory containing wix for install on
2136                           windows
2137   --with-ccss-signing     specify directory containing Corporate Code Signing
2138                           Application Client.jar for install on windows
2139   --with-lzma-path        specify directory containing LZMA for install on
2140                           windows
2141   --with-upx-path         specify directory containing UPX for install on
2142                           windows
2143   --with-upx-filename     specify filename of .zip file containing UPX for
2144                           install on windows
2145   --with-javafx-zip-dir   specify root directory of JAVAFX cobundle area
2146   --with-jmc-zip-dir      specify root directory of JMC cobundle area
2147   --with-bsdiff-dir       specify install directory for bsdiff
2148   --with-jdk-debug-image-dir
2149                           specify directory containing debug j2sdk-image for
2150                           inclusion in bundles
2151   --with-asmtools         specify location of asmtools jar
2152   --with-cpptasks         specify location of cpptasks jar
2153   --with-ant-contrib      specify location of ant-contrib jar
2154   --with-tonga-jar        specify location of tonga jar
2155   --with-rtpatch-dir      Deprecated. Option is kept for backwards
2156                           compatibility and is ignored
2157   --with-gcc29-compiler-kit
2158                           Deprecated. Option is kept for backwards
2159                           compatibility and is ignored
2160   --with-devtools-path    Deprecated. Option is kept for backwards
2161                           compatibility and is ignored
2162   --with-mozilla-headers  Deprecated. Option is kept for backwards
2163                           compatibility and is ignored
2164 
2165 Some influential environment variables:
2166   BASENAME    Override default value for BASENAME
2167   BASH        Override default value for BASH
2168   CAT         Override default value for CAT
2169   CHMOD       Override default value for CHMOD
2170   CMP         Override default value for CMP
2171   COMM        Override default value for COMM
2172   CP          Override default value for CP
2173   CUT         Override default value for CUT
2174   DATE        Override default value for DATE
2175   DIFF        Override default value for DIFF
2176   DIRNAME     Override default value for DIRNAME
2177   ECHO        Override default value for ECHO
2178   EXPR        Override default value for EXPR
2179   FILE        Override default value for FILE
2180   FIND        Override default value for FIND
2181   HEAD        Override default value for HEAD
2182   LN          Override default value for LN
2183   LS          Override default value for LS
2184   MKDIR       Override default value for MKDIR
2185   MKTEMP      Override default value for MKTEMP
2186   MV          Override default value for MV
2187   NAWK        Override default value for NAWK
2188   PRINTF      Override default value for PRINTF
2189   RM          Override default value for RM
2190   SH          Override default value for SH
2191   SORT        Override default value for SORT
2192   TAIL        Override default value for TAIL
2193   TAR         Override default value for TAR
2194   TEE         Override default value for TEE
2195   TOUCH       Override default value for TOUCH
2196   TR          Override default value for TR
2197   UNAME       Override default value for UNAME
2198   UNIQ        Override default value for UNIQ
2199   WC          Override default value for WC
2200   WHICH       Override default value for WHICH
2201   XARGS       Override default value for XARGS
2202   AWK         Override default value for AWK
2203   GREP        Override default value for GREP
2204   EGREP       Override default value for EGREP
2205   FGREP       Override default value for FGREP
2206   SED         Override default value for SED
2207   CYGPATH     Override default value for CYGPATH
2208   READLINK    Override default value for READLINK
2209   DF          Override default value for DF
2210   SETFILE     Override default value for SETFILE
2211   CPIO        Override default value for CPIO
2212   UNZIP       Override default value for UNZIP
2213   ZIP         Override default value for ZIP
2214   LDD         Override default value for LDD
2215   OTOOL       Override default value for OTOOL
2216   READELF     Override default value for READELF
2217   HG          Override default value for HG
2218   STAT        Override default value for STAT
2219   TIME        Override default value for TIME
2220   DSYMUTIL    Override default value for DSYMUTIL
2221   XATTR       Override default value for XATTR
2222   CODESIGN    Override default value for CODESIGN
2223   PKG_CONFIG  path to pkg-config utility
2224   JAVA        Override default value for JAVA
2225   JAVAC       Override default value for JAVAC
2226   JAVAH       Override default value for JAVAH
2227   JAR         Override default value for JAR
2228   NATIVE2ASCII
2229               Override default value for NATIVE2ASCII
2230   JARSIGNER   Override default value for JARSIGNER
2231   CC          C compiler command
2232   CFLAGS      C compiler flags
2233   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2234               nonstandard directory <lib dir>
2235   LIBS        libraries to pass to the linker, e.g. -l<library>
2236   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2237               you have headers in a nonstandard directory <include dir>
2238   CXX         C++ compiler command
2239   CXXFLAGS    C++ compiler flags
2240   CPP         C preprocessor
2241   CXXCPP      C++ preprocessor
2242   AS          Override default value for AS
2243   AR          Override default value for AR
2244   LIPO        Override default value for LIPO
2245   STRIP       Override default value for STRIP
2246   NM          Override default value for NM
2247   GNM         Override default value for GNM
2248   MCS         Override default value for MCS
2249   OBJCOPY     Override default value for OBJCOPY
2250   OBJDUMP     Override default value for OBJDUMP
2251   BUILD_CC    Override default value for BUILD_CC
2252   BUILD_CXX   Override default value for BUILD_CXX
2253   BUILD_LD    Override default value for BUILD_LD
2254   JTREGEXE    Override default value for JTREGEXE
2255   XMKMF       Path to xmkmf, Makefile generator for X Window System
2256   FREETYPE_CFLAGS
2257               C compiler flags for FREETYPE, overriding pkg-config
2258   FREETYPE_LIBS
2259               linker flags for FREETYPE, overriding pkg-config
2260   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2261   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2262   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2263   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
2264   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2265   PNG_LIBS    linker flags for PNG, overriding pkg-config
2266   LIBFFI_CFLAGS
2267               C compiler flags for LIBFFI, overriding pkg-config
2268   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2269   CCACHE      Override default value for CCACHE
2270   MSGFMT      Override default value for MSGFMT
2271   PLUTIL      Override default value for PLUTIL
2272   IBTOOL      Override default value for IBTOOL
2273   OPENSSL     Override default value for OPENSSL
2274   INSTALL_NAME_TOOL
2275               Override default value for INSTALL_NAME_TOOL
2276   ICONV       Override default value for ICONV
2277 
2278 Use these variables to override the choices made by `configure' or to help
2279 it to find libraries and programs with nonstandard names/locations.
2280 
2281 Report bugs to <build-dev@openjdk.java.net>.
2282 OpenJDK home page: <http://openjdk.java.net>.
2283 _ACEOF
2284 ac_status=$?
2285 fi
2286 
2287 if test "$ac_init_help" = "recursive"; then
2288   # If there are subdirs, report their specific --help.
2289   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2290     test -d "$ac_dir" ||
2291       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2292       continue
2293     ac_builddir=.
2294 
2295 case "$ac_dir" in
2296 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2297 *)
2298   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2299   # A ".." for each directory in $ac_dir_suffix.
2300   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2301   case $ac_top_builddir_sub in
2302   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2303   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2304   esac ;;
2305 esac
2306 ac_abs_top_builddir=$ac_pwd
2307 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2308 # for backward compatibility:
2309 ac_top_builddir=$ac_top_build_prefix
2310 
2311 case $srcdir in
2312   .)  # We are building in place.
2313     ac_srcdir=.
2314     ac_top_srcdir=$ac_top_builddir_sub
2315     ac_abs_top_srcdir=$ac_pwd ;;
2316   [\\/]* | ?:[\\/]* )  # Absolute name.
2317     ac_srcdir=$srcdir$ac_dir_suffix;
2318     ac_top_srcdir=$srcdir
2319     ac_abs_top_srcdir=$srcdir ;;
2320   *) # Relative name.
2321     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2322     ac_top_srcdir=$ac_top_build_prefix$srcdir
2323     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2324 esac
2325 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2326 
2327     cd "$ac_dir" || { ac_status=$?; continue; }
2328     # Check for guested configure.
2329     if test -f "$ac_srcdir/configure.gnu"; then
2330       echo &&
2331       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2332     elif test -f "$ac_srcdir/configure"; then
2333       echo &&
2334       $SHELL "$ac_srcdir/configure" --help=recursive
2335     else
2336       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2337     fi || ac_status=$?
2338     cd "$ac_pwd" || { ac_status=$?; break; }
2339   done
2340 fi
2341 
2342 test -n "$ac_init_help" && exit $ac_status
2343 if $ac_init_version; then
2344   cat <<\_ACEOF
2345 OpenJDK configure jdk9
2346 generated by GNU Autoconf 2.69
2347 
2348 Copyright (C) 2012 Free Software Foundation, Inc.
2349 This configure script is free software; the Free Software Foundation
2350 gives unlimited permission to copy, distribute and modify it.
2351 _ACEOF
2352   exit
2353 fi
2354 
2355 ## ------------------------ ##
2356 ## Autoconf initialization. ##
2357 ## ------------------------ ##
2358 
2359 # ac_fn_c_try_compile LINENO
2360 # --------------------------
2361 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2362 ac_fn_c_try_compile ()
2363 {
2364   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2365   rm -f conftest.$ac_objext
2366   if { { ac_try="$ac_compile"
2367 case "(($ac_try" in
2368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2369   *) ac_try_echo=$ac_try;;
2370 esac
2371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2372 $as_echo "$ac_try_echo"; } >&5
2373   (eval "$ac_compile") 2>conftest.err
2374   ac_status=$?
2375   if test -s conftest.err; then
2376     grep -v '^ *+' conftest.err >conftest.er1
2377     cat conftest.er1 >&5
2378     mv -f conftest.er1 conftest.err
2379   fi
2380   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2381   test $ac_status = 0; } && {
2382          test -z "$ac_c_werror_flag" ||
2383          test ! -s conftest.err
2384        } && test -s conftest.$ac_objext; then :
2385   ac_retval=0
2386 else
2387   $as_echo "$as_me: failed program was:" >&5
2388 sed 's/^/| /' conftest.$ac_ext >&5
2389 
2390         ac_retval=1
2391 fi
2392   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2393   as_fn_set_status $ac_retval
2394 
2395 } # ac_fn_c_try_compile
2396 
2397 # ac_fn_cxx_try_compile LINENO
2398 # ----------------------------
2399 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2400 ac_fn_cxx_try_compile ()
2401 {
2402   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2403   rm -f conftest.$ac_objext
2404   if { { ac_try="$ac_compile"
2405 case "(($ac_try" in
2406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2407   *) ac_try_echo=$ac_try;;
2408 esac
2409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2410 $as_echo "$ac_try_echo"; } >&5
2411   (eval "$ac_compile") 2>conftest.err
2412   ac_status=$?
2413   if test -s conftest.err; then
2414     grep -v '^ *+' conftest.err >conftest.er1
2415     cat conftest.er1 >&5
2416     mv -f conftest.er1 conftest.err
2417   fi
2418   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2419   test $ac_status = 0; } && {
2420          test -z "$ac_cxx_werror_flag" ||
2421          test ! -s conftest.err
2422        } && test -s conftest.$ac_objext; then :
2423   ac_retval=0
2424 else
2425   $as_echo "$as_me: failed program was:" >&5
2426 sed 's/^/| /' conftest.$ac_ext >&5
2427 
2428         ac_retval=1
2429 fi
2430   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2431   as_fn_set_status $ac_retval
2432 
2433 } # ac_fn_cxx_try_compile
2434 
2435 # ac_fn_c_try_cpp LINENO
2436 # ----------------------
2437 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2438 ac_fn_c_try_cpp ()
2439 {
2440   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2441   if { { ac_try="$ac_cpp conftest.$ac_ext"
2442 case "(($ac_try" in
2443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444   *) ac_try_echo=$ac_try;;
2445 esac
2446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2447 $as_echo "$ac_try_echo"; } >&5
2448   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2449   ac_status=$?
2450   if test -s conftest.err; then
2451     grep -v '^ *+' conftest.err >conftest.er1
2452     cat conftest.er1 >&5
2453     mv -f conftest.er1 conftest.err
2454   fi
2455   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2456   test $ac_status = 0; } > conftest.i && {
2457          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2458          test ! -s conftest.err
2459        }; then :
2460   ac_retval=0
2461 else
2462   $as_echo "$as_me: failed program was:" >&5
2463 sed 's/^/| /' conftest.$ac_ext >&5
2464 
2465     ac_retval=1
2466 fi
2467   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2468   as_fn_set_status $ac_retval
2469 
2470 } # ac_fn_c_try_cpp
2471 
2472 # ac_fn_cxx_try_cpp LINENO
2473 # ------------------------
2474 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2475 ac_fn_cxx_try_cpp ()
2476 {
2477   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2478   if { { ac_try="$ac_cpp conftest.$ac_ext"
2479 case "(($ac_try" in
2480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481   *) ac_try_echo=$ac_try;;
2482 esac
2483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2484 $as_echo "$ac_try_echo"; } >&5
2485   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2486   ac_status=$?
2487   if test -s conftest.err; then
2488     grep -v '^ *+' conftest.err >conftest.er1
2489     cat conftest.er1 >&5
2490     mv -f conftest.er1 conftest.err
2491   fi
2492   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2493   test $ac_status = 0; } > conftest.i && {
2494          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2495          test ! -s conftest.err
2496        }; then :
2497   ac_retval=0
2498 else
2499   $as_echo "$as_me: failed program was:" >&5
2500 sed 's/^/| /' conftest.$ac_ext >&5
2501 
2502     ac_retval=1
2503 fi
2504   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2505   as_fn_set_status $ac_retval
2506 
2507 } # ac_fn_cxx_try_cpp
2508 
2509 # ac_fn_c_try_link LINENO
2510 # -----------------------
2511 # Try to link conftest.$ac_ext, and return whether this succeeded.
2512 ac_fn_c_try_link ()
2513 {
2514   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2515   rm -f conftest.$ac_objext conftest$ac_exeext
2516   if { { ac_try="$ac_link"
2517 case "(($ac_try" in
2518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519   *) ac_try_echo=$ac_try;;
2520 esac
2521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2522 $as_echo "$ac_try_echo"; } >&5
2523   (eval "$ac_link") 2>conftest.err
2524   ac_status=$?
2525   if test -s conftest.err; then
2526     grep -v '^ *+' conftest.err >conftest.er1
2527     cat conftest.er1 >&5
2528     mv -f conftest.er1 conftest.err
2529   fi
2530   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2531   test $ac_status = 0; } && {
2532          test -z "$ac_c_werror_flag" ||
2533          test ! -s conftest.err
2534        } && test -s conftest$ac_exeext && {
2535          test "$cross_compiling" = yes ||
2536          test -x conftest$ac_exeext
2537        }; then :
2538   ac_retval=0
2539 else
2540   $as_echo "$as_me: failed program was:" >&5
2541 sed 's/^/| /' conftest.$ac_ext >&5
2542 
2543         ac_retval=1
2544 fi
2545   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2546   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2547   # interfere with the next link command; also delete a directory that is
2548   # left behind by Apple's compiler.  We do this before executing the actions.
2549   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2550   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2551   as_fn_set_status $ac_retval
2552 
2553 } # ac_fn_c_try_link
2554 
2555 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2556 # ---------------------------------------------------------
2557 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2558 # the include files in INCLUDES and setting the cache variable VAR
2559 # accordingly.
2560 ac_fn_cxx_check_header_mongrel ()
2561 {
2562   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2563   if eval \${$3+:} false; then :
2564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2565 $as_echo_n "checking for $2... " >&6; }
2566 if eval \${$3+:} false; then :
2567   $as_echo_n "(cached) " >&6
2568 fi
2569 eval ac_res=\$$3
2570                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2571 $as_echo "$ac_res" >&6; }
2572 else
2573   # Is the header compilable?
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2575 $as_echo_n "checking $2 usability... " >&6; }
2576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2577 /* end confdefs.h.  */
2578 $4
2579 #include <$2>
2580 _ACEOF
2581 if ac_fn_cxx_try_compile "$LINENO"; then :
2582   ac_header_compiler=yes
2583 else
2584   ac_header_compiler=no
2585 fi
2586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2588 $as_echo "$ac_header_compiler" >&6; }
2589 
2590 # Is the header present?
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2592 $as_echo_n "checking $2 presence... " >&6; }
2593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2594 /* end confdefs.h.  */
2595 #include <$2>
2596 _ACEOF
2597 if ac_fn_cxx_try_cpp "$LINENO"; then :
2598   ac_header_preproc=yes
2599 else
2600   ac_header_preproc=no
2601 fi
2602 rm -f conftest.err conftest.i conftest.$ac_ext
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2604 $as_echo "$ac_header_preproc" >&6; }
2605 
2606 # So?  What about this header?
2607 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2608   yes:no: )
2609     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2610 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2611     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2612 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2613     ;;
2614   no:yes:* )
2615     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2616 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2617     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2618 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2619     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2620 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2621     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2622 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2623     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2624 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2625 ( $as_echo "## ----------------------------------------- ##
2626 ## Report this to build-dev@openjdk.java.net ##
2627 ## ----------------------------------------- ##"
2628      ) | sed "s/^/$as_me: WARNING:     /" >&2
2629     ;;
2630 esac
2631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2632 $as_echo_n "checking for $2... " >&6; }
2633 if eval \${$3+:} false; then :
2634   $as_echo_n "(cached) " >&6
2635 else
2636   eval "$3=\$ac_header_compiler"
2637 fi
2638 eval ac_res=\$$3
2639                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2640 $as_echo "$ac_res" >&6; }
2641 fi
2642   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2643 
2644 } # ac_fn_cxx_check_header_mongrel
2645 
2646 # ac_fn_cxx_try_run LINENO
2647 # ------------------------
2648 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2649 # that executables *can* be run.
2650 ac_fn_cxx_try_run ()
2651 {
2652   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2653   if { { ac_try="$ac_link"
2654 case "(($ac_try" in
2655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2656   *) ac_try_echo=$ac_try;;
2657 esac
2658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2659 $as_echo "$ac_try_echo"; } >&5
2660   (eval "$ac_link") 2>&5
2661   ac_status=$?
2662   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2663   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2664   { { case "(($ac_try" in
2665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2666   *) ac_try_echo=$ac_try;;
2667 esac
2668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2669 $as_echo "$ac_try_echo"; } >&5
2670   (eval "$ac_try") 2>&5
2671   ac_status=$?
2672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2673   test $ac_status = 0; }; }; then :
2674   ac_retval=0
2675 else
2676   $as_echo "$as_me: program exited with status $ac_status" >&5
2677        $as_echo "$as_me: failed program was:" >&5
2678 sed 's/^/| /' conftest.$ac_ext >&5
2679 
2680        ac_retval=$ac_status
2681 fi
2682   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2683   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2684   as_fn_set_status $ac_retval
2685 
2686 } # ac_fn_cxx_try_run
2687 
2688 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2689 # ---------------------------------------------------------
2690 # Tests whether HEADER exists and can be compiled using the include files in
2691 # INCLUDES, setting the cache variable VAR accordingly.
2692 ac_fn_cxx_check_header_compile ()
2693 {
2694   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2696 $as_echo_n "checking for $2... " >&6; }
2697 if eval \${$3+:} false; then :
2698   $as_echo_n "(cached) " >&6
2699 else
2700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2701 /* end confdefs.h.  */
2702 $4
2703 #include <$2>
2704 _ACEOF
2705 if ac_fn_cxx_try_compile "$LINENO"; then :
2706   eval "$3=yes"
2707 else
2708   eval "$3=no"
2709 fi
2710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2711 fi
2712 eval ac_res=\$$3
2713                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2714 $as_echo "$ac_res" >&6; }
2715   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2716 
2717 } # ac_fn_cxx_check_header_compile
2718 
2719 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2720 # ----------------------------------------------
2721 # Tries to find the compile-time value of EXPR in a program that includes
2722 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2723 # computed
2724 ac_fn_cxx_compute_int ()
2725 {
2726   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2727   if test "$cross_compiling" = yes; then
2728     # Depending upon the size, compute the lo and hi bounds.
2729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2730 /* end confdefs.h.  */
2731 $4
2732 int
2733 main ()
2734 {
2735 static int test_array [1 - 2 * !(($2) >= 0)];
2736 test_array [0] = 0;
2737 return test_array [0];
2738 
2739   ;
2740   return 0;
2741 }
2742 _ACEOF
2743 if ac_fn_cxx_try_compile "$LINENO"; then :
2744   ac_lo=0 ac_mid=0
2745   while :; do
2746     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2747 /* end confdefs.h.  */
2748 $4
2749 int
2750 main ()
2751 {
2752 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2753 test_array [0] = 0;
2754 return test_array [0];
2755 
2756   ;
2757   return 0;
2758 }
2759 _ACEOF
2760 if ac_fn_cxx_try_compile "$LINENO"; then :
2761   ac_hi=$ac_mid; break
2762 else
2763   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2764                         if test $ac_lo -le $ac_mid; then
2765                           ac_lo= ac_hi=
2766                           break
2767                         fi
2768                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2769 fi
2770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2771   done
2772 else
2773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2774 /* end confdefs.h.  */
2775 $4
2776 int
2777 main ()
2778 {
2779 static int test_array [1 - 2 * !(($2) < 0)];
2780 test_array [0] = 0;
2781 return test_array [0];
2782 
2783   ;
2784   return 0;
2785 }
2786 _ACEOF
2787 if ac_fn_cxx_try_compile "$LINENO"; then :
2788   ac_hi=-1 ac_mid=-1
2789   while :; do
2790     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2791 /* end confdefs.h.  */
2792 $4
2793 int
2794 main ()
2795 {
2796 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2797 test_array [0] = 0;
2798 return test_array [0];
2799 
2800   ;
2801   return 0;
2802 }
2803 _ACEOF
2804 if ac_fn_cxx_try_compile "$LINENO"; then :
2805   ac_lo=$ac_mid; break
2806 else
2807   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2808                         if test $ac_mid -le $ac_hi; then
2809                           ac_lo= ac_hi=
2810                           break
2811                         fi
2812                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2813 fi
2814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2815   done
2816 else
2817   ac_lo= ac_hi=
2818 fi
2819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2820 fi
2821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2822 # Binary search between lo and hi bounds.
2823 while test "x$ac_lo" != "x$ac_hi"; do
2824   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2826 /* end confdefs.h.  */
2827 $4
2828 int
2829 main ()
2830 {
2831 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2832 test_array [0] = 0;
2833 return test_array [0];
2834 
2835   ;
2836   return 0;
2837 }
2838 _ACEOF
2839 if ac_fn_cxx_try_compile "$LINENO"; then :
2840   ac_hi=$ac_mid
2841 else
2842   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2843 fi
2844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2845 done
2846 case $ac_lo in #((
2847 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2848 '') ac_retval=1 ;;
2849 esac
2850   else
2851     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2852 /* end confdefs.h.  */
2853 $4
2854 static long int longval () { return $2; }
2855 static unsigned long int ulongval () { return $2; }
2856 #include <stdio.h>
2857 #include <stdlib.h>
2858 int
2859 main ()
2860 {
2861 
2862   FILE *f = fopen ("conftest.val", "w");
2863   if (! f)
2864     return 1;
2865   if (($2) < 0)
2866     {
2867       long int i = longval ();
2868       if (i != ($2))
2869         return 1;
2870       fprintf (f, "%ld", i);
2871     }
2872   else
2873     {
2874       unsigned long int i = ulongval ();
2875       if (i != ($2))
2876         return 1;
2877       fprintf (f, "%lu", i);
2878     }
2879   /* Do not output a trailing newline, as this causes \r\n confusion
2880      on some platforms.  */
2881   return ferror (f) || fclose (f) != 0;
2882 
2883   ;
2884   return 0;
2885 }
2886 _ACEOF
2887 if ac_fn_cxx_try_run "$LINENO"; then :
2888   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2889 else
2890   ac_retval=1
2891 fi
2892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2893   conftest.$ac_objext conftest.beam conftest.$ac_ext
2894 rm -f conftest.val
2895 
2896   fi
2897   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2898   as_fn_set_status $ac_retval
2899 
2900 } # ac_fn_cxx_compute_int
2901 
2902 # ac_fn_cxx_try_link LINENO
2903 # -------------------------
2904 # Try to link conftest.$ac_ext, and return whether this succeeded.
2905 ac_fn_cxx_try_link ()
2906 {
2907   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2908   rm -f conftest.$ac_objext conftest$ac_exeext
2909   if { { ac_try="$ac_link"
2910 case "(($ac_try" in
2911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912   *) ac_try_echo=$ac_try;;
2913 esac
2914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2915 $as_echo "$ac_try_echo"; } >&5
2916   (eval "$ac_link") 2>conftest.err
2917   ac_status=$?
2918   if test -s conftest.err; then
2919     grep -v '^ *+' conftest.err >conftest.er1
2920     cat conftest.er1 >&5
2921     mv -f conftest.er1 conftest.err
2922   fi
2923   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2924   test $ac_status = 0; } && {
2925          test -z "$ac_cxx_werror_flag" ||
2926          test ! -s conftest.err
2927        } && test -s conftest$ac_exeext && {
2928          test "$cross_compiling" = yes ||
2929          test -x conftest$ac_exeext
2930        }; then :
2931   ac_retval=0
2932 else
2933   $as_echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2935 
2936         ac_retval=1
2937 fi
2938   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2939   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2940   # interfere with the next link command; also delete a directory that is
2941   # left behind by Apple's compiler.  We do this before executing the actions.
2942   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2943   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2944   as_fn_set_status $ac_retval
2945 
2946 } # ac_fn_cxx_try_link
2947 
2948 # ac_fn_cxx_check_func LINENO FUNC VAR
2949 # ------------------------------------
2950 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2951 ac_fn_cxx_check_func ()
2952 {
2953   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2954   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2955 $as_echo_n "checking for $2... " >&6; }
2956 if eval \${$3+:} false; then :
2957   $as_echo_n "(cached) " >&6
2958 else
2959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2960 /* end confdefs.h.  */
2961 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2962    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2963 #define $2 innocuous_$2
2964 
2965 /* System header to define __stub macros and hopefully few prototypes,
2966     which can conflict with char $2 (); below.
2967     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2968     <limits.h> exists even on freestanding compilers.  */
2969 
2970 #ifdef __STDC__
2971 # include <limits.h>
2972 #else
2973 # include <assert.h>
2974 #endif
2975 
2976 #undef $2
2977 
2978 /* Override any GCC internal prototype to avoid an error.
2979    Use char because int might match the return type of a GCC
2980    builtin and then its argument prototype would still apply.  */
2981 #ifdef __cplusplus
2982 extern "C"
2983 #endif
2984 char $2 ();
2985 /* The GNU C library defines this for functions which it implements
2986     to always fail with ENOSYS.  Some functions are actually named
2987     something starting with __ and the normal name is an alias.  */
2988 #if defined __stub_$2 || defined __stub___$2
2989 choke me
2990 #endif
2991 
2992 int
2993 main ()
2994 {
2995 return $2 ();
2996   ;
2997   return 0;
2998 }
2999 _ACEOF
3000 if ac_fn_cxx_try_link "$LINENO"; then :
3001   eval "$3=yes"
3002 else
3003   eval "$3=no"
3004 fi
3005 rm -f core conftest.err conftest.$ac_objext \
3006     conftest$ac_exeext conftest.$ac_ext
3007 fi
3008 eval ac_res=\$$3
3009                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3010 $as_echo "$ac_res" >&6; }
3011   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3012 
3013 } # ac_fn_cxx_check_func
3014 
3015 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
3016 # -------------------------------------------------------
3017 # Tests whether HEADER exists and can be compiled using the include files in
3018 # INCLUDES, setting the cache variable VAR accordingly.
3019 ac_fn_c_check_header_compile ()
3020 {
3021   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3023 $as_echo_n "checking for $2... " >&6; }
3024 if eval \${$3+:} false; then :
3025   $as_echo_n "(cached) " >&6
3026 else
3027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3028 /* end confdefs.h.  */
3029 $4
3030 #include <$2>
3031 _ACEOF
3032 if ac_fn_c_try_compile "$LINENO"; then :
3033   eval "$3=yes"
3034 else
3035   eval "$3=no"
3036 fi
3037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3038 fi
3039 eval ac_res=\$$3
3040                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3041 $as_echo "$ac_res" >&6; }
3042   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3043 
3044 } # ac_fn_c_check_header_compile
3045 cat >config.log <<_ACEOF
3046 This file contains any messages produced by compilers while
3047 running configure, to aid debugging if configure makes a mistake.
3048 
3049 It was created by OpenJDK $as_me jdk9, which was
3050 generated by GNU Autoconf 2.69.  Invocation command line was
3051 
3052   $ $0 $@
3053 
3054 _ACEOF
3055 exec 5>>config.log
3056 {
3057 cat <<_ASUNAME
3058 ## --------- ##
3059 ## Platform. ##
3060 ## --------- ##
3061 
3062 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3063 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3064 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3065 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3066 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3067 
3068 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3069 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3070 
3071 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3072 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3073 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3074 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3075 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3076 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3077 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3078 
3079 _ASUNAME
3080 
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 for as_dir in $PATH
3083 do
3084   IFS=$as_save_IFS
3085   test -z "$as_dir" && as_dir=.
3086     $as_echo "PATH: $as_dir"
3087   done
3088 IFS=$as_save_IFS
3089 
3090 } >&5
3091 
3092 cat >&5 <<_ACEOF
3093 
3094 
3095 ## ----------- ##
3096 ## Core tests. ##
3097 ## ----------- ##
3098 
3099 _ACEOF
3100 
3101 
3102 # Keep a trace of the command line.
3103 # Strip out --no-create and --no-recursion so they do not pile up.
3104 # Strip out --silent because we don't want to record it for future runs.
3105 # Also quote any args containing shell meta-characters.
3106 # Make two passes to allow for proper duplicate-argument suppression.
3107 ac_configure_args=
3108 ac_configure_args0=
3109 ac_configure_args1=
3110 ac_must_keep_next=false
3111 for ac_pass in 1 2
3112 do
3113   for ac_arg
3114   do
3115     case $ac_arg in
3116     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3117     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3118     | -silent | --silent | --silen | --sile | --sil)
3119       continue ;;
3120     *\'*)
3121       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3122     esac
3123     case $ac_pass in
3124     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3125     2)
3126       as_fn_append ac_configure_args1 " '$ac_arg'"
3127       if test $ac_must_keep_next = true; then
3128         ac_must_keep_next=false # Got value, back to normal.
3129       else
3130         case $ac_arg in
3131           *=* | --config-cache | -C | -disable-* | --disable-* \
3132           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3133           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3134           | -with-* | --with-* | -without-* | --without-* | --x)
3135             case "$ac_configure_args0 " in
3136               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3137             esac
3138             ;;
3139           -* ) ac_must_keep_next=true ;;
3140         esac
3141       fi
3142       as_fn_append ac_configure_args " '$ac_arg'"
3143       ;;
3144     esac
3145   done
3146 done
3147 { ac_configure_args0=; unset ac_configure_args0;}
3148 { ac_configure_args1=; unset ac_configure_args1;}
3149 
3150 # When interrupted or exit'd, cleanup temporary files, and complete
3151 # config.log.  We remove comments because anyway the quotes in there
3152 # would cause problems or look ugly.
3153 # WARNING: Use '\'' to represent an apostrophe within the trap.
3154 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3155 trap 'exit_status=$?
3156   # Save into config.log some information that might help in debugging.
3157   {
3158     echo
3159 
3160     $as_echo "## ---------------- ##
3161 ## Cache variables. ##
3162 ## ---------------- ##"
3163     echo
3164     # The following way of writing the cache mishandles newlines in values,
3165 (
3166   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3167     eval ac_val=\$$ac_var
3168     case $ac_val in #(
3169     *${as_nl}*)
3170       case $ac_var in #(
3171       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3172 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3173       esac
3174       case $ac_var in #(
3175       _ | IFS | as_nl) ;; #(
3176       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3177       *) { eval $ac_var=; unset $ac_var;} ;;
3178       esac ;;
3179     esac
3180   done
3181   (set) 2>&1 |
3182     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3183     *${as_nl}ac_space=\ *)
3184       sed -n \
3185         "s/'\''/'\''\\\\'\'''\''/g;
3186           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3187       ;; #(
3188     *)
3189       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3190       ;;
3191     esac |
3192     sort
3193 )
3194     echo
3195 
3196     $as_echo "## ----------------- ##
3197 ## Output variables. ##
3198 ## ----------------- ##"
3199     echo
3200     for ac_var in $ac_subst_vars
3201     do
3202       eval ac_val=\$$ac_var
3203       case $ac_val in
3204       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3205       esac
3206       $as_echo "$ac_var='\''$ac_val'\''"
3207     done | sort
3208     echo
3209 
3210     if test -n "$ac_subst_files"; then
3211       $as_echo "## ------------------- ##
3212 ## File substitutions. ##
3213 ## ------------------- ##"
3214       echo
3215       for ac_var in $ac_subst_files
3216       do
3217         eval ac_val=\$$ac_var
3218         case $ac_val in
3219         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3220         esac
3221         $as_echo "$ac_var='\''$ac_val'\''"
3222       done | sort
3223       echo
3224     fi
3225 
3226     if test -s confdefs.h; then
3227       $as_echo "## ----------- ##
3228 ## confdefs.h. ##
3229 ## ----------- ##"
3230       echo
3231       cat confdefs.h
3232       echo
3233     fi
3234     test "$ac_signal" != 0 &&
3235       $as_echo "$as_me: caught signal $ac_signal"
3236     $as_echo "$as_me: exit $exit_status"
3237   } >&5
3238   rm -f core *.core core.conftest.* &&
3239     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3240     exit $exit_status
3241 ' 0
3242 for ac_signal in 1 2 13 15; do
3243   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3244 done
3245 ac_signal=0
3246 
3247 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3248 rm -f -r conftest* confdefs.h
3249 
3250 $as_echo "/* confdefs.h */" > confdefs.h
3251 
3252 # Predefined preprocessor variables.
3253 
3254 cat >>confdefs.h <<_ACEOF
3255 #define PACKAGE_NAME "$PACKAGE_NAME"
3256 _ACEOF
3257 
3258 cat >>confdefs.h <<_ACEOF
3259 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3260 _ACEOF
3261 
3262 cat >>confdefs.h <<_ACEOF
3263 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3264 _ACEOF
3265 
3266 cat >>confdefs.h <<_ACEOF
3267 #define PACKAGE_STRING "$PACKAGE_STRING"
3268 _ACEOF
3269 
3270 cat >>confdefs.h <<_ACEOF
3271 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3272 _ACEOF
3273 
3274 cat >>confdefs.h <<_ACEOF
3275 #define PACKAGE_URL "$PACKAGE_URL"
3276 _ACEOF
3277 
3278 
3279 # Let the site file select an alternate cache file if it wants to.
3280 # Prefer an explicitly selected file to automatically selected ones.
3281 ac_site_file1=NONE
3282 ac_site_file2=NONE
3283 if test -n "$CONFIG_SITE"; then
3284   # We do not want a PATH search for config.site.
3285   case $CONFIG_SITE in #((
3286     -*)  ac_site_file1=./$CONFIG_SITE;;
3287     */*) ac_site_file1=$CONFIG_SITE;;
3288     *)   ac_site_file1=./$CONFIG_SITE;;
3289   esac
3290 elif test "x$prefix" != xNONE; then
3291   ac_site_file1=$prefix/share/config.site
3292   ac_site_file2=$prefix/etc/config.site
3293 else
3294   ac_site_file1=$ac_default_prefix/share/config.site
3295   ac_site_file2=$ac_default_prefix/etc/config.site
3296 fi
3297 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3298 do
3299   test "x$ac_site_file" = xNONE && continue
3300   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3301     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3302 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3303     sed 's/^/| /' "$ac_site_file" >&5
3304     . "$ac_site_file" \
3305       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3307 as_fn_error $? "failed to load site script $ac_site_file
3308 See \`config.log' for more details" "$LINENO" 5; }
3309   fi
3310 done
3311 
3312 if test -r "$cache_file"; then
3313   # Some versions of bash will fail to source /dev/null (special files
3314   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3315   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3316     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3317 $as_echo "$as_me: loading cache $cache_file" >&6;}
3318     case $cache_file in
3319       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3320       *)                      . "./$cache_file";;
3321     esac
3322   fi
3323 else
3324   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3325 $as_echo "$as_me: creating cache $cache_file" >&6;}
3326   >$cache_file
3327 fi
3328 
3329 # Check that the precious variables saved in the cache have kept the same
3330 # value.
3331 ac_cache_corrupted=false
3332 for ac_var in $ac_precious_vars; do
3333   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3334   eval ac_new_set=\$ac_env_${ac_var}_set
3335   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3336   eval ac_new_val=\$ac_env_${ac_var}_value
3337   case $ac_old_set,$ac_new_set in
3338     set,)
3339       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3340 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3341       ac_cache_corrupted=: ;;
3342     ,set)
3343       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3344 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3345       ac_cache_corrupted=: ;;
3346     ,);;
3347     *)
3348       if test "x$ac_old_val" != "x$ac_new_val"; then
3349         # differences in whitespace do not lead to failure.
3350         ac_old_val_w=`echo x $ac_old_val`
3351         ac_new_val_w=`echo x $ac_new_val`
3352         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3353           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3354 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3355           ac_cache_corrupted=:
3356         else
3357           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3358 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3359           eval $ac_var=\$ac_old_val
3360         fi
3361         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3362 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3363         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3364 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3365       fi;;
3366   esac
3367   # Pass precious variables to config.status.
3368   if test "$ac_new_set" = set; then
3369     case $ac_new_val in
3370     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3371     *) ac_arg=$ac_var=$ac_new_val ;;
3372     esac
3373     case " $ac_configure_args " in
3374       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3375       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3376     esac
3377   fi
3378 done
3379 if $ac_cache_corrupted; then
3380   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3382   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3383 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3384   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3385 fi
3386 ## -------------------- ##
3387 ## Main body of script. ##
3388 ## -------------------- ##
3389 
3390 ac_ext=c
3391 ac_cpp='$CPP $CPPFLAGS'
3392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395 
3396 
3397 
3398 ac_aux_dir=
3399 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3400   if test -f "$ac_dir/install-sh"; then
3401     ac_aux_dir=$ac_dir
3402     ac_install_sh="$ac_aux_dir/install-sh -c"
3403     break
3404   elif test -f "$ac_dir/install.sh"; then
3405     ac_aux_dir=$ac_dir
3406     ac_install_sh="$ac_aux_dir/install.sh -c"
3407     break
3408   elif test -f "$ac_dir/shtool"; then
3409     ac_aux_dir=$ac_dir
3410     ac_install_sh="$ac_aux_dir/shtool install -c"
3411     break
3412   fi
3413 done
3414 if test -z "$ac_aux_dir"; then
3415   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
3416 fi
3417 
3418 # These three variables are undocumented and unsupported,
3419 # and are intended to be withdrawn in a future Autoconf release.
3420 # They can cause serious problems if a builder's source tree is in a directory
3421 # whose full name contains unusual characters.
3422 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3423 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3424 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3425 
3426 
3427 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3428 
3429 #
3430 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3431 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3432 #
3433 # This code is free software; you can redistribute it and/or modify it
3434 # under the terms of the GNU General Public License version 2 only, as
3435 # published by the Free Software Foundation.  Oracle designates this
3436 # particular file as subject to the "Classpath" exception as provided
3437 # by Oracle in the LICENSE file that accompanied this code.
3438 #
3439 # This code is distributed in the hope that it will be useful, but WITHOUT
3440 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3441 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3442 # version 2 for more details (a copy is included in the LICENSE file that
3443 # accompanied this code).
3444 #
3445 # You should have received a copy of the GNU General Public License version
3446 # 2 along with this work; if not, write to the Free Software Foundation,
3447 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3448 #
3449 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3450 # or visit www.oracle.com if you need additional information or have any
3451 # questions.
3452 #
3453 
3454 #
3455 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3456 #
3457 # This program is free software; you can redistribute it and/or modify
3458 # it under the terms of the GNU General Public License as published by
3459 # the Free Software Foundation; either version 2 of the License, or
3460 # (at your option) any later version.
3461 #
3462 # This program is distributed in the hope that it will be useful, but
3463 # WITHOUT ANY WARRANTY; without even the implied warranty of
3464 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3465 # General Public License for more details.
3466 #
3467 # You should have received a copy of the GNU General Public License
3468 # along with this program; if not, write to the Free Software
3469 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3470 #
3471 # As a special exception to the GNU General Public License, if you
3472 # distribute this file as part of a program that contains a
3473 # configuration script generated by Autoconf, you may include it under
3474 # the same distribution terms that you use for the rest of that program.
3475 
3476 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3477 # ----------------------------------
3478 # PKG_PROG_PKG_CONFIG
3479 
3480 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3481 #
3482 # Check to see whether a particular set of modules exists.  Similar
3483 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3484 #
3485 #
3486 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3487 # this or PKG_CHECK_MODULES is called, or make sure to call
3488 # PKG_CHECK_EXISTS manually
3489 # --------------------------------------------------------------
3490 
3491 
3492 
3493 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3494 # ---------------------------------------------
3495 # _PKG_CONFIG
3496 
3497 # _PKG_SHORT_ERRORS_SUPPORTED
3498 # -----------------------------
3499 # _PKG_SHORT_ERRORS_SUPPORTED
3500 
3501 
3502 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3503 # [ACTION-IF-NOT-FOUND])
3504 #
3505 #
3506 # Note that if there is a possibility the first call to
3507 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3508 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3509 #
3510 #
3511 # --------------------------------------------------------------
3512 # PKG_CHECK_MODULES
3513 
3514 
3515 # Include these first...
3516 #
3517 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3518 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3519 #
3520 # This code is free software; you can redistribute it and/or modify it
3521 # under the terms of the GNU General Public License version 2 only, as
3522 # published by the Free Software Foundation.  Oracle designates this
3523 # particular file as subject to the "Classpath" exception as provided
3524 # by Oracle in the LICENSE file that accompanied this code.
3525 #
3526 # This code is distributed in the hope that it will be useful, but WITHOUT
3527 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3528 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3529 # version 2 for more details (a copy is included in the LICENSE file that
3530 # accompanied this code).
3531 #
3532 # You should have received a copy of the GNU General Public License version
3533 # 2 along with this work; if not, write to the Free Software Foundation,
3534 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3535 #
3536 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3537 # or visit www.oracle.com if you need additional information or have any
3538 # questions.
3539 #
3540 
3541 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3542 # If so, then append $1 to $2 \
3543 # Also set JVM_ARG_OK to true/false depending on outcome.
3544 
3545 
3546 # Appends a string to a path variable, only adding the : when needed.
3547 
3548 
3549 # Prepends a string to a path variable, only adding the : when needed.
3550 
3551 
3552 # This will make sure the given variable points to a full and proper
3553 # path. This means:
3554 # 1) There will be no spaces in the path. On unix platforms,
3555 #    spaces in the path will result in an error. On Windows,
3556 #    the path will be rewritten using short-style to be space-free.
3557 # 2) The path will be absolute, and it will be in unix-style (on
3558 #     cygwin).
3559 # $1: The name of the variable to fix
3560 
3561 
3562 # This will make sure the given variable points to a executable
3563 # with a full and proper path. This means:
3564 # 1) There will be no spaces in the path. On unix platforms,
3565 #    spaces in the path will result in an error. On Windows,
3566 #    the path will be rewritten using short-style to be space-free.
3567 # 2) The path will be absolute, and it will be in unix-style (on
3568 #     cygwin).
3569 # Any arguments given to the executable is preserved.
3570 # If the input variable does not have a directory specification, then
3571 # it need to be in the PATH.
3572 # $1: The name of the variable to fix
3573 
3574 
3575 
3576 
3577 # Register a --with argument but mark it as deprecated
3578 # $1: The name of the with argument to deprecate, not including --with-
3579 
3580 
3581 # Register a --enable argument but mark it as deprecated
3582 # $1: The name of the with argument to deprecate, not including --enable-
3583 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3584 
3585 
3586 
3587 
3588 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3589 # $1: variable to check
3590 
3591 
3592 # Check that there are no unprocessed overridden variables left.
3593 # If so, they are an incorrect argument and we will exit with an error.
3594 
3595 
3596 # Setup a tool for the given variable. If correctly specified by the user,
3597 # use that value, otherwise search for the tool using the supplied code snippet.
3598 # $1: variable to set
3599 # $2: code snippet to call to look for the tool
3600 
3601 
3602 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3603 # $1: variable to set
3604 # $2: executable name (or list of names) to look for
3605 
3606 
3607 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3608 # $1: variable to set
3609 # $2: executable name (or list of names) to look for
3610 
3611 
3612 # Like BASIC_PATH_PROGS but fails if no tool was found.
3613 # $1: variable to set
3614 # $2: executable name (or list of names) to look for
3615 
3616 
3617 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3618 # $1: variable to set
3619 # $2: autoconf macro to call to look for the special tool
3620 
3621 
3622 # Setup the most fundamental tools that relies on not much else to set up,
3623 # but is used by much of the early bootstrap code.
3624 
3625 
3626 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3627 
3628 
3629 
3630 
3631 
3632 
3633 
3634 
3635 
3636 #%%% Simple tools %%%
3637 
3638 # Check if we have found a usable version of make
3639 # $1: the path to a potential make binary (or empty)
3640 # $2: the description on how we found this
3641 
3642 
3643 
3644 
3645 # Goes looking for a usable version of GNU make.
3646 
3647 
3648 
3649 
3650 
3651 
3652 # Check if build directory is on local disk. If not possible to determine,
3653 # we prefer to claim it's local.
3654 # Argument 1: directory to test
3655 # Argument 2: what to do if it is on local disk
3656 # Argument 3: what to do otherwise (remote disk or failure)
3657 
3658 
3659 # Check that source files have basic read permissions set. This might
3660 # not be the case in cygwin in certain conditions.
3661 
3662 
3663 
3664 
3665 # Check for support for specific options in bash
3666 
3667 
3668 #
3669 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3670 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3671 #
3672 # This code is free software; you can redistribute it and/or modify it
3673 # under the terms of the GNU General Public License version 2 only, as
3674 # published by the Free Software Foundation.  Oracle designates this
3675 # particular file as subject to the "Classpath" exception as provided
3676 # by Oracle in the LICENSE file that accompanied this code.
3677 #
3678 # This code is distributed in the hope that it will be useful, but WITHOUT
3679 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3680 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3681 # version 2 for more details (a copy is included in the LICENSE file that
3682 # accompanied this code).
3683 #
3684 # You should have received a copy of the GNU General Public License version
3685 # 2 along with this work; if not, write to the Free Software Foundation,
3686 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3687 #
3688 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3689 # or visit www.oracle.com if you need additional information or have any
3690 # questions.
3691 #
3692 
3693 
3694 
3695 
3696 
3697 # Helper function which possibly converts a path using DOS-style short mode.
3698 # If so, the updated path is stored in $new_path.
3699 # $1: The path to check
3700 
3701 
3702 # Helper function which possibly converts a path using DOS-style short mode.
3703 # If so, the updated path is stored in $new_path.
3704 # $1: The path to check
3705 
3706 
3707 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3708 # and could probably be heavily simplified. However, all changes in this
3709 # area tend to need lot of testing in different scenarios, and in lack of
3710 # proper unit testing, cleaning this up has not been deemed worth the effort
3711 # at the moment.
3712 
3713 
3714 
3715 
3716 
3717 
3718 
3719 
3720 
3721 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3722 
3723 
3724 
3725 
3726 #
3727 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3728 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3729 #
3730 # This code is free software; you can redistribute it and/or modify it
3731 # under the terms of the GNU General Public License version 2 only, as
3732 # published by the Free Software Foundation.  Oracle designates this
3733 # particular file as subject to the "Classpath" exception as provided
3734 # by Oracle in the LICENSE file that accompanied this code.
3735 #
3736 # This code is distributed in the hope that it will be useful, but WITHOUT
3737 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3738 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3739 # version 2 for more details (a copy is included in the LICENSE file that
3740 # accompanied this code).
3741 #
3742 # You should have received a copy of the GNU General Public License version
3743 # 2 along with this work; if not, write to the Free Software Foundation,
3744 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3745 #
3746 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3747 # or visit www.oracle.com if you need additional information or have any
3748 # questions.
3749 #
3750 
3751 
3752 
3753 
3754 
3755 
3756 
3757 
3758 
3759 
3760 
3761 # ... then the rest
3762 #
3763 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3764 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3765 #
3766 # This code is free software; you can redistribute it and/or modify it
3767 # under the terms of the GNU General Public License version 2 only, as
3768 # published by the Free Software Foundation.  Oracle designates this
3769 # particular file as subject to the "Classpath" exception as provided
3770 # by Oracle in the LICENSE file that accompanied this code.
3771 #
3772 # This code is distributed in the hope that it will be useful, but WITHOUT
3773 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3774 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3775 # version 2 for more details (a copy is included in the LICENSE file that
3776 # accompanied this code).
3777 #
3778 # You should have received a copy of the GNU General Public License version
3779 # 2 along with this work; if not, write to the Free Software Foundation,
3780 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3781 #
3782 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3783 # or visit www.oracle.com if you need additional information or have any
3784 # questions.
3785 #
3786 
3787 ########################################################################
3788 # This file handles detection of the Boot JDK. The Boot JDK detection
3789 # process has been developed as a response to solve a complex real-world
3790 # problem. Initially, it was simple, but it has grown as platform after
3791 # platform, idiosyncracy after idiosyncracy has been supported.
3792 #
3793 # The basic idea is this:
3794 # 1) You need an acceptable *) JDK to use as a Boot JDK
3795 # 2) There are several ways to locate a JDK, that are mostly platform
3796 #    dependent **)
3797 # 3) You can have multiple JDKs installed
3798 # 4) If possible, configure should try to dig out an acceptable JDK
3799 #    automatically, without having to resort to command-line options
3800 #
3801 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3802 #     javac) and not a JRE, etc.
3803 #
3804 # **) On Windows we typically use a well-known path.
3805 #     On MacOSX we typically use the tool java_home.
3806 #     On Linux we typically find javac in the $PATH, and then follow a
3807 #     chain of symlinks that often ends up in a real JDK.
3808 #
3809 # This leads to the code where we check in different ways to locate a
3810 # JDK, and if one is found, check if it is acceptable. If not, we print
3811 # our reasons for rejecting it (useful when debugging non-working
3812 # configure situations) and continue checking the next one.
3813 ########################################################################
3814 
3815 # Execute the check given as argument, and verify the result
3816 # If the Boot JDK was previously found, do nothing
3817 # $1 A command line (typically autoconf macro) to execute
3818 
3819 
3820 # Test: Is bootjdk explicitely set by command line arguments?
3821 
3822 
3823 # Test: Is bootjdk available from builddeps?
3824 
3825 
3826 # Test: Is $JAVA_HOME set?
3827 
3828 
3829 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3830 
3831 
3832 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3833 # $1: Argument to the java_home binary (optional)
3834 
3835 
3836 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3837 
3838 
3839 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3840 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3841 # $1 = Path to directory containing jdk installations.
3842 # $2 = String to append to the found JDK directory to get the proper JDK home
3843 
3844 
3845 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3846 # environmental variable as base for where to look.
3847 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3848 
3849 
3850 # Test: Is there a JDK installed in default, well-known locations?
3851 
3852 
3853 # Check that a command-line tool in the Boot JDK is correct
3854 # $1 = name of variable to assign
3855 # $2 = name of binary
3856 
3857 
3858 ###############################################################################
3859 #
3860 # We need a Boot JDK to bootstrap the build.
3861 #
3862 
3863 
3864 
3865 
3866 
3867 #
3868 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3869 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3870 #
3871 # This code is free software; you can redistribute it and/or modify it
3872 # under the terms of the GNU General Public License version 2 only, as
3873 # published by the Free Software Foundation.  Oracle designates this
3874 # particular file as subject to the "Classpath" exception as provided
3875 # by Oracle in the LICENSE file that accompanied this code.
3876 #
3877 # This code is distributed in the hope that it will be useful, but WITHOUT
3878 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3879 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3880 # version 2 for more details (a copy is included in the LICENSE file that
3881 # accompanied this code).
3882 #
3883 # You should have received a copy of the GNU General Public License version
3884 # 2 along with this work; if not, write to the Free Software Foundation,
3885 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3886 #
3887 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3888 # or visit www.oracle.com if you need additional information or have any
3889 # questions.
3890 #
3891 
3892 
3893 
3894 
3895 
3896 
3897 
3898 
3899 
3900 
3901 
3902 
3903 
3904 
3905 
3906 
3907 
3908 
3909 
3910 
3911 #
3912 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3913 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3914 #
3915 # This code is free software; you can redistribute it and/or modify it
3916 # under the terms of the GNU General Public License version 2 only, as
3917 # published by the Free Software Foundation.  Oracle designates this
3918 # particular file as subject to the "Classpath" exception as provided
3919 # by Oracle in the LICENSE file that accompanied this code.
3920 #
3921 # This code is distributed in the hope that it will be useful, but WITHOUT
3922 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3923 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3924 # version 2 for more details (a copy is included in the LICENSE file that
3925 # accompanied this code).
3926 #
3927 # You should have received a copy of the GNU General Public License version
3928 # 2 along with this work; if not, write to the Free Software Foundation,
3929 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3930 #
3931 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3932 # or visit www.oracle.com if you need additional information or have any
3933 # questions.
3934 #
3935 
3936 
3937 
3938 
3939 
3940 # Documentation on common flags used for solstudio in HIGHEST.
3941 #
3942 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
3943 #          done with care, there are some assumptions below that need to
3944 #          be understood about the use of pointers, and IEEE behavior.
3945 #
3946 # -fns: Use non-standard floating point mode (not IEEE 754)
3947 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
3948 # -fsingle: Use single precision floating point with 'float'
3949 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
3950 #   (Source with excessing pointer casting and data access with mixed
3951 #    pointer types are not recommended)
3952 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
3953 #   (If you expect perfect errno behavior, do not use this)
3954 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
3955 # -xrestrict: Pointer parameters to functions do not overlap
3956 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
3957 #    If you pass in multiple pointers to the same data, do not use this)
3958 # -xlibmil: Inline some library routines
3959 #   (If you expect perfect errno behavior, do not use this)
3960 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
3961 #   (If you expect perfect errno behavior, do not use this)
3962 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
3963 
3964     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
3965     # Bug?
3966     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
3967     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
3968     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
3969     #fi
3970 
3971 
3972 
3973 
3974 
3975 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3976 #                                   [RUN-IF-FALSE])
3977 # ------------------------------------------------------------
3978 # Check that the c and c++ compilers support an argument
3979 
3980 
3981 # FLAGS_LINKER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3982 #                                    [RUN-IF-FALSE])
3983 # ------------------------------------------------------------
3984 # Check that the linker support an argument
3985 
3986 
3987 
3988 
3989 #
3990 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3991 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3992 #
3993 # This code is free software; you can redistribute it and/or modify it
3994 # under the terms of the GNU General Public License version 2 only, as
3995 # published by the Free Software Foundation.  Oracle designates this
3996 # particular file as subject to the "Classpath" exception as provided
3997 # by Oracle in the LICENSE file that accompanied this code.
3998 #
3999 # This code is distributed in the hope that it will be useful, but WITHOUT
4000 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4001 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4002 # version 2 for more details (a copy is included in the LICENSE file that
4003 # accompanied this code).
4004 #
4005 # You should have received a copy of the GNU General Public License version
4006 # 2 along with this work; if not, write to the Free Software Foundation,
4007 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4008 #
4009 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4010 # or visit www.oracle.com if you need additional information or have any
4011 # questions.
4012 #
4013 
4014 
4015 
4016 
4017 
4018 cygwin_help() {
4019   case $1 in
4020     unzip)
4021       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
4022       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4023       ;;
4024     zip)
4025       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
4026       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4027       ;;
4028     make)
4029       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
4030       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
4031       ;;
4032     freetype)
4033       HELP_MSG="
4034 The freetype library can now be build during the configure process.
4035 Download the freetype sources and unpack them into an arbitrary directory:
4036 
4037 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
4038 tar -xzf freetype-2.5.3.tar.gz
4039 
4040 Then run configure with '--with-freetype-src=<freetype_src>'. This will
4041 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
4042 builds or into '<freetype_src>/lib32' for 32-bit builds.
4043 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
4044 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds."
4045       ;;
4046   esac
4047 }
4048 
4049 msys_help() {
4050   PKGHANDLER_COMMAND=""
4051 }
4052 
4053 apt_help() {
4054   case $1 in
4055     devkit)
4056       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
4057     openjdk)
4058       PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
4059     alsa)
4060       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
4061     cups)
4062       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
4063     freetype)
4064       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
4065     pulse)
4066       PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
4067     x11)
4068       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
4069     ccache)
4070       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
4071   esac
4072 }
4073 
4074 yum_help() {
4075   case $1 in
4076     devkit)
4077       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
4078     openjdk)
4079       PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
4080     alsa)
4081       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
4082     cups)
4083       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
4084     freetype)
4085       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
4086     pulse)
4087       PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;;
4088     x11)
4089       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;;
4090     ccache)
4091       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
4092   esac
4093 }
4094 
4095 port_help() {
4096   PKGHANDLER_COMMAND=""
4097 }
4098 
4099 pkgutil_help() {
4100   PKGHANDLER_COMMAND=""
4101 }
4102 
4103 pkgadd_help() {
4104   PKGHANDLER_COMMAND=""
4105 }
4106 
4107 # This function will check if we're called from the "configure" wrapper while
4108 # printing --help. If so, we will print out additional information that can
4109 # only be extracted within the autoconf script, and then exit. This must be
4110 # called at the very beginning in configure.ac.
4111 
4112 
4113 
4114 
4115 
4116 
4117 #
4118 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
4119 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4120 #
4121 # This code is free software; you can redistribute it and/or modify it
4122 # under the terms of the GNU General Public License version 2 only, as
4123 # published by the Free Software Foundation.  Oracle designates this
4124 # particular file as subject to the "Classpath" exception as provided
4125 # by Oracle in the LICENSE file that accompanied this code.
4126 #
4127 # This code is distributed in the hope that it will be useful, but WITHOUT
4128 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4129 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4130 # version 2 for more details (a copy is included in the LICENSE file that
4131 # accompanied this code).
4132 #
4133 # You should have received a copy of the GNU General Public License version
4134 # 2 along with this work; if not, write to the Free Software Foundation,
4135 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4136 #
4137 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4138 # or visit www.oracle.com if you need additional information or have any
4139 # questions.
4140 #
4141 
4142 
4143 
4144 
4145 
4146 
4147 
4148 
4149 
4150 
4151 ###############################################################################
4152 #
4153 # Should we build only OpenJDK even if closed sources are present?
4154 #
4155 
4156 
4157 
4158 
4159 ###############################################################################
4160 #
4161 # Setup version numbers
4162 #
4163 
4164 
4165 
4166 
4167 
4168 
4169 #
4170 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
4171 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4172 #
4173 # This code is free software; you can redistribute it and/or modify it
4174 # under the terms of the GNU General Public License version 2 only, as
4175 # published by the Free Software Foundation.  Oracle designates this
4176 # particular file as subject to the "Classpath" exception as provided
4177 # by Oracle in the LICENSE file that accompanied this code.
4178 #
4179 # This code is distributed in the hope that it will be useful, but WITHOUT
4180 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4181 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4182 # version 2 for more details (a copy is included in the LICENSE file that
4183 # accompanied this code).
4184 #
4185 # You should have received a copy of the GNU General Public License version
4186 # 2 along with this work; if not, write to the Free Software Foundation,
4187 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4188 #
4189 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4190 # or visit www.oracle.com if you need additional information or have any
4191 # questions.
4192 #
4193 
4194 
4195 
4196 
4197 
4198 
4199 
4200 
4201 
4202 
4203 
4204 
4205 
4206 
4207 
4208 
4209 
4210 
4211 
4212 
4213 
4214 #
4215 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4216 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4217 #
4218 # This code is free software; you can redistribute it and/or modify it
4219 # under the terms of the GNU General Public License version 2 only, as
4220 # published by the Free Software Foundation.  Oracle designates this
4221 # particular file as subject to the "Classpath" exception as provided
4222 # by Oracle in the LICENSE file that accompanied this code.
4223 #
4224 # This code is distributed in the hope that it will be useful, but WITHOUT
4225 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4226 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4227 # version 2 for more details (a copy is included in the LICENSE file that
4228 # accompanied this code).
4229 #
4230 # You should have received a copy of the GNU General Public License version
4231 # 2 along with this work; if not, write to the Free Software Foundation,
4232 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4233 #
4234 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4235 # or visit www.oracle.com if you need additional information or have any
4236 # questions.
4237 #
4238 
4239 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4240 # Converts autoconf style CPU name to OpenJDK style, into
4241 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4242 
4243 
4244 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4245 # Converts autoconf style OS name to OpenJDK style, into
4246 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV.
4247 
4248 
4249 # Expects $host_os $host_cpu $build_os and $build_cpu
4250 # and $with_target_bits to have been setup!
4251 #
4252 # Translate the standard triplet(quadruplet) definition
4253 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4254 # OPENJDK_BUILD_OS, etc.
4255 
4256 
4257 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4258 # accordingly. Must be done after setting up build and target system, but before
4259 # doing anything else with these values.
4260 
4261 
4262 # Setup the legacy variables, for controlling the old makefiles.
4263 #
4264 
4265 
4266 
4267 
4268 #%%% Build and target systems %%%
4269 
4270 
4271 
4272 
4273 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4274 # Add -mX to various FLAGS variables.
4275 
4276 
4277 
4278 
4279 
4280 
4281 #
4282 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4283 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4284 #
4285 # This code is free software; you can redistribute it and/or modify it
4286 # under the terms of the GNU General Public License version 2 only, as
4287 # published by the Free Software Foundation.  Oracle designates this
4288 # particular file as subject to the "Classpath" exception as provided
4289 # by Oracle in the LICENSE file that accompanied this code.
4290 #
4291 # This code is distributed in the hope that it will be useful, but WITHOUT
4292 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4293 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4294 # version 2 for more details (a copy is included in the LICENSE file that
4295 # accompanied this code).
4296 #
4297 # You should have received a copy of the GNU General Public License version
4298 # 2 along with this work; if not, write to the Free Software Foundation,
4299 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4300 #
4301 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4302 # or visit www.oracle.com if you need additional information or have any
4303 # questions.
4304 #
4305 
4306 
4307 
4308 
4309 
4310 
4311 
4312 
4313 #
4314 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4315 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4316 #
4317 # This code is free software; you can redistribute it and/or modify it
4318 # under the terms of the GNU General Public License version 2 only, as
4319 # published by the Free Software Foundation.  Oracle designates this
4320 # particular file as subject to the "Classpath" exception as provided
4321 # by Oracle in the LICENSE file that accompanied this code.
4322 #
4323 # This code is distributed in the hope that it will be useful, but WITHOUT
4324 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4325 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4326 # version 2 for more details (a copy is included in the LICENSE file that
4327 # accompanied this code).
4328 #
4329 # You should have received a copy of the GNU General Public License version
4330 # 2 along with this work; if not, write to the Free Software Foundation,
4331 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4332 #
4333 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4334 # or visit www.oracle.com if you need additional information or have any
4335 # questions.
4336 #
4337 
4338 ########################################################################
4339 # This file is responsible for detecting, verifying and setting up the
4340 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4341 # proper paths to the binaries, but it will not setup any flags.
4342 #
4343 # The binaries used is determined by the toolchain type, which is the family of
4344 # compilers and related tools that are used.
4345 ########################################################################
4346 
4347 
4348 # All valid toolchains, regardless of platform (used by help.m4)
4349 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4350 
4351 # These toolchains are valid on different platforms
4352 VALID_TOOLCHAINS_linux="gcc clang"
4353 VALID_TOOLCHAINS_solaris="solstudio"
4354 VALID_TOOLCHAINS_macosx="gcc clang"
4355 VALID_TOOLCHAINS_aix="xlc"
4356 VALID_TOOLCHAINS_windows="microsoft"
4357 
4358 # Toolchain descriptions
4359 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4360 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4361 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4362 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4363 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4364 
4365 # Setup a number of variables describing how native output files are
4366 # named on this platform/toolchain.
4367 
4368 
4369 # Determine which toolchain type to use, and make sure it is valid for this
4370 # platform. Setup various information about the selected toolchain.
4371 
4372 
4373 # Before we start detecting the toolchain executables, we might need some
4374 # special setup, e.g. additional paths etc.
4375 
4376 
4377 # Restore path, etc
4378 
4379 
4380 # Check if a compiler is of the toolchain type we expect, and save the version
4381 # information from it. If the compiler does not match the expected type,
4382 # this function will abort using AC_MSG_ERROR. If it matches, the version will
4383 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4384 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4385 #
4386 # $1 = compiler to test (CC or CXX)
4387 # $2 = human readable name of compiler (C or C++)
4388 
4389 
4390 # Try to locate the given C or C++ compiler in the path, or otherwise.
4391 #
4392 # $1 = compiler to test (CC or CXX)
4393 # $2 = human readable name of compiler (C or C++)
4394 # $3 = list of compiler names to search for
4395 
4396 
4397 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4398 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4399 # archiver (AR). Verify that the compilers are correct according to the
4400 # toolchain type.
4401 
4402 
4403 # Setup additional tools that is considered a part of the toolchain, but not the
4404 # core part. Many of these are highly platform-specific and do not exist,
4405 # and/or are not needed on all platforms.
4406 
4407 
4408 # Setup the build tools (i.e, the compiler and linker used to build programs
4409 # that should be run on the build platform, not the target platform, as a build
4410 # helper). Since the non-cross-compile case uses the normal, target compilers
4411 # for this, we can only do this after these have been setup.
4412 
4413 
4414 # Setup legacy variables that are still needed as alternative ways to refer to
4415 # parts of the toolchain.
4416 
4417 
4418 # Do some additional checks on the detected tools.
4419 
4420 
4421 # Setup the JTReg Regression Test Harness.
4422 
4423 
4424 #
4425 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4426 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4427 #
4428 # This code is free software; you can redistribute it and/or modify it
4429 # under the terms of the GNU General Public License version 2 only, as
4430 # published by the Free Software Foundation.  Oracle designates this
4431 # particular file as subject to the "Classpath" exception as provided
4432 # by Oracle in the LICENSE file that accompanied this code.
4433 #
4434 # This code is distributed in the hope that it will be useful, but WITHOUT
4435 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4436 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4437 # version 2 for more details (a copy is included in the LICENSE file that
4438 # accompanied this code).
4439 #
4440 # You should have received a copy of the GNU General Public License version
4441 # 2 along with this work; if not, write to the Free Software Foundation,
4442 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4443 #
4444 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4445 # or visit www.oracle.com if you need additional information or have any
4446 # questions.
4447 #
4448 
4449 ################################################################################
4450 
4451 VALID_VS_VERSIONS="2010 2012 2013"
4452 
4453 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
4454 VS_VERSION_INTERNAL_2010=100
4455 VS_MSVCR_2010=msvcr100.dll
4456 # We don't use msvcp on Visual Studio 2010
4457 #VS_MSVCP_2010=msvcp100.dll
4458 VS_ENVVAR_2010="VS100COMNTOOLS"
4459 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
4460 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
4461 VS_VS_PLATFORM_NAME_2010="v100"
4462 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
4463 
4464 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
4465 VS_VERSION_INTERNAL_2012=110
4466 VS_MSVCR_2012=msvcr110.dll
4467 VS_MSVCP_2012=msvcp110.dll
4468 VS_ENVVAR_2012="VS110COMNTOOLS"
4469 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
4470 VS_SDK_INSTALLDIR_2012=
4471 VS_VS_PLATFORM_NAME_2012="v110"
4472 VS_SDK_PLATFORM_NAME_2012=
4473 
4474 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
4475 VS_VERSION_INTERNAL_2013=120
4476 VS_MSVCR_2013=msvcr120.dll
4477 VS_MSVCP_2013=msvcp120.dll
4478 VS_ENVVAR_2013="VS120COMNTOOLS"
4479 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
4480 VS_SDK_INSTALLDIR_2013=
4481 VS_VS_PLATFORM_NAME_2013="v120"
4482 VS_SDK_PLATFORM_NAME_2013=
4483 
4484 ################################################################################
4485 
4486 
4487 
4488 ################################################################################
4489 
4490 
4491 
4492 ################################################################################
4493 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
4494 # build environment and assigns it to VS_ENV_CMD
4495 
4496 
4497 ################################################################################
4498 
4499 
4500 
4501 ################################################################################
4502 # Check if the VS env variables were setup prior to running configure.
4503 # If not, then find vcvarsall.bat and run it automatically, and integrate
4504 # the set env variables into the spec file.
4505 
4506 
4507 
4508 
4509 
4510 
4511 
4512 
4513 
4514 
4515 
4516 
4517 
4518 # This line needs to be here, verbatim, after all includes and the dummy hook
4519 # definitions. It is replaced with custom functionality when building
4520 # custom sources.
4521 #
4522 # Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
4523 # ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
4524 #
4525 
4526 
4527 ###############################################################################
4528 #
4529 # Provides
4530 #
4531 # CUSTOM_HOOK_EARLY
4532 # CUSTOM_HOOK_LATE
4533 # CUSTOM_SUMMARY_AND_WARNINGS_HOOK
4534 
4535 ###############################################################################
4536 #
4537 # Check if deploy and install are available
4538 #
4539 
4540 
4541 ###############################################################################
4542 #
4543 # Check for ant, needed by deploy repo. (ANT_HOME needed by tonga tests)
4544 #
4545 
4546 
4547 ###############################################################################
4548 #
4549 # Check for junit, needed by deploy repo.
4550 #
4551 
4552 
4553 ###############################################################################
4554 #
4555 # Check for sparkle on mac, needed by deploy repo.
4556 #
4557 
4558 
4559 ################################################################################
4560 #
4561 # Check for Wix, needed by install on windows.
4562 #
4563 
4564 
4565 ################################################################################
4566 #
4567 # Check for Corporate Code Signing Application Client.jar (Main-Class:
4568 # oracle.client.ccss.Client), needed by install on windows and macosx.
4569 #
4570 
4571 
4572 ################################################################################
4573 #
4574 # LZMA, needed by install on windows
4575 #
4576 
4577 
4578 ################################################################################
4579 #
4580 # UPX, needed by install on windows
4581 #
4582 
4583 
4584 ################################################################################
4585 #
4586 # Setup windows specific executables for install
4587 #
4588 
4589 
4590 ###############################################################################
4591 #
4592 # Check for JAVAFX cobundle, needed by install repo.
4593 # JavaFX is cobundled on Windows, Linux, Mac (all platforms but solaris)
4594 #
4595 
4596 
4597 ###############################################################################
4598 #
4599 # Check for JMC cobundle, needed by install repo.
4600 # JMC is cobundled on Windows, Linux, Mac (all platforms but solaris)
4601 #
4602 
4603 
4604 ################################################################################
4605 #
4606 # Setup the path to bsdiff. Will default to the default install location
4607 #
4608 
4609 
4610 ################################################################################
4611 #
4612 # Setup path to debug image which install will include in bundles.
4613 #
4614 
4615 
4616 ###############################################################################
4617 #
4618 # Check for asmtools.jar
4619 #
4620 
4621 
4622 ###############################################################################
4623 #
4624 # Check for cpptasks.jar
4625 #
4626 
4627 
4628 ###############################################################################
4629 #
4630 # Check for ant-contrib.jar
4631 #
4632 
4633 
4634 ###############################################################################
4635 #
4636 # Check if tonga test build should be enabled
4637 #
4638 
4639 
4640 
4641 ###############################################################################
4642 #
4643 # Check for tonga.jar
4644 #
4645 
4646 
4647 ################################################################################
4648 #
4649 # Setup parfait, a static code analysis toolkit, which replaces several tools
4650 # with wrappers, if enabled. To be called from the early hook.
4651 #
4652 
4653 
4654 ###############################################################################
4655 #
4656 # Check for parfait baseline URI
4657 #
4658 
4659 
4660 
4661 
4662 ################################################################################
4663 #
4664 # Setup a specific tool for parfait.
4665 #
4666 # $1 is the variable to replace, e.g. CXX
4667 # $2 is the name of the parfait tool without the parfait- prefix, e.g. g++ for parfait-g++.
4668 # $3 is the name of the variable to use for sending the old tool value
4669 #    to parfait without the PARFAIT_NATIVE prefix, e.g. GXX for PAFAIT_NATIVEGXX.
4670 #    Can be left out if identical to $1.
4671 #
4672 
4673 
4674 ################################################################################
4675 #
4676 # Setup parfait, a static code analysis toolkit, which replaces several tools
4677 # with wrappers, if enabled. To be called from the late hook.
4678 #
4679 
4680 
4681 ################################################################################
4682 #
4683 # Setup a separate compiler for the plugin in deploy. PLUGIN_CC
4684 #
4685 
4686 
4687 ################################################################################
4688 #
4689 # Setup extra tools needed for deploy
4690 #
4691 
4692 
4693 ################################################################################
4694 #
4695 # Check if building of deploy should be enabled or disabled
4696 #
4697 
4698 
4699 ################################################################################
4700 #
4701 # Check if building of installer should be enabled or disabled
4702 #
4703 
4704 
4705 
4706 
4707 
4708 
4709 ###############################################################################
4710 #
4711 # Status and warnings for the custom bits of the configuration.
4712 #
4713 
4714 
4715 
4716 
4717 
4718 
4719 
4720 
4721 # Do not change or remove the following line, it is needed for consistency checks:
4722 DATE_WHEN_GENERATED=1425658225
4723 
4724 ###############################################################################
4725 #
4726 # Initialization / Boot-strapping
4727 #
4728 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4729 # thus it jumps back and forth, each time gaining something needed later on.
4730 #
4731 ###############################################################################
4732 
4733 # If we are requested to print additional help, do that and then exit.
4734 # This must be the very first call.
4735 
4736   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4737     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4738     $PRINTF "Which are valid to use depends on the build platform.\n"
4739     for toolchain in $VALID_TOOLCHAINS_all; do
4740       # Use indirect variable referencing
4741       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4742       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
4743       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
4744     done
4745 
4746     # And now exit directly
4747     exit 0
4748   fi
4749 
4750 
4751 # Basic initialization that must happen first of all in the normal process.
4752 
4753   # Save the original command line. This is passed to us by the wrapper configure script.
4754 
4755   # Save the path variable before it gets changed
4756   ORIGINAL_PATH="$PATH"
4757 
4758   DATE_WHEN_CONFIGURED=`LANG=C date`
4759 
4760   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4761 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4762   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4763 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4764 
4765 
4766   # Start with tools that do not need have cross compilation support
4767   # and can be expected to be found in the default PATH. These tools are
4768   # used by configure. Nor are these tools expected to be found in the
4769   # devkit from the builddeps server either, since they are
4770   # needed to download the devkit.
4771 
4772   # First are all the simple required tools.
4773 
4774 
4775 
4776   # Publish this variable in the help.
4777 
4778 
4779   if test "x$BASENAME" = x; then
4780     # The variable is not set by user, try to locate tool using the code snippet
4781     for ac_prog in basename
4782 do
4783   # Extract the first word of "$ac_prog", so it can be a program name with args.
4784 set dummy $ac_prog; ac_word=$2
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4786 $as_echo_n "checking for $ac_word... " >&6; }
4787 if ${ac_cv_path_BASENAME+:} false; then :
4788   $as_echo_n "(cached) " >&6
4789 else
4790   case $BASENAME in
4791   [\\/]* | ?:[\\/]*)
4792   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4793   ;;
4794   *)
4795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 for as_dir in $PATH
4797 do
4798   IFS=$as_save_IFS
4799   test -z "$as_dir" && as_dir=.
4800     for ac_exec_ext in '' $ac_executable_extensions; do
4801   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4802     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4804     break 2
4805   fi
4806 done
4807   done
4808 IFS=$as_save_IFS
4809 
4810   ;;
4811 esac
4812 fi
4813 BASENAME=$ac_cv_path_BASENAME
4814 if test -n "$BASENAME"; then
4815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4816 $as_echo "$BASENAME" >&6; }
4817 else
4818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819 $as_echo "no" >&6; }
4820 fi
4821 
4822 
4823   test -n "$BASENAME" && break
4824 done
4825 
4826   else
4827     # The variable is set, but is it from the command line or the environment?
4828 
4829     # Try to remove the string !BASENAME! from our list.
4830     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4831     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4832       # If it failed, the variable was not from the command line. Ignore it,
4833       # but warn the user (except for BASH, which is always set by the calling BASH).
4834       if test "xBASENAME" != xBASH; then
4835         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4836 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4837       fi
4838       # Try to locate tool using the code snippet
4839       for ac_prog in basename
4840 do
4841   # Extract the first word of "$ac_prog", so it can be a program name with args.
4842 set dummy $ac_prog; ac_word=$2
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844 $as_echo_n "checking for $ac_word... " >&6; }
4845 if ${ac_cv_path_BASENAME+:} false; then :
4846   $as_echo_n "(cached) " >&6
4847 else
4848   case $BASENAME in
4849   [\\/]* | ?:[\\/]*)
4850   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4851   ;;
4852   *)
4853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 for as_dir in $PATH
4855 do
4856   IFS=$as_save_IFS
4857   test -z "$as_dir" && as_dir=.
4858     for ac_exec_ext in '' $ac_executable_extensions; do
4859   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4860     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4862     break 2
4863   fi
4864 done
4865   done
4866 IFS=$as_save_IFS
4867 
4868   ;;
4869 esac
4870 fi
4871 BASENAME=$ac_cv_path_BASENAME
4872 if test -n "$BASENAME"; then
4873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4874 $as_echo "$BASENAME" >&6; }
4875 else
4876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4877 $as_echo "no" >&6; }
4878 fi
4879 
4880 
4881   test -n "$BASENAME" && break
4882 done
4883 
4884     else
4885       # If it succeeded, then it was overridden by the user. We will use it
4886       # for the tool.
4887 
4888       # First remove it from the list of overridden variables, so we can test
4889       # for unknown variables in the end.
4890       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4891 
4892       # Check if the provided tool contains a complete path.
4893       tool_specified="$BASENAME"
4894       tool_basename="${tool_specified##*/}"
4895       if test "x$tool_basename" = "x$tool_specified"; then
4896         # A command without a complete path is provided, search $PATH.
4897         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4898 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4899         # Extract the first word of "$tool_basename", so it can be a program name with args.
4900 set dummy $tool_basename; ac_word=$2
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4902 $as_echo_n "checking for $ac_word... " >&6; }
4903 if ${ac_cv_path_BASENAME+:} false; then :
4904   $as_echo_n "(cached) " >&6
4905 else
4906   case $BASENAME in
4907   [\\/]* | ?:[\\/]*)
4908   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4909   ;;
4910   *)
4911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4913 do
4914   IFS=$as_save_IFS
4915   test -z "$as_dir" && as_dir=.
4916     for ac_exec_ext in '' $ac_executable_extensions; do
4917   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4918     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4920     break 2
4921   fi
4922 done
4923   done
4924 IFS=$as_save_IFS
4925 
4926   ;;
4927 esac
4928 fi
4929 BASENAME=$ac_cv_path_BASENAME
4930 if test -n "$BASENAME"; then
4931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4932 $as_echo "$BASENAME" >&6; }
4933 else
4934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935 $as_echo "no" >&6; }
4936 fi
4937 
4938 
4939         if test "x$BASENAME" = x; then
4940           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4941         fi
4942       else
4943         # Otherwise we believe it is a complete path. Use it as it is.
4944         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4945 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4946         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4947 $as_echo_n "checking for BASENAME... " >&6; }
4948         if test ! -x "$tool_specified"; then
4949           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4950 $as_echo "not found" >&6; }
4951           as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4952         fi
4953         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4954 $as_echo "$tool_specified" >&6; }
4955       fi
4956     fi
4957   fi
4958 
4959 
4960 
4961   if test "x$BASENAME" = x; then
4962     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4963   fi
4964 
4965 
4966 
4967 
4968 
4969   # Publish this variable in the help.
4970 
4971 
4972   if test "x$BASH" = x; then
4973     # The variable is not set by user, try to locate tool using the code snippet
4974     for ac_prog in bash
4975 do
4976   # Extract the first word of "$ac_prog", so it can be a program name with args.
4977 set dummy $ac_prog; ac_word=$2
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4979 $as_echo_n "checking for $ac_word... " >&6; }
4980 if ${ac_cv_path_BASH+:} false; then :
4981   $as_echo_n "(cached) " >&6
4982 else
4983   case $BASH in
4984   [\\/]* | ?:[\\/]*)
4985   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4986   ;;
4987   *)
4988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 for as_dir in $PATH
4990 do
4991   IFS=$as_save_IFS
4992   test -z "$as_dir" && as_dir=.
4993     for ac_exec_ext in '' $ac_executable_extensions; do
4994   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4995     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4997     break 2
4998   fi
4999 done
5000   done
5001 IFS=$as_save_IFS
5002 
5003   ;;
5004 esac
5005 fi
5006 BASH=$ac_cv_path_BASH
5007 if test -n "$BASH"; then
5008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5009 $as_echo "$BASH" >&6; }
5010 else
5011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012 $as_echo "no" >&6; }
5013 fi
5014 
5015 
5016   test -n "$BASH" && break
5017 done
5018 
5019   else
5020     # The variable is set, but is it from the command line or the environment?
5021 
5022     # Try to remove the string !BASH! from our list.
5023     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
5024     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5025       # If it failed, the variable was not from the command line. Ignore it,
5026       # but warn the user (except for BASH, which is always set by the calling BASH).
5027       if test "xBASH" != xBASH; then
5028         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
5029 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
5030       fi
5031       # Try to locate tool using the code snippet
5032       for ac_prog in bash
5033 do
5034   # Extract the first word of "$ac_prog", so it can be a program name with args.
5035 set dummy $ac_prog; ac_word=$2
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5037 $as_echo_n "checking for $ac_word... " >&6; }
5038 if ${ac_cv_path_BASH+:} false; then :
5039   $as_echo_n "(cached) " >&6
5040 else
5041   case $BASH in
5042   [\\/]* | ?:[\\/]*)
5043   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5044   ;;
5045   *)
5046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 for as_dir in $PATH
5048 do
5049   IFS=$as_save_IFS
5050   test -z "$as_dir" && as_dir=.
5051     for ac_exec_ext in '' $ac_executable_extensions; do
5052   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5053     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5055     break 2
5056   fi
5057 done
5058   done
5059 IFS=$as_save_IFS
5060 
5061   ;;
5062 esac
5063 fi
5064 BASH=$ac_cv_path_BASH
5065 if test -n "$BASH"; then
5066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5067 $as_echo "$BASH" >&6; }
5068 else
5069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5070 $as_echo "no" >&6; }
5071 fi
5072 
5073 
5074   test -n "$BASH" && break
5075 done
5076 
5077     else
5078       # If it succeeded, then it was overridden by the user. We will use it
5079       # for the tool.
5080 
5081       # First remove it from the list of overridden variables, so we can test
5082       # for unknown variables in the end.
5083       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5084 
5085       # Check if the provided tool contains a complete path.
5086       tool_specified="$BASH"
5087       tool_basename="${tool_specified##*/}"
5088       if test "x$tool_basename" = "x$tool_specified"; then
5089         # A command without a complete path is provided, search $PATH.
5090         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
5091 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
5092         # Extract the first word of "$tool_basename", so it can be a program name with args.
5093 set dummy $tool_basename; ac_word=$2
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5095 $as_echo_n "checking for $ac_word... " >&6; }
5096 if ${ac_cv_path_BASH+:} false; then :
5097   $as_echo_n "(cached) " >&6
5098 else
5099   case $BASH in
5100   [\\/]* | ?:[\\/]*)
5101   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5102   ;;
5103   *)
5104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 for as_dir in $PATH
5106 do
5107   IFS=$as_save_IFS
5108   test -z "$as_dir" && as_dir=.
5109     for ac_exec_ext in '' $ac_executable_extensions; do
5110   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5111     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5113     break 2
5114   fi
5115 done
5116   done
5117 IFS=$as_save_IFS
5118 
5119   ;;
5120 esac
5121 fi
5122 BASH=$ac_cv_path_BASH
5123 if test -n "$BASH"; then
5124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5125 $as_echo "$BASH" >&6; }
5126 else
5127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128 $as_echo "no" >&6; }
5129 fi
5130 
5131 
5132         if test "x$BASH" = x; then
5133           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5134         fi
5135       else
5136         # Otherwise we believe it is a complete path. Use it as it is.
5137         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
5138 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
5139         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5140 $as_echo_n "checking for BASH... " >&6; }
5141         if test ! -x "$tool_specified"; then
5142           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5143 $as_echo "not found" >&6; }
5144           as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
5145         fi
5146         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5147 $as_echo "$tool_specified" >&6; }
5148       fi
5149     fi
5150   fi
5151 
5152 
5153 
5154   if test "x$BASH" = x; then
5155     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
5156   fi
5157 
5158 
5159 
5160 
5161 
5162   # Publish this variable in the help.
5163 
5164 
5165   if test "x$CAT" = x; then
5166     # The variable is not set by user, try to locate tool using the code snippet
5167     for ac_prog in cat
5168 do
5169   # Extract the first word of "$ac_prog", so it can be a program name with args.
5170 set dummy $ac_prog; ac_word=$2
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172 $as_echo_n "checking for $ac_word... " >&6; }
5173 if ${ac_cv_path_CAT+:} false; then :
5174   $as_echo_n "(cached) " >&6
5175 else
5176   case $CAT in
5177   [\\/]* | ?:[\\/]*)
5178   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5179   ;;
5180   *)
5181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH
5183 do
5184   IFS=$as_save_IFS
5185   test -z "$as_dir" && as_dir=.
5186     for ac_exec_ext in '' $ac_executable_extensions; do
5187   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5188     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5190     break 2
5191   fi
5192 done
5193   done
5194 IFS=$as_save_IFS
5195 
5196   ;;
5197 esac
5198 fi
5199 CAT=$ac_cv_path_CAT
5200 if test -n "$CAT"; then
5201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5202 $as_echo "$CAT" >&6; }
5203 else
5204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5206 fi
5207 
5208 
5209   test -n "$CAT" && break
5210 done
5211 
5212   else
5213     # The variable is set, but is it from the command line or the environment?
5214 
5215     # Try to remove the string !CAT! from our list.
5216     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
5217     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5218       # If it failed, the variable was not from the command line. Ignore it,
5219       # but warn the user (except for BASH, which is always set by the calling BASH).
5220       if test "xCAT" != xBASH; then
5221         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
5222 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
5223       fi
5224       # Try to locate tool using the code snippet
5225       for ac_prog in cat
5226 do
5227   # Extract the first word of "$ac_prog", so it can be a program name with args.
5228 set dummy $ac_prog; ac_word=$2
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230 $as_echo_n "checking for $ac_word... " >&6; }
5231 if ${ac_cv_path_CAT+:} false; then :
5232   $as_echo_n "(cached) " >&6
5233 else
5234   case $CAT in
5235   [\\/]* | ?:[\\/]*)
5236   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5237   ;;
5238   *)
5239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in $PATH
5241 do
5242   IFS=$as_save_IFS
5243   test -z "$as_dir" && as_dir=.
5244     for ac_exec_ext in '' $ac_executable_extensions; do
5245   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5246     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5248     break 2
5249   fi
5250 done
5251   done
5252 IFS=$as_save_IFS
5253 
5254   ;;
5255 esac
5256 fi
5257 CAT=$ac_cv_path_CAT
5258 if test -n "$CAT"; then
5259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5260 $as_echo "$CAT" >&6; }
5261 else
5262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5263 $as_echo "no" >&6; }
5264 fi
5265 
5266 
5267   test -n "$CAT" && break
5268 done
5269 
5270     else
5271       # If it succeeded, then it was overridden by the user. We will use it
5272       # for the tool.
5273 
5274       # First remove it from the list of overridden variables, so we can test
5275       # for unknown variables in the end.
5276       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5277 
5278       # Check if the provided tool contains a complete path.
5279       tool_specified="$CAT"
5280       tool_basename="${tool_specified##*/}"
5281       if test "x$tool_basename" = "x$tool_specified"; then
5282         # A command without a complete path is provided, search $PATH.
5283         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
5284 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
5285         # Extract the first word of "$tool_basename", so it can be a program name with args.
5286 set dummy $tool_basename; ac_word=$2
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5288 $as_echo_n "checking for $ac_word... " >&6; }
5289 if ${ac_cv_path_CAT+:} false; then :
5290   $as_echo_n "(cached) " >&6
5291 else
5292   case $CAT in
5293   [\\/]* | ?:[\\/]*)
5294   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5295   ;;
5296   *)
5297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298 for as_dir in $PATH
5299 do
5300   IFS=$as_save_IFS
5301   test -z "$as_dir" && as_dir=.
5302     for ac_exec_ext in '' $ac_executable_extensions; do
5303   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5304     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5306     break 2
5307   fi
5308 done
5309   done
5310 IFS=$as_save_IFS
5311 
5312   ;;
5313 esac
5314 fi
5315 CAT=$ac_cv_path_CAT
5316 if test -n "$CAT"; then
5317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5318 $as_echo "$CAT" >&6; }
5319 else
5320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321 $as_echo "no" >&6; }
5322 fi
5323 
5324 
5325         if test "x$CAT" = x; then
5326           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5327         fi
5328       else
5329         # Otherwise we believe it is a complete path. Use it as it is.
5330         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
5331 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
5332         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5333 $as_echo_n "checking for CAT... " >&6; }
5334         if test ! -x "$tool_specified"; then
5335           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5336 $as_echo "not found" >&6; }
5337           as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
5338         fi
5339         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5340 $as_echo "$tool_specified" >&6; }
5341       fi
5342     fi
5343   fi
5344 
5345 
5346 
5347   if test "x$CAT" = x; then
5348     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5349   fi
5350 
5351 
5352 
5353 
5354 
5355   # Publish this variable in the help.
5356 
5357 
5358   if test "x$CHMOD" = x; then
5359     # The variable is not set by user, try to locate tool using the code snippet
5360     for ac_prog in chmod
5361 do
5362   # Extract the first word of "$ac_prog", so it can be a program name with args.
5363 set dummy $ac_prog; ac_word=$2
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5365 $as_echo_n "checking for $ac_word... " >&6; }
5366 if ${ac_cv_path_CHMOD+:} false; then :
5367   $as_echo_n "(cached) " >&6
5368 else
5369   case $CHMOD in
5370   [\\/]* | ?:[\\/]*)
5371   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5372   ;;
5373   *)
5374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375 for as_dir in $PATH
5376 do
5377   IFS=$as_save_IFS
5378   test -z "$as_dir" && as_dir=.
5379     for ac_exec_ext in '' $ac_executable_extensions; do
5380   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5381     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5383     break 2
5384   fi
5385 done
5386   done
5387 IFS=$as_save_IFS
5388 
5389   ;;
5390 esac
5391 fi
5392 CHMOD=$ac_cv_path_CHMOD
5393 if test -n "$CHMOD"; then
5394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5395 $as_echo "$CHMOD" >&6; }
5396 else
5397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398 $as_echo "no" >&6; }
5399 fi
5400 
5401 
5402   test -n "$CHMOD" && break
5403 done
5404 
5405   else
5406     # The variable is set, but is it from the command line or the environment?
5407 
5408     # Try to remove the string !CHMOD! from our list.
5409     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5410     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5411       # If it failed, the variable was not from the command line. Ignore it,
5412       # but warn the user (except for BASH, which is always set by the calling BASH).
5413       if test "xCHMOD" != xBASH; then
5414         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5415 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5416       fi
5417       # Try to locate tool using the code snippet
5418       for ac_prog in chmod
5419 do
5420   # Extract the first word of "$ac_prog", so it can be a program name with args.
5421 set dummy $ac_prog; ac_word=$2
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423 $as_echo_n "checking for $ac_word... " >&6; }
5424 if ${ac_cv_path_CHMOD+:} false; then :
5425   $as_echo_n "(cached) " >&6
5426 else
5427   case $CHMOD in
5428   [\\/]* | ?:[\\/]*)
5429   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5430   ;;
5431   *)
5432   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 for as_dir in $PATH
5434 do
5435   IFS=$as_save_IFS
5436   test -z "$as_dir" && as_dir=.
5437     for ac_exec_ext in '' $ac_executable_extensions; do
5438   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5439     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5441     break 2
5442   fi
5443 done
5444   done
5445 IFS=$as_save_IFS
5446 
5447   ;;
5448 esac
5449 fi
5450 CHMOD=$ac_cv_path_CHMOD
5451 if test -n "$CHMOD"; then
5452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5453 $as_echo "$CHMOD" >&6; }
5454 else
5455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456 $as_echo "no" >&6; }
5457 fi
5458 
5459 
5460   test -n "$CHMOD" && break
5461 done
5462 
5463     else
5464       # If it succeeded, then it was overridden by the user. We will use it
5465       # for the tool.
5466 
5467       # First remove it from the list of overridden variables, so we can test
5468       # for unknown variables in the end.
5469       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5470 
5471       # Check if the provided tool contains a complete path.
5472       tool_specified="$CHMOD"
5473       tool_basename="${tool_specified##*/}"
5474       if test "x$tool_basename" = "x$tool_specified"; then
5475         # A command without a complete path is provided, search $PATH.
5476         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5477 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5478         # Extract the first word of "$tool_basename", so it can be a program name with args.
5479 set dummy $tool_basename; ac_word=$2
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5481 $as_echo_n "checking for $ac_word... " >&6; }
5482 if ${ac_cv_path_CHMOD+:} false; then :
5483   $as_echo_n "(cached) " >&6
5484 else
5485   case $CHMOD in
5486   [\\/]* | ?:[\\/]*)
5487   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5488   ;;
5489   *)
5490   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491 for as_dir in $PATH
5492 do
5493   IFS=$as_save_IFS
5494   test -z "$as_dir" && as_dir=.
5495     for ac_exec_ext in '' $ac_executable_extensions; do
5496   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5497     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5499     break 2
5500   fi
5501 done
5502   done
5503 IFS=$as_save_IFS
5504 
5505   ;;
5506 esac
5507 fi
5508 CHMOD=$ac_cv_path_CHMOD
5509 if test -n "$CHMOD"; then
5510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5511 $as_echo "$CHMOD" >&6; }
5512 else
5513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 $as_echo "no" >&6; }
5515 fi
5516 
5517 
5518         if test "x$CHMOD" = x; then
5519           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5520         fi
5521       else
5522         # Otherwise we believe it is a complete path. Use it as it is.
5523         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5524 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5525         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5526 $as_echo_n "checking for CHMOD... " >&6; }
5527         if test ! -x "$tool_specified"; then
5528           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5529 $as_echo "not found" >&6; }
5530           as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5531         fi
5532         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5533 $as_echo "$tool_specified" >&6; }
5534       fi
5535     fi
5536   fi
5537 
5538 
5539 
5540   if test "x$CHMOD" = x; then
5541     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5542   fi
5543 
5544 
5545 
5546 
5547 
5548   # Publish this variable in the help.
5549 
5550 
5551   if test "x$CMP" = x; then
5552     # The variable is not set by user, try to locate tool using the code snippet
5553     for ac_prog in cmp
5554 do
5555   # Extract the first word of "$ac_prog", so it can be a program name with args.
5556 set dummy $ac_prog; ac_word=$2
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5558 $as_echo_n "checking for $ac_word... " >&6; }
5559 if ${ac_cv_path_CMP+:} false; then :
5560   $as_echo_n "(cached) " >&6
5561 else
5562   case $CMP in
5563   [\\/]* | ?:[\\/]*)
5564   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5565   ;;
5566   *)
5567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568 for as_dir in $PATH
5569 do
5570   IFS=$as_save_IFS
5571   test -z "$as_dir" && as_dir=.
5572     for ac_exec_ext in '' $ac_executable_extensions; do
5573   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5574     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5576     break 2
5577   fi
5578 done
5579   done
5580 IFS=$as_save_IFS
5581 
5582   ;;
5583 esac
5584 fi
5585 CMP=$ac_cv_path_CMP
5586 if test -n "$CMP"; then
5587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5588 $as_echo "$CMP" >&6; }
5589 else
5590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591 $as_echo "no" >&6; }
5592 fi
5593 
5594 
5595   test -n "$CMP" && break
5596 done
5597 
5598   else
5599     # The variable is set, but is it from the command line or the environment?
5600 
5601     # Try to remove the string !CMP! from our list.
5602     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
5603     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5604       # If it failed, the variable was not from the command line. Ignore it,
5605       # but warn the user (except for BASH, which is always set by the calling BASH).
5606       if test "xCMP" != xBASH; then
5607         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
5608 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
5609       fi
5610       # Try to locate tool using the code snippet
5611       for ac_prog in cmp
5612 do
5613   # Extract the first word of "$ac_prog", so it can be a program name with args.
5614 set dummy $ac_prog; ac_word=$2
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616 $as_echo_n "checking for $ac_word... " >&6; }
5617 if ${ac_cv_path_CMP+:} false; then :
5618   $as_echo_n "(cached) " >&6
5619 else
5620   case $CMP in
5621   [\\/]* | ?:[\\/]*)
5622   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5623   ;;
5624   *)
5625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 for as_dir in $PATH
5627 do
5628   IFS=$as_save_IFS
5629   test -z "$as_dir" && as_dir=.
5630     for ac_exec_ext in '' $ac_executable_extensions; do
5631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5632     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5634     break 2
5635   fi
5636 done
5637   done
5638 IFS=$as_save_IFS
5639 
5640   ;;
5641 esac
5642 fi
5643 CMP=$ac_cv_path_CMP
5644 if test -n "$CMP"; then
5645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5646 $as_echo "$CMP" >&6; }
5647 else
5648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5650 fi
5651 
5652 
5653   test -n "$CMP" && break
5654 done
5655 
5656     else
5657       # If it succeeded, then it was overridden by the user. We will use it
5658       # for the tool.
5659 
5660       # First remove it from the list of overridden variables, so we can test
5661       # for unknown variables in the end.
5662       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5663 
5664       # Check if the provided tool contains a complete path.
5665       tool_specified="$CMP"
5666       tool_basename="${tool_specified##*/}"
5667       if test "x$tool_basename" = "x$tool_specified"; then
5668         # A command without a complete path is provided, search $PATH.
5669         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5670 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5671         # Extract the first word of "$tool_basename", so it can be a program name with args.
5672 set dummy $tool_basename; ac_word=$2
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5674 $as_echo_n "checking for $ac_word... " >&6; }
5675 if ${ac_cv_path_CMP+:} false; then :
5676   $as_echo_n "(cached) " >&6
5677 else
5678   case $CMP in
5679   [\\/]* | ?:[\\/]*)
5680   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5681   ;;
5682   *)
5683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684 for as_dir in $PATH
5685 do
5686   IFS=$as_save_IFS
5687   test -z "$as_dir" && as_dir=.
5688     for ac_exec_ext in '' $ac_executable_extensions; do
5689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5690     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5692     break 2
5693   fi
5694 done
5695   done
5696 IFS=$as_save_IFS
5697 
5698   ;;
5699 esac
5700 fi
5701 CMP=$ac_cv_path_CMP
5702 if test -n "$CMP"; then
5703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5704 $as_echo "$CMP" >&6; }
5705 else
5706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707 $as_echo "no" >&6; }
5708 fi
5709 
5710 
5711         if test "x$CMP" = x; then
5712           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5713         fi
5714       else
5715         # Otherwise we believe it is a complete path. Use it as it is.
5716         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5717 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5718         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5719 $as_echo_n "checking for CMP... " >&6; }
5720         if test ! -x "$tool_specified"; then
5721           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5722 $as_echo "not found" >&6; }
5723           as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5724         fi
5725         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5726 $as_echo "$tool_specified" >&6; }
5727       fi
5728     fi
5729   fi
5730 
5731 
5732 
5733   if test "x$CMP" = x; then
5734     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5735   fi
5736 
5737 
5738 
5739 
5740 
5741   # Publish this variable in the help.
5742 
5743 
5744   if test "x$COMM" = x; then
5745     # The variable is not set by user, try to locate tool using the code snippet
5746     for ac_prog in comm
5747 do
5748   # Extract the first word of "$ac_prog", so it can be a program name with args.
5749 set dummy $ac_prog; ac_word=$2
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5751 $as_echo_n "checking for $ac_word... " >&6; }
5752 if ${ac_cv_path_COMM+:} false; then :
5753   $as_echo_n "(cached) " >&6
5754 else
5755   case $COMM in
5756   [\\/]* | ?:[\\/]*)
5757   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5758   ;;
5759   *)
5760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761 for as_dir in $PATH
5762 do
5763   IFS=$as_save_IFS
5764   test -z "$as_dir" && as_dir=.
5765     for ac_exec_ext in '' $ac_executable_extensions; do
5766   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5767     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5769     break 2
5770   fi
5771 done
5772   done
5773 IFS=$as_save_IFS
5774 
5775   ;;
5776 esac
5777 fi
5778 COMM=$ac_cv_path_COMM
5779 if test -n "$COMM"; then
5780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5781 $as_echo "$COMM" >&6; }
5782 else
5783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5784 $as_echo "no" >&6; }
5785 fi
5786 
5787 
5788   test -n "$COMM" && break
5789 done
5790 
5791   else
5792     # The variable is set, but is it from the command line or the environment?
5793 
5794     # Try to remove the string !COMM! from our list.
5795     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5796     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5797       # If it failed, the variable was not from the command line. Ignore it,
5798       # but warn the user (except for BASH, which is always set by the calling BASH).
5799       if test "xCOMM" != xBASH; then
5800         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5801 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5802       fi
5803       # Try to locate tool using the code snippet
5804       for ac_prog in comm
5805 do
5806   # Extract the first word of "$ac_prog", so it can be a program name with args.
5807 set dummy $ac_prog; ac_word=$2
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5809 $as_echo_n "checking for $ac_word... " >&6; }
5810 if ${ac_cv_path_COMM+:} false; then :
5811   $as_echo_n "(cached) " >&6
5812 else
5813   case $COMM in
5814   [\\/]* | ?:[\\/]*)
5815   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5816   ;;
5817   *)
5818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 for as_dir in $PATH
5820 do
5821   IFS=$as_save_IFS
5822   test -z "$as_dir" && as_dir=.
5823     for ac_exec_ext in '' $ac_executable_extensions; do
5824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827     break 2
5828   fi
5829 done
5830   done
5831 IFS=$as_save_IFS
5832 
5833   ;;
5834 esac
5835 fi
5836 COMM=$ac_cv_path_COMM
5837 if test -n "$COMM"; then
5838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5839 $as_echo "$COMM" >&6; }
5840 else
5841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842 $as_echo "no" >&6; }
5843 fi
5844 
5845 
5846   test -n "$COMM" && break
5847 done
5848 
5849     else
5850       # If it succeeded, then it was overridden by the user. We will use it
5851       # for the tool.
5852 
5853       # First remove it from the list of overridden variables, so we can test
5854       # for unknown variables in the end.
5855       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5856 
5857       # Check if the provided tool contains a complete path.
5858       tool_specified="$COMM"
5859       tool_basename="${tool_specified##*/}"
5860       if test "x$tool_basename" = "x$tool_specified"; then
5861         # A command without a complete path is provided, search $PATH.
5862         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5863 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5864         # Extract the first word of "$tool_basename", so it can be a program name with args.
5865 set dummy $tool_basename; ac_word=$2
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5867 $as_echo_n "checking for $ac_word... " >&6; }
5868 if ${ac_cv_path_COMM+:} false; then :
5869   $as_echo_n "(cached) " >&6
5870 else
5871   case $COMM in
5872   [\\/]* | ?:[\\/]*)
5873   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5874   ;;
5875   *)
5876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 for as_dir in $PATH
5878 do
5879   IFS=$as_save_IFS
5880   test -z "$as_dir" && as_dir=.
5881     for ac_exec_ext in '' $ac_executable_extensions; do
5882   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5883     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5885     break 2
5886   fi
5887 done
5888   done
5889 IFS=$as_save_IFS
5890 
5891   ;;
5892 esac
5893 fi
5894 COMM=$ac_cv_path_COMM
5895 if test -n "$COMM"; then
5896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5897 $as_echo "$COMM" >&6; }
5898 else
5899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5900 $as_echo "no" >&6; }
5901 fi
5902 
5903 
5904         if test "x$COMM" = x; then
5905           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5906         fi
5907       else
5908         # Otherwise we believe it is a complete path. Use it as it is.
5909         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5910 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5911         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5912 $as_echo_n "checking for COMM... " >&6; }
5913         if test ! -x "$tool_specified"; then
5914           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5915 $as_echo "not found" >&6; }
5916           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5917         fi
5918         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5919 $as_echo "$tool_specified" >&6; }
5920       fi
5921     fi
5922   fi
5923 
5924 
5925 
5926   if test "x$COMM" = x; then
5927     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
5928   fi
5929 
5930 
5931 
5932 
5933 
5934   # Publish this variable in the help.
5935 
5936 
5937   if test "x$CP" = x; then
5938     # The variable is not set by user, try to locate tool using the code snippet
5939     for ac_prog in cp
5940 do
5941   # Extract the first word of "$ac_prog", so it can be a program name with args.
5942 set dummy $ac_prog; ac_word=$2
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5944 $as_echo_n "checking for $ac_word... " >&6; }
5945 if ${ac_cv_path_CP+:} false; then :
5946   $as_echo_n "(cached) " >&6
5947 else
5948   case $CP in
5949   [\\/]* | ?:[\\/]*)
5950   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5951   ;;
5952   *)
5953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 for as_dir in $PATH
5955 do
5956   IFS=$as_save_IFS
5957   test -z "$as_dir" && as_dir=.
5958     for ac_exec_ext in '' $ac_executable_extensions; do
5959   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5960     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5962     break 2
5963   fi
5964 done
5965   done
5966 IFS=$as_save_IFS
5967 
5968   ;;
5969 esac
5970 fi
5971 CP=$ac_cv_path_CP
5972 if test -n "$CP"; then
5973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5974 $as_echo "$CP" >&6; }
5975 else
5976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5977 $as_echo "no" >&6; }
5978 fi
5979 
5980 
5981   test -n "$CP" && break
5982 done
5983 
5984   else
5985     # The variable is set, but is it from the command line or the environment?
5986 
5987     # Try to remove the string !CP! from our list.
5988     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
5989     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5990       # If it failed, the variable was not from the command line. Ignore it,
5991       # but warn the user (except for BASH, which is always set by the calling BASH).
5992       if test "xCP" != xBASH; then
5993         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
5994 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
5995       fi
5996       # Try to locate tool using the code snippet
5997       for ac_prog in cp
5998 do
5999   # Extract the first word of "$ac_prog", so it can be a program name with args.
6000 set dummy $ac_prog; ac_word=$2
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6002 $as_echo_n "checking for $ac_word... " >&6; }
6003 if ${ac_cv_path_CP+:} false; then :
6004   $as_echo_n "(cached) " >&6
6005 else
6006   case $CP in
6007   [\\/]* | ?:[\\/]*)
6008   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6009   ;;
6010   *)
6011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 for as_dir in $PATH
6013 do
6014   IFS=$as_save_IFS
6015   test -z "$as_dir" && as_dir=.
6016     for ac_exec_ext in '' $ac_executable_extensions; do
6017   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6018     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6020     break 2
6021   fi
6022 done
6023   done
6024 IFS=$as_save_IFS
6025 
6026   ;;
6027 esac
6028 fi
6029 CP=$ac_cv_path_CP
6030 if test -n "$CP"; then
6031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6032 $as_echo "$CP" >&6; }
6033 else
6034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6035 $as_echo "no" >&6; }
6036 fi
6037 
6038 
6039   test -n "$CP" && break
6040 done
6041 
6042     else
6043       # If it succeeded, then it was overridden by the user. We will use it
6044       # for the tool.
6045 
6046       # First remove it from the list of overridden variables, so we can test
6047       # for unknown variables in the end.
6048       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6049 
6050       # Check if the provided tool contains a complete path.
6051       tool_specified="$CP"
6052       tool_basename="${tool_specified##*/}"
6053       if test "x$tool_basename" = "x$tool_specified"; then
6054         # A command without a complete path is provided, search $PATH.
6055         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
6056 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
6057         # Extract the first word of "$tool_basename", so it can be a program name with args.
6058 set dummy $tool_basename; ac_word=$2
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6060 $as_echo_n "checking for $ac_word... " >&6; }
6061 if ${ac_cv_path_CP+:} false; then :
6062   $as_echo_n "(cached) " >&6
6063 else
6064   case $CP in
6065   [\\/]* | ?:[\\/]*)
6066   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6067   ;;
6068   *)
6069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070 for as_dir in $PATH
6071 do
6072   IFS=$as_save_IFS
6073   test -z "$as_dir" && as_dir=.
6074     for ac_exec_ext in '' $ac_executable_extensions; do
6075   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6076     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6078     break 2
6079   fi
6080 done
6081   done
6082 IFS=$as_save_IFS
6083 
6084   ;;
6085 esac
6086 fi
6087 CP=$ac_cv_path_CP
6088 if test -n "$CP"; then
6089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6090 $as_echo "$CP" >&6; }
6091 else
6092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6093 $as_echo "no" >&6; }
6094 fi
6095 
6096 
6097         if test "x$CP" = x; then
6098           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6099         fi
6100       else
6101         # Otherwise we believe it is a complete path. Use it as it is.
6102         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
6103 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
6104         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6105 $as_echo_n "checking for CP... " >&6; }
6106         if test ! -x "$tool_specified"; then
6107           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6108 $as_echo "not found" >&6; }
6109           as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
6110         fi
6111         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6112 $as_echo "$tool_specified" >&6; }
6113       fi
6114     fi
6115   fi
6116 
6117 
6118 
6119   if test "x$CP" = x; then
6120     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
6121   fi
6122 
6123 
6124 
6125 
6126 
6127   # Publish this variable in the help.
6128 
6129 
6130   if test "x$CUT" = x; then
6131     # The variable is not set by user, try to locate tool using the code snippet
6132     for ac_prog in cut
6133 do
6134   # Extract the first word of "$ac_prog", so it can be a program name with args.
6135 set dummy $ac_prog; ac_word=$2
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6137 $as_echo_n "checking for $ac_word... " >&6; }
6138 if ${ac_cv_path_CUT+:} false; then :
6139   $as_echo_n "(cached) " >&6
6140 else
6141   case $CUT in
6142   [\\/]* | ?:[\\/]*)
6143   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6144   ;;
6145   *)
6146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 for as_dir in $PATH
6148 do
6149   IFS=$as_save_IFS
6150   test -z "$as_dir" && as_dir=.
6151     for ac_exec_ext in '' $ac_executable_extensions; do
6152   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6153     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6155     break 2
6156   fi
6157 done
6158   done
6159 IFS=$as_save_IFS
6160 
6161   ;;
6162 esac
6163 fi
6164 CUT=$ac_cv_path_CUT
6165 if test -n "$CUT"; then
6166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6167 $as_echo "$CUT" >&6; }
6168 else
6169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170 $as_echo "no" >&6; }
6171 fi
6172 
6173 
6174   test -n "$CUT" && break
6175 done
6176 
6177   else
6178     # The variable is set, but is it from the command line or the environment?
6179 
6180     # Try to remove the string !CUT! from our list.
6181     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
6182     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6183       # If it failed, the variable was not from the command line. Ignore it,
6184       # but warn the user (except for BASH, which is always set by the calling BASH).
6185       if test "xCUT" != xBASH; then
6186         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
6187 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
6188       fi
6189       # Try to locate tool using the code snippet
6190       for ac_prog in cut
6191 do
6192   # Extract the first word of "$ac_prog", so it can be a program name with args.
6193 set dummy $ac_prog; ac_word=$2
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6195 $as_echo_n "checking for $ac_word... " >&6; }
6196 if ${ac_cv_path_CUT+:} false; then :
6197   $as_echo_n "(cached) " >&6
6198 else
6199   case $CUT in
6200   [\\/]* | ?:[\\/]*)
6201   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6202   ;;
6203   *)
6204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 for as_dir in $PATH
6206 do
6207   IFS=$as_save_IFS
6208   test -z "$as_dir" && as_dir=.
6209     for ac_exec_ext in '' $ac_executable_extensions; do
6210   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6211     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6213     break 2
6214   fi
6215 done
6216   done
6217 IFS=$as_save_IFS
6218 
6219   ;;
6220 esac
6221 fi
6222 CUT=$ac_cv_path_CUT
6223 if test -n "$CUT"; then
6224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6225 $as_echo "$CUT" >&6; }
6226 else
6227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228 $as_echo "no" >&6; }
6229 fi
6230 
6231 
6232   test -n "$CUT" && break
6233 done
6234 
6235     else
6236       # If it succeeded, then it was overridden by the user. We will use it
6237       # for the tool.
6238 
6239       # First remove it from the list of overridden variables, so we can test
6240       # for unknown variables in the end.
6241       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6242 
6243       # Check if the provided tool contains a complete path.
6244       tool_specified="$CUT"
6245       tool_basename="${tool_specified##*/}"
6246       if test "x$tool_basename" = "x$tool_specified"; then
6247         # A command without a complete path is provided, search $PATH.
6248         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
6249 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
6250         # Extract the first word of "$tool_basename", so it can be a program name with args.
6251 set dummy $tool_basename; ac_word=$2
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253 $as_echo_n "checking for $ac_word... " >&6; }
6254 if ${ac_cv_path_CUT+:} false; then :
6255   $as_echo_n "(cached) " >&6
6256 else
6257   case $CUT in
6258   [\\/]* | ?:[\\/]*)
6259   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6260   ;;
6261   *)
6262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 for as_dir in $PATH
6264 do
6265   IFS=$as_save_IFS
6266   test -z "$as_dir" && as_dir=.
6267     for ac_exec_ext in '' $ac_executable_extensions; do
6268   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6269     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6271     break 2
6272   fi
6273 done
6274   done
6275 IFS=$as_save_IFS
6276 
6277   ;;
6278 esac
6279 fi
6280 CUT=$ac_cv_path_CUT
6281 if test -n "$CUT"; then
6282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6283 $as_echo "$CUT" >&6; }
6284 else
6285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286 $as_echo "no" >&6; }
6287 fi
6288 
6289 
6290         if test "x$CUT" = x; then
6291           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6292         fi
6293       else
6294         # Otherwise we believe it is a complete path. Use it as it is.
6295         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
6296 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6297         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6298 $as_echo_n "checking for CUT... " >&6; }
6299         if test ! -x "$tool_specified"; then
6300           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6301 $as_echo "not found" >&6; }
6302           as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6303         fi
6304         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6305 $as_echo "$tool_specified" >&6; }
6306       fi
6307     fi
6308   fi
6309 
6310 
6311 
6312   if test "x$CUT" = x; then
6313     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6314   fi
6315 
6316 
6317 
6318 
6319 
6320   # Publish this variable in the help.
6321 
6322 
6323   if test "x$DATE" = x; then
6324     # The variable is not set by user, try to locate tool using the code snippet
6325     for ac_prog in date
6326 do
6327   # Extract the first word of "$ac_prog", so it can be a program name with args.
6328 set dummy $ac_prog; ac_word=$2
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330 $as_echo_n "checking for $ac_word... " >&6; }
6331 if ${ac_cv_path_DATE+:} false; then :
6332   $as_echo_n "(cached) " >&6
6333 else
6334   case $DATE in
6335   [\\/]* | ?:[\\/]*)
6336   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6337   ;;
6338   *)
6339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 for as_dir in $PATH
6341 do
6342   IFS=$as_save_IFS
6343   test -z "$as_dir" && as_dir=.
6344     for ac_exec_ext in '' $ac_executable_extensions; do
6345   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6346     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6348     break 2
6349   fi
6350 done
6351   done
6352 IFS=$as_save_IFS
6353 
6354   ;;
6355 esac
6356 fi
6357 DATE=$ac_cv_path_DATE
6358 if test -n "$DATE"; then
6359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6360 $as_echo "$DATE" >&6; }
6361 else
6362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6363 $as_echo "no" >&6; }
6364 fi
6365 
6366 
6367   test -n "$DATE" && break
6368 done
6369 
6370   else
6371     # The variable is set, but is it from the command line or the environment?
6372 
6373     # Try to remove the string !DATE! from our list.
6374     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6375     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6376       # If it failed, the variable was not from the command line. Ignore it,
6377       # but warn the user (except for BASH, which is always set by the calling BASH).
6378       if test "xDATE" != xBASH; then
6379         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6380 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6381       fi
6382       # Try to locate tool using the code snippet
6383       for ac_prog in date
6384 do
6385   # Extract the first word of "$ac_prog", so it can be a program name with args.
6386 set dummy $ac_prog; ac_word=$2
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6388 $as_echo_n "checking for $ac_word... " >&6; }
6389 if ${ac_cv_path_DATE+:} false; then :
6390   $as_echo_n "(cached) " >&6
6391 else
6392   case $DATE in
6393   [\\/]* | ?:[\\/]*)
6394   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6395   ;;
6396   *)
6397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 for as_dir in $PATH
6399 do
6400   IFS=$as_save_IFS
6401   test -z "$as_dir" && as_dir=.
6402     for ac_exec_ext in '' $ac_executable_extensions; do
6403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6404     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6406     break 2
6407   fi
6408 done
6409   done
6410 IFS=$as_save_IFS
6411 
6412   ;;
6413 esac
6414 fi
6415 DATE=$ac_cv_path_DATE
6416 if test -n "$DATE"; then
6417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6418 $as_echo "$DATE" >&6; }
6419 else
6420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6422 fi
6423 
6424 
6425   test -n "$DATE" && break
6426 done
6427 
6428     else
6429       # If it succeeded, then it was overridden by the user. We will use it
6430       # for the tool.
6431 
6432       # First remove it from the list of overridden variables, so we can test
6433       # for unknown variables in the end.
6434       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6435 
6436       # Check if the provided tool contains a complete path.
6437       tool_specified="$DATE"
6438       tool_basename="${tool_specified##*/}"
6439       if test "x$tool_basename" = "x$tool_specified"; then
6440         # A command without a complete path is provided, search $PATH.
6441         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6442 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6443         # Extract the first word of "$tool_basename", so it can be a program name with args.
6444 set dummy $tool_basename; ac_word=$2
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if ${ac_cv_path_DATE+:} false; then :
6448   $as_echo_n "(cached) " >&6
6449 else
6450   case $DATE in
6451   [\\/]* | ?:[\\/]*)
6452   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6453   ;;
6454   *)
6455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH
6457 do
6458   IFS=$as_save_IFS
6459   test -z "$as_dir" && as_dir=.
6460     for ac_exec_ext in '' $ac_executable_extensions; do
6461   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6462     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464     break 2
6465   fi
6466 done
6467   done
6468 IFS=$as_save_IFS
6469 
6470   ;;
6471 esac
6472 fi
6473 DATE=$ac_cv_path_DATE
6474 if test -n "$DATE"; then
6475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6476 $as_echo "$DATE" >&6; }
6477 else
6478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479 $as_echo "no" >&6; }
6480 fi
6481 
6482 
6483         if test "x$DATE" = x; then
6484           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6485         fi
6486       else
6487         # Otherwise we believe it is a complete path. Use it as it is.
6488         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6489 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6490         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6491 $as_echo_n "checking for DATE... " >&6; }
6492         if test ! -x "$tool_specified"; then
6493           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6494 $as_echo "not found" >&6; }
6495           as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6496         fi
6497         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6498 $as_echo "$tool_specified" >&6; }
6499       fi
6500     fi
6501   fi
6502 
6503 
6504 
6505   if test "x$DATE" = x; then
6506     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6507   fi
6508 
6509 
6510 
6511 
6512 
6513   # Publish this variable in the help.
6514 
6515 
6516   if test "x$DIFF" = x; then
6517     # The variable is not set by user, try to locate tool using the code snippet
6518     for ac_prog in gdiff diff
6519 do
6520   # Extract the first word of "$ac_prog", so it can be a program name with args.
6521 set dummy $ac_prog; ac_word=$2
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6523 $as_echo_n "checking for $ac_word... " >&6; }
6524 if ${ac_cv_path_DIFF+:} false; then :
6525   $as_echo_n "(cached) " >&6
6526 else
6527   case $DIFF in
6528   [\\/]* | ?:[\\/]*)
6529   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6530   ;;
6531   *)
6532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 for as_dir in $PATH
6534 do
6535   IFS=$as_save_IFS
6536   test -z "$as_dir" && as_dir=.
6537     for ac_exec_ext in '' $ac_executable_extensions; do
6538   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6539     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6541     break 2
6542   fi
6543 done
6544   done
6545 IFS=$as_save_IFS
6546 
6547   ;;
6548 esac
6549 fi
6550 DIFF=$ac_cv_path_DIFF
6551 if test -n "$DIFF"; then
6552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6553 $as_echo "$DIFF" >&6; }
6554 else
6555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6556 $as_echo "no" >&6; }
6557 fi
6558 
6559 
6560   test -n "$DIFF" && break
6561 done
6562 
6563   else
6564     # The variable is set, but is it from the command line or the environment?
6565 
6566     # Try to remove the string !DIFF! from our list.
6567     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6568     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6569       # If it failed, the variable was not from the command line. Ignore it,
6570       # but warn the user (except for BASH, which is always set by the calling BASH).
6571       if test "xDIFF" != xBASH; then
6572         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6573 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6574       fi
6575       # Try to locate tool using the code snippet
6576       for ac_prog in gdiff diff
6577 do
6578   # Extract the first word of "$ac_prog", so it can be a program name with args.
6579 set dummy $ac_prog; ac_word=$2
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6581 $as_echo_n "checking for $ac_word... " >&6; }
6582 if ${ac_cv_path_DIFF+:} false; then :
6583   $as_echo_n "(cached) " >&6
6584 else
6585   case $DIFF in
6586   [\\/]* | ?:[\\/]*)
6587   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6588   ;;
6589   *)
6590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 for as_dir in $PATH
6592 do
6593   IFS=$as_save_IFS
6594   test -z "$as_dir" && as_dir=.
6595     for ac_exec_ext in '' $ac_executable_extensions; do
6596   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6597     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6599     break 2
6600   fi
6601 done
6602   done
6603 IFS=$as_save_IFS
6604 
6605   ;;
6606 esac
6607 fi
6608 DIFF=$ac_cv_path_DIFF
6609 if test -n "$DIFF"; then
6610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6611 $as_echo "$DIFF" >&6; }
6612 else
6613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614 $as_echo "no" >&6; }
6615 fi
6616 
6617 
6618   test -n "$DIFF" && break
6619 done
6620 
6621     else
6622       # If it succeeded, then it was overridden by the user. We will use it
6623       # for the tool.
6624 
6625       # First remove it from the list of overridden variables, so we can test
6626       # for unknown variables in the end.
6627       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6628 
6629       # Check if the provided tool contains a complete path.
6630       tool_specified="$DIFF"
6631       tool_basename="${tool_specified##*/}"
6632       if test "x$tool_basename" = "x$tool_specified"; then
6633         # A command without a complete path is provided, search $PATH.
6634         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6635 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6636         # Extract the first word of "$tool_basename", so it can be a program name with args.
6637 set dummy $tool_basename; ac_word=$2
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639 $as_echo_n "checking for $ac_word... " >&6; }
6640 if ${ac_cv_path_DIFF+:} false; then :
6641   $as_echo_n "(cached) " >&6
6642 else
6643   case $DIFF in
6644   [\\/]* | ?:[\\/]*)
6645   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6646   ;;
6647   *)
6648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 for as_dir in $PATH
6650 do
6651   IFS=$as_save_IFS
6652   test -z "$as_dir" && as_dir=.
6653     for ac_exec_ext in '' $ac_executable_extensions; do
6654   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6655     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6657     break 2
6658   fi
6659 done
6660   done
6661 IFS=$as_save_IFS
6662 
6663   ;;
6664 esac
6665 fi
6666 DIFF=$ac_cv_path_DIFF
6667 if test -n "$DIFF"; then
6668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6669 $as_echo "$DIFF" >&6; }
6670 else
6671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6672 $as_echo "no" >&6; }
6673 fi
6674 
6675 
6676         if test "x$DIFF" = x; then
6677           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6678         fi
6679       else
6680         # Otherwise we believe it is a complete path. Use it as it is.
6681         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6682 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6683         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6684 $as_echo_n "checking for DIFF... " >&6; }
6685         if test ! -x "$tool_specified"; then
6686           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6687 $as_echo "not found" >&6; }
6688           as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6689         fi
6690         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6691 $as_echo "$tool_specified" >&6; }
6692       fi
6693     fi
6694   fi
6695 
6696 
6697 
6698   if test "x$DIFF" = x; then
6699     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6700   fi
6701 
6702 
6703 
6704 
6705 
6706   # Publish this variable in the help.
6707 
6708 
6709   if test "x$DIRNAME" = x; then
6710     # The variable is not set by user, try to locate tool using the code snippet
6711     for ac_prog in dirname
6712 do
6713   # Extract the first word of "$ac_prog", so it can be a program name with args.
6714 set dummy $ac_prog; ac_word=$2
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6716 $as_echo_n "checking for $ac_word... " >&6; }
6717 if ${ac_cv_path_DIRNAME+:} false; then :
6718   $as_echo_n "(cached) " >&6
6719 else
6720   case $DIRNAME in
6721   [\\/]* | ?:[\\/]*)
6722   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6723   ;;
6724   *)
6725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 for as_dir in $PATH
6727 do
6728   IFS=$as_save_IFS
6729   test -z "$as_dir" && as_dir=.
6730     for ac_exec_ext in '' $ac_executable_extensions; do
6731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6732     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6734     break 2
6735   fi
6736 done
6737   done
6738 IFS=$as_save_IFS
6739 
6740   ;;
6741 esac
6742 fi
6743 DIRNAME=$ac_cv_path_DIRNAME
6744 if test -n "$DIRNAME"; then
6745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6746 $as_echo "$DIRNAME" >&6; }
6747 else
6748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6750 fi
6751 
6752 
6753   test -n "$DIRNAME" && break
6754 done
6755 
6756   else
6757     # The variable is set, but is it from the command line or the environment?
6758 
6759     # Try to remove the string !DIRNAME! from our list.
6760     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6761     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6762       # If it failed, the variable was not from the command line. Ignore it,
6763       # but warn the user (except for BASH, which is always set by the calling BASH).
6764       if test "xDIRNAME" != xBASH; then
6765         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6766 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6767       fi
6768       # Try to locate tool using the code snippet
6769       for ac_prog in dirname
6770 do
6771   # Extract the first word of "$ac_prog", so it can be a program name with args.
6772 set dummy $ac_prog; ac_word=$2
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6774 $as_echo_n "checking for $ac_word... " >&6; }
6775 if ${ac_cv_path_DIRNAME+:} false; then :
6776   $as_echo_n "(cached) " >&6
6777 else
6778   case $DIRNAME in
6779   [\\/]* | ?:[\\/]*)
6780   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6781   ;;
6782   *)
6783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6785 do
6786   IFS=$as_save_IFS
6787   test -z "$as_dir" && as_dir=.
6788     for ac_exec_ext in '' $ac_executable_extensions; do
6789   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6790     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6792     break 2
6793   fi
6794 done
6795   done
6796 IFS=$as_save_IFS
6797 
6798   ;;
6799 esac
6800 fi
6801 DIRNAME=$ac_cv_path_DIRNAME
6802 if test -n "$DIRNAME"; then
6803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6804 $as_echo "$DIRNAME" >&6; }
6805 else
6806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 $as_echo "no" >&6; }
6808 fi
6809 
6810 
6811   test -n "$DIRNAME" && break
6812 done
6813 
6814     else
6815       # If it succeeded, then it was overridden by the user. We will use it
6816       # for the tool.
6817 
6818       # First remove it from the list of overridden variables, so we can test
6819       # for unknown variables in the end.
6820       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6821 
6822       # Check if the provided tool contains a complete path.
6823       tool_specified="$DIRNAME"
6824       tool_basename="${tool_specified##*/}"
6825       if test "x$tool_basename" = "x$tool_specified"; then
6826         # A command without a complete path is provided, search $PATH.
6827         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6828 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6829         # Extract the first word of "$tool_basename", so it can be a program name with args.
6830 set dummy $tool_basename; ac_word=$2
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6832 $as_echo_n "checking for $ac_word... " >&6; }
6833 if ${ac_cv_path_DIRNAME+:} false; then :
6834   $as_echo_n "(cached) " >&6
6835 else
6836   case $DIRNAME in
6837   [\\/]* | ?:[\\/]*)
6838   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6839   ;;
6840   *)
6841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 for as_dir in $PATH
6843 do
6844   IFS=$as_save_IFS
6845   test -z "$as_dir" && as_dir=.
6846     for ac_exec_ext in '' $ac_executable_extensions; do
6847   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6848     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850     break 2
6851   fi
6852 done
6853   done
6854 IFS=$as_save_IFS
6855 
6856   ;;
6857 esac
6858 fi
6859 DIRNAME=$ac_cv_path_DIRNAME
6860 if test -n "$DIRNAME"; then
6861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6862 $as_echo "$DIRNAME" >&6; }
6863 else
6864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6865 $as_echo "no" >&6; }
6866 fi
6867 
6868 
6869         if test "x$DIRNAME" = x; then
6870           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6871         fi
6872       else
6873         # Otherwise we believe it is a complete path. Use it as it is.
6874         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
6875 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
6876         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6877 $as_echo_n "checking for DIRNAME... " >&6; }
6878         if test ! -x "$tool_specified"; then
6879           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6880 $as_echo "not found" >&6; }
6881           as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
6882         fi
6883         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6884 $as_echo "$tool_specified" >&6; }
6885       fi
6886     fi
6887   fi
6888 
6889 
6890 
6891   if test "x$DIRNAME" = x; then
6892     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
6893   fi
6894 
6895 
6896 
6897 
6898 
6899   # Publish this variable in the help.
6900 
6901 
6902   if test "x$ECHO" = x; then
6903     # The variable is not set by user, try to locate tool using the code snippet
6904     for ac_prog in echo
6905 do
6906   # Extract the first word of "$ac_prog", so it can be a program name with args.
6907 set dummy $ac_prog; ac_word=$2
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6909 $as_echo_n "checking for $ac_word... " >&6; }
6910 if ${ac_cv_path_ECHO+:} false; then :
6911   $as_echo_n "(cached) " >&6
6912 else
6913   case $ECHO in
6914   [\\/]* | ?:[\\/]*)
6915   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6916   ;;
6917   *)
6918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919 for as_dir in $PATH
6920 do
6921   IFS=$as_save_IFS
6922   test -z "$as_dir" && as_dir=.
6923     for ac_exec_ext in '' $ac_executable_extensions; do
6924   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6925     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6927     break 2
6928   fi
6929 done
6930   done
6931 IFS=$as_save_IFS
6932 
6933   ;;
6934 esac
6935 fi
6936 ECHO=$ac_cv_path_ECHO
6937 if test -n "$ECHO"; then
6938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6939 $as_echo "$ECHO" >&6; }
6940 else
6941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942 $as_echo "no" >&6; }
6943 fi
6944 
6945 
6946   test -n "$ECHO" && break
6947 done
6948 
6949   else
6950     # The variable is set, but is it from the command line or the environment?
6951 
6952     # Try to remove the string !ECHO! from our list.
6953     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
6954     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6955       # If it failed, the variable was not from the command line. Ignore it,
6956       # but warn the user (except for BASH, which is always set by the calling BASH).
6957       if test "xECHO" != xBASH; then
6958         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
6959 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
6960       fi
6961       # Try to locate tool using the code snippet
6962       for ac_prog in echo
6963 do
6964   # Extract the first word of "$ac_prog", so it can be a program name with args.
6965 set dummy $ac_prog; ac_word=$2
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967 $as_echo_n "checking for $ac_word... " >&6; }
6968 if ${ac_cv_path_ECHO+:} false; then :
6969   $as_echo_n "(cached) " >&6
6970 else
6971   case $ECHO in
6972   [\\/]* | ?:[\\/]*)
6973   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6974   ;;
6975   *)
6976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 for as_dir in $PATH
6978 do
6979   IFS=$as_save_IFS
6980   test -z "$as_dir" && as_dir=.
6981     for ac_exec_ext in '' $ac_executable_extensions; do
6982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6983     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6985     break 2
6986   fi
6987 done
6988   done
6989 IFS=$as_save_IFS
6990 
6991   ;;
6992 esac
6993 fi
6994 ECHO=$ac_cv_path_ECHO
6995 if test -n "$ECHO"; then
6996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6997 $as_echo "$ECHO" >&6; }
6998 else
6999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000 $as_echo "no" >&6; }
7001 fi
7002 
7003 
7004   test -n "$ECHO" && break
7005 done
7006 
7007     else
7008       # If it succeeded, then it was overridden by the user. We will use it
7009       # for the tool.
7010 
7011       # First remove it from the list of overridden variables, so we can test
7012       # for unknown variables in the end.
7013       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7014 
7015       # Check if the provided tool contains a complete path.
7016       tool_specified="$ECHO"
7017       tool_basename="${tool_specified##*/}"
7018       if test "x$tool_basename" = "x$tool_specified"; then
7019         # A command without a complete path is provided, search $PATH.
7020         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
7021 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
7022         # Extract the first word of "$tool_basename", so it can be a program name with args.
7023 set dummy $tool_basename; ac_word=$2
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7025 $as_echo_n "checking for $ac_word... " >&6; }
7026 if ${ac_cv_path_ECHO+:} false; then :
7027   $as_echo_n "(cached) " >&6
7028 else
7029   case $ECHO in
7030   [\\/]* | ?:[\\/]*)
7031   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7032   ;;
7033   *)
7034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035 for as_dir in $PATH
7036 do
7037   IFS=$as_save_IFS
7038   test -z "$as_dir" && as_dir=.
7039     for ac_exec_ext in '' $ac_executable_extensions; do
7040   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7041     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043     break 2
7044   fi
7045 done
7046   done
7047 IFS=$as_save_IFS
7048 
7049   ;;
7050 esac
7051 fi
7052 ECHO=$ac_cv_path_ECHO
7053 if test -n "$ECHO"; then
7054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7055 $as_echo "$ECHO" >&6; }
7056 else
7057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7058 $as_echo "no" >&6; }
7059 fi
7060 
7061 
7062         if test "x$ECHO" = x; then
7063           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7064         fi
7065       else
7066         # Otherwise we believe it is a complete path. Use it as it is.
7067         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
7068 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
7069         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7070 $as_echo_n "checking for ECHO... " >&6; }
7071         if test ! -x "$tool_specified"; then
7072           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7073 $as_echo "not found" >&6; }
7074           as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
7075         fi
7076         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7077 $as_echo "$tool_specified" >&6; }
7078       fi
7079     fi
7080   fi
7081 
7082 
7083 
7084   if test "x$ECHO" = x; then
7085     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
7086   fi
7087 
7088 
7089 
7090 
7091 
7092   # Publish this variable in the help.
7093 
7094 
7095   if test "x$EXPR" = x; then
7096     # The variable is not set by user, try to locate tool using the code snippet
7097     for ac_prog in expr
7098 do
7099   # Extract the first word of "$ac_prog", so it can be a program name with args.
7100 set dummy $ac_prog; ac_word=$2
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7102 $as_echo_n "checking for $ac_word... " >&6; }
7103 if ${ac_cv_path_EXPR+:} false; then :
7104   $as_echo_n "(cached) " >&6
7105 else
7106   case $EXPR in
7107   [\\/]* | ?:[\\/]*)
7108   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7109   ;;
7110   *)
7111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 for as_dir in $PATH
7113 do
7114   IFS=$as_save_IFS
7115   test -z "$as_dir" && as_dir=.
7116     for ac_exec_ext in '' $ac_executable_extensions; do
7117   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7118     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7120     break 2
7121   fi
7122 done
7123   done
7124 IFS=$as_save_IFS
7125 
7126   ;;
7127 esac
7128 fi
7129 EXPR=$ac_cv_path_EXPR
7130 if test -n "$EXPR"; then
7131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7132 $as_echo "$EXPR" >&6; }
7133 else
7134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7135 $as_echo "no" >&6; }
7136 fi
7137 
7138 
7139   test -n "$EXPR" && break
7140 done
7141 
7142   else
7143     # The variable is set, but is it from the command line or the environment?
7144 
7145     # Try to remove the string !EXPR! from our list.
7146     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
7147     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7148       # If it failed, the variable was not from the command line. Ignore it,
7149       # but warn the user (except for BASH, which is always set by the calling BASH).
7150       if test "xEXPR" != xBASH; then
7151         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
7152 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
7153       fi
7154       # Try to locate tool using the code snippet
7155       for ac_prog in expr
7156 do
7157   # Extract the first word of "$ac_prog", so it can be a program name with args.
7158 set dummy $ac_prog; ac_word=$2
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7160 $as_echo_n "checking for $ac_word... " >&6; }
7161 if ${ac_cv_path_EXPR+:} false; then :
7162   $as_echo_n "(cached) " >&6
7163 else
7164   case $EXPR in
7165   [\\/]* | ?:[\\/]*)
7166   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7167   ;;
7168   *)
7169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 for as_dir in $PATH
7171 do
7172   IFS=$as_save_IFS
7173   test -z "$as_dir" && as_dir=.
7174     for ac_exec_ext in '' $ac_executable_extensions; do
7175   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7176     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7178     break 2
7179   fi
7180 done
7181   done
7182 IFS=$as_save_IFS
7183 
7184   ;;
7185 esac
7186 fi
7187 EXPR=$ac_cv_path_EXPR
7188 if test -n "$EXPR"; then
7189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7190 $as_echo "$EXPR" >&6; }
7191 else
7192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7193 $as_echo "no" >&6; }
7194 fi
7195 
7196 
7197   test -n "$EXPR" && break
7198 done
7199 
7200     else
7201       # If it succeeded, then it was overridden by the user. We will use it
7202       # for the tool.
7203 
7204       # First remove it from the list of overridden variables, so we can test
7205       # for unknown variables in the end.
7206       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7207 
7208       # Check if the provided tool contains a complete path.
7209       tool_specified="$EXPR"
7210       tool_basename="${tool_specified##*/}"
7211       if test "x$tool_basename" = "x$tool_specified"; then
7212         # A command without a complete path is provided, search $PATH.
7213         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
7214 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
7215         # Extract the first word of "$tool_basename", so it can be a program name with args.
7216 set dummy $tool_basename; ac_word=$2
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7218 $as_echo_n "checking for $ac_word... " >&6; }
7219 if ${ac_cv_path_EXPR+:} false; then :
7220   $as_echo_n "(cached) " >&6
7221 else
7222   case $EXPR in
7223   [\\/]* | ?:[\\/]*)
7224   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7225   ;;
7226   *)
7227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 for as_dir in $PATH
7229 do
7230   IFS=$as_save_IFS
7231   test -z "$as_dir" && as_dir=.
7232     for ac_exec_ext in '' $ac_executable_extensions; do
7233   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7234     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7236     break 2
7237   fi
7238 done
7239   done
7240 IFS=$as_save_IFS
7241 
7242   ;;
7243 esac
7244 fi
7245 EXPR=$ac_cv_path_EXPR
7246 if test -n "$EXPR"; then
7247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7248 $as_echo "$EXPR" >&6; }
7249 else
7250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251 $as_echo "no" >&6; }
7252 fi
7253 
7254 
7255         if test "x$EXPR" = x; then
7256           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7257         fi
7258       else
7259         # Otherwise we believe it is a complete path. Use it as it is.
7260         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
7261 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
7262         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7263 $as_echo_n "checking for EXPR... " >&6; }
7264         if test ! -x "$tool_specified"; then
7265           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7266 $as_echo "not found" >&6; }
7267           as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
7268         fi
7269         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7270 $as_echo "$tool_specified" >&6; }
7271       fi
7272     fi
7273   fi
7274 
7275 
7276 
7277   if test "x$EXPR" = x; then
7278     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
7279   fi
7280 
7281 
7282 
7283 
7284 
7285   # Publish this variable in the help.
7286 
7287 
7288   if test "x$FILE" = x; then
7289     # The variable is not set by user, try to locate tool using the code snippet
7290     for ac_prog in file
7291 do
7292   # Extract the first word of "$ac_prog", so it can be a program name with args.
7293 set dummy $ac_prog; ac_word=$2
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7295 $as_echo_n "checking for $ac_word... " >&6; }
7296 if ${ac_cv_path_FILE+:} false; then :
7297   $as_echo_n "(cached) " >&6
7298 else
7299   case $FILE in
7300   [\\/]* | ?:[\\/]*)
7301   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7302   ;;
7303   *)
7304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 for as_dir in $PATH
7306 do
7307   IFS=$as_save_IFS
7308   test -z "$as_dir" && as_dir=.
7309     for ac_exec_ext in '' $ac_executable_extensions; do
7310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313     break 2
7314   fi
7315 done
7316   done
7317 IFS=$as_save_IFS
7318 
7319   ;;
7320 esac
7321 fi
7322 FILE=$ac_cv_path_FILE
7323 if test -n "$FILE"; then
7324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7325 $as_echo "$FILE" >&6; }
7326 else
7327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7328 $as_echo "no" >&6; }
7329 fi
7330 
7331 
7332   test -n "$FILE" && break
7333 done
7334 
7335   else
7336     # The variable is set, but is it from the command line or the environment?
7337 
7338     # Try to remove the string !FILE! from our list.
7339     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7340     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7341       # If it failed, the variable was not from the command line. Ignore it,
7342       # but warn the user (except for BASH, which is always set by the calling BASH).
7343       if test "xFILE" != xBASH; then
7344         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7345 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7346       fi
7347       # Try to locate tool using the code snippet
7348       for ac_prog in file
7349 do
7350   # Extract the first word of "$ac_prog", so it can be a program name with args.
7351 set dummy $ac_prog; ac_word=$2
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 $as_echo_n "checking for $ac_word... " >&6; }
7354 if ${ac_cv_path_FILE+:} false; then :
7355   $as_echo_n "(cached) " >&6
7356 else
7357   case $FILE in
7358   [\\/]* | ?:[\\/]*)
7359   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7360   ;;
7361   *)
7362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 for as_dir in $PATH
7364 do
7365   IFS=$as_save_IFS
7366   test -z "$as_dir" && as_dir=.
7367     for ac_exec_ext in '' $ac_executable_extensions; do
7368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7369     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371     break 2
7372   fi
7373 done
7374   done
7375 IFS=$as_save_IFS
7376 
7377   ;;
7378 esac
7379 fi
7380 FILE=$ac_cv_path_FILE
7381 if test -n "$FILE"; then
7382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7383 $as_echo "$FILE" >&6; }
7384 else
7385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386 $as_echo "no" >&6; }
7387 fi
7388 
7389 
7390   test -n "$FILE" && break
7391 done
7392 
7393     else
7394       # If it succeeded, then it was overridden by the user. We will use it
7395       # for the tool.
7396 
7397       # First remove it from the list of overridden variables, so we can test
7398       # for unknown variables in the end.
7399       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7400 
7401       # Check if the provided tool contains a complete path.
7402       tool_specified="$FILE"
7403       tool_basename="${tool_specified##*/}"
7404       if test "x$tool_basename" = "x$tool_specified"; then
7405         # A command without a complete path is provided, search $PATH.
7406         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7407 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
7408         # Extract the first word of "$tool_basename", so it can be a program name with args.
7409 set dummy $tool_basename; ac_word=$2
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7411 $as_echo_n "checking for $ac_word... " >&6; }
7412 if ${ac_cv_path_FILE+:} false; then :
7413   $as_echo_n "(cached) " >&6
7414 else
7415   case $FILE in
7416   [\\/]* | ?:[\\/]*)
7417   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7418   ;;
7419   *)
7420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 for as_dir in $PATH
7422 do
7423   IFS=$as_save_IFS
7424   test -z "$as_dir" && as_dir=.
7425     for ac_exec_ext in '' $ac_executable_extensions; do
7426   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7427     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7429     break 2
7430   fi
7431 done
7432   done
7433 IFS=$as_save_IFS
7434 
7435   ;;
7436 esac
7437 fi
7438 FILE=$ac_cv_path_FILE
7439 if test -n "$FILE"; then
7440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7441 $as_echo "$FILE" >&6; }
7442 else
7443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7444 $as_echo "no" >&6; }
7445 fi
7446 
7447 
7448         if test "x$FILE" = x; then
7449           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7450         fi
7451       else
7452         # Otherwise we believe it is a complete path. Use it as it is.
7453         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7454 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7455         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7456 $as_echo_n "checking for FILE... " >&6; }
7457         if test ! -x "$tool_specified"; then
7458           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7459 $as_echo "not found" >&6; }
7460           as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7461         fi
7462         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7463 $as_echo "$tool_specified" >&6; }
7464       fi
7465     fi
7466   fi
7467 
7468 
7469 
7470   if test "x$FILE" = x; then
7471     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7472   fi
7473 
7474 
7475 
7476 
7477 
7478   # Publish this variable in the help.
7479 
7480 
7481   if test "x$FIND" = x; then
7482     # The variable is not set by user, try to locate tool using the code snippet
7483     for ac_prog in find
7484 do
7485   # Extract the first word of "$ac_prog", so it can be a program name with args.
7486 set dummy $ac_prog; ac_word=$2
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488 $as_echo_n "checking for $ac_word... " >&6; }
7489 if ${ac_cv_path_FIND+:} false; then :
7490   $as_echo_n "(cached) " >&6
7491 else
7492   case $FIND in
7493   [\\/]* | ?:[\\/]*)
7494   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7495   ;;
7496   *)
7497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 for as_dir in $PATH
7499 do
7500   IFS=$as_save_IFS
7501   test -z "$as_dir" && as_dir=.
7502     for ac_exec_ext in '' $ac_executable_extensions; do
7503   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7504     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7506     break 2
7507   fi
7508 done
7509   done
7510 IFS=$as_save_IFS
7511 
7512   ;;
7513 esac
7514 fi
7515 FIND=$ac_cv_path_FIND
7516 if test -n "$FIND"; then
7517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7518 $as_echo "$FIND" >&6; }
7519 else
7520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7521 $as_echo "no" >&6; }
7522 fi
7523 
7524 
7525   test -n "$FIND" && break
7526 done
7527 
7528   else
7529     # The variable is set, but is it from the command line or the environment?
7530 
7531     # Try to remove the string !FIND! from our list.
7532     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7533     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7534       # If it failed, the variable was not from the command line. Ignore it,
7535       # but warn the user (except for BASH, which is always set by the calling BASH).
7536       if test "xFIND" != xBASH; then
7537         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7538 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7539       fi
7540       # Try to locate tool using the code snippet
7541       for ac_prog in find
7542 do
7543   # Extract the first word of "$ac_prog", so it can be a program name with args.
7544 set dummy $ac_prog; ac_word=$2
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7546 $as_echo_n "checking for $ac_word... " >&6; }
7547 if ${ac_cv_path_FIND+:} false; then :
7548   $as_echo_n "(cached) " >&6
7549 else
7550   case $FIND in
7551   [\\/]* | ?:[\\/]*)
7552   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7553   ;;
7554   *)
7555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 for as_dir in $PATH
7557 do
7558   IFS=$as_save_IFS
7559   test -z "$as_dir" && as_dir=.
7560     for ac_exec_ext in '' $ac_executable_extensions; do
7561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7562     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7564     break 2
7565   fi
7566 done
7567   done
7568 IFS=$as_save_IFS
7569 
7570   ;;
7571 esac
7572 fi
7573 FIND=$ac_cv_path_FIND
7574 if test -n "$FIND"; then
7575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7576 $as_echo "$FIND" >&6; }
7577 else
7578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579 $as_echo "no" >&6; }
7580 fi
7581 
7582 
7583   test -n "$FIND" && break
7584 done
7585 
7586     else
7587       # If it succeeded, then it was overridden by the user. We will use it
7588       # for the tool.
7589 
7590       # First remove it from the list of overridden variables, so we can test
7591       # for unknown variables in the end.
7592       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7593 
7594       # Check if the provided tool contains a complete path.
7595       tool_specified="$FIND"
7596       tool_basename="${tool_specified##*/}"
7597       if test "x$tool_basename" = "x$tool_specified"; then
7598         # A command without a complete path is provided, search $PATH.
7599         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7600 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7601         # Extract the first word of "$tool_basename", so it can be a program name with args.
7602 set dummy $tool_basename; ac_word=$2
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7604 $as_echo_n "checking for $ac_word... " >&6; }
7605 if ${ac_cv_path_FIND+:} false; then :
7606   $as_echo_n "(cached) " >&6
7607 else
7608   case $FIND in
7609   [\\/]* | ?:[\\/]*)
7610   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7611   ;;
7612   *)
7613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614 for as_dir in $PATH
7615 do
7616   IFS=$as_save_IFS
7617   test -z "$as_dir" && as_dir=.
7618     for ac_exec_ext in '' $ac_executable_extensions; do
7619   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7620     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7622     break 2
7623   fi
7624 done
7625   done
7626 IFS=$as_save_IFS
7627 
7628   ;;
7629 esac
7630 fi
7631 FIND=$ac_cv_path_FIND
7632 if test -n "$FIND"; then
7633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7634 $as_echo "$FIND" >&6; }
7635 else
7636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637 $as_echo "no" >&6; }
7638 fi
7639 
7640 
7641         if test "x$FIND" = x; then
7642           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7643         fi
7644       else
7645         # Otherwise we believe it is a complete path. Use it as it is.
7646         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7647 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7648         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7649 $as_echo_n "checking for FIND... " >&6; }
7650         if test ! -x "$tool_specified"; then
7651           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7652 $as_echo "not found" >&6; }
7653           as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7654         fi
7655         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7656 $as_echo "$tool_specified" >&6; }
7657       fi
7658     fi
7659   fi
7660 
7661 
7662 
7663   if test "x$FIND" = x; then
7664     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7665   fi
7666 
7667 
7668 
7669 
7670 
7671   # Publish this variable in the help.
7672 
7673 
7674   if test "x$HEAD" = x; then
7675     # The variable is not set by user, try to locate tool using the code snippet
7676     for ac_prog in head
7677 do
7678   # Extract the first word of "$ac_prog", so it can be a program name with args.
7679 set dummy $ac_prog; ac_word=$2
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7681 $as_echo_n "checking for $ac_word... " >&6; }
7682 if ${ac_cv_path_HEAD+:} false; then :
7683   $as_echo_n "(cached) " >&6
7684 else
7685   case $HEAD in
7686   [\\/]* | ?:[\\/]*)
7687   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7688   ;;
7689   *)
7690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 for as_dir in $PATH
7692 do
7693   IFS=$as_save_IFS
7694   test -z "$as_dir" && as_dir=.
7695     for ac_exec_ext in '' $ac_executable_extensions; do
7696   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7697     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7699     break 2
7700   fi
7701 done
7702   done
7703 IFS=$as_save_IFS
7704 
7705   ;;
7706 esac
7707 fi
7708 HEAD=$ac_cv_path_HEAD
7709 if test -n "$HEAD"; then
7710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7711 $as_echo "$HEAD" >&6; }
7712 else
7713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7714 $as_echo "no" >&6; }
7715 fi
7716 
7717 
7718   test -n "$HEAD" && break
7719 done
7720 
7721   else
7722     # The variable is set, but is it from the command line or the environment?
7723 
7724     # Try to remove the string !HEAD! from our list.
7725     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7726     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7727       # If it failed, the variable was not from the command line. Ignore it,
7728       # but warn the user (except for BASH, which is always set by the calling BASH).
7729       if test "xHEAD" != xBASH; then
7730         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7731 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7732       fi
7733       # Try to locate tool using the code snippet
7734       for ac_prog in head
7735 do
7736   # Extract the first word of "$ac_prog", so it can be a program name with args.
7737 set dummy $ac_prog; ac_word=$2
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7739 $as_echo_n "checking for $ac_word... " >&6; }
7740 if ${ac_cv_path_HEAD+:} false; then :
7741   $as_echo_n "(cached) " >&6
7742 else
7743   case $HEAD in
7744   [\\/]* | ?:[\\/]*)
7745   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7746   ;;
7747   *)
7748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749 for as_dir in $PATH
7750 do
7751   IFS=$as_save_IFS
7752   test -z "$as_dir" && as_dir=.
7753     for ac_exec_ext in '' $ac_executable_extensions; do
7754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7755     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7757     break 2
7758   fi
7759 done
7760   done
7761 IFS=$as_save_IFS
7762 
7763   ;;
7764 esac
7765 fi
7766 HEAD=$ac_cv_path_HEAD
7767 if test -n "$HEAD"; then
7768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7769 $as_echo "$HEAD" >&6; }
7770 else
7771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7772 $as_echo "no" >&6; }
7773 fi
7774 
7775 
7776   test -n "$HEAD" && break
7777 done
7778 
7779     else
7780       # If it succeeded, then it was overridden by the user. We will use it
7781       # for the tool.
7782 
7783       # First remove it from the list of overridden variables, so we can test
7784       # for unknown variables in the end.
7785       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7786 
7787       # Check if the provided tool contains a complete path.
7788       tool_specified="$HEAD"
7789       tool_basename="${tool_specified##*/}"
7790       if test "x$tool_basename" = "x$tool_specified"; then
7791         # A command without a complete path is provided, search $PATH.
7792         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7793 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7794         # Extract the first word of "$tool_basename", so it can be a program name with args.
7795 set dummy $tool_basename; ac_word=$2
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797 $as_echo_n "checking for $ac_word... " >&6; }
7798 if ${ac_cv_path_HEAD+:} false; then :
7799   $as_echo_n "(cached) " >&6
7800 else
7801   case $HEAD in
7802   [\\/]* | ?:[\\/]*)
7803   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7804   ;;
7805   *)
7806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 for as_dir in $PATH
7808 do
7809   IFS=$as_save_IFS
7810   test -z "$as_dir" && as_dir=.
7811     for ac_exec_ext in '' $ac_executable_extensions; do
7812   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7813     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7815     break 2
7816   fi
7817 done
7818   done
7819 IFS=$as_save_IFS
7820 
7821   ;;
7822 esac
7823 fi
7824 HEAD=$ac_cv_path_HEAD
7825 if test -n "$HEAD"; then
7826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7827 $as_echo "$HEAD" >&6; }
7828 else
7829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7831 fi
7832 
7833 
7834         if test "x$HEAD" = x; then
7835           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7836         fi
7837       else
7838         # Otherwise we believe it is a complete path. Use it as it is.
7839         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
7840 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
7841         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7842 $as_echo_n "checking for HEAD... " >&6; }
7843         if test ! -x "$tool_specified"; then
7844           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7845 $as_echo "not found" >&6; }
7846           as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
7847         fi
7848         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7849 $as_echo "$tool_specified" >&6; }
7850       fi
7851     fi
7852   fi
7853 
7854 
7855 
7856   if test "x$HEAD" = x; then
7857     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
7858   fi
7859 
7860 
7861 
7862 
7863 
7864   # Publish this variable in the help.
7865 
7866 
7867   if test "x$LN" = x; then
7868     # The variable is not set by user, try to locate tool using the code snippet
7869     for ac_prog in ln
7870 do
7871   # Extract the first word of "$ac_prog", so it can be a program name with args.
7872 set dummy $ac_prog; ac_word=$2
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7874 $as_echo_n "checking for $ac_word... " >&6; }
7875 if ${ac_cv_path_LN+:} false; then :
7876   $as_echo_n "(cached) " >&6
7877 else
7878   case $LN in
7879   [\\/]* | ?:[\\/]*)
7880   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7881   ;;
7882   *)
7883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884 for as_dir in $PATH
7885 do
7886   IFS=$as_save_IFS
7887   test -z "$as_dir" && as_dir=.
7888     for ac_exec_ext in '' $ac_executable_extensions; do
7889   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7890     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7892     break 2
7893   fi
7894 done
7895   done
7896 IFS=$as_save_IFS
7897 
7898   ;;
7899 esac
7900 fi
7901 LN=$ac_cv_path_LN
7902 if test -n "$LN"; then
7903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7904 $as_echo "$LN" >&6; }
7905 else
7906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907 $as_echo "no" >&6; }
7908 fi
7909 
7910 
7911   test -n "$LN" && break
7912 done
7913 
7914   else
7915     # The variable is set, but is it from the command line or the environment?
7916 
7917     # Try to remove the string !LN! from our list.
7918     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
7919     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7920       # If it failed, the variable was not from the command line. Ignore it,
7921       # but warn the user (except for BASH, which is always set by the calling BASH).
7922       if test "xLN" != xBASH; then
7923         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
7924 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
7925       fi
7926       # Try to locate tool using the code snippet
7927       for ac_prog in ln
7928 do
7929   # Extract the first word of "$ac_prog", so it can be a program name with args.
7930 set dummy $ac_prog; ac_word=$2
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7932 $as_echo_n "checking for $ac_word... " >&6; }
7933 if ${ac_cv_path_LN+:} false; then :
7934   $as_echo_n "(cached) " >&6
7935 else
7936   case $LN in
7937   [\\/]* | ?:[\\/]*)
7938   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7939   ;;
7940   *)
7941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942 for as_dir in $PATH
7943 do
7944   IFS=$as_save_IFS
7945   test -z "$as_dir" && as_dir=.
7946     for ac_exec_ext in '' $ac_executable_extensions; do
7947   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7948     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7950     break 2
7951   fi
7952 done
7953   done
7954 IFS=$as_save_IFS
7955 
7956   ;;
7957 esac
7958 fi
7959 LN=$ac_cv_path_LN
7960 if test -n "$LN"; then
7961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7962 $as_echo "$LN" >&6; }
7963 else
7964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 $as_echo "no" >&6; }
7966 fi
7967 
7968 
7969   test -n "$LN" && break
7970 done
7971 
7972     else
7973       # If it succeeded, then it was overridden by the user. We will use it
7974       # for the tool.
7975 
7976       # First remove it from the list of overridden variables, so we can test
7977       # for unknown variables in the end.
7978       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7979 
7980       # Check if the provided tool contains a complete path.
7981       tool_specified="$LN"
7982       tool_basename="${tool_specified##*/}"
7983       if test "x$tool_basename" = "x$tool_specified"; then
7984         # A command without a complete path is provided, search $PATH.
7985         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
7986 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
7987         # Extract the first word of "$tool_basename", so it can be a program name with args.
7988 set dummy $tool_basename; ac_word=$2
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7990 $as_echo_n "checking for $ac_word... " >&6; }
7991 if ${ac_cv_path_LN+:} false; then :
7992   $as_echo_n "(cached) " >&6
7993 else
7994   case $LN in
7995   [\\/]* | ?:[\\/]*)
7996   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7997   ;;
7998   *)
7999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000 for as_dir in $PATH
8001 do
8002   IFS=$as_save_IFS
8003   test -z "$as_dir" && as_dir=.
8004     for ac_exec_ext in '' $ac_executable_extensions; do
8005   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8006     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8008     break 2
8009   fi
8010 done
8011   done
8012 IFS=$as_save_IFS
8013 
8014   ;;
8015 esac
8016 fi
8017 LN=$ac_cv_path_LN
8018 if test -n "$LN"; then
8019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8020 $as_echo "$LN" >&6; }
8021 else
8022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8023 $as_echo "no" >&6; }
8024 fi
8025 
8026 
8027         if test "x$LN" = x; then
8028           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8029         fi
8030       else
8031         # Otherwise we believe it is a complete path. Use it as it is.
8032         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
8033 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
8034         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
8035 $as_echo_n "checking for LN... " >&6; }
8036         if test ! -x "$tool_specified"; then
8037           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8038 $as_echo "not found" >&6; }
8039           as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
8040         fi
8041         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8042 $as_echo "$tool_specified" >&6; }
8043       fi
8044     fi
8045   fi
8046 
8047 
8048 
8049   if test "x$LN" = x; then
8050     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
8051   fi
8052 
8053 
8054 
8055 
8056 
8057   # Publish this variable in the help.
8058 
8059 
8060   if test "x$LS" = x; then
8061     # The variable is not set by user, try to locate tool using the code snippet
8062     for ac_prog in ls
8063 do
8064   # Extract the first word of "$ac_prog", so it can be a program name with args.
8065 set dummy $ac_prog; ac_word=$2
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8067 $as_echo_n "checking for $ac_word... " >&6; }
8068 if ${ac_cv_path_LS+:} false; then :
8069   $as_echo_n "(cached) " >&6
8070 else
8071   case $LS in
8072   [\\/]* | ?:[\\/]*)
8073   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8074   ;;
8075   *)
8076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077 for as_dir in $PATH
8078 do
8079   IFS=$as_save_IFS
8080   test -z "$as_dir" && as_dir=.
8081     for ac_exec_ext in '' $ac_executable_extensions; do
8082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8083     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8085     break 2
8086   fi
8087 done
8088   done
8089 IFS=$as_save_IFS
8090 
8091   ;;
8092 esac
8093 fi
8094 LS=$ac_cv_path_LS
8095 if test -n "$LS"; then
8096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8097 $as_echo "$LS" >&6; }
8098 else
8099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100 $as_echo "no" >&6; }
8101 fi
8102 
8103 
8104   test -n "$LS" && break
8105 done
8106 
8107   else
8108     # The variable is set, but is it from the command line or the environment?
8109 
8110     # Try to remove the string !LS! from our list.
8111     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
8112     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8113       # If it failed, the variable was not from the command line. Ignore it,
8114       # but warn the user (except for BASH, which is always set by the calling BASH).
8115       if test "xLS" != xBASH; then
8116         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
8117 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
8118       fi
8119       # Try to locate tool using the code snippet
8120       for ac_prog in ls
8121 do
8122   # Extract the first word of "$ac_prog", so it can be a program name with args.
8123 set dummy $ac_prog; ac_word=$2
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8125 $as_echo_n "checking for $ac_word... " >&6; }
8126 if ${ac_cv_path_LS+:} false; then :
8127   $as_echo_n "(cached) " >&6
8128 else
8129   case $LS in
8130   [\\/]* | ?:[\\/]*)
8131   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8132   ;;
8133   *)
8134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135 for as_dir in $PATH
8136 do
8137   IFS=$as_save_IFS
8138   test -z "$as_dir" && as_dir=.
8139     for ac_exec_ext in '' $ac_executable_extensions; do
8140   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8141     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8143     break 2
8144   fi
8145 done
8146   done
8147 IFS=$as_save_IFS
8148 
8149   ;;
8150 esac
8151 fi
8152 LS=$ac_cv_path_LS
8153 if test -n "$LS"; then
8154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8155 $as_echo "$LS" >&6; }
8156 else
8157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158 $as_echo "no" >&6; }
8159 fi
8160 
8161 
8162   test -n "$LS" && break
8163 done
8164 
8165     else
8166       # If it succeeded, then it was overridden by the user. We will use it
8167       # for the tool.
8168 
8169       # First remove it from the list of overridden variables, so we can test
8170       # for unknown variables in the end.
8171       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8172 
8173       # Check if the provided tool contains a complete path.
8174       tool_specified="$LS"
8175       tool_basename="${tool_specified##*/}"
8176       if test "x$tool_basename" = "x$tool_specified"; then
8177         # A command without a complete path is provided, search $PATH.
8178         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
8179 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
8180         # Extract the first word of "$tool_basename", so it can be a program name with args.
8181 set dummy $tool_basename; ac_word=$2
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8183 $as_echo_n "checking for $ac_word... " >&6; }
8184 if ${ac_cv_path_LS+:} false; then :
8185   $as_echo_n "(cached) " >&6
8186 else
8187   case $LS in
8188   [\\/]* | ?:[\\/]*)
8189   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8190   ;;
8191   *)
8192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193 for as_dir in $PATH
8194 do
8195   IFS=$as_save_IFS
8196   test -z "$as_dir" && as_dir=.
8197     for ac_exec_ext in '' $ac_executable_extensions; do
8198   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8199     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8201     break 2
8202   fi
8203 done
8204   done
8205 IFS=$as_save_IFS
8206 
8207   ;;
8208 esac
8209 fi
8210 LS=$ac_cv_path_LS
8211 if test -n "$LS"; then
8212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8213 $as_echo "$LS" >&6; }
8214 else
8215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216 $as_echo "no" >&6; }
8217 fi
8218 
8219 
8220         if test "x$LS" = x; then
8221           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8222         fi
8223       else
8224         # Otherwise we believe it is a complete path. Use it as it is.
8225         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
8226 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
8227         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
8228 $as_echo_n "checking for LS... " >&6; }
8229         if test ! -x "$tool_specified"; then
8230           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8231 $as_echo "not found" >&6; }
8232           as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
8233         fi
8234         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8235 $as_echo "$tool_specified" >&6; }
8236       fi
8237     fi
8238   fi
8239 
8240 
8241 
8242   if test "x$LS" = x; then
8243     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
8244   fi
8245 
8246 
8247 
8248 
8249 
8250   # Publish this variable in the help.
8251 
8252 
8253   if test "x$MKDIR" = x; then
8254     # The variable is not set by user, try to locate tool using the code snippet
8255     for ac_prog in mkdir
8256 do
8257   # Extract the first word of "$ac_prog", so it can be a program name with args.
8258 set dummy $ac_prog; ac_word=$2
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8260 $as_echo_n "checking for $ac_word... " >&6; }
8261 if ${ac_cv_path_MKDIR+:} false; then :
8262   $as_echo_n "(cached) " >&6
8263 else
8264   case $MKDIR in
8265   [\\/]* | ?:[\\/]*)
8266   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8267   ;;
8268   *)
8269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270 for as_dir in $PATH
8271 do
8272   IFS=$as_save_IFS
8273   test -z "$as_dir" && as_dir=.
8274     for ac_exec_ext in '' $ac_executable_extensions; do
8275   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8276     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8278     break 2
8279   fi
8280 done
8281   done
8282 IFS=$as_save_IFS
8283 
8284   ;;
8285 esac
8286 fi
8287 MKDIR=$ac_cv_path_MKDIR
8288 if test -n "$MKDIR"; then
8289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8290 $as_echo "$MKDIR" >&6; }
8291 else
8292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 $as_echo "no" >&6; }
8294 fi
8295 
8296 
8297   test -n "$MKDIR" && break
8298 done
8299 
8300   else
8301     # The variable is set, but is it from the command line or the environment?
8302 
8303     # Try to remove the string !MKDIR! from our list.
8304     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
8305     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8306       # If it failed, the variable was not from the command line. Ignore it,
8307       # but warn the user (except for BASH, which is always set by the calling BASH).
8308       if test "xMKDIR" != xBASH; then
8309         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
8310 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
8311       fi
8312       # Try to locate tool using the code snippet
8313       for ac_prog in mkdir
8314 do
8315   # Extract the first word of "$ac_prog", so it can be a program name with args.
8316 set dummy $ac_prog; ac_word=$2
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8318 $as_echo_n "checking for $ac_word... " >&6; }
8319 if ${ac_cv_path_MKDIR+:} false; then :
8320   $as_echo_n "(cached) " >&6
8321 else
8322   case $MKDIR in
8323   [\\/]* | ?:[\\/]*)
8324   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8325   ;;
8326   *)
8327   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8328 for as_dir in $PATH
8329 do
8330   IFS=$as_save_IFS
8331   test -z "$as_dir" && as_dir=.
8332     for ac_exec_ext in '' $ac_executable_extensions; do
8333   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8334     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8336     break 2
8337   fi
8338 done
8339   done
8340 IFS=$as_save_IFS
8341 
8342   ;;
8343 esac
8344 fi
8345 MKDIR=$ac_cv_path_MKDIR
8346 if test -n "$MKDIR"; then
8347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8348 $as_echo "$MKDIR" >&6; }
8349 else
8350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8351 $as_echo "no" >&6; }
8352 fi
8353 
8354 
8355   test -n "$MKDIR" && break
8356 done
8357 
8358     else
8359       # If it succeeded, then it was overridden by the user. We will use it
8360       # for the tool.
8361 
8362       # First remove it from the list of overridden variables, so we can test
8363       # for unknown variables in the end.
8364       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8365 
8366       # Check if the provided tool contains a complete path.
8367       tool_specified="$MKDIR"
8368       tool_basename="${tool_specified##*/}"
8369       if test "x$tool_basename" = "x$tool_specified"; then
8370         # A command without a complete path is provided, search $PATH.
8371         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
8372 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
8373         # Extract the first word of "$tool_basename", so it can be a program name with args.
8374 set dummy $tool_basename; ac_word=$2
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8376 $as_echo_n "checking for $ac_word... " >&6; }
8377 if ${ac_cv_path_MKDIR+:} false; then :
8378   $as_echo_n "(cached) " >&6
8379 else
8380   case $MKDIR in
8381   [\\/]* | ?:[\\/]*)
8382   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8383   ;;
8384   *)
8385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8386 for as_dir in $PATH
8387 do
8388   IFS=$as_save_IFS
8389   test -z "$as_dir" && as_dir=.
8390     for ac_exec_ext in '' $ac_executable_extensions; do
8391   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8392     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8394     break 2
8395   fi
8396 done
8397   done
8398 IFS=$as_save_IFS
8399 
8400   ;;
8401 esac
8402 fi
8403 MKDIR=$ac_cv_path_MKDIR
8404 if test -n "$MKDIR"; then
8405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8406 $as_echo "$MKDIR" >&6; }
8407 else
8408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8409 $as_echo "no" >&6; }
8410 fi
8411 
8412 
8413         if test "x$MKDIR" = x; then
8414           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8415         fi
8416       else
8417         # Otherwise we believe it is a complete path. Use it as it is.
8418         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
8419 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
8420         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8421 $as_echo_n "checking for MKDIR... " >&6; }
8422         if test ! -x "$tool_specified"; then
8423           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8424 $as_echo "not found" >&6; }
8425           as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
8426         fi
8427         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8428 $as_echo "$tool_specified" >&6; }
8429       fi
8430     fi
8431   fi
8432 
8433 
8434 
8435   if test "x$MKDIR" = x; then
8436     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
8437   fi
8438 
8439 
8440 
8441 
8442 
8443   # Publish this variable in the help.
8444 
8445 
8446   if test "x$MKTEMP" = x; then
8447     # The variable is not set by user, try to locate tool using the code snippet
8448     for ac_prog in mktemp
8449 do
8450   # Extract the first word of "$ac_prog", so it can be a program name with args.
8451 set dummy $ac_prog; ac_word=$2
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8453 $as_echo_n "checking for $ac_word... " >&6; }
8454 if ${ac_cv_path_MKTEMP+:} false; then :
8455   $as_echo_n "(cached) " >&6
8456 else
8457   case $MKTEMP in
8458   [\\/]* | ?:[\\/]*)
8459   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8460   ;;
8461   *)
8462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8463 for as_dir in $PATH
8464 do
8465   IFS=$as_save_IFS
8466   test -z "$as_dir" && as_dir=.
8467     for ac_exec_ext in '' $ac_executable_extensions; do
8468   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8469     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8471     break 2
8472   fi
8473 done
8474   done
8475 IFS=$as_save_IFS
8476 
8477   ;;
8478 esac
8479 fi
8480 MKTEMP=$ac_cv_path_MKTEMP
8481 if test -n "$MKTEMP"; then
8482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8483 $as_echo "$MKTEMP" >&6; }
8484 else
8485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8486 $as_echo "no" >&6; }
8487 fi
8488 
8489 
8490   test -n "$MKTEMP" && break
8491 done
8492 
8493   else
8494     # The variable is set, but is it from the command line or the environment?
8495 
8496     # Try to remove the string !MKTEMP! from our list.
8497     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8498     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8499       # If it failed, the variable was not from the command line. Ignore it,
8500       # but warn the user (except for BASH, which is always set by the calling BASH).
8501       if test "xMKTEMP" != xBASH; then
8502         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8503 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8504       fi
8505       # Try to locate tool using the code snippet
8506       for ac_prog in mktemp
8507 do
8508   # Extract the first word of "$ac_prog", so it can be a program name with args.
8509 set dummy $ac_prog; ac_word=$2
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8511 $as_echo_n "checking for $ac_word... " >&6; }
8512 if ${ac_cv_path_MKTEMP+:} false; then :
8513   $as_echo_n "(cached) " >&6
8514 else
8515   case $MKTEMP in
8516   [\\/]* | ?:[\\/]*)
8517   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8518   ;;
8519   *)
8520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8521 for as_dir in $PATH
8522 do
8523   IFS=$as_save_IFS
8524   test -z "$as_dir" && as_dir=.
8525     for ac_exec_ext in '' $ac_executable_extensions; do
8526   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8527     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8529     break 2
8530   fi
8531 done
8532   done
8533 IFS=$as_save_IFS
8534 
8535   ;;
8536 esac
8537 fi
8538 MKTEMP=$ac_cv_path_MKTEMP
8539 if test -n "$MKTEMP"; then
8540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8541 $as_echo "$MKTEMP" >&6; }
8542 else
8543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544 $as_echo "no" >&6; }
8545 fi
8546 
8547 
8548   test -n "$MKTEMP" && break
8549 done
8550 
8551     else
8552       # If it succeeded, then it was overridden by the user. We will use it
8553       # for the tool.
8554 
8555       # First remove it from the list of overridden variables, so we can test
8556       # for unknown variables in the end.
8557       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8558 
8559       # Check if the provided tool contains a complete path.
8560       tool_specified="$MKTEMP"
8561       tool_basename="${tool_specified##*/}"
8562       if test "x$tool_basename" = "x$tool_specified"; then
8563         # A command without a complete path is provided, search $PATH.
8564         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8565 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8566         # Extract the first word of "$tool_basename", so it can be a program name with args.
8567 set dummy $tool_basename; ac_word=$2
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8569 $as_echo_n "checking for $ac_word... " >&6; }
8570 if ${ac_cv_path_MKTEMP+:} false; then :
8571   $as_echo_n "(cached) " >&6
8572 else
8573   case $MKTEMP in
8574   [\\/]* | ?:[\\/]*)
8575   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8576   ;;
8577   *)
8578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8579 for as_dir in $PATH
8580 do
8581   IFS=$as_save_IFS
8582   test -z "$as_dir" && as_dir=.
8583     for ac_exec_ext in '' $ac_executable_extensions; do
8584   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8585     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8587     break 2
8588   fi
8589 done
8590   done
8591 IFS=$as_save_IFS
8592 
8593   ;;
8594 esac
8595 fi
8596 MKTEMP=$ac_cv_path_MKTEMP
8597 if test -n "$MKTEMP"; then
8598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8599 $as_echo "$MKTEMP" >&6; }
8600 else
8601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8602 $as_echo "no" >&6; }
8603 fi
8604 
8605 
8606         if test "x$MKTEMP" = x; then
8607           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8608         fi
8609       else
8610         # Otherwise we believe it is a complete path. Use it as it is.
8611         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8612 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8613         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8614 $as_echo_n "checking for MKTEMP... " >&6; }
8615         if test ! -x "$tool_specified"; then
8616           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8617 $as_echo "not found" >&6; }
8618           as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8619         fi
8620         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8621 $as_echo "$tool_specified" >&6; }
8622       fi
8623     fi
8624   fi
8625 
8626 
8627 
8628   if test "x$MKTEMP" = x; then
8629     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8630   fi
8631 
8632 
8633 
8634 
8635 
8636   # Publish this variable in the help.
8637 
8638 
8639   if test "x$MV" = x; then
8640     # The variable is not set by user, try to locate tool using the code snippet
8641     for ac_prog in mv
8642 do
8643   # Extract the first word of "$ac_prog", so it can be a program name with args.
8644 set dummy $ac_prog; ac_word=$2
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8646 $as_echo_n "checking for $ac_word... " >&6; }
8647 if ${ac_cv_path_MV+:} false; then :
8648   $as_echo_n "(cached) " >&6
8649 else
8650   case $MV in
8651   [\\/]* | ?:[\\/]*)
8652   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8653   ;;
8654   *)
8655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8656 for as_dir in $PATH
8657 do
8658   IFS=$as_save_IFS
8659   test -z "$as_dir" && as_dir=.
8660     for ac_exec_ext in '' $ac_executable_extensions; do
8661   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8662     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8664     break 2
8665   fi
8666 done
8667   done
8668 IFS=$as_save_IFS
8669 
8670   ;;
8671 esac
8672 fi
8673 MV=$ac_cv_path_MV
8674 if test -n "$MV"; then
8675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8676 $as_echo "$MV" >&6; }
8677 else
8678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8679 $as_echo "no" >&6; }
8680 fi
8681 
8682 
8683   test -n "$MV" && break
8684 done
8685 
8686   else
8687     # The variable is set, but is it from the command line or the environment?
8688 
8689     # Try to remove the string !MV! from our list.
8690     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8691     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8692       # If it failed, the variable was not from the command line. Ignore it,
8693       # but warn the user (except for BASH, which is always set by the calling BASH).
8694       if test "xMV" != xBASH; then
8695         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8696 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8697       fi
8698       # Try to locate tool using the code snippet
8699       for ac_prog in mv
8700 do
8701   # Extract the first word of "$ac_prog", so it can be a program name with args.
8702 set dummy $ac_prog; ac_word=$2
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8704 $as_echo_n "checking for $ac_word... " >&6; }
8705 if ${ac_cv_path_MV+:} false; then :
8706   $as_echo_n "(cached) " >&6
8707 else
8708   case $MV in
8709   [\\/]* | ?:[\\/]*)
8710   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8711   ;;
8712   *)
8713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8714 for as_dir in $PATH
8715 do
8716   IFS=$as_save_IFS
8717   test -z "$as_dir" && as_dir=.
8718     for ac_exec_ext in '' $ac_executable_extensions; do
8719   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8720     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8722     break 2
8723   fi
8724 done
8725   done
8726 IFS=$as_save_IFS
8727 
8728   ;;
8729 esac
8730 fi
8731 MV=$ac_cv_path_MV
8732 if test -n "$MV"; then
8733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8734 $as_echo "$MV" >&6; }
8735 else
8736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8737 $as_echo "no" >&6; }
8738 fi
8739 
8740 
8741   test -n "$MV" && break
8742 done
8743 
8744     else
8745       # If it succeeded, then it was overridden by the user. We will use it
8746       # for the tool.
8747 
8748       # First remove it from the list of overridden variables, so we can test
8749       # for unknown variables in the end.
8750       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8751 
8752       # Check if the provided tool contains a complete path.
8753       tool_specified="$MV"
8754       tool_basename="${tool_specified##*/}"
8755       if test "x$tool_basename" = "x$tool_specified"; then
8756         # A command without a complete path is provided, search $PATH.
8757         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8758 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8759         # Extract the first word of "$tool_basename", so it can be a program name with args.
8760 set dummy $tool_basename; ac_word=$2
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8762 $as_echo_n "checking for $ac_word... " >&6; }
8763 if ${ac_cv_path_MV+:} false; then :
8764   $as_echo_n "(cached) " >&6
8765 else
8766   case $MV in
8767   [\\/]* | ?:[\\/]*)
8768   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8769   ;;
8770   *)
8771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8772 for as_dir in $PATH
8773 do
8774   IFS=$as_save_IFS
8775   test -z "$as_dir" && as_dir=.
8776     for ac_exec_ext in '' $ac_executable_extensions; do
8777   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8778     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8780     break 2
8781   fi
8782 done
8783   done
8784 IFS=$as_save_IFS
8785 
8786   ;;
8787 esac
8788 fi
8789 MV=$ac_cv_path_MV
8790 if test -n "$MV"; then
8791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8792 $as_echo "$MV" >&6; }
8793 else
8794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795 $as_echo "no" >&6; }
8796 fi
8797 
8798 
8799         if test "x$MV" = x; then
8800           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8801         fi
8802       else
8803         # Otherwise we believe it is a complete path. Use it as it is.
8804         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
8805 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
8806         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8807 $as_echo_n "checking for MV... " >&6; }
8808         if test ! -x "$tool_specified"; then
8809           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8810 $as_echo "not found" >&6; }
8811           as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
8812         fi
8813         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8814 $as_echo "$tool_specified" >&6; }
8815       fi
8816     fi
8817   fi
8818 
8819 
8820 
8821   if test "x$MV" = x; then
8822     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
8823   fi
8824 
8825 
8826 
8827 
8828 
8829   # Publish this variable in the help.
8830 
8831 
8832   if test "x$NAWK" = x; then
8833     # The variable is not set by user, try to locate tool using the code snippet
8834     for ac_prog in nawk gawk awk
8835 do
8836   # Extract the first word of "$ac_prog", so it can be a program name with args.
8837 set dummy $ac_prog; ac_word=$2
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8839 $as_echo_n "checking for $ac_word... " >&6; }
8840 if ${ac_cv_path_NAWK+:} false; then :
8841   $as_echo_n "(cached) " >&6
8842 else
8843   case $NAWK in
8844   [\\/]* | ?:[\\/]*)
8845   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8846   ;;
8847   *)
8848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8849 for as_dir in $PATH
8850 do
8851   IFS=$as_save_IFS
8852   test -z "$as_dir" && as_dir=.
8853     for ac_exec_ext in '' $ac_executable_extensions; do
8854   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8855     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8857     break 2
8858   fi
8859 done
8860   done
8861 IFS=$as_save_IFS
8862 
8863   ;;
8864 esac
8865 fi
8866 NAWK=$ac_cv_path_NAWK
8867 if test -n "$NAWK"; then
8868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8869 $as_echo "$NAWK" >&6; }
8870 else
8871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8872 $as_echo "no" >&6; }
8873 fi
8874 
8875 
8876   test -n "$NAWK" && break
8877 done
8878 
8879   else
8880     # The variable is set, but is it from the command line or the environment?
8881 
8882     # Try to remove the string !NAWK! from our list.
8883     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
8884     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8885       # If it failed, the variable was not from the command line. Ignore it,
8886       # but warn the user (except for BASH, which is always set by the calling BASH).
8887       if test "xNAWK" != xBASH; then
8888         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
8889 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
8890       fi
8891       # Try to locate tool using the code snippet
8892       for ac_prog in nawk gawk awk
8893 do
8894   # Extract the first word of "$ac_prog", so it can be a program name with args.
8895 set dummy $ac_prog; ac_word=$2
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8897 $as_echo_n "checking for $ac_word... " >&6; }
8898 if ${ac_cv_path_NAWK+:} false; then :
8899   $as_echo_n "(cached) " >&6
8900 else
8901   case $NAWK in
8902   [\\/]* | ?:[\\/]*)
8903   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8904   ;;
8905   *)
8906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8907 for as_dir in $PATH
8908 do
8909   IFS=$as_save_IFS
8910   test -z "$as_dir" && as_dir=.
8911     for ac_exec_ext in '' $ac_executable_extensions; do
8912   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8913     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8915     break 2
8916   fi
8917 done
8918   done
8919 IFS=$as_save_IFS
8920 
8921   ;;
8922 esac
8923 fi
8924 NAWK=$ac_cv_path_NAWK
8925 if test -n "$NAWK"; then
8926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8927 $as_echo "$NAWK" >&6; }
8928 else
8929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8930 $as_echo "no" >&6; }
8931 fi
8932 
8933 
8934   test -n "$NAWK" && break
8935 done
8936 
8937     else
8938       # If it succeeded, then it was overridden by the user. We will use it
8939       # for the tool.
8940 
8941       # First remove it from the list of overridden variables, so we can test
8942       # for unknown variables in the end.
8943       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8944 
8945       # Check if the provided tool contains a complete path.
8946       tool_specified="$NAWK"
8947       tool_basename="${tool_specified##*/}"
8948       if test "x$tool_basename" = "x$tool_specified"; then
8949         # A command without a complete path is provided, search $PATH.
8950         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
8951 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
8952         # Extract the first word of "$tool_basename", so it can be a program name with args.
8953 set dummy $tool_basename; ac_word=$2
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8955 $as_echo_n "checking for $ac_word... " >&6; }
8956 if ${ac_cv_path_NAWK+:} false; then :
8957   $as_echo_n "(cached) " >&6
8958 else
8959   case $NAWK in
8960   [\\/]* | ?:[\\/]*)
8961   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8962   ;;
8963   *)
8964   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8965 for as_dir in $PATH
8966 do
8967   IFS=$as_save_IFS
8968   test -z "$as_dir" && as_dir=.
8969     for ac_exec_ext in '' $ac_executable_extensions; do
8970   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8971     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8973     break 2
8974   fi
8975 done
8976   done
8977 IFS=$as_save_IFS
8978 
8979   ;;
8980 esac
8981 fi
8982 NAWK=$ac_cv_path_NAWK
8983 if test -n "$NAWK"; then
8984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8985 $as_echo "$NAWK" >&6; }
8986 else
8987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8988 $as_echo "no" >&6; }
8989 fi
8990 
8991 
8992         if test "x$NAWK" = x; then
8993           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8994         fi
8995       else
8996         # Otherwise we believe it is a complete path. Use it as it is.
8997         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
8998 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
8999         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
9000 $as_echo_n "checking for NAWK... " >&6; }
9001         if test ! -x "$tool_specified"; then
9002           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9003 $as_echo "not found" >&6; }
9004           as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
9005         fi
9006         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9007 $as_echo "$tool_specified" >&6; }
9008       fi
9009     fi
9010   fi
9011 
9012 
9013 
9014   if test "x$NAWK" = x; then
9015     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
9016   fi
9017 
9018 
9019 
9020 
9021 
9022   # Publish this variable in the help.
9023 
9024 
9025   if test "x$PRINTF" = x; then
9026     # The variable is not set by user, try to locate tool using the code snippet
9027     for ac_prog in printf
9028 do
9029   # Extract the first word of "$ac_prog", so it can be a program name with args.
9030 set dummy $ac_prog; ac_word=$2
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9032 $as_echo_n "checking for $ac_word... " >&6; }
9033 if ${ac_cv_path_PRINTF+:} false; then :
9034   $as_echo_n "(cached) " >&6
9035 else
9036   case $PRINTF in
9037   [\\/]* | ?:[\\/]*)
9038   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9039   ;;
9040   *)
9041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9042 for as_dir in $PATH
9043 do
9044   IFS=$as_save_IFS
9045   test -z "$as_dir" && as_dir=.
9046     for ac_exec_ext in '' $ac_executable_extensions; do
9047   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9048     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9050     break 2
9051   fi
9052 done
9053   done
9054 IFS=$as_save_IFS
9055 
9056   ;;
9057 esac
9058 fi
9059 PRINTF=$ac_cv_path_PRINTF
9060 if test -n "$PRINTF"; then
9061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9062 $as_echo "$PRINTF" >&6; }
9063 else
9064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9065 $as_echo "no" >&6; }
9066 fi
9067 
9068 
9069   test -n "$PRINTF" && break
9070 done
9071 
9072   else
9073     # The variable is set, but is it from the command line or the environment?
9074 
9075     # Try to remove the string !PRINTF! from our list.
9076     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
9077     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9078       # If it failed, the variable was not from the command line. Ignore it,
9079       # but warn the user (except for BASH, which is always set by the calling BASH).
9080       if test "xPRINTF" != xBASH; then
9081         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
9082 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
9083       fi
9084       # Try to locate tool using the code snippet
9085       for ac_prog in printf
9086 do
9087   # Extract the first word of "$ac_prog", so it can be a program name with args.
9088 set dummy $ac_prog; ac_word=$2
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9090 $as_echo_n "checking for $ac_word... " >&6; }
9091 if ${ac_cv_path_PRINTF+:} false; then :
9092   $as_echo_n "(cached) " >&6
9093 else
9094   case $PRINTF in
9095   [\\/]* | ?:[\\/]*)
9096   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9097   ;;
9098   *)
9099   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9100 for as_dir in $PATH
9101 do
9102   IFS=$as_save_IFS
9103   test -z "$as_dir" && as_dir=.
9104     for ac_exec_ext in '' $ac_executable_extensions; do
9105   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9106     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9108     break 2
9109   fi
9110 done
9111   done
9112 IFS=$as_save_IFS
9113 
9114   ;;
9115 esac
9116 fi
9117 PRINTF=$ac_cv_path_PRINTF
9118 if test -n "$PRINTF"; then
9119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9120 $as_echo "$PRINTF" >&6; }
9121 else
9122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9123 $as_echo "no" >&6; }
9124 fi
9125 
9126 
9127   test -n "$PRINTF" && break
9128 done
9129 
9130     else
9131       # If it succeeded, then it was overridden by the user. We will use it
9132       # for the tool.
9133 
9134       # First remove it from the list of overridden variables, so we can test
9135       # for unknown variables in the end.
9136       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9137 
9138       # Check if the provided tool contains a complete path.
9139       tool_specified="$PRINTF"
9140       tool_basename="${tool_specified##*/}"
9141       if test "x$tool_basename" = "x$tool_specified"; then
9142         # A command without a complete path is provided, search $PATH.
9143         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
9144 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
9145         # Extract the first word of "$tool_basename", so it can be a program name with args.
9146 set dummy $tool_basename; ac_word=$2
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9148 $as_echo_n "checking for $ac_word... " >&6; }
9149 if ${ac_cv_path_PRINTF+:} false; then :
9150   $as_echo_n "(cached) " >&6
9151 else
9152   case $PRINTF in
9153   [\\/]* | ?:[\\/]*)
9154   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9155   ;;
9156   *)
9157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9158 for as_dir in $PATH
9159 do
9160   IFS=$as_save_IFS
9161   test -z "$as_dir" && as_dir=.
9162     for ac_exec_ext in '' $ac_executable_extensions; do
9163   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9164     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9166     break 2
9167   fi
9168 done
9169   done
9170 IFS=$as_save_IFS
9171 
9172   ;;
9173 esac
9174 fi
9175 PRINTF=$ac_cv_path_PRINTF
9176 if test -n "$PRINTF"; then
9177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9178 $as_echo "$PRINTF" >&6; }
9179 else
9180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181 $as_echo "no" >&6; }
9182 fi
9183 
9184 
9185         if test "x$PRINTF" = x; then
9186           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9187         fi
9188       else
9189         # Otherwise we believe it is a complete path. Use it as it is.
9190         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
9191 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
9192         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
9193 $as_echo_n "checking for PRINTF... " >&6; }
9194         if test ! -x "$tool_specified"; then
9195           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9196 $as_echo "not found" >&6; }
9197           as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
9198         fi
9199         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9200 $as_echo "$tool_specified" >&6; }
9201       fi
9202     fi
9203   fi
9204 
9205 
9206 
9207   if test "x$PRINTF" = x; then
9208     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
9209   fi
9210 
9211 
9212 
9213 
9214 
9215   # Publish this variable in the help.
9216 
9217 
9218   if test "x$RM" = x; then
9219     # The variable is not set by user, try to locate tool using the code snippet
9220     for ac_prog in rm
9221 do
9222   # Extract the first word of "$ac_prog", so it can be a program name with args.
9223 set dummy $ac_prog; ac_word=$2
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9225 $as_echo_n "checking for $ac_word... " >&6; }
9226 if ${ac_cv_path_RM+:} false; then :
9227   $as_echo_n "(cached) " >&6
9228 else
9229   case $RM in
9230   [\\/]* | ?:[\\/]*)
9231   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9232   ;;
9233   *)
9234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9235 for as_dir in $PATH
9236 do
9237   IFS=$as_save_IFS
9238   test -z "$as_dir" && as_dir=.
9239     for ac_exec_ext in '' $ac_executable_extensions; do
9240   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9241     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9243     break 2
9244   fi
9245 done
9246   done
9247 IFS=$as_save_IFS
9248 
9249   ;;
9250 esac
9251 fi
9252 RM=$ac_cv_path_RM
9253 if test -n "$RM"; then
9254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9255 $as_echo "$RM" >&6; }
9256 else
9257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9258 $as_echo "no" >&6; }
9259 fi
9260 
9261 
9262   test -n "$RM" && break
9263 done
9264 
9265   else
9266     # The variable is set, but is it from the command line or the environment?
9267 
9268     # Try to remove the string !RM! from our list.
9269     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
9270     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9271       # If it failed, the variable was not from the command line. Ignore it,
9272       # but warn the user (except for BASH, which is always set by the calling BASH).
9273       if test "xRM" != xBASH; then
9274         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
9275 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
9276       fi
9277       # Try to locate tool using the code snippet
9278       for ac_prog in rm
9279 do
9280   # Extract the first word of "$ac_prog", so it can be a program name with args.
9281 set dummy $ac_prog; ac_word=$2
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9283 $as_echo_n "checking for $ac_word... " >&6; }
9284 if ${ac_cv_path_RM+:} false; then :
9285   $as_echo_n "(cached) " >&6
9286 else
9287   case $RM in
9288   [\\/]* | ?:[\\/]*)
9289   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9290   ;;
9291   *)
9292   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9293 for as_dir in $PATH
9294 do
9295   IFS=$as_save_IFS
9296   test -z "$as_dir" && as_dir=.
9297     for ac_exec_ext in '' $ac_executable_extensions; do
9298   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9299     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9301     break 2
9302   fi
9303 done
9304   done
9305 IFS=$as_save_IFS
9306 
9307   ;;
9308 esac
9309 fi
9310 RM=$ac_cv_path_RM
9311 if test -n "$RM"; then
9312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9313 $as_echo "$RM" >&6; }
9314 else
9315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9316 $as_echo "no" >&6; }
9317 fi
9318 
9319 
9320   test -n "$RM" && break
9321 done
9322 
9323     else
9324       # If it succeeded, then it was overridden by the user. We will use it
9325       # for the tool.
9326 
9327       # First remove it from the list of overridden variables, so we can test
9328       # for unknown variables in the end.
9329       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9330 
9331       # Check if the provided tool contains a complete path.
9332       tool_specified="$RM"
9333       tool_basename="${tool_specified##*/}"
9334       if test "x$tool_basename" = "x$tool_specified"; then
9335         # A command without a complete path is provided, search $PATH.
9336         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
9337 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
9338         # Extract the first word of "$tool_basename", so it can be a program name with args.
9339 set dummy $tool_basename; ac_word=$2
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9341 $as_echo_n "checking for $ac_word... " >&6; }
9342 if ${ac_cv_path_RM+:} false; then :
9343   $as_echo_n "(cached) " >&6
9344 else
9345   case $RM in
9346   [\\/]* | ?:[\\/]*)
9347   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9348   ;;
9349   *)
9350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9351 for as_dir in $PATH
9352 do
9353   IFS=$as_save_IFS
9354   test -z "$as_dir" && as_dir=.
9355     for ac_exec_ext in '' $ac_executable_extensions; do
9356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9357     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9359     break 2
9360   fi
9361 done
9362   done
9363 IFS=$as_save_IFS
9364 
9365   ;;
9366 esac
9367 fi
9368 RM=$ac_cv_path_RM
9369 if test -n "$RM"; then
9370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9371 $as_echo "$RM" >&6; }
9372 else
9373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9374 $as_echo "no" >&6; }
9375 fi
9376 
9377 
9378         if test "x$RM" = x; then
9379           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9380         fi
9381       else
9382         # Otherwise we believe it is a complete path. Use it as it is.
9383         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
9384 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
9385         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9386 $as_echo_n "checking for RM... " >&6; }
9387         if test ! -x "$tool_specified"; then
9388           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9389 $as_echo "not found" >&6; }
9390           as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
9391         fi
9392         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9393 $as_echo "$tool_specified" >&6; }
9394       fi
9395     fi
9396   fi
9397 
9398 
9399 
9400   if test "x$RM" = x; then
9401     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
9402   fi
9403 
9404 
9405 
9406 
9407 
9408   # Publish this variable in the help.
9409 
9410 
9411   if test "x$SH" = x; then
9412     # The variable is not set by user, try to locate tool using the code snippet
9413     for ac_prog in sh
9414 do
9415   # Extract the first word of "$ac_prog", so it can be a program name with args.
9416 set dummy $ac_prog; ac_word=$2
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9418 $as_echo_n "checking for $ac_word... " >&6; }
9419 if ${ac_cv_path_SH+:} false; then :
9420   $as_echo_n "(cached) " >&6
9421 else
9422   case $SH in
9423   [\\/]* | ?:[\\/]*)
9424   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9425   ;;
9426   *)
9427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9428 for as_dir in $PATH
9429 do
9430   IFS=$as_save_IFS
9431   test -z "$as_dir" && as_dir=.
9432     for ac_exec_ext in '' $ac_executable_extensions; do
9433   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9434     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9436     break 2
9437   fi
9438 done
9439   done
9440 IFS=$as_save_IFS
9441 
9442   ;;
9443 esac
9444 fi
9445 SH=$ac_cv_path_SH
9446 if test -n "$SH"; then
9447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9448 $as_echo "$SH" >&6; }
9449 else
9450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9451 $as_echo "no" >&6; }
9452 fi
9453 
9454 
9455   test -n "$SH" && break
9456 done
9457 
9458   else
9459     # The variable is set, but is it from the command line or the environment?
9460 
9461     # Try to remove the string !SH! from our list.
9462     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
9463     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9464       # If it failed, the variable was not from the command line. Ignore it,
9465       # but warn the user (except for BASH, which is always set by the calling BASH).
9466       if test "xSH" != xBASH; then
9467         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
9468 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
9469       fi
9470       # Try to locate tool using the code snippet
9471       for ac_prog in sh
9472 do
9473   # Extract the first word of "$ac_prog", so it can be a program name with args.
9474 set dummy $ac_prog; ac_word=$2
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9476 $as_echo_n "checking for $ac_word... " >&6; }
9477 if ${ac_cv_path_SH+:} false; then :
9478   $as_echo_n "(cached) " >&6
9479 else
9480   case $SH in
9481   [\\/]* | ?:[\\/]*)
9482   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9483   ;;
9484   *)
9485   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9486 for as_dir in $PATH
9487 do
9488   IFS=$as_save_IFS
9489   test -z "$as_dir" && as_dir=.
9490     for ac_exec_ext in '' $ac_executable_extensions; do
9491   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9492     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9494     break 2
9495   fi
9496 done
9497   done
9498 IFS=$as_save_IFS
9499 
9500   ;;
9501 esac
9502 fi
9503 SH=$ac_cv_path_SH
9504 if test -n "$SH"; then
9505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9506 $as_echo "$SH" >&6; }
9507 else
9508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9509 $as_echo "no" >&6; }
9510 fi
9511 
9512 
9513   test -n "$SH" && break
9514 done
9515 
9516     else
9517       # If it succeeded, then it was overridden by the user. We will use it
9518       # for the tool.
9519 
9520       # First remove it from the list of overridden variables, so we can test
9521       # for unknown variables in the end.
9522       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9523 
9524       # Check if the provided tool contains a complete path.
9525       tool_specified="$SH"
9526       tool_basename="${tool_specified##*/}"
9527       if test "x$tool_basename" = "x$tool_specified"; then
9528         # A command without a complete path is provided, search $PATH.
9529         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
9530 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
9531         # Extract the first word of "$tool_basename", so it can be a program name with args.
9532 set dummy $tool_basename; ac_word=$2
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9534 $as_echo_n "checking for $ac_word... " >&6; }
9535 if ${ac_cv_path_SH+:} false; then :
9536   $as_echo_n "(cached) " >&6
9537 else
9538   case $SH in
9539   [\\/]* | ?:[\\/]*)
9540   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9541   ;;
9542   *)
9543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9544 for as_dir in $PATH
9545 do
9546   IFS=$as_save_IFS
9547   test -z "$as_dir" && as_dir=.
9548     for ac_exec_ext in '' $ac_executable_extensions; do
9549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9550     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9552     break 2
9553   fi
9554 done
9555   done
9556 IFS=$as_save_IFS
9557 
9558   ;;
9559 esac
9560 fi
9561 SH=$ac_cv_path_SH
9562 if test -n "$SH"; then
9563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9564 $as_echo "$SH" >&6; }
9565 else
9566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9567 $as_echo "no" >&6; }
9568 fi
9569 
9570 
9571         if test "x$SH" = x; then
9572           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9573         fi
9574       else
9575         # Otherwise we believe it is a complete path. Use it as it is.
9576         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
9577 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
9578         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9579 $as_echo_n "checking for SH... " >&6; }
9580         if test ! -x "$tool_specified"; then
9581           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9582 $as_echo "not found" >&6; }
9583           as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
9584         fi
9585         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9586 $as_echo "$tool_specified" >&6; }
9587       fi
9588     fi
9589   fi
9590 
9591 
9592 
9593   if test "x$SH" = x; then
9594     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
9595   fi
9596 
9597 
9598 
9599 
9600 
9601   # Publish this variable in the help.
9602 
9603 
9604   if test "x$SORT" = x; then
9605     # The variable is not set by user, try to locate tool using the code snippet
9606     for ac_prog in sort
9607 do
9608   # Extract the first word of "$ac_prog", so it can be a program name with args.
9609 set dummy $ac_prog; ac_word=$2
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9611 $as_echo_n "checking for $ac_word... " >&6; }
9612 if ${ac_cv_path_SORT+:} false; then :
9613   $as_echo_n "(cached) " >&6
9614 else
9615   case $SORT in
9616   [\\/]* | ?:[\\/]*)
9617   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9618   ;;
9619   *)
9620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9621 for as_dir in $PATH
9622 do
9623   IFS=$as_save_IFS
9624   test -z "$as_dir" && as_dir=.
9625     for ac_exec_ext in '' $ac_executable_extensions; do
9626   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9627     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9629     break 2
9630   fi
9631 done
9632   done
9633 IFS=$as_save_IFS
9634 
9635   ;;
9636 esac
9637 fi
9638 SORT=$ac_cv_path_SORT
9639 if test -n "$SORT"; then
9640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9641 $as_echo "$SORT" >&6; }
9642 else
9643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9644 $as_echo "no" >&6; }
9645 fi
9646 
9647 
9648   test -n "$SORT" && break
9649 done
9650 
9651   else
9652     # The variable is set, but is it from the command line or the environment?
9653 
9654     # Try to remove the string !SORT! from our list.
9655     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
9656     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9657       # If it failed, the variable was not from the command line. Ignore it,
9658       # but warn the user (except for BASH, which is always set by the calling BASH).
9659       if test "xSORT" != xBASH; then
9660         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
9661 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
9662       fi
9663       # Try to locate tool using the code snippet
9664       for ac_prog in sort
9665 do
9666   # Extract the first word of "$ac_prog", so it can be a program name with args.
9667 set dummy $ac_prog; ac_word=$2
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9669 $as_echo_n "checking for $ac_word... " >&6; }
9670 if ${ac_cv_path_SORT+:} false; then :
9671   $as_echo_n "(cached) " >&6
9672 else
9673   case $SORT in
9674   [\\/]* | ?:[\\/]*)
9675   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9676   ;;
9677   *)
9678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9679 for as_dir in $PATH
9680 do
9681   IFS=$as_save_IFS
9682   test -z "$as_dir" && as_dir=.
9683     for ac_exec_ext in '' $ac_executable_extensions; do
9684   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9685     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9687     break 2
9688   fi
9689 done
9690   done
9691 IFS=$as_save_IFS
9692 
9693   ;;
9694 esac
9695 fi
9696 SORT=$ac_cv_path_SORT
9697 if test -n "$SORT"; then
9698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9699 $as_echo "$SORT" >&6; }
9700 else
9701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9702 $as_echo "no" >&6; }
9703 fi
9704 
9705 
9706   test -n "$SORT" && break
9707 done
9708 
9709     else
9710       # If it succeeded, then it was overridden by the user. We will use it
9711       # for the tool.
9712 
9713       # First remove it from the list of overridden variables, so we can test
9714       # for unknown variables in the end.
9715       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9716 
9717       # Check if the provided tool contains a complete path.
9718       tool_specified="$SORT"
9719       tool_basename="${tool_specified##*/}"
9720       if test "x$tool_basename" = "x$tool_specified"; then
9721         # A command without a complete path is provided, search $PATH.
9722         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
9723 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
9724         # Extract the first word of "$tool_basename", so it can be a program name with args.
9725 set dummy $tool_basename; ac_word=$2
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9727 $as_echo_n "checking for $ac_word... " >&6; }
9728 if ${ac_cv_path_SORT+:} false; then :
9729   $as_echo_n "(cached) " >&6
9730 else
9731   case $SORT in
9732   [\\/]* | ?:[\\/]*)
9733   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9734   ;;
9735   *)
9736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9737 for as_dir in $PATH
9738 do
9739   IFS=$as_save_IFS
9740   test -z "$as_dir" && as_dir=.
9741     for ac_exec_ext in '' $ac_executable_extensions; do
9742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9743     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9745     break 2
9746   fi
9747 done
9748   done
9749 IFS=$as_save_IFS
9750 
9751   ;;
9752 esac
9753 fi
9754 SORT=$ac_cv_path_SORT
9755 if test -n "$SORT"; then
9756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9757 $as_echo "$SORT" >&6; }
9758 else
9759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9760 $as_echo "no" >&6; }
9761 fi
9762 
9763 
9764         if test "x$SORT" = x; then
9765           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9766         fi
9767       else
9768         # Otherwise we believe it is a complete path. Use it as it is.
9769         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
9770 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
9771         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
9772 $as_echo_n "checking for SORT... " >&6; }
9773         if test ! -x "$tool_specified"; then
9774           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9775 $as_echo "not found" >&6; }
9776           as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
9777         fi
9778         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9779 $as_echo "$tool_specified" >&6; }
9780       fi
9781     fi
9782   fi
9783 
9784 
9785 
9786   if test "x$SORT" = x; then
9787     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
9788   fi
9789 
9790 
9791 
9792 
9793 
9794   # Publish this variable in the help.
9795 
9796 
9797   if test "x$TAIL" = x; then
9798     # The variable is not set by user, try to locate tool using the code snippet
9799     for ac_prog in tail
9800 do
9801   # Extract the first word of "$ac_prog", so it can be a program name with args.
9802 set dummy $ac_prog; ac_word=$2
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9804 $as_echo_n "checking for $ac_word... " >&6; }
9805 if ${ac_cv_path_TAIL+:} false; then :
9806   $as_echo_n "(cached) " >&6
9807 else
9808   case $TAIL in
9809   [\\/]* | ?:[\\/]*)
9810   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9811   ;;
9812   *)
9813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9814 for as_dir in $PATH
9815 do
9816   IFS=$as_save_IFS
9817   test -z "$as_dir" && as_dir=.
9818     for ac_exec_ext in '' $ac_executable_extensions; do
9819   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9820     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9822     break 2
9823   fi
9824 done
9825   done
9826 IFS=$as_save_IFS
9827 
9828   ;;
9829 esac
9830 fi
9831 TAIL=$ac_cv_path_TAIL
9832 if test -n "$TAIL"; then
9833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9834 $as_echo "$TAIL" >&6; }
9835 else
9836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9837 $as_echo "no" >&6; }
9838 fi
9839 
9840 
9841   test -n "$TAIL" && break
9842 done
9843 
9844   else
9845     # The variable is set, but is it from the command line or the environment?
9846 
9847     # Try to remove the string !TAIL! from our list.
9848     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
9849     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9850       # If it failed, the variable was not from the command line. Ignore it,
9851       # but warn the user (except for BASH, which is always set by the calling BASH).
9852       if test "xTAIL" != xBASH; then
9853         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
9854 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
9855       fi
9856       # Try to locate tool using the code snippet
9857       for ac_prog in tail
9858 do
9859   # Extract the first word of "$ac_prog", so it can be a program name with args.
9860 set dummy $ac_prog; ac_word=$2
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9862 $as_echo_n "checking for $ac_word... " >&6; }
9863 if ${ac_cv_path_TAIL+:} false; then :
9864   $as_echo_n "(cached) " >&6
9865 else
9866   case $TAIL in
9867   [\\/]* | ?:[\\/]*)
9868   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9869   ;;
9870   *)
9871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9872 for as_dir in $PATH
9873 do
9874   IFS=$as_save_IFS
9875   test -z "$as_dir" && as_dir=.
9876     for ac_exec_ext in '' $ac_executable_extensions; do
9877   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9878     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9880     break 2
9881   fi
9882 done
9883   done
9884 IFS=$as_save_IFS
9885 
9886   ;;
9887 esac
9888 fi
9889 TAIL=$ac_cv_path_TAIL
9890 if test -n "$TAIL"; then
9891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9892 $as_echo "$TAIL" >&6; }
9893 else
9894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9895 $as_echo "no" >&6; }
9896 fi
9897 
9898 
9899   test -n "$TAIL" && break
9900 done
9901 
9902     else
9903       # If it succeeded, then it was overridden by the user. We will use it
9904       # for the tool.
9905 
9906       # First remove it from the list of overridden variables, so we can test
9907       # for unknown variables in the end.
9908       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9909 
9910       # Check if the provided tool contains a complete path.
9911       tool_specified="$TAIL"
9912       tool_basename="${tool_specified##*/}"
9913       if test "x$tool_basename" = "x$tool_specified"; then
9914         # A command without a complete path is provided, search $PATH.
9915         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
9916 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
9917         # Extract the first word of "$tool_basename", so it can be a program name with args.
9918 set dummy $tool_basename; ac_word=$2
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9920 $as_echo_n "checking for $ac_word... " >&6; }
9921 if ${ac_cv_path_TAIL+:} false; then :
9922   $as_echo_n "(cached) " >&6
9923 else
9924   case $TAIL in
9925   [\\/]* | ?:[\\/]*)
9926   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9927   ;;
9928   *)
9929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9930 for as_dir in $PATH
9931 do
9932   IFS=$as_save_IFS
9933   test -z "$as_dir" && as_dir=.
9934     for ac_exec_ext in '' $ac_executable_extensions; do
9935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9936     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9938     break 2
9939   fi
9940 done
9941   done
9942 IFS=$as_save_IFS
9943 
9944   ;;
9945 esac
9946 fi
9947 TAIL=$ac_cv_path_TAIL
9948 if test -n "$TAIL"; then
9949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9950 $as_echo "$TAIL" >&6; }
9951 else
9952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9953 $as_echo "no" >&6; }
9954 fi
9955 
9956 
9957         if test "x$TAIL" = x; then
9958           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9959         fi
9960       else
9961         # Otherwise we believe it is a complete path. Use it as it is.
9962         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
9963 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
9964         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
9965 $as_echo_n "checking for TAIL... " >&6; }
9966         if test ! -x "$tool_specified"; then
9967           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9968 $as_echo "not found" >&6; }
9969           as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
9970         fi
9971         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9972 $as_echo "$tool_specified" >&6; }
9973       fi
9974     fi
9975   fi
9976 
9977 
9978 
9979   if test "x$TAIL" = x; then
9980     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
9981   fi
9982 
9983 
9984 
9985 
9986 
9987   # Publish this variable in the help.
9988 
9989 
9990   if test "x$TAR" = x; then
9991     # The variable is not set by user, try to locate tool using the code snippet
9992     for ac_prog in tar
9993 do
9994   # Extract the first word of "$ac_prog", so it can be a program name with args.
9995 set dummy $ac_prog; ac_word=$2
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9997 $as_echo_n "checking for $ac_word... " >&6; }
9998 if ${ac_cv_path_TAR+:} false; then :
9999   $as_echo_n "(cached) " >&6
10000 else
10001   case $TAR in
10002   [\\/]* | ?:[\\/]*)
10003   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10004   ;;
10005   *)
10006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10007 for as_dir in $PATH
10008 do
10009   IFS=$as_save_IFS
10010   test -z "$as_dir" && as_dir=.
10011     for ac_exec_ext in '' $ac_executable_extensions; do
10012   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10013     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10015     break 2
10016   fi
10017 done
10018   done
10019 IFS=$as_save_IFS
10020 
10021   ;;
10022 esac
10023 fi
10024 TAR=$ac_cv_path_TAR
10025 if test -n "$TAR"; then
10026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10027 $as_echo "$TAR" >&6; }
10028 else
10029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10030 $as_echo "no" >&6; }
10031 fi
10032 
10033 
10034   test -n "$TAR" && break
10035 done
10036 
10037   else
10038     # The variable is set, but is it from the command line or the environment?
10039 
10040     # Try to remove the string !TAR! from our list.
10041     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
10042     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10043       # If it failed, the variable was not from the command line. Ignore it,
10044       # but warn the user (except for BASH, which is always set by the calling BASH).
10045       if test "xTAR" != xBASH; then
10046         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
10047 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
10048       fi
10049       # Try to locate tool using the code snippet
10050       for ac_prog in tar
10051 do
10052   # Extract the first word of "$ac_prog", so it can be a program name with args.
10053 set dummy $ac_prog; ac_word=$2
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10055 $as_echo_n "checking for $ac_word... " >&6; }
10056 if ${ac_cv_path_TAR+:} false; then :
10057   $as_echo_n "(cached) " >&6
10058 else
10059   case $TAR in
10060   [\\/]* | ?:[\\/]*)
10061   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10062   ;;
10063   *)
10064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10065 for as_dir in $PATH
10066 do
10067   IFS=$as_save_IFS
10068   test -z "$as_dir" && as_dir=.
10069     for ac_exec_ext in '' $ac_executable_extensions; do
10070   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10071     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10073     break 2
10074   fi
10075 done
10076   done
10077 IFS=$as_save_IFS
10078 
10079   ;;
10080 esac
10081 fi
10082 TAR=$ac_cv_path_TAR
10083 if test -n "$TAR"; then
10084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10085 $as_echo "$TAR" >&6; }
10086 else
10087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10088 $as_echo "no" >&6; }
10089 fi
10090 
10091 
10092   test -n "$TAR" && break
10093 done
10094 
10095     else
10096       # If it succeeded, then it was overridden by the user. We will use it
10097       # for the tool.
10098 
10099       # First remove it from the list of overridden variables, so we can test
10100       # for unknown variables in the end.
10101       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10102 
10103       # Check if the provided tool contains a complete path.
10104       tool_specified="$TAR"
10105       tool_basename="${tool_specified##*/}"
10106       if test "x$tool_basename" = "x$tool_specified"; then
10107         # A command without a complete path is provided, search $PATH.
10108         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
10109 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
10110         # Extract the first word of "$tool_basename", so it can be a program name with args.
10111 set dummy $tool_basename; ac_word=$2
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10113 $as_echo_n "checking for $ac_word... " >&6; }
10114 if ${ac_cv_path_TAR+:} false; then :
10115   $as_echo_n "(cached) " >&6
10116 else
10117   case $TAR in
10118   [\\/]* | ?:[\\/]*)
10119   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10120   ;;
10121   *)
10122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10123 for as_dir in $PATH
10124 do
10125   IFS=$as_save_IFS
10126   test -z "$as_dir" && as_dir=.
10127     for ac_exec_ext in '' $ac_executable_extensions; do
10128   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10129     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10131     break 2
10132   fi
10133 done
10134   done
10135 IFS=$as_save_IFS
10136 
10137   ;;
10138 esac
10139 fi
10140 TAR=$ac_cv_path_TAR
10141 if test -n "$TAR"; then
10142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10143 $as_echo "$TAR" >&6; }
10144 else
10145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10146 $as_echo "no" >&6; }
10147 fi
10148 
10149 
10150         if test "x$TAR" = x; then
10151           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10152         fi
10153       else
10154         # Otherwise we believe it is a complete path. Use it as it is.
10155         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
10156 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
10157         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
10158 $as_echo_n "checking for TAR... " >&6; }
10159         if test ! -x "$tool_specified"; then
10160           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10161 $as_echo "not found" >&6; }
10162           as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
10163         fi
10164         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10165 $as_echo "$tool_specified" >&6; }
10166       fi
10167     fi
10168   fi
10169 
10170 
10171 
10172   if test "x$TAR" = x; then
10173     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
10174   fi
10175 
10176 
10177 
10178 
10179 
10180   # Publish this variable in the help.
10181 
10182 
10183   if test "x$TEE" = x; then
10184     # The variable is not set by user, try to locate tool using the code snippet
10185     for ac_prog in tee
10186 do
10187   # Extract the first word of "$ac_prog", so it can be a program name with args.
10188 set dummy $ac_prog; ac_word=$2
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10190 $as_echo_n "checking for $ac_word... " >&6; }
10191 if ${ac_cv_path_TEE+:} false; then :
10192   $as_echo_n "(cached) " >&6
10193 else
10194   case $TEE in
10195   [\\/]* | ?:[\\/]*)
10196   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10197   ;;
10198   *)
10199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10200 for as_dir in $PATH
10201 do
10202   IFS=$as_save_IFS
10203   test -z "$as_dir" && as_dir=.
10204     for ac_exec_ext in '' $ac_executable_extensions; do
10205   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10206     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10208     break 2
10209   fi
10210 done
10211   done
10212 IFS=$as_save_IFS
10213 
10214   ;;
10215 esac
10216 fi
10217 TEE=$ac_cv_path_TEE
10218 if test -n "$TEE"; then
10219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10220 $as_echo "$TEE" >&6; }
10221 else
10222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10223 $as_echo "no" >&6; }
10224 fi
10225 
10226 
10227   test -n "$TEE" && break
10228 done
10229 
10230   else
10231     # The variable is set, but is it from the command line or the environment?
10232 
10233     # Try to remove the string !TEE! from our list.
10234     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
10235     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10236       # If it failed, the variable was not from the command line. Ignore it,
10237       # but warn the user (except for BASH, which is always set by the calling BASH).
10238       if test "xTEE" != xBASH; then
10239         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
10240 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
10241       fi
10242       # Try to locate tool using the code snippet
10243       for ac_prog in tee
10244 do
10245   # Extract the first word of "$ac_prog", so it can be a program name with args.
10246 set dummy $ac_prog; ac_word=$2
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10248 $as_echo_n "checking for $ac_word... " >&6; }
10249 if ${ac_cv_path_TEE+:} false; then :
10250   $as_echo_n "(cached) " >&6
10251 else
10252   case $TEE in
10253   [\\/]* | ?:[\\/]*)
10254   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10255   ;;
10256   *)
10257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10258 for as_dir in $PATH
10259 do
10260   IFS=$as_save_IFS
10261   test -z "$as_dir" && as_dir=.
10262     for ac_exec_ext in '' $ac_executable_extensions; do
10263   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10264     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10266     break 2
10267   fi
10268 done
10269   done
10270 IFS=$as_save_IFS
10271 
10272   ;;
10273 esac
10274 fi
10275 TEE=$ac_cv_path_TEE
10276 if test -n "$TEE"; then
10277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10278 $as_echo "$TEE" >&6; }
10279 else
10280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281 $as_echo "no" >&6; }
10282 fi
10283 
10284 
10285   test -n "$TEE" && break
10286 done
10287 
10288     else
10289       # If it succeeded, then it was overridden by the user. We will use it
10290       # for the tool.
10291 
10292       # First remove it from the list of overridden variables, so we can test
10293       # for unknown variables in the end.
10294       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10295 
10296       # Check if the provided tool contains a complete path.
10297       tool_specified="$TEE"
10298       tool_basename="${tool_specified##*/}"
10299       if test "x$tool_basename" = "x$tool_specified"; then
10300         # A command without a complete path is provided, search $PATH.
10301         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
10302 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
10303         # Extract the first word of "$tool_basename", so it can be a program name with args.
10304 set dummy $tool_basename; ac_word=$2
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10306 $as_echo_n "checking for $ac_word... " >&6; }
10307 if ${ac_cv_path_TEE+:} false; then :
10308   $as_echo_n "(cached) " >&6
10309 else
10310   case $TEE in
10311   [\\/]* | ?:[\\/]*)
10312   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10313   ;;
10314   *)
10315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10316 for as_dir in $PATH
10317 do
10318   IFS=$as_save_IFS
10319   test -z "$as_dir" && as_dir=.
10320     for ac_exec_ext in '' $ac_executable_extensions; do
10321   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10322     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10324     break 2
10325   fi
10326 done
10327   done
10328 IFS=$as_save_IFS
10329 
10330   ;;
10331 esac
10332 fi
10333 TEE=$ac_cv_path_TEE
10334 if test -n "$TEE"; then
10335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10336 $as_echo "$TEE" >&6; }
10337 else
10338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10339 $as_echo "no" >&6; }
10340 fi
10341 
10342 
10343         if test "x$TEE" = x; then
10344           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10345         fi
10346       else
10347         # Otherwise we believe it is a complete path. Use it as it is.
10348         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
10349 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
10350         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
10351 $as_echo_n "checking for TEE... " >&6; }
10352         if test ! -x "$tool_specified"; then
10353           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10354 $as_echo "not found" >&6; }
10355           as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
10356         fi
10357         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10358 $as_echo "$tool_specified" >&6; }
10359       fi
10360     fi
10361   fi
10362 
10363 
10364 
10365   if test "x$TEE" = x; then
10366     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
10367   fi
10368 
10369 
10370 
10371 
10372 
10373   # Publish this variable in the help.
10374 
10375 
10376   if test "x$TOUCH" = x; then
10377     # The variable is not set by user, try to locate tool using the code snippet
10378     for ac_prog in touch
10379 do
10380   # Extract the first word of "$ac_prog", so it can be a program name with args.
10381 set dummy $ac_prog; ac_word=$2
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10383 $as_echo_n "checking for $ac_word... " >&6; }
10384 if ${ac_cv_path_TOUCH+:} false; then :
10385   $as_echo_n "(cached) " >&6
10386 else
10387   case $TOUCH in
10388   [\\/]* | ?:[\\/]*)
10389   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10390   ;;
10391   *)
10392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10393 for as_dir in $PATH
10394 do
10395   IFS=$as_save_IFS
10396   test -z "$as_dir" && as_dir=.
10397     for ac_exec_ext in '' $ac_executable_extensions; do
10398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10399     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10401     break 2
10402   fi
10403 done
10404   done
10405 IFS=$as_save_IFS
10406 
10407   ;;
10408 esac
10409 fi
10410 TOUCH=$ac_cv_path_TOUCH
10411 if test -n "$TOUCH"; then
10412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10413 $as_echo "$TOUCH" >&6; }
10414 else
10415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10416 $as_echo "no" >&6; }
10417 fi
10418 
10419 
10420   test -n "$TOUCH" && break
10421 done
10422 
10423   else
10424     # The variable is set, but is it from the command line or the environment?
10425 
10426     # Try to remove the string !TOUCH! from our list.
10427     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
10428     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10429       # If it failed, the variable was not from the command line. Ignore it,
10430       # but warn the user (except for BASH, which is always set by the calling BASH).
10431       if test "xTOUCH" != xBASH; then
10432         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
10433 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
10434       fi
10435       # Try to locate tool using the code snippet
10436       for ac_prog in touch
10437 do
10438   # Extract the first word of "$ac_prog", so it can be a program name with args.
10439 set dummy $ac_prog; ac_word=$2
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10441 $as_echo_n "checking for $ac_word... " >&6; }
10442 if ${ac_cv_path_TOUCH+:} false; then :
10443   $as_echo_n "(cached) " >&6
10444 else
10445   case $TOUCH in
10446   [\\/]* | ?:[\\/]*)
10447   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10448   ;;
10449   *)
10450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10451 for as_dir in $PATH
10452 do
10453   IFS=$as_save_IFS
10454   test -z "$as_dir" && as_dir=.
10455     for ac_exec_ext in '' $ac_executable_extensions; do
10456   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10457     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10459     break 2
10460   fi
10461 done
10462   done
10463 IFS=$as_save_IFS
10464 
10465   ;;
10466 esac
10467 fi
10468 TOUCH=$ac_cv_path_TOUCH
10469 if test -n "$TOUCH"; then
10470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10471 $as_echo "$TOUCH" >&6; }
10472 else
10473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10474 $as_echo "no" >&6; }
10475 fi
10476 
10477 
10478   test -n "$TOUCH" && break
10479 done
10480 
10481     else
10482       # If it succeeded, then it was overridden by the user. We will use it
10483       # for the tool.
10484 
10485       # First remove it from the list of overridden variables, so we can test
10486       # for unknown variables in the end.
10487       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10488 
10489       # Check if the provided tool contains a complete path.
10490       tool_specified="$TOUCH"
10491       tool_basename="${tool_specified##*/}"
10492       if test "x$tool_basename" = "x$tool_specified"; then
10493         # A command without a complete path is provided, search $PATH.
10494         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
10495 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
10496         # Extract the first word of "$tool_basename", so it can be a program name with args.
10497 set dummy $tool_basename; ac_word=$2
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10499 $as_echo_n "checking for $ac_word... " >&6; }
10500 if ${ac_cv_path_TOUCH+:} false; then :
10501   $as_echo_n "(cached) " >&6
10502 else
10503   case $TOUCH in
10504   [\\/]* | ?:[\\/]*)
10505   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10506   ;;
10507   *)
10508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10509 for as_dir in $PATH
10510 do
10511   IFS=$as_save_IFS
10512   test -z "$as_dir" && as_dir=.
10513     for ac_exec_ext in '' $ac_executable_extensions; do
10514   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10515     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10517     break 2
10518   fi
10519 done
10520   done
10521 IFS=$as_save_IFS
10522 
10523   ;;
10524 esac
10525 fi
10526 TOUCH=$ac_cv_path_TOUCH
10527 if test -n "$TOUCH"; then
10528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10529 $as_echo "$TOUCH" >&6; }
10530 else
10531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10532 $as_echo "no" >&6; }
10533 fi
10534 
10535 
10536         if test "x$TOUCH" = x; then
10537           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10538         fi
10539       else
10540         # Otherwise we believe it is a complete path. Use it as it is.
10541         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
10542 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
10543         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10544 $as_echo_n "checking for TOUCH... " >&6; }
10545         if test ! -x "$tool_specified"; then
10546           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10547 $as_echo "not found" >&6; }
10548           as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
10549         fi
10550         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10551 $as_echo "$tool_specified" >&6; }
10552       fi
10553     fi
10554   fi
10555 
10556 
10557 
10558   if test "x$TOUCH" = x; then
10559     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
10560   fi
10561 
10562 
10563 
10564 
10565 
10566   # Publish this variable in the help.
10567 
10568 
10569   if test "x$TR" = x; then
10570     # The variable is not set by user, try to locate tool using the code snippet
10571     for ac_prog in tr
10572 do
10573   # Extract the first word of "$ac_prog", so it can be a program name with args.
10574 set dummy $ac_prog; ac_word=$2
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10576 $as_echo_n "checking for $ac_word... " >&6; }
10577 if ${ac_cv_path_TR+:} false; then :
10578   $as_echo_n "(cached) " >&6
10579 else
10580   case $TR in
10581   [\\/]* | ?:[\\/]*)
10582   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10583   ;;
10584   *)
10585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10586 for as_dir in $PATH
10587 do
10588   IFS=$as_save_IFS
10589   test -z "$as_dir" && as_dir=.
10590     for ac_exec_ext in '' $ac_executable_extensions; do
10591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10592     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10594     break 2
10595   fi
10596 done
10597   done
10598 IFS=$as_save_IFS
10599 
10600   ;;
10601 esac
10602 fi
10603 TR=$ac_cv_path_TR
10604 if test -n "$TR"; then
10605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10606 $as_echo "$TR" >&6; }
10607 else
10608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10609 $as_echo "no" >&6; }
10610 fi
10611 
10612 
10613   test -n "$TR" && break
10614 done
10615 
10616   else
10617     # The variable is set, but is it from the command line or the environment?
10618 
10619     # Try to remove the string !TR! from our list.
10620     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
10621     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10622       # If it failed, the variable was not from the command line. Ignore it,
10623       # but warn the user (except for BASH, which is always set by the calling BASH).
10624       if test "xTR" != xBASH; then
10625         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
10626 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
10627       fi
10628       # Try to locate tool using the code snippet
10629       for ac_prog in tr
10630 do
10631   # Extract the first word of "$ac_prog", so it can be a program name with args.
10632 set dummy $ac_prog; ac_word=$2
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10634 $as_echo_n "checking for $ac_word... " >&6; }
10635 if ${ac_cv_path_TR+:} false; then :
10636   $as_echo_n "(cached) " >&6
10637 else
10638   case $TR in
10639   [\\/]* | ?:[\\/]*)
10640   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10641   ;;
10642   *)
10643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10644 for as_dir in $PATH
10645 do
10646   IFS=$as_save_IFS
10647   test -z "$as_dir" && as_dir=.
10648     for ac_exec_ext in '' $ac_executable_extensions; do
10649   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10650     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10652     break 2
10653   fi
10654 done
10655   done
10656 IFS=$as_save_IFS
10657 
10658   ;;
10659 esac
10660 fi
10661 TR=$ac_cv_path_TR
10662 if test -n "$TR"; then
10663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10664 $as_echo "$TR" >&6; }
10665 else
10666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10667 $as_echo "no" >&6; }
10668 fi
10669 
10670 
10671   test -n "$TR" && break
10672 done
10673 
10674     else
10675       # If it succeeded, then it was overridden by the user. We will use it
10676       # for the tool.
10677 
10678       # First remove it from the list of overridden variables, so we can test
10679       # for unknown variables in the end.
10680       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10681 
10682       # Check if the provided tool contains a complete path.
10683       tool_specified="$TR"
10684       tool_basename="${tool_specified##*/}"
10685       if test "x$tool_basename" = "x$tool_specified"; then
10686         # A command without a complete path is provided, search $PATH.
10687         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
10688 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
10689         # Extract the first word of "$tool_basename", so it can be a program name with args.
10690 set dummy $tool_basename; ac_word=$2
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10692 $as_echo_n "checking for $ac_word... " >&6; }
10693 if ${ac_cv_path_TR+:} false; then :
10694   $as_echo_n "(cached) " >&6
10695 else
10696   case $TR in
10697   [\\/]* | ?:[\\/]*)
10698   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10699   ;;
10700   *)
10701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10702 for as_dir in $PATH
10703 do
10704   IFS=$as_save_IFS
10705   test -z "$as_dir" && as_dir=.
10706     for ac_exec_ext in '' $ac_executable_extensions; do
10707   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10708     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10710     break 2
10711   fi
10712 done
10713   done
10714 IFS=$as_save_IFS
10715 
10716   ;;
10717 esac
10718 fi
10719 TR=$ac_cv_path_TR
10720 if test -n "$TR"; then
10721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10722 $as_echo "$TR" >&6; }
10723 else
10724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10725 $as_echo "no" >&6; }
10726 fi
10727 
10728 
10729         if test "x$TR" = x; then
10730           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10731         fi
10732       else
10733         # Otherwise we believe it is a complete path. Use it as it is.
10734         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
10735 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
10736         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
10737 $as_echo_n "checking for TR... " >&6; }
10738         if test ! -x "$tool_specified"; then
10739           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10740 $as_echo "not found" >&6; }
10741           as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
10742         fi
10743         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10744 $as_echo "$tool_specified" >&6; }
10745       fi
10746     fi
10747   fi
10748 
10749 
10750 
10751   if test "x$TR" = x; then
10752     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
10753   fi
10754 
10755 
10756 
10757 
10758 
10759   # Publish this variable in the help.
10760 
10761 
10762   if test "x$UNAME" = x; then
10763     # The variable is not set by user, try to locate tool using the code snippet
10764     for ac_prog in uname
10765 do
10766   # Extract the first word of "$ac_prog", so it can be a program name with args.
10767 set dummy $ac_prog; ac_word=$2
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10769 $as_echo_n "checking for $ac_word... " >&6; }
10770 if ${ac_cv_path_UNAME+:} false; then :
10771   $as_echo_n "(cached) " >&6
10772 else
10773   case $UNAME in
10774   [\\/]* | ?:[\\/]*)
10775   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10776   ;;
10777   *)
10778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10779 for as_dir in $PATH
10780 do
10781   IFS=$as_save_IFS
10782   test -z "$as_dir" && as_dir=.
10783     for ac_exec_ext in '' $ac_executable_extensions; do
10784   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10785     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10787     break 2
10788   fi
10789 done
10790   done
10791 IFS=$as_save_IFS
10792 
10793   ;;
10794 esac
10795 fi
10796 UNAME=$ac_cv_path_UNAME
10797 if test -n "$UNAME"; then
10798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10799 $as_echo "$UNAME" >&6; }
10800 else
10801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10802 $as_echo "no" >&6; }
10803 fi
10804 
10805 
10806   test -n "$UNAME" && break
10807 done
10808 
10809   else
10810     # The variable is set, but is it from the command line or the environment?
10811 
10812     # Try to remove the string !UNAME! from our list.
10813     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
10814     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10815       # If it failed, the variable was not from the command line. Ignore it,
10816       # but warn the user (except for BASH, which is always set by the calling BASH).
10817       if test "xUNAME" != xBASH; then
10818         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
10819 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
10820       fi
10821       # Try to locate tool using the code snippet
10822       for ac_prog in uname
10823 do
10824   # Extract the first word of "$ac_prog", so it can be a program name with args.
10825 set dummy $ac_prog; ac_word=$2
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10827 $as_echo_n "checking for $ac_word... " >&6; }
10828 if ${ac_cv_path_UNAME+:} false; then :
10829   $as_echo_n "(cached) " >&6
10830 else
10831   case $UNAME in
10832   [\\/]* | ?:[\\/]*)
10833   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10834   ;;
10835   *)
10836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10837 for as_dir in $PATH
10838 do
10839   IFS=$as_save_IFS
10840   test -z "$as_dir" && as_dir=.
10841     for ac_exec_ext in '' $ac_executable_extensions; do
10842   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10843     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10845     break 2
10846   fi
10847 done
10848   done
10849 IFS=$as_save_IFS
10850 
10851   ;;
10852 esac
10853 fi
10854 UNAME=$ac_cv_path_UNAME
10855 if test -n "$UNAME"; then
10856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10857 $as_echo "$UNAME" >&6; }
10858 else
10859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10860 $as_echo "no" >&6; }
10861 fi
10862 
10863 
10864   test -n "$UNAME" && break
10865 done
10866 
10867     else
10868       # If it succeeded, then it was overridden by the user. We will use it
10869       # for the tool.
10870 
10871       # First remove it from the list of overridden variables, so we can test
10872       # for unknown variables in the end.
10873       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10874 
10875       # Check if the provided tool contains a complete path.
10876       tool_specified="$UNAME"
10877       tool_basename="${tool_specified##*/}"
10878       if test "x$tool_basename" = "x$tool_specified"; then
10879         # A command without a complete path is provided, search $PATH.
10880         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
10881 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
10882         # Extract the first word of "$tool_basename", so it can be a program name with args.
10883 set dummy $tool_basename; ac_word=$2
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10885 $as_echo_n "checking for $ac_word... " >&6; }
10886 if ${ac_cv_path_UNAME+:} false; then :
10887   $as_echo_n "(cached) " >&6
10888 else
10889   case $UNAME in
10890   [\\/]* | ?:[\\/]*)
10891   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10892   ;;
10893   *)
10894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10895 for as_dir in $PATH
10896 do
10897   IFS=$as_save_IFS
10898   test -z "$as_dir" && as_dir=.
10899     for ac_exec_ext in '' $ac_executable_extensions; do
10900   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10901     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10903     break 2
10904   fi
10905 done
10906   done
10907 IFS=$as_save_IFS
10908 
10909   ;;
10910 esac
10911 fi
10912 UNAME=$ac_cv_path_UNAME
10913 if test -n "$UNAME"; then
10914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10915 $as_echo "$UNAME" >&6; }
10916 else
10917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10918 $as_echo "no" >&6; }
10919 fi
10920 
10921 
10922         if test "x$UNAME" = x; then
10923           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10924         fi
10925       else
10926         # Otherwise we believe it is a complete path. Use it as it is.
10927         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
10928 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
10929         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
10930 $as_echo_n "checking for UNAME... " >&6; }
10931         if test ! -x "$tool_specified"; then
10932           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10933 $as_echo "not found" >&6; }
10934           as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
10935         fi
10936         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10937 $as_echo "$tool_specified" >&6; }
10938       fi
10939     fi
10940   fi
10941 
10942 
10943 
10944   if test "x$UNAME" = x; then
10945     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
10946   fi
10947 
10948 
10949 
10950 
10951 
10952   # Publish this variable in the help.
10953 
10954 
10955   if test "x$UNIQ" = x; then
10956     # The variable is not set by user, try to locate tool using the code snippet
10957     for ac_prog in uniq
10958 do
10959   # Extract the first word of "$ac_prog", so it can be a program name with args.
10960 set dummy $ac_prog; ac_word=$2
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10962 $as_echo_n "checking for $ac_word... " >&6; }
10963 if ${ac_cv_path_UNIQ+:} false; then :
10964   $as_echo_n "(cached) " >&6
10965 else
10966   case $UNIQ in
10967   [\\/]* | ?:[\\/]*)
10968   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10969   ;;
10970   *)
10971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10972 for as_dir in $PATH
10973 do
10974   IFS=$as_save_IFS
10975   test -z "$as_dir" && as_dir=.
10976     for ac_exec_ext in '' $ac_executable_extensions; do
10977   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10978     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10980     break 2
10981   fi
10982 done
10983   done
10984 IFS=$as_save_IFS
10985 
10986   ;;
10987 esac
10988 fi
10989 UNIQ=$ac_cv_path_UNIQ
10990 if test -n "$UNIQ"; then
10991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10992 $as_echo "$UNIQ" >&6; }
10993 else
10994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10995 $as_echo "no" >&6; }
10996 fi
10997 
10998 
10999   test -n "$UNIQ" && break
11000 done
11001 
11002   else
11003     # The variable is set, but is it from the command line or the environment?
11004 
11005     # Try to remove the string !UNIQ! from our list.
11006     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
11007     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11008       # If it failed, the variable was not from the command line. Ignore it,
11009       # but warn the user (except for BASH, which is always set by the calling BASH).
11010       if test "xUNIQ" != xBASH; then
11011         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
11012 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
11013       fi
11014       # Try to locate tool using the code snippet
11015       for ac_prog in uniq
11016 do
11017   # Extract the first word of "$ac_prog", so it can be a program name with args.
11018 set dummy $ac_prog; ac_word=$2
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11020 $as_echo_n "checking for $ac_word... " >&6; }
11021 if ${ac_cv_path_UNIQ+:} false; then :
11022   $as_echo_n "(cached) " >&6
11023 else
11024   case $UNIQ in
11025   [\\/]* | ?:[\\/]*)
11026   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11027   ;;
11028   *)
11029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11030 for as_dir in $PATH
11031 do
11032   IFS=$as_save_IFS
11033   test -z "$as_dir" && as_dir=.
11034     for ac_exec_ext in '' $ac_executable_extensions; do
11035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11036     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11038     break 2
11039   fi
11040 done
11041   done
11042 IFS=$as_save_IFS
11043 
11044   ;;
11045 esac
11046 fi
11047 UNIQ=$ac_cv_path_UNIQ
11048 if test -n "$UNIQ"; then
11049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11050 $as_echo "$UNIQ" >&6; }
11051 else
11052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11053 $as_echo "no" >&6; }
11054 fi
11055 
11056 
11057   test -n "$UNIQ" && break
11058 done
11059 
11060     else
11061       # If it succeeded, then it was overridden by the user. We will use it
11062       # for the tool.
11063 
11064       # First remove it from the list of overridden variables, so we can test
11065       # for unknown variables in the end.
11066       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11067 
11068       # Check if the provided tool contains a complete path.
11069       tool_specified="$UNIQ"
11070       tool_basename="${tool_specified##*/}"
11071       if test "x$tool_basename" = "x$tool_specified"; then
11072         # A command without a complete path is provided, search $PATH.
11073         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
11074 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
11075         # Extract the first word of "$tool_basename", so it can be a program name with args.
11076 set dummy $tool_basename; ac_word=$2
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11078 $as_echo_n "checking for $ac_word... " >&6; }
11079 if ${ac_cv_path_UNIQ+:} false; then :
11080   $as_echo_n "(cached) " >&6
11081 else
11082   case $UNIQ in
11083   [\\/]* | ?:[\\/]*)
11084   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11085   ;;
11086   *)
11087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11088 for as_dir in $PATH
11089 do
11090   IFS=$as_save_IFS
11091   test -z "$as_dir" && as_dir=.
11092     for ac_exec_ext in '' $ac_executable_extensions; do
11093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11094     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11096     break 2
11097   fi
11098 done
11099   done
11100 IFS=$as_save_IFS
11101 
11102   ;;
11103 esac
11104 fi
11105 UNIQ=$ac_cv_path_UNIQ
11106 if test -n "$UNIQ"; then
11107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11108 $as_echo "$UNIQ" >&6; }
11109 else
11110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11111 $as_echo "no" >&6; }
11112 fi
11113 
11114 
11115         if test "x$UNIQ" = x; then
11116           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11117         fi
11118       else
11119         # Otherwise we believe it is a complete path. Use it as it is.
11120         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
11121 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
11122         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
11123 $as_echo_n "checking for UNIQ... " >&6; }
11124         if test ! -x "$tool_specified"; then
11125           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11126 $as_echo "not found" >&6; }
11127           as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
11128         fi
11129         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11130 $as_echo "$tool_specified" >&6; }
11131       fi
11132     fi
11133   fi
11134 
11135 
11136 
11137   if test "x$UNIQ" = x; then
11138     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
11139   fi
11140 
11141 
11142 
11143 
11144 
11145   # Publish this variable in the help.
11146 
11147 
11148   if test "x$WC" = x; then
11149     # The variable is not set by user, try to locate tool using the code snippet
11150     for ac_prog in wc
11151 do
11152   # Extract the first word of "$ac_prog", so it can be a program name with args.
11153 set dummy $ac_prog; ac_word=$2
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11155 $as_echo_n "checking for $ac_word... " >&6; }
11156 if ${ac_cv_path_WC+:} false; then :
11157   $as_echo_n "(cached) " >&6
11158 else
11159   case $WC in
11160   [\\/]* | ?:[\\/]*)
11161   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11162   ;;
11163   *)
11164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11165 for as_dir in $PATH
11166 do
11167   IFS=$as_save_IFS
11168   test -z "$as_dir" && as_dir=.
11169     for ac_exec_ext in '' $ac_executable_extensions; do
11170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11171     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11173     break 2
11174   fi
11175 done
11176   done
11177 IFS=$as_save_IFS
11178 
11179   ;;
11180 esac
11181 fi
11182 WC=$ac_cv_path_WC
11183 if test -n "$WC"; then
11184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11185 $as_echo "$WC" >&6; }
11186 else
11187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11188 $as_echo "no" >&6; }
11189 fi
11190 
11191 
11192   test -n "$WC" && break
11193 done
11194 
11195   else
11196     # The variable is set, but is it from the command line or the environment?
11197 
11198     # Try to remove the string !WC! from our list.
11199     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
11200     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11201       # If it failed, the variable was not from the command line. Ignore it,
11202       # but warn the user (except for BASH, which is always set by the calling BASH).
11203       if test "xWC" != xBASH; then
11204         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
11205 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
11206       fi
11207       # Try to locate tool using the code snippet
11208       for ac_prog in wc
11209 do
11210   # Extract the first word of "$ac_prog", so it can be a program name with args.
11211 set dummy $ac_prog; ac_word=$2
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11213 $as_echo_n "checking for $ac_word... " >&6; }
11214 if ${ac_cv_path_WC+:} false; then :
11215   $as_echo_n "(cached) " >&6
11216 else
11217   case $WC in
11218   [\\/]* | ?:[\\/]*)
11219   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11220   ;;
11221   *)
11222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11223 for as_dir in $PATH
11224 do
11225   IFS=$as_save_IFS
11226   test -z "$as_dir" && as_dir=.
11227     for ac_exec_ext in '' $ac_executable_extensions; do
11228   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11229     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11231     break 2
11232   fi
11233 done
11234   done
11235 IFS=$as_save_IFS
11236 
11237   ;;
11238 esac
11239 fi
11240 WC=$ac_cv_path_WC
11241 if test -n "$WC"; then
11242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11243 $as_echo "$WC" >&6; }
11244 else
11245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11246 $as_echo "no" >&6; }
11247 fi
11248 
11249 
11250   test -n "$WC" && break
11251 done
11252 
11253     else
11254       # If it succeeded, then it was overridden by the user. We will use it
11255       # for the tool.
11256 
11257       # First remove it from the list of overridden variables, so we can test
11258       # for unknown variables in the end.
11259       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11260 
11261       # Check if the provided tool contains a complete path.
11262       tool_specified="$WC"
11263       tool_basename="${tool_specified##*/}"
11264       if test "x$tool_basename" = "x$tool_specified"; then
11265         # A command without a complete path is provided, search $PATH.
11266         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
11267 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
11268         # Extract the first word of "$tool_basename", so it can be a program name with args.
11269 set dummy $tool_basename; ac_word=$2
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11271 $as_echo_n "checking for $ac_word... " >&6; }
11272 if ${ac_cv_path_WC+:} false; then :
11273   $as_echo_n "(cached) " >&6
11274 else
11275   case $WC in
11276   [\\/]* | ?:[\\/]*)
11277   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11278   ;;
11279   *)
11280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11281 for as_dir in $PATH
11282 do
11283   IFS=$as_save_IFS
11284   test -z "$as_dir" && as_dir=.
11285     for ac_exec_ext in '' $ac_executable_extensions; do
11286   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11287     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11289     break 2
11290   fi
11291 done
11292   done
11293 IFS=$as_save_IFS
11294 
11295   ;;
11296 esac
11297 fi
11298 WC=$ac_cv_path_WC
11299 if test -n "$WC"; then
11300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11301 $as_echo "$WC" >&6; }
11302 else
11303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11304 $as_echo "no" >&6; }
11305 fi
11306 
11307 
11308         if test "x$WC" = x; then
11309           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11310         fi
11311       else
11312         # Otherwise we believe it is a complete path. Use it as it is.
11313         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
11314 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
11315         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
11316 $as_echo_n "checking for WC... " >&6; }
11317         if test ! -x "$tool_specified"; then
11318           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11319 $as_echo "not found" >&6; }
11320           as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
11321         fi
11322         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11323 $as_echo "$tool_specified" >&6; }
11324       fi
11325     fi
11326   fi
11327 
11328 
11329 
11330   if test "x$WC" = x; then
11331     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
11332   fi
11333 
11334 
11335 
11336 
11337 
11338   # Publish this variable in the help.
11339 
11340 
11341   if test "x$WHICH" = x; then
11342     # The variable is not set by user, try to locate tool using the code snippet
11343     for ac_prog in which
11344 do
11345   # Extract the first word of "$ac_prog", so it can be a program name with args.
11346 set dummy $ac_prog; ac_word=$2
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11348 $as_echo_n "checking for $ac_word... " >&6; }
11349 if ${ac_cv_path_WHICH+:} false; then :
11350   $as_echo_n "(cached) " >&6
11351 else
11352   case $WHICH in
11353   [\\/]* | ?:[\\/]*)
11354   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11355   ;;
11356   *)
11357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11358 for as_dir in $PATH
11359 do
11360   IFS=$as_save_IFS
11361   test -z "$as_dir" && as_dir=.
11362     for ac_exec_ext in '' $ac_executable_extensions; do
11363   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11364     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11366     break 2
11367   fi
11368 done
11369   done
11370 IFS=$as_save_IFS
11371 
11372   ;;
11373 esac
11374 fi
11375 WHICH=$ac_cv_path_WHICH
11376 if test -n "$WHICH"; then
11377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11378 $as_echo "$WHICH" >&6; }
11379 else
11380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11381 $as_echo "no" >&6; }
11382 fi
11383 
11384 
11385   test -n "$WHICH" && break
11386 done
11387 
11388   else
11389     # The variable is set, but is it from the command line or the environment?
11390 
11391     # Try to remove the string !WHICH! from our list.
11392     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
11393     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11394       # If it failed, the variable was not from the command line. Ignore it,
11395       # but warn the user (except for BASH, which is always set by the calling BASH).
11396       if test "xWHICH" != xBASH; then
11397         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
11398 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
11399       fi
11400       # Try to locate tool using the code snippet
11401       for ac_prog in which
11402 do
11403   # Extract the first word of "$ac_prog", so it can be a program name with args.
11404 set dummy $ac_prog; ac_word=$2
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11406 $as_echo_n "checking for $ac_word... " >&6; }
11407 if ${ac_cv_path_WHICH+:} false; then :
11408   $as_echo_n "(cached) " >&6
11409 else
11410   case $WHICH in
11411   [\\/]* | ?:[\\/]*)
11412   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11413   ;;
11414   *)
11415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11416 for as_dir in $PATH
11417 do
11418   IFS=$as_save_IFS
11419   test -z "$as_dir" && as_dir=.
11420     for ac_exec_ext in '' $ac_executable_extensions; do
11421   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11422     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11424     break 2
11425   fi
11426 done
11427   done
11428 IFS=$as_save_IFS
11429 
11430   ;;
11431 esac
11432 fi
11433 WHICH=$ac_cv_path_WHICH
11434 if test -n "$WHICH"; then
11435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11436 $as_echo "$WHICH" >&6; }
11437 else
11438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11439 $as_echo "no" >&6; }
11440 fi
11441 
11442 
11443   test -n "$WHICH" && break
11444 done
11445 
11446     else
11447       # If it succeeded, then it was overridden by the user. We will use it
11448       # for the tool.
11449 
11450       # First remove it from the list of overridden variables, so we can test
11451       # for unknown variables in the end.
11452       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11453 
11454       # Check if the provided tool contains a complete path.
11455       tool_specified="$WHICH"
11456       tool_basename="${tool_specified##*/}"
11457       if test "x$tool_basename" = "x$tool_specified"; then
11458         # A command without a complete path is provided, search $PATH.
11459         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
11460 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
11461         # Extract the first word of "$tool_basename", so it can be a program name with args.
11462 set dummy $tool_basename; ac_word=$2
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11464 $as_echo_n "checking for $ac_word... " >&6; }
11465 if ${ac_cv_path_WHICH+:} false; then :
11466   $as_echo_n "(cached) " >&6
11467 else
11468   case $WHICH in
11469   [\\/]* | ?:[\\/]*)
11470   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11471   ;;
11472   *)
11473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11474 for as_dir in $PATH
11475 do
11476   IFS=$as_save_IFS
11477   test -z "$as_dir" && as_dir=.
11478     for ac_exec_ext in '' $ac_executable_extensions; do
11479   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11480     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11482     break 2
11483   fi
11484 done
11485   done
11486 IFS=$as_save_IFS
11487 
11488   ;;
11489 esac
11490 fi
11491 WHICH=$ac_cv_path_WHICH
11492 if test -n "$WHICH"; then
11493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11494 $as_echo "$WHICH" >&6; }
11495 else
11496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11497 $as_echo "no" >&6; }
11498 fi
11499 
11500 
11501         if test "x$WHICH" = x; then
11502           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11503         fi
11504       else
11505         # Otherwise we believe it is a complete path. Use it as it is.
11506         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
11507 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
11508         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11509 $as_echo_n "checking for WHICH... " >&6; }
11510         if test ! -x "$tool_specified"; then
11511           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11512 $as_echo "not found" >&6; }
11513           as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
11514         fi
11515         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11516 $as_echo "$tool_specified" >&6; }
11517       fi
11518     fi
11519   fi
11520 
11521 
11522 
11523   if test "x$WHICH" = x; then
11524     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
11525   fi
11526 
11527 
11528 
11529 
11530 
11531   # Publish this variable in the help.
11532 
11533 
11534   if test "x$XARGS" = x; then
11535     # The variable is not set by user, try to locate tool using the code snippet
11536     for ac_prog in xargs
11537 do
11538   # Extract the first word of "$ac_prog", so it can be a program name with args.
11539 set dummy $ac_prog; ac_word=$2
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11541 $as_echo_n "checking for $ac_word... " >&6; }
11542 if ${ac_cv_path_XARGS+:} false; then :
11543   $as_echo_n "(cached) " >&6
11544 else
11545   case $XARGS in
11546   [\\/]* | ?:[\\/]*)
11547   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11548   ;;
11549   *)
11550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11551 for as_dir in $PATH
11552 do
11553   IFS=$as_save_IFS
11554   test -z "$as_dir" && as_dir=.
11555     for ac_exec_ext in '' $ac_executable_extensions; do
11556   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11557     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11559     break 2
11560   fi
11561 done
11562   done
11563 IFS=$as_save_IFS
11564 
11565   ;;
11566 esac
11567 fi
11568 XARGS=$ac_cv_path_XARGS
11569 if test -n "$XARGS"; then
11570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11571 $as_echo "$XARGS" >&6; }
11572 else
11573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11574 $as_echo "no" >&6; }
11575 fi
11576 
11577 
11578   test -n "$XARGS" && break
11579 done
11580 
11581   else
11582     # The variable is set, but is it from the command line or the environment?
11583 
11584     # Try to remove the string !XARGS! from our list.
11585     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
11586     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11587       # If it failed, the variable was not from the command line. Ignore it,
11588       # but warn the user (except for BASH, which is always set by the calling BASH).
11589       if test "xXARGS" != xBASH; then
11590         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
11591 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
11592       fi
11593       # Try to locate tool using the code snippet
11594       for ac_prog in xargs
11595 do
11596   # Extract the first word of "$ac_prog", so it can be a program name with args.
11597 set dummy $ac_prog; ac_word=$2
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11599 $as_echo_n "checking for $ac_word... " >&6; }
11600 if ${ac_cv_path_XARGS+:} false; then :
11601   $as_echo_n "(cached) " >&6
11602 else
11603   case $XARGS in
11604   [\\/]* | ?:[\\/]*)
11605   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11606   ;;
11607   *)
11608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11609 for as_dir in $PATH
11610 do
11611   IFS=$as_save_IFS
11612   test -z "$as_dir" && as_dir=.
11613     for ac_exec_ext in '' $ac_executable_extensions; do
11614   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11615     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11617     break 2
11618   fi
11619 done
11620   done
11621 IFS=$as_save_IFS
11622 
11623   ;;
11624 esac
11625 fi
11626 XARGS=$ac_cv_path_XARGS
11627 if test -n "$XARGS"; then
11628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11629 $as_echo "$XARGS" >&6; }
11630 else
11631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11632 $as_echo "no" >&6; }
11633 fi
11634 
11635 
11636   test -n "$XARGS" && break
11637 done
11638 
11639     else
11640       # If it succeeded, then it was overridden by the user. We will use it
11641       # for the tool.
11642 
11643       # First remove it from the list of overridden variables, so we can test
11644       # for unknown variables in the end.
11645       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11646 
11647       # Check if the provided tool contains a complete path.
11648       tool_specified="$XARGS"
11649       tool_basename="${tool_specified##*/}"
11650       if test "x$tool_basename" = "x$tool_specified"; then
11651         # A command without a complete path is provided, search $PATH.
11652         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
11653 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
11654         # Extract the first word of "$tool_basename", so it can be a program name with args.
11655 set dummy $tool_basename; ac_word=$2
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11657 $as_echo_n "checking for $ac_word... " >&6; }
11658 if ${ac_cv_path_XARGS+:} false; then :
11659   $as_echo_n "(cached) " >&6
11660 else
11661   case $XARGS in
11662   [\\/]* | ?:[\\/]*)
11663   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11664   ;;
11665   *)
11666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11667 for as_dir in $PATH
11668 do
11669   IFS=$as_save_IFS
11670   test -z "$as_dir" && as_dir=.
11671     for ac_exec_ext in '' $ac_executable_extensions; do
11672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11673     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11675     break 2
11676   fi
11677 done
11678   done
11679 IFS=$as_save_IFS
11680 
11681   ;;
11682 esac
11683 fi
11684 XARGS=$ac_cv_path_XARGS
11685 if test -n "$XARGS"; then
11686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11687 $as_echo "$XARGS" >&6; }
11688 else
11689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11690 $as_echo "no" >&6; }
11691 fi
11692 
11693 
11694         if test "x$XARGS" = x; then
11695           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11696         fi
11697       else
11698         # Otherwise we believe it is a complete path. Use it as it is.
11699         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
11700 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
11701         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
11702 $as_echo_n "checking for XARGS... " >&6; }
11703         if test ! -x "$tool_specified"; then
11704           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11705 $as_echo "not found" >&6; }
11706           as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
11707         fi
11708         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11709 $as_echo "$tool_specified" >&6; }
11710       fi
11711     fi
11712   fi
11713 
11714 
11715 
11716   if test "x$XARGS" = x; then
11717     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
11718   fi
11719 
11720 
11721 
11722   # Then required tools that require some special treatment.
11723 
11724 
11725   # Publish this variable in the help.
11726 
11727 
11728   if test "x$AWK" = x; then
11729     # The variable is not set by user, try to locate tool using the code snippet
11730     for ac_prog in gawk mawk nawk awk
11731 do
11732   # Extract the first word of "$ac_prog", so it can be a program name with args.
11733 set dummy $ac_prog; ac_word=$2
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11735 $as_echo_n "checking for $ac_word... " >&6; }
11736 if ${ac_cv_prog_AWK+:} false; then :
11737   $as_echo_n "(cached) " >&6
11738 else
11739   if test -n "$AWK"; then
11740   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11741 else
11742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11743 for as_dir in $PATH
11744 do
11745   IFS=$as_save_IFS
11746   test -z "$as_dir" && as_dir=.
11747     for ac_exec_ext in '' $ac_executable_extensions; do
11748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11749     ac_cv_prog_AWK="$ac_prog"
11750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11751     break 2
11752   fi
11753 done
11754   done
11755 IFS=$as_save_IFS
11756 
11757 fi
11758 fi
11759 AWK=$ac_cv_prog_AWK
11760 if test -n "$AWK"; then
11761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11762 $as_echo "$AWK" >&6; }
11763 else
11764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11765 $as_echo "no" >&6; }
11766 fi
11767 
11768 
11769   test -n "$AWK" && break
11770 done
11771 
11772   else
11773     # The variable is set, but is it from the command line or the environment?
11774 
11775     # Try to remove the string !AWK! from our list.
11776     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
11777     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11778       # If it failed, the variable was not from the command line. Ignore it,
11779       # but warn the user (except for BASH, which is always set by the calling BASH).
11780       if test "xAWK" != xBASH; then
11781         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
11782 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
11783       fi
11784       # Try to locate tool using the code snippet
11785       for ac_prog in gawk mawk nawk awk
11786 do
11787   # Extract the first word of "$ac_prog", so it can be a program name with args.
11788 set dummy $ac_prog; ac_word=$2
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11790 $as_echo_n "checking for $ac_word... " >&6; }
11791 if ${ac_cv_prog_AWK+:} false; then :
11792   $as_echo_n "(cached) " >&6
11793 else
11794   if test -n "$AWK"; then
11795   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11796 else
11797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11798 for as_dir in $PATH
11799 do
11800   IFS=$as_save_IFS
11801   test -z "$as_dir" && as_dir=.
11802     for ac_exec_ext in '' $ac_executable_extensions; do
11803   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11804     ac_cv_prog_AWK="$ac_prog"
11805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11806     break 2
11807   fi
11808 done
11809   done
11810 IFS=$as_save_IFS
11811 
11812 fi
11813 fi
11814 AWK=$ac_cv_prog_AWK
11815 if test -n "$AWK"; then
11816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11817 $as_echo "$AWK" >&6; }
11818 else
11819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11820 $as_echo "no" >&6; }
11821 fi
11822 
11823 
11824   test -n "$AWK" && break
11825 done
11826 
11827     else
11828       # If it succeeded, then it was overridden by the user. We will use it
11829       # for the tool.
11830 
11831       # First remove it from the list of overridden variables, so we can test
11832       # for unknown variables in the end.
11833       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11834 
11835       # Check if the provided tool contains a complete path.
11836       tool_specified="$AWK"
11837       tool_basename="${tool_specified##*/}"
11838       if test "x$tool_basename" = "x$tool_specified"; then
11839         # A command without a complete path is provided, search $PATH.
11840         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
11841 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
11842         # Extract the first word of "$tool_basename", so it can be a program name with args.
11843 set dummy $tool_basename; ac_word=$2
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11845 $as_echo_n "checking for $ac_word... " >&6; }
11846 if ${ac_cv_path_AWK+:} false; then :
11847   $as_echo_n "(cached) " >&6
11848 else
11849   case $AWK in
11850   [\\/]* | ?:[\\/]*)
11851   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
11852   ;;
11853   *)
11854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11855 for as_dir in $PATH
11856 do
11857   IFS=$as_save_IFS
11858   test -z "$as_dir" && as_dir=.
11859     for ac_exec_ext in '' $ac_executable_extensions; do
11860   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11861     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
11862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11863     break 2
11864   fi
11865 done
11866   done
11867 IFS=$as_save_IFS
11868 
11869   ;;
11870 esac
11871 fi
11872 AWK=$ac_cv_path_AWK
11873 if test -n "$AWK"; then
11874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11875 $as_echo "$AWK" >&6; }
11876 else
11877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11878 $as_echo "no" >&6; }
11879 fi
11880 
11881 
11882         if test "x$AWK" = x; then
11883           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11884         fi
11885       else
11886         # Otherwise we believe it is a complete path. Use it as it is.
11887         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
11888 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
11889         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
11890 $as_echo_n "checking for AWK... " >&6; }
11891         if test ! -x "$tool_specified"; then
11892           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11893 $as_echo "not found" >&6; }
11894           as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
11895         fi
11896         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11897 $as_echo "$tool_specified" >&6; }
11898       fi
11899     fi
11900   fi
11901 
11902 
11903   if test "x$AWK" = x; then
11904     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
11905   fi
11906 
11907 
11908 
11909 
11910   # Publish this variable in the help.
11911 
11912 
11913   if test "x$GREP" = x; then
11914     # The variable is not set by user, try to locate tool using the code snippet
11915     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11916 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11917 if ${ac_cv_path_GREP+:} false; then :
11918   $as_echo_n "(cached) " >&6
11919 else
11920   if test -z "$GREP"; then
11921   ac_path_GREP_found=false
11922   # Loop through the user's path and test for each of PROGNAME-LIST
11923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11924 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11925 do
11926   IFS=$as_save_IFS
11927   test -z "$as_dir" && as_dir=.
11928     for ac_prog in grep ggrep; do
11929     for ac_exec_ext in '' $ac_executable_extensions; do
11930       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11931       as_fn_executable_p "$ac_path_GREP" || continue
11932 # Check for GNU ac_path_GREP and select it if it is found.
11933   # Check for GNU $ac_path_GREP
11934 case `"$ac_path_GREP" --version 2>&1` in
11935 *GNU*)
11936   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11937 *)
11938   ac_count=0
11939   $as_echo_n 0123456789 >"conftest.in"
11940   while :
11941   do
11942     cat "conftest.in" "conftest.in" >"conftest.tmp"
11943     mv "conftest.tmp" "conftest.in"
11944     cp "conftest.in" "conftest.nl"
11945     $as_echo 'GREP' >> "conftest.nl"
11946     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11947     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11948     as_fn_arith $ac_count + 1 && ac_count=$as_val
11949     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11950       # Best one so far, save it but keep looking for a better one
11951       ac_cv_path_GREP="$ac_path_GREP"
11952       ac_path_GREP_max=$ac_count
11953     fi
11954     # 10*(2^10) chars as input seems more than enough
11955     test $ac_count -gt 10 && break
11956   done
11957   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11958 esac
11959 
11960       $ac_path_GREP_found && break 3
11961     done
11962   done
11963   done
11964 IFS=$as_save_IFS
11965   if test -z "$ac_cv_path_GREP"; then
11966     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11967   fi
11968 else
11969   ac_cv_path_GREP=$GREP
11970 fi
11971 
11972 fi
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11974 $as_echo "$ac_cv_path_GREP" >&6; }
11975  GREP="$ac_cv_path_GREP"
11976 
11977 
11978   else
11979     # The variable is set, but is it from the command line or the environment?
11980 
11981     # Try to remove the string !GREP! from our list.
11982     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
11983     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11984       # If it failed, the variable was not from the command line. Ignore it,
11985       # but warn the user (except for BASH, which is always set by the calling BASH).
11986       if test "xGREP" != xBASH; then
11987         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
11988 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
11989       fi
11990       # Try to locate tool using the code snippet
11991       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11992 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11993 if ${ac_cv_path_GREP+:} false; then :
11994   $as_echo_n "(cached) " >&6
11995 else
11996   if test -z "$GREP"; then
11997   ac_path_GREP_found=false
11998   # Loop through the user's path and test for each of PROGNAME-LIST
11999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12000 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12001 do
12002   IFS=$as_save_IFS
12003   test -z "$as_dir" && as_dir=.
12004     for ac_prog in grep ggrep; do
12005     for ac_exec_ext in '' $ac_executable_extensions; do
12006       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
12007       as_fn_executable_p "$ac_path_GREP" || continue
12008 # Check for GNU ac_path_GREP and select it if it is found.
12009   # Check for GNU $ac_path_GREP
12010 case `"$ac_path_GREP" --version 2>&1` in
12011 *GNU*)
12012   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
12013 *)
12014   ac_count=0
12015   $as_echo_n 0123456789 >"conftest.in"
12016   while :
12017   do
12018     cat "conftest.in" "conftest.in" >"conftest.tmp"
12019     mv "conftest.tmp" "conftest.in"
12020     cp "conftest.in" "conftest.nl"
12021     $as_echo 'GREP' >> "conftest.nl"
12022     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12023     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12024     as_fn_arith $ac_count + 1 && ac_count=$as_val
12025     if test $ac_count -gt ${ac_path_GREP_max-0}; then
12026       # Best one so far, save it but keep looking for a better one
12027       ac_cv_path_GREP="$ac_path_GREP"
12028       ac_path_GREP_max=$ac_count
12029     fi
12030     # 10*(2^10) chars as input seems more than enough
12031     test $ac_count -gt 10 && break
12032   done
12033   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12034 esac
12035 
12036       $ac_path_GREP_found && break 3
12037     done
12038   done
12039   done
12040 IFS=$as_save_IFS
12041   if test -z "$ac_cv_path_GREP"; then
12042     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12043   fi
12044 else
12045   ac_cv_path_GREP=$GREP
12046 fi
12047 
12048 fi
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
12050 $as_echo "$ac_cv_path_GREP" >&6; }
12051  GREP="$ac_cv_path_GREP"
12052 
12053 
12054     else
12055       # If it succeeded, then it was overridden by the user. We will use it
12056       # for the tool.
12057 
12058       # First remove it from the list of overridden variables, so we can test
12059       # for unknown variables in the end.
12060       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12061 
12062       # Check if the provided tool contains a complete path.
12063       tool_specified="$GREP"
12064       tool_basename="${tool_specified##*/}"
12065       if test "x$tool_basename" = "x$tool_specified"; then
12066         # A command without a complete path is provided, search $PATH.
12067         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
12068 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
12069         # Extract the first word of "$tool_basename", so it can be a program name with args.
12070 set dummy $tool_basename; ac_word=$2
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12072 $as_echo_n "checking for $ac_word... " >&6; }
12073 if ${ac_cv_path_GREP+:} false; then :
12074   $as_echo_n "(cached) " >&6
12075 else
12076   case $GREP in
12077   [\\/]* | ?:[\\/]*)
12078   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
12079   ;;
12080   *)
12081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082 for as_dir in $PATH
12083 do
12084   IFS=$as_save_IFS
12085   test -z "$as_dir" && as_dir=.
12086     for ac_exec_ext in '' $ac_executable_extensions; do
12087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12088     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
12089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12090     break 2
12091   fi
12092 done
12093   done
12094 IFS=$as_save_IFS
12095 
12096   ;;
12097 esac
12098 fi
12099 GREP=$ac_cv_path_GREP
12100 if test -n "$GREP"; then
12101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
12102 $as_echo "$GREP" >&6; }
12103 else
12104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12105 $as_echo "no" >&6; }
12106 fi
12107 
12108 
12109         if test "x$GREP" = x; then
12110           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12111         fi
12112       else
12113         # Otherwise we believe it is a complete path. Use it as it is.
12114         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
12115 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
12116         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
12117 $as_echo_n "checking for GREP... " >&6; }
12118         if test ! -x "$tool_specified"; then
12119           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12120 $as_echo "not found" >&6; }
12121           as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12122         fi
12123         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12124 $as_echo "$tool_specified" >&6; }
12125       fi
12126     fi
12127   fi
12128 
12129 
12130   if test "x$GREP" = x; then
12131     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
12132   fi
12133 
12134 
12135 
12136 
12137   # Publish this variable in the help.
12138 
12139 
12140   if test "x$EGREP" = x; then
12141     # The variable is not set by user, try to locate tool using the code snippet
12142     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
12143 $as_echo_n "checking for egrep... " >&6; }
12144 if ${ac_cv_path_EGREP+:} false; then :
12145   $as_echo_n "(cached) " >&6
12146 else
12147   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
12148    then ac_cv_path_EGREP="$GREP -E"
12149    else
12150      if test -z "$EGREP"; then
12151   ac_path_EGREP_found=false
12152   # Loop through the user's path and test for each of PROGNAME-LIST
12153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12154 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12155 do
12156   IFS=$as_save_IFS
12157   test -z "$as_dir" && as_dir=.
12158     for ac_prog in egrep; do
12159     for ac_exec_ext in '' $ac_executable_extensions; do
12160       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
12161       as_fn_executable_p "$ac_path_EGREP" || continue
12162 # Check for GNU ac_path_EGREP and select it if it is found.
12163   # Check for GNU $ac_path_EGREP
12164 case `"$ac_path_EGREP" --version 2>&1` in
12165 *GNU*)
12166   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
12167 *)
12168   ac_count=0
12169   $as_echo_n 0123456789 >"conftest.in"
12170   while :
12171   do
12172     cat "conftest.in" "conftest.in" >"conftest.tmp"
12173     mv "conftest.tmp" "conftest.in"
12174     cp "conftest.in" "conftest.nl"
12175     $as_echo 'EGREP' >> "conftest.nl"
12176     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12177     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12178     as_fn_arith $ac_count + 1 && ac_count=$as_val
12179     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
12180       # Best one so far, save it but keep looking for a better one
12181       ac_cv_path_EGREP="$ac_path_EGREP"
12182       ac_path_EGREP_max=$ac_count
12183     fi
12184     # 10*(2^10) chars as input seems more than enough
12185     test $ac_count -gt 10 && break
12186   done
12187   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12188 esac
12189 
12190       $ac_path_EGREP_found && break 3
12191     done
12192   done
12193   done
12194 IFS=$as_save_IFS
12195   if test -z "$ac_cv_path_EGREP"; then
12196     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12197   fi
12198 else
12199   ac_cv_path_EGREP=$EGREP
12200 fi
12201 
12202    fi
12203 fi
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
12205 $as_echo "$ac_cv_path_EGREP" >&6; }
12206  EGREP="$ac_cv_path_EGREP"
12207 
12208 
12209   else
12210     # The variable is set, but is it from the command line or the environment?
12211 
12212     # Try to remove the string !EGREP! from our list.
12213     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
12214     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12215       # If it failed, the variable was not from the command line. Ignore it,
12216       # but warn the user (except for BASH, which is always set by the calling BASH).
12217       if test "xEGREP" != xBASH; then
12218         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
12219 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
12220       fi
12221       # Try to locate tool using the code snippet
12222       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
12223 $as_echo_n "checking for egrep... " >&6; }
12224 if ${ac_cv_path_EGREP+:} false; then :
12225   $as_echo_n "(cached) " >&6
12226 else
12227   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
12228    then ac_cv_path_EGREP="$GREP -E"
12229    else
12230      if test -z "$EGREP"; then
12231   ac_path_EGREP_found=false
12232   # Loop through the user's path and test for each of PROGNAME-LIST
12233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12234 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12235 do
12236   IFS=$as_save_IFS
12237   test -z "$as_dir" && as_dir=.
12238     for ac_prog in egrep; do
12239     for ac_exec_ext in '' $ac_executable_extensions; do
12240       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
12241       as_fn_executable_p "$ac_path_EGREP" || continue
12242 # Check for GNU ac_path_EGREP and select it if it is found.
12243   # Check for GNU $ac_path_EGREP
12244 case `"$ac_path_EGREP" --version 2>&1` in
12245 *GNU*)
12246   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
12247 *)
12248   ac_count=0
12249   $as_echo_n 0123456789 >"conftest.in"
12250   while :
12251   do
12252     cat "conftest.in" "conftest.in" >"conftest.tmp"
12253     mv "conftest.tmp" "conftest.in"
12254     cp "conftest.in" "conftest.nl"
12255     $as_echo 'EGREP' >> "conftest.nl"
12256     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12257     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12258     as_fn_arith $ac_count + 1 && ac_count=$as_val
12259     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
12260       # Best one so far, save it but keep looking for a better one
12261       ac_cv_path_EGREP="$ac_path_EGREP"
12262       ac_path_EGREP_max=$ac_count
12263     fi
12264     # 10*(2^10) chars as input seems more than enough
12265     test $ac_count -gt 10 && break
12266   done
12267   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12268 esac
12269 
12270       $ac_path_EGREP_found && break 3
12271     done
12272   done
12273   done
12274 IFS=$as_save_IFS
12275   if test -z "$ac_cv_path_EGREP"; then
12276     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12277   fi
12278 else
12279   ac_cv_path_EGREP=$EGREP
12280 fi
12281 
12282    fi
12283 fi
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
12285 $as_echo "$ac_cv_path_EGREP" >&6; }
12286  EGREP="$ac_cv_path_EGREP"
12287 
12288 
12289     else
12290       # If it succeeded, then it was overridden by the user. We will use it
12291       # for the tool.
12292 
12293       # First remove it from the list of overridden variables, so we can test
12294       # for unknown variables in the end.
12295       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12296 
12297       # Check if the provided tool contains a complete path.
12298       tool_specified="$EGREP"
12299       tool_basename="${tool_specified##*/}"
12300       if test "x$tool_basename" = "x$tool_specified"; then
12301         # A command without a complete path is provided, search $PATH.
12302         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
12303 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
12304         # Extract the first word of "$tool_basename", so it can be a program name with args.
12305 set dummy $tool_basename; ac_word=$2
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12307 $as_echo_n "checking for $ac_word... " >&6; }
12308 if ${ac_cv_path_EGREP+:} false; then :
12309   $as_echo_n "(cached) " >&6
12310 else
12311   case $EGREP in
12312   [\\/]* | ?:[\\/]*)
12313   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
12314   ;;
12315   *)
12316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12317 for as_dir in $PATH
12318 do
12319   IFS=$as_save_IFS
12320   test -z "$as_dir" && as_dir=.
12321     for ac_exec_ext in '' $ac_executable_extensions; do
12322   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12323     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
12324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12325     break 2
12326   fi
12327 done
12328   done
12329 IFS=$as_save_IFS
12330 
12331   ;;
12332 esac
12333 fi
12334 EGREP=$ac_cv_path_EGREP
12335 if test -n "$EGREP"; then
12336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
12337 $as_echo "$EGREP" >&6; }
12338 else
12339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12340 $as_echo "no" >&6; }
12341 fi
12342 
12343 
12344         if test "x$EGREP" = x; then
12345           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12346         fi
12347       else
12348         # Otherwise we believe it is a complete path. Use it as it is.
12349         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
12350 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
12351         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
12352 $as_echo_n "checking for EGREP... " >&6; }
12353         if test ! -x "$tool_specified"; then
12354           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12355 $as_echo "not found" >&6; }
12356           as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12357         fi
12358         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12359 $as_echo "$tool_specified" >&6; }
12360       fi
12361     fi
12362   fi
12363 
12364 
12365   if test "x$EGREP" = x; then
12366     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
12367   fi
12368 
12369 
12370 
12371 
12372   # Publish this variable in the help.
12373 
12374 
12375   if test "x$FGREP" = x; then
12376     # The variable is not set by user, try to locate tool using the code snippet
12377     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12378 $as_echo_n "checking for fgrep... " >&6; }
12379 if ${ac_cv_path_FGREP+:} false; then :
12380   $as_echo_n "(cached) " >&6
12381 else
12382   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12383    then ac_cv_path_FGREP="$GREP -F"
12384    else
12385      if test -z "$FGREP"; then
12386   ac_path_FGREP_found=false
12387   # Loop through the user's path and test for each of PROGNAME-LIST
12388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12389 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12390 do
12391   IFS=$as_save_IFS
12392   test -z "$as_dir" && as_dir=.
12393     for ac_prog in fgrep; do
12394     for ac_exec_ext in '' $ac_executable_extensions; do
12395       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12396       as_fn_executable_p "$ac_path_FGREP" || continue
12397 # Check for GNU ac_path_FGREP and select it if it is found.
12398   # Check for GNU $ac_path_FGREP
12399 case `"$ac_path_FGREP" --version 2>&1` in
12400 *GNU*)
12401   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12402 *)
12403   ac_count=0
12404   $as_echo_n 0123456789 >"conftest.in"
12405   while :
12406   do
12407     cat "conftest.in" "conftest.in" >"conftest.tmp"
12408     mv "conftest.tmp" "conftest.in"
12409     cp "conftest.in" "conftest.nl"
12410     $as_echo 'FGREP' >> "conftest.nl"
12411     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12412     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12413     as_fn_arith $ac_count + 1 && ac_count=$as_val
12414     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12415       # Best one so far, save it but keep looking for a better one
12416       ac_cv_path_FGREP="$ac_path_FGREP"
12417       ac_path_FGREP_max=$ac_count
12418     fi
12419     # 10*(2^10) chars as input seems more than enough
12420     test $ac_count -gt 10 && break
12421   done
12422   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12423 esac
12424 
12425       $ac_path_FGREP_found && break 3
12426     done
12427   done
12428   done
12429 IFS=$as_save_IFS
12430   if test -z "$ac_cv_path_FGREP"; then
12431     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12432   fi
12433 else
12434   ac_cv_path_FGREP=$FGREP
12435 fi
12436 
12437    fi
12438 fi
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12440 $as_echo "$ac_cv_path_FGREP" >&6; }
12441  FGREP="$ac_cv_path_FGREP"
12442 
12443 
12444   else
12445     # The variable is set, but is it from the command line or the environment?
12446 
12447     # Try to remove the string !FGREP! from our list.
12448     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
12449     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12450       # If it failed, the variable was not from the command line. Ignore it,
12451       # but warn the user (except for BASH, which is always set by the calling BASH).
12452       if test "xFGREP" != xBASH; then
12453         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
12454 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
12455       fi
12456       # Try to locate tool using the code snippet
12457       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12458 $as_echo_n "checking for fgrep... " >&6; }
12459 if ${ac_cv_path_FGREP+:} false; then :
12460   $as_echo_n "(cached) " >&6
12461 else
12462   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12463    then ac_cv_path_FGREP="$GREP -F"
12464    else
12465      if test -z "$FGREP"; then
12466   ac_path_FGREP_found=false
12467   # Loop through the user's path and test for each of PROGNAME-LIST
12468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12469 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12470 do
12471   IFS=$as_save_IFS
12472   test -z "$as_dir" && as_dir=.
12473     for ac_prog in fgrep; do
12474     for ac_exec_ext in '' $ac_executable_extensions; do
12475       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12476       as_fn_executable_p "$ac_path_FGREP" || continue
12477 # Check for GNU ac_path_FGREP and select it if it is found.
12478   # Check for GNU $ac_path_FGREP
12479 case `"$ac_path_FGREP" --version 2>&1` in
12480 *GNU*)
12481   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12482 *)
12483   ac_count=0
12484   $as_echo_n 0123456789 >"conftest.in"
12485   while :
12486   do
12487     cat "conftest.in" "conftest.in" >"conftest.tmp"
12488     mv "conftest.tmp" "conftest.in"
12489     cp "conftest.in" "conftest.nl"
12490     $as_echo 'FGREP' >> "conftest.nl"
12491     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12492     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12493     as_fn_arith $ac_count + 1 && ac_count=$as_val
12494     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12495       # Best one so far, save it but keep looking for a better one
12496       ac_cv_path_FGREP="$ac_path_FGREP"
12497       ac_path_FGREP_max=$ac_count
12498     fi
12499     # 10*(2^10) chars as input seems more than enough
12500     test $ac_count -gt 10 && break
12501   done
12502   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12503 esac
12504 
12505       $ac_path_FGREP_found && break 3
12506     done
12507   done
12508   done
12509 IFS=$as_save_IFS
12510   if test -z "$ac_cv_path_FGREP"; then
12511     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12512   fi
12513 else
12514   ac_cv_path_FGREP=$FGREP
12515 fi
12516 
12517    fi
12518 fi
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12520 $as_echo "$ac_cv_path_FGREP" >&6; }
12521  FGREP="$ac_cv_path_FGREP"
12522 
12523 
12524     else
12525       # If it succeeded, then it was overridden by the user. We will use it
12526       # for the tool.
12527 
12528       # First remove it from the list of overridden variables, so we can test
12529       # for unknown variables in the end.
12530       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12531 
12532       # Check if the provided tool contains a complete path.
12533       tool_specified="$FGREP"
12534       tool_basename="${tool_specified##*/}"
12535       if test "x$tool_basename" = "x$tool_specified"; then
12536         # A command without a complete path is provided, search $PATH.
12537         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
12538 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
12539         # Extract the first word of "$tool_basename", so it can be a program name with args.
12540 set dummy $tool_basename; ac_word=$2
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12542 $as_echo_n "checking for $ac_word... " >&6; }
12543 if ${ac_cv_path_FGREP+:} false; then :
12544   $as_echo_n "(cached) " >&6
12545 else
12546   case $FGREP in
12547   [\\/]* | ?:[\\/]*)
12548   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
12549   ;;
12550   *)
12551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12552 for as_dir in $PATH
12553 do
12554   IFS=$as_save_IFS
12555   test -z "$as_dir" && as_dir=.
12556     for ac_exec_ext in '' $ac_executable_extensions; do
12557   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12558     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
12559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12560     break 2
12561   fi
12562 done
12563   done
12564 IFS=$as_save_IFS
12565 
12566   ;;
12567 esac
12568 fi
12569 FGREP=$ac_cv_path_FGREP
12570 if test -n "$FGREP"; then
12571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
12572 $as_echo "$FGREP" >&6; }
12573 else
12574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12575 $as_echo "no" >&6; }
12576 fi
12577 
12578 
12579         if test "x$FGREP" = x; then
12580           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12581         fi
12582       else
12583         # Otherwise we believe it is a complete path. Use it as it is.
12584         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
12585 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
12586         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
12587 $as_echo_n "checking for FGREP... " >&6; }
12588         if test ! -x "$tool_specified"; then
12589           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12590 $as_echo "not found" >&6; }
12591           as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12592         fi
12593         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12594 $as_echo "$tool_specified" >&6; }
12595       fi
12596     fi
12597   fi
12598 
12599 
12600   if test "x$FGREP" = x; then
12601     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
12602   fi
12603 
12604 
12605 
12606 
12607   # Publish this variable in the help.
12608 
12609 
12610   if test "x$SED" = x; then
12611     # The variable is not set by user, try to locate tool using the code snippet
12612     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12613 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12614 if ${ac_cv_path_SED+:} false; then :
12615   $as_echo_n "(cached) " >&6
12616 else
12617             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12618      for ac_i in 1 2 3 4 5 6 7; do
12619        ac_script="$ac_script$as_nl$ac_script"
12620      done
12621      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12622      { ac_script=; unset ac_script;}
12623      if test -z "$SED"; then
12624   ac_path_SED_found=false
12625   # Loop through the user's path and test for each of PROGNAME-LIST
12626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12627 for as_dir in $PATH
12628 do
12629   IFS=$as_save_IFS
12630   test -z "$as_dir" && as_dir=.
12631     for ac_prog in sed gsed; do
12632     for ac_exec_ext in '' $ac_executable_extensions; do
12633       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12634       as_fn_executable_p "$ac_path_SED" || continue
12635 # Check for GNU ac_path_SED and select it if it is found.
12636   # Check for GNU $ac_path_SED
12637 case `"$ac_path_SED" --version 2>&1` in
12638 *GNU*)
12639   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12640 *)
12641   ac_count=0
12642   $as_echo_n 0123456789 >"conftest.in"
12643   while :
12644   do
12645     cat "conftest.in" "conftest.in" >"conftest.tmp"
12646     mv "conftest.tmp" "conftest.in"
12647     cp "conftest.in" "conftest.nl"
12648     $as_echo '' >> "conftest.nl"
12649     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12650     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12651     as_fn_arith $ac_count + 1 && ac_count=$as_val
12652     if test $ac_count -gt ${ac_path_SED_max-0}; then
12653       # Best one so far, save it but keep looking for a better one
12654       ac_cv_path_SED="$ac_path_SED"
12655       ac_path_SED_max=$ac_count
12656     fi
12657     # 10*(2^10) chars as input seems more than enough
12658     test $ac_count -gt 10 && break
12659   done
12660   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12661 esac
12662 
12663       $ac_path_SED_found && break 3
12664     done
12665   done
12666   done
12667 IFS=$as_save_IFS
12668   if test -z "$ac_cv_path_SED"; then
12669     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12670   fi
12671 else
12672   ac_cv_path_SED=$SED
12673 fi
12674 
12675 fi
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12677 $as_echo "$ac_cv_path_SED" >&6; }
12678  SED="$ac_cv_path_SED"
12679   rm -f conftest.sed
12680 
12681   else
12682     # The variable is set, but is it from the command line or the environment?
12683 
12684     # Try to remove the string !SED! from our list.
12685     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
12686     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12687       # If it failed, the variable was not from the command line. Ignore it,
12688       # but warn the user (except for BASH, which is always set by the calling BASH).
12689       if test "xSED" != xBASH; then
12690         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
12691 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
12692       fi
12693       # Try to locate tool using the code snippet
12694       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12695 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12696 if ${ac_cv_path_SED+:} false; then :
12697   $as_echo_n "(cached) " >&6
12698 else
12699             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12700      for ac_i in 1 2 3 4 5 6 7; do
12701        ac_script="$ac_script$as_nl$ac_script"
12702      done
12703      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12704      { ac_script=; unset ac_script;}
12705      if test -z "$SED"; then
12706   ac_path_SED_found=false
12707   # Loop through the user's path and test for each of PROGNAME-LIST
12708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12709 for as_dir in $PATH
12710 do
12711   IFS=$as_save_IFS
12712   test -z "$as_dir" && as_dir=.
12713     for ac_prog in sed gsed; do
12714     for ac_exec_ext in '' $ac_executable_extensions; do
12715       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12716       as_fn_executable_p "$ac_path_SED" || continue
12717 # Check for GNU ac_path_SED and select it if it is found.
12718   # Check for GNU $ac_path_SED
12719 case `"$ac_path_SED" --version 2>&1` in
12720 *GNU*)
12721   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12722 *)
12723   ac_count=0
12724   $as_echo_n 0123456789 >"conftest.in"
12725   while :
12726   do
12727     cat "conftest.in" "conftest.in" >"conftest.tmp"
12728     mv "conftest.tmp" "conftest.in"
12729     cp "conftest.in" "conftest.nl"
12730     $as_echo '' >> "conftest.nl"
12731     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12732     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12733     as_fn_arith $ac_count + 1 && ac_count=$as_val
12734     if test $ac_count -gt ${ac_path_SED_max-0}; then
12735       # Best one so far, save it but keep looking for a better one
12736       ac_cv_path_SED="$ac_path_SED"
12737       ac_path_SED_max=$ac_count
12738     fi
12739     # 10*(2^10) chars as input seems more than enough
12740     test $ac_count -gt 10 && break
12741   done
12742   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12743 esac
12744 
12745       $ac_path_SED_found && break 3
12746     done
12747   done
12748   done
12749 IFS=$as_save_IFS
12750   if test -z "$ac_cv_path_SED"; then
12751     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12752   fi
12753 else
12754   ac_cv_path_SED=$SED
12755 fi
12756 
12757 fi
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12759 $as_echo "$ac_cv_path_SED" >&6; }
12760  SED="$ac_cv_path_SED"
12761   rm -f conftest.sed
12762 
12763     else
12764       # If it succeeded, then it was overridden by the user. We will use it
12765       # for the tool.
12766 
12767       # First remove it from the list of overridden variables, so we can test
12768       # for unknown variables in the end.
12769       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12770 
12771       # Check if the provided tool contains a complete path.
12772       tool_specified="$SED"
12773       tool_basename="${tool_specified##*/}"
12774       if test "x$tool_basename" = "x$tool_specified"; then
12775         # A command without a complete path is provided, search $PATH.
12776         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
12777 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
12778         # Extract the first word of "$tool_basename", so it can be a program name with args.
12779 set dummy $tool_basename; ac_word=$2
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12781 $as_echo_n "checking for $ac_word... " >&6; }
12782 if ${ac_cv_path_SED+:} false; then :
12783   $as_echo_n "(cached) " >&6
12784 else
12785   case $SED in
12786   [\\/]* | ?:[\\/]*)
12787   ac_cv_path_SED="$SED" # Let the user override the test with a path.
12788   ;;
12789   *)
12790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12791 for as_dir in $PATH
12792 do
12793   IFS=$as_save_IFS
12794   test -z "$as_dir" && as_dir=.
12795     for ac_exec_ext in '' $ac_executable_extensions; do
12796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12797     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12799     break 2
12800   fi
12801 done
12802   done
12803 IFS=$as_save_IFS
12804 
12805   ;;
12806 esac
12807 fi
12808 SED=$ac_cv_path_SED
12809 if test -n "$SED"; then
12810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12811 $as_echo "$SED" >&6; }
12812 else
12813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12814 $as_echo "no" >&6; }
12815 fi
12816 
12817 
12818         if test "x$SED" = x; then
12819           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12820         fi
12821       else
12822         # Otherwise we believe it is a complete path. Use it as it is.
12823         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
12824 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
12825         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
12826 $as_echo_n "checking for SED... " >&6; }
12827         if test ! -x "$tool_specified"; then
12828           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12829 $as_echo "not found" >&6; }
12830           as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
12831         fi
12832         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12833 $as_echo "$tool_specified" >&6; }
12834       fi
12835     fi
12836   fi
12837 
12838 
12839   if test "x$SED" = x; then
12840     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
12841   fi
12842 
12843 
12844 
12845   # Always force rm.
12846   RM="$RM -f"
12847 
12848   # pwd behaves differently on various platforms and some don't support the -L flag.
12849   # Always use the bash builtin pwd to get uniform behavior.
12850   THEPWDCMD=pwd
12851 
12852   # These are not required on all platforms
12853 
12854 
12855   # Publish this variable in the help.
12856 
12857 
12858   if test "x$CYGPATH" = x; then
12859     # The variable is not set by user, try to locate tool using the code snippet
12860     for ac_prog in cygpath
12861 do
12862   # Extract the first word of "$ac_prog", so it can be a program name with args.
12863 set dummy $ac_prog; ac_word=$2
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12865 $as_echo_n "checking for $ac_word... " >&6; }
12866 if ${ac_cv_path_CYGPATH+:} false; then :
12867   $as_echo_n "(cached) " >&6
12868 else
12869   case $CYGPATH in
12870   [\\/]* | ?:[\\/]*)
12871   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12872   ;;
12873   *)
12874   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12875 for as_dir in $PATH
12876 do
12877   IFS=$as_save_IFS
12878   test -z "$as_dir" && as_dir=.
12879     for ac_exec_ext in '' $ac_executable_extensions; do
12880   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12881     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12883     break 2
12884   fi
12885 done
12886   done
12887 IFS=$as_save_IFS
12888 
12889   ;;
12890 esac
12891 fi
12892 CYGPATH=$ac_cv_path_CYGPATH
12893 if test -n "$CYGPATH"; then
12894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12895 $as_echo "$CYGPATH" >&6; }
12896 else
12897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12898 $as_echo "no" >&6; }
12899 fi
12900 
12901 
12902   test -n "$CYGPATH" && break
12903 done
12904 
12905   else
12906     # The variable is set, but is it from the command line or the environment?
12907 
12908     # Try to remove the string !CYGPATH! from our list.
12909     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
12910     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12911       # If it failed, the variable was not from the command line. Ignore it,
12912       # but warn the user (except for BASH, which is always set by the calling BASH).
12913       if test "xCYGPATH" != xBASH; then
12914         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
12915 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
12916       fi
12917       # Try to locate tool using the code snippet
12918       for ac_prog in cygpath
12919 do
12920   # Extract the first word of "$ac_prog", so it can be a program name with args.
12921 set dummy $ac_prog; ac_word=$2
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12923 $as_echo_n "checking for $ac_word... " >&6; }
12924 if ${ac_cv_path_CYGPATH+:} false; then :
12925   $as_echo_n "(cached) " >&6
12926 else
12927   case $CYGPATH in
12928   [\\/]* | ?:[\\/]*)
12929   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12930   ;;
12931   *)
12932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12933 for as_dir in $PATH
12934 do
12935   IFS=$as_save_IFS
12936   test -z "$as_dir" && as_dir=.
12937     for ac_exec_ext in '' $ac_executable_extensions; do
12938   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12939     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12941     break 2
12942   fi
12943 done
12944   done
12945 IFS=$as_save_IFS
12946 
12947   ;;
12948 esac
12949 fi
12950 CYGPATH=$ac_cv_path_CYGPATH
12951 if test -n "$CYGPATH"; then
12952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12953 $as_echo "$CYGPATH" >&6; }
12954 else
12955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12956 $as_echo "no" >&6; }
12957 fi
12958 
12959 
12960   test -n "$CYGPATH" && break
12961 done
12962 
12963     else
12964       # If it succeeded, then it was overridden by the user. We will use it
12965       # for the tool.
12966 
12967       # First remove it from the list of overridden variables, so we can test
12968       # for unknown variables in the end.
12969       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12970 
12971       # Check if the provided tool contains a complete path.
12972       tool_specified="$CYGPATH"
12973       tool_basename="${tool_specified##*/}"
12974       if test "x$tool_basename" = "x$tool_specified"; then
12975         # A command without a complete path is provided, search $PATH.
12976         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
12977 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
12978         # Extract the first word of "$tool_basename", so it can be a program name with args.
12979 set dummy $tool_basename; ac_word=$2
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12981 $as_echo_n "checking for $ac_word... " >&6; }
12982 if ${ac_cv_path_CYGPATH+:} false; then :
12983   $as_echo_n "(cached) " >&6
12984 else
12985   case $CYGPATH in
12986   [\\/]* | ?:[\\/]*)
12987   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12988   ;;
12989   *)
12990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12991 for as_dir in $PATH
12992 do
12993   IFS=$as_save_IFS
12994   test -z "$as_dir" && as_dir=.
12995     for ac_exec_ext in '' $ac_executable_extensions; do
12996   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12997     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12999     break 2
13000   fi
13001 done
13002   done
13003 IFS=$as_save_IFS
13004 
13005   ;;
13006 esac
13007 fi
13008 CYGPATH=$ac_cv_path_CYGPATH
13009 if test -n "$CYGPATH"; then
13010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13011 $as_echo "$CYGPATH" >&6; }
13012 else
13013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13014 $as_echo "no" >&6; }
13015 fi
13016 
13017 
13018         if test "x$CYGPATH" = x; then
13019           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13020         fi
13021       else
13022         # Otherwise we believe it is a complete path. Use it as it is.
13023         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
13024 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
13025         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
13026 $as_echo_n "checking for CYGPATH... " >&6; }
13027         if test ! -x "$tool_specified"; then
13028           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13029 $as_echo "not found" >&6; }
13030           as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
13031         fi
13032         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13033 $as_echo "$tool_specified" >&6; }
13034       fi
13035     fi
13036   fi
13037 
13038 
13039 
13040 
13041   # Publish this variable in the help.
13042 
13043 
13044   if test "x$READLINK" = x; then
13045     # The variable is not set by user, try to locate tool using the code snippet
13046     for ac_prog in greadlink readlink
13047 do
13048   # Extract the first word of "$ac_prog", so it can be a program name with args.
13049 set dummy $ac_prog; ac_word=$2
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13051 $as_echo_n "checking for $ac_word... " >&6; }
13052 if ${ac_cv_path_READLINK+:} false; then :
13053   $as_echo_n "(cached) " >&6
13054 else
13055   case $READLINK in
13056   [\\/]* | ?:[\\/]*)
13057   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
13058   ;;
13059   *)
13060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13061 for as_dir in $PATH
13062 do
13063   IFS=$as_save_IFS
13064   test -z "$as_dir" && as_dir=.
13065     for ac_exec_ext in '' $ac_executable_extensions; do
13066   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13067     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
13068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13069     break 2
13070   fi
13071 done
13072   done
13073 IFS=$as_save_IFS
13074 
13075   ;;
13076 esac
13077 fi
13078 READLINK=$ac_cv_path_READLINK
13079 if test -n "$READLINK"; then
13080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
13081 $as_echo "$READLINK" >&6; }
13082 else
13083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13084 $as_echo "no" >&6; }
13085 fi
13086 
13087 
13088   test -n "$READLINK" && break
13089 done
13090 
13091   else
13092     # The variable is set, but is it from the command line or the environment?
13093 
13094     # Try to remove the string !READLINK! from our list.
13095     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
13096     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13097       # If it failed, the variable was not from the command line. Ignore it,
13098       # but warn the user (except for BASH, which is always set by the calling BASH).
13099       if test "xREADLINK" != xBASH; then
13100         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
13101 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
13102       fi
13103       # Try to locate tool using the code snippet
13104       for ac_prog in greadlink readlink
13105 do
13106   # Extract the first word of "$ac_prog", so it can be a program name with args.
13107 set dummy $ac_prog; ac_word=$2
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13109 $as_echo_n "checking for $ac_word... " >&6; }
13110 if ${ac_cv_path_READLINK+:} false; then :
13111   $as_echo_n "(cached) " >&6
13112 else
13113   case $READLINK in
13114   [\\/]* | ?:[\\/]*)
13115   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
13116   ;;
13117   *)
13118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13119 for as_dir in $PATH
13120 do
13121   IFS=$as_save_IFS
13122   test -z "$as_dir" && as_dir=.
13123     for ac_exec_ext in '' $ac_executable_extensions; do
13124   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13125     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
13126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13127     break 2
13128   fi
13129 done
13130   done
13131 IFS=$as_save_IFS
13132 
13133   ;;
13134 esac
13135 fi
13136 READLINK=$ac_cv_path_READLINK
13137 if test -n "$READLINK"; then
13138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
13139 $as_echo "$READLINK" >&6; }
13140 else
13141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13142 $as_echo "no" >&6; }
13143 fi
13144 
13145 
13146   test -n "$READLINK" && break
13147 done
13148 
13149     else
13150       # If it succeeded, then it was overridden by the user. We will use it
13151       # for the tool.
13152 
13153       # First remove it from the list of overridden variables, so we can test
13154       # for unknown variables in the end.
13155       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13156 
13157       # Check if the provided tool contains a complete path.
13158       tool_specified="$READLINK"
13159       tool_basename="${tool_specified##*/}"
13160       if test "x$tool_basename" = "x$tool_specified"; then
13161         # A command without a complete path is provided, search $PATH.
13162         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
13163 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
13164         # Extract the first word of "$tool_basename", so it can be a program name with args.
13165 set dummy $tool_basename; ac_word=$2
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13167 $as_echo_n "checking for $ac_word... " >&6; }
13168 if ${ac_cv_path_READLINK+:} false; then :
13169   $as_echo_n "(cached) " >&6
13170 else
13171   case $READLINK in
13172   [\\/]* | ?:[\\/]*)
13173   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
13174   ;;
13175   *)
13176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13177 for as_dir in $PATH
13178 do
13179   IFS=$as_save_IFS
13180   test -z "$as_dir" && as_dir=.
13181     for ac_exec_ext in '' $ac_executable_extensions; do
13182   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13183     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
13184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13185     break 2
13186   fi
13187 done
13188   done
13189 IFS=$as_save_IFS
13190 
13191   ;;
13192 esac
13193 fi
13194 READLINK=$ac_cv_path_READLINK
13195 if test -n "$READLINK"; then
13196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
13197 $as_echo "$READLINK" >&6; }
13198 else
13199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13200 $as_echo "no" >&6; }
13201 fi
13202 
13203 
13204         if test "x$READLINK" = x; then
13205           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13206         fi
13207       else
13208         # Otherwise we believe it is a complete path. Use it as it is.
13209         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
13210 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
13211         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
13212 $as_echo_n "checking for READLINK... " >&6; }
13213         if test ! -x "$tool_specified"; then
13214           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13215 $as_echo "not found" >&6; }
13216           as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
13217         fi
13218         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13219 $as_echo "$tool_specified" >&6; }
13220       fi
13221     fi
13222   fi
13223 
13224 
13225 
13226 
13227   # Publish this variable in the help.
13228 
13229 
13230   if test "x$DF" = x; then
13231     # The variable is not set by user, try to locate tool using the code snippet
13232     for ac_prog in df
13233 do
13234   # Extract the first word of "$ac_prog", so it can be a program name with args.
13235 set dummy $ac_prog; ac_word=$2
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13237 $as_echo_n "checking for $ac_word... " >&6; }
13238 if ${ac_cv_path_DF+:} false; then :
13239   $as_echo_n "(cached) " >&6
13240 else
13241   case $DF in
13242   [\\/]* | ?:[\\/]*)
13243   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13244   ;;
13245   *)
13246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13247 for as_dir in $PATH
13248 do
13249   IFS=$as_save_IFS
13250   test -z "$as_dir" && as_dir=.
13251     for ac_exec_ext in '' $ac_executable_extensions; do
13252   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13253     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13255     break 2
13256   fi
13257 done
13258   done
13259 IFS=$as_save_IFS
13260 
13261   ;;
13262 esac
13263 fi
13264 DF=$ac_cv_path_DF
13265 if test -n "$DF"; then
13266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13267 $as_echo "$DF" >&6; }
13268 else
13269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13270 $as_echo "no" >&6; }
13271 fi
13272 
13273 
13274   test -n "$DF" && break
13275 done
13276 
13277   else
13278     # The variable is set, but is it from the command line or the environment?
13279 
13280     # Try to remove the string !DF! from our list.
13281     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
13282     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13283       # If it failed, the variable was not from the command line. Ignore it,
13284       # but warn the user (except for BASH, which is always set by the calling BASH).
13285       if test "xDF" != xBASH; then
13286         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
13287 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
13288       fi
13289       # Try to locate tool using the code snippet
13290       for ac_prog in df
13291 do
13292   # Extract the first word of "$ac_prog", so it can be a program name with args.
13293 set dummy $ac_prog; ac_word=$2
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13295 $as_echo_n "checking for $ac_word... " >&6; }
13296 if ${ac_cv_path_DF+:} false; then :
13297   $as_echo_n "(cached) " >&6
13298 else
13299   case $DF in
13300   [\\/]* | ?:[\\/]*)
13301   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13302   ;;
13303   *)
13304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13305 for as_dir in $PATH
13306 do
13307   IFS=$as_save_IFS
13308   test -z "$as_dir" && as_dir=.
13309     for ac_exec_ext in '' $ac_executable_extensions; do
13310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13311     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13313     break 2
13314   fi
13315 done
13316   done
13317 IFS=$as_save_IFS
13318 
13319   ;;
13320 esac
13321 fi
13322 DF=$ac_cv_path_DF
13323 if test -n "$DF"; then
13324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13325 $as_echo "$DF" >&6; }
13326 else
13327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13328 $as_echo "no" >&6; }
13329 fi
13330 
13331 
13332   test -n "$DF" && break
13333 done
13334 
13335     else
13336       # If it succeeded, then it was overridden by the user. We will use it
13337       # for the tool.
13338 
13339       # First remove it from the list of overridden variables, so we can test
13340       # for unknown variables in the end.
13341       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13342 
13343       # Check if the provided tool contains a complete path.
13344       tool_specified="$DF"
13345       tool_basename="${tool_specified##*/}"
13346       if test "x$tool_basename" = "x$tool_specified"; then
13347         # A command without a complete path is provided, search $PATH.
13348         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
13349 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
13350         # Extract the first word of "$tool_basename", so it can be a program name with args.
13351 set dummy $tool_basename; ac_word=$2
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13353 $as_echo_n "checking for $ac_word... " >&6; }
13354 if ${ac_cv_path_DF+:} false; then :
13355   $as_echo_n "(cached) " >&6
13356 else
13357   case $DF in
13358   [\\/]* | ?:[\\/]*)
13359   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13360   ;;
13361   *)
13362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13363 for as_dir in $PATH
13364 do
13365   IFS=$as_save_IFS
13366   test -z "$as_dir" && as_dir=.
13367     for ac_exec_ext in '' $ac_executable_extensions; do
13368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13369     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13371     break 2
13372   fi
13373 done
13374   done
13375 IFS=$as_save_IFS
13376 
13377   ;;
13378 esac
13379 fi
13380 DF=$ac_cv_path_DF
13381 if test -n "$DF"; then
13382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13383 $as_echo "$DF" >&6; }
13384 else
13385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13386 $as_echo "no" >&6; }
13387 fi
13388 
13389 
13390         if test "x$DF" = x; then
13391           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13392         fi
13393       else
13394         # Otherwise we believe it is a complete path. Use it as it is.
13395         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
13396 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
13397         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
13398 $as_echo_n "checking for DF... " >&6; }
13399         if test ! -x "$tool_specified"; then
13400           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13401 $as_echo "not found" >&6; }
13402           as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
13403         fi
13404         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13405 $as_echo "$tool_specified" >&6; }
13406       fi
13407     fi
13408   fi
13409 
13410 
13411 
13412 
13413   # Publish this variable in the help.
13414 
13415 
13416   if test "x$SETFILE" = x; then
13417     # The variable is not set by user, try to locate tool using the code snippet
13418     for ac_prog in SetFile
13419 do
13420   # Extract the first word of "$ac_prog", so it can be a program name with args.
13421 set dummy $ac_prog; ac_word=$2
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13423 $as_echo_n "checking for $ac_word... " >&6; }
13424 if ${ac_cv_path_SETFILE+:} false; then :
13425   $as_echo_n "(cached) " >&6
13426 else
13427   case $SETFILE in
13428   [\\/]* | ?:[\\/]*)
13429   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13430   ;;
13431   *)
13432   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13433 for as_dir in $PATH
13434 do
13435   IFS=$as_save_IFS
13436   test -z "$as_dir" && as_dir=.
13437     for ac_exec_ext in '' $ac_executable_extensions; do
13438   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13439     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13441     break 2
13442   fi
13443 done
13444   done
13445 IFS=$as_save_IFS
13446 
13447   ;;
13448 esac
13449 fi
13450 SETFILE=$ac_cv_path_SETFILE
13451 if test -n "$SETFILE"; then
13452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13453 $as_echo "$SETFILE" >&6; }
13454 else
13455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13456 $as_echo "no" >&6; }
13457 fi
13458 
13459 
13460   test -n "$SETFILE" && break
13461 done
13462 
13463   else
13464     # The variable is set, but is it from the command line or the environment?
13465 
13466     # Try to remove the string !SETFILE! from our list.
13467     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
13468     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13469       # If it failed, the variable was not from the command line. Ignore it,
13470       # but warn the user (except for BASH, which is always set by the calling BASH).
13471       if test "xSETFILE" != xBASH; then
13472         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
13473 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
13474       fi
13475       # Try to locate tool using the code snippet
13476       for ac_prog in SetFile
13477 do
13478   # Extract the first word of "$ac_prog", so it can be a program name with args.
13479 set dummy $ac_prog; ac_word=$2
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13481 $as_echo_n "checking for $ac_word... " >&6; }
13482 if ${ac_cv_path_SETFILE+:} false; then :
13483   $as_echo_n "(cached) " >&6
13484 else
13485   case $SETFILE in
13486   [\\/]* | ?:[\\/]*)
13487   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13488   ;;
13489   *)
13490   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13491 for as_dir in $PATH
13492 do
13493   IFS=$as_save_IFS
13494   test -z "$as_dir" && as_dir=.
13495     for ac_exec_ext in '' $ac_executable_extensions; do
13496   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13497     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13499     break 2
13500   fi
13501 done
13502   done
13503 IFS=$as_save_IFS
13504 
13505   ;;
13506 esac
13507 fi
13508 SETFILE=$ac_cv_path_SETFILE
13509 if test -n "$SETFILE"; then
13510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13511 $as_echo "$SETFILE" >&6; }
13512 else
13513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13514 $as_echo "no" >&6; }
13515 fi
13516 
13517 
13518   test -n "$SETFILE" && break
13519 done
13520 
13521     else
13522       # If it succeeded, then it was overridden by the user. We will use it
13523       # for the tool.
13524 
13525       # First remove it from the list of overridden variables, so we can test
13526       # for unknown variables in the end.
13527       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13528 
13529       # Check if the provided tool contains a complete path.
13530       tool_specified="$SETFILE"
13531       tool_basename="${tool_specified##*/}"
13532       if test "x$tool_basename" = "x$tool_specified"; then
13533         # A command without a complete path is provided, search $PATH.
13534         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
13535 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
13536         # Extract the first word of "$tool_basename", so it can be a program name with args.
13537 set dummy $tool_basename; ac_word=$2
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13539 $as_echo_n "checking for $ac_word... " >&6; }
13540 if ${ac_cv_path_SETFILE+:} false; then :
13541   $as_echo_n "(cached) " >&6
13542 else
13543   case $SETFILE in
13544   [\\/]* | ?:[\\/]*)
13545   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13546   ;;
13547   *)
13548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13549 for as_dir in $PATH
13550 do
13551   IFS=$as_save_IFS
13552   test -z "$as_dir" && as_dir=.
13553     for ac_exec_ext in '' $ac_executable_extensions; do
13554   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13555     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13557     break 2
13558   fi
13559 done
13560   done
13561 IFS=$as_save_IFS
13562 
13563   ;;
13564 esac
13565 fi
13566 SETFILE=$ac_cv_path_SETFILE
13567 if test -n "$SETFILE"; then
13568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13569 $as_echo "$SETFILE" >&6; }
13570 else
13571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13572 $as_echo "no" >&6; }
13573 fi
13574 
13575 
13576         if test "x$SETFILE" = x; then
13577           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13578         fi
13579       else
13580         # Otherwise we believe it is a complete path. Use it as it is.
13581         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
13582 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
13583         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
13584 $as_echo_n "checking for SETFILE... " >&6; }
13585         if test ! -x "$tool_specified"; then
13586           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13587 $as_echo "not found" >&6; }
13588           as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
13589         fi
13590         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13591 $as_echo "$tool_specified" >&6; }
13592       fi
13593     fi
13594   fi
13595 
13596 
13597 
13598 
13599   # Publish this variable in the help.
13600 
13601 
13602   if test "x$CPIO" = x; then
13603     # The variable is not set by user, try to locate tool using the code snippet
13604     for ac_prog in cpio bsdcpio
13605 do
13606   # Extract the first word of "$ac_prog", so it can be a program name with args.
13607 set dummy $ac_prog; ac_word=$2
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13609 $as_echo_n "checking for $ac_word... " >&6; }
13610 if ${ac_cv_path_CPIO+:} false; then :
13611   $as_echo_n "(cached) " >&6
13612 else
13613   case $CPIO in
13614   [\\/]* | ?:[\\/]*)
13615   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13616   ;;
13617   *)
13618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13619 for as_dir in $PATH
13620 do
13621   IFS=$as_save_IFS
13622   test -z "$as_dir" && as_dir=.
13623     for ac_exec_ext in '' $ac_executable_extensions; do
13624   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13625     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13627     break 2
13628   fi
13629 done
13630   done
13631 IFS=$as_save_IFS
13632 
13633   ;;
13634 esac
13635 fi
13636 CPIO=$ac_cv_path_CPIO
13637 if test -n "$CPIO"; then
13638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13639 $as_echo "$CPIO" >&6; }
13640 else
13641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13642 $as_echo "no" >&6; }
13643 fi
13644 
13645 
13646   test -n "$CPIO" && break
13647 done
13648 
13649   else
13650     # The variable is set, but is it from the command line or the environment?
13651 
13652     # Try to remove the string !CPIO! from our list.
13653     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
13654     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13655       # If it failed, the variable was not from the command line. Ignore it,
13656       # but warn the user (except for BASH, which is always set by the calling BASH).
13657       if test "xCPIO" != xBASH; then
13658         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
13659 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
13660       fi
13661       # Try to locate tool using the code snippet
13662       for ac_prog in cpio bsdcpio
13663 do
13664   # Extract the first word of "$ac_prog", so it can be a program name with args.
13665 set dummy $ac_prog; ac_word=$2
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13667 $as_echo_n "checking for $ac_word... " >&6; }
13668 if ${ac_cv_path_CPIO+:} false; then :
13669   $as_echo_n "(cached) " >&6
13670 else
13671   case $CPIO in
13672   [\\/]* | ?:[\\/]*)
13673   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13674   ;;
13675   *)
13676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13677 for as_dir in $PATH
13678 do
13679   IFS=$as_save_IFS
13680   test -z "$as_dir" && as_dir=.
13681     for ac_exec_ext in '' $ac_executable_extensions; do
13682   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13683     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13684     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13685     break 2
13686   fi
13687 done
13688   done
13689 IFS=$as_save_IFS
13690 
13691   ;;
13692 esac
13693 fi
13694 CPIO=$ac_cv_path_CPIO
13695 if test -n "$CPIO"; then
13696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13697 $as_echo "$CPIO" >&6; }
13698 else
13699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13700 $as_echo "no" >&6; }
13701 fi
13702 
13703 
13704   test -n "$CPIO" && break
13705 done
13706 
13707     else
13708       # If it succeeded, then it was overridden by the user. We will use it
13709       # for the tool.
13710 
13711       # First remove it from the list of overridden variables, so we can test
13712       # for unknown variables in the end.
13713       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13714 
13715       # Check if the provided tool contains a complete path.
13716       tool_specified="$CPIO"
13717       tool_basename="${tool_specified##*/}"
13718       if test "x$tool_basename" = "x$tool_specified"; then
13719         # A command without a complete path is provided, search $PATH.
13720         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
13721 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
13722         # Extract the first word of "$tool_basename", so it can be a program name with args.
13723 set dummy $tool_basename; ac_word=$2
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13725 $as_echo_n "checking for $ac_word... " >&6; }
13726 if ${ac_cv_path_CPIO+:} false; then :
13727   $as_echo_n "(cached) " >&6
13728 else
13729   case $CPIO in
13730   [\\/]* | ?:[\\/]*)
13731   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13732   ;;
13733   *)
13734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13735 for as_dir in $PATH
13736 do
13737   IFS=$as_save_IFS
13738   test -z "$as_dir" && as_dir=.
13739     for ac_exec_ext in '' $ac_executable_extensions; do
13740   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13741     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13743     break 2
13744   fi
13745 done
13746   done
13747 IFS=$as_save_IFS
13748 
13749   ;;
13750 esac
13751 fi
13752 CPIO=$ac_cv_path_CPIO
13753 if test -n "$CPIO"; then
13754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13755 $as_echo "$CPIO" >&6; }
13756 else
13757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13758 $as_echo "no" >&6; }
13759 fi
13760 
13761 
13762         if test "x$CPIO" = x; then
13763           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13764         fi
13765       else
13766         # Otherwise we believe it is a complete path. Use it as it is.
13767         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
13768 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
13769         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
13770 $as_echo_n "checking for CPIO... " >&6; }
13771         if test ! -x "$tool_specified"; then
13772           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13773 $as_echo "not found" >&6; }
13774           as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
13775         fi
13776         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13777 $as_echo "$tool_specified" >&6; }
13778       fi
13779     fi
13780   fi
13781 
13782 
13783 
13784 
13785 # Now we can determine OpenJDK build and target platforms. This is required to
13786 # have early on.
13787 # Make sure we can run config.sub.
13788 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
13789   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
13790 
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
13792 $as_echo_n "checking build system type... " >&6; }
13793 if ${ac_cv_build+:} false; then :
13794   $as_echo_n "(cached) " >&6
13795 else
13796   ac_build_alias=$build_alias
13797 test "x$ac_build_alias" = x &&
13798   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
13799 test "x$ac_build_alias" = x &&
13800   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
13801 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
13802   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
13803 
13804 fi
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
13806 $as_echo "$ac_cv_build" >&6; }
13807 case $ac_cv_build in
13808 *-*-*) ;;
13809 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
13810 esac
13811 build=$ac_cv_build
13812 ac_save_IFS=$IFS; IFS='-'
13813 set x $ac_cv_build
13814 shift
13815 build_cpu=$1
13816 build_vendor=$2
13817 shift; shift
13818 # Remember, the first character of IFS is used to create $*,
13819 # except with old shells:
13820 build_os=$*
13821 IFS=$ac_save_IFS
13822 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13823 
13824 
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
13826 $as_echo_n "checking host system type... " >&6; }
13827 if ${ac_cv_host+:} false; then :
13828   $as_echo_n "(cached) " >&6
13829 else
13830   if test "x$host_alias" = x; then
13831   ac_cv_host=$ac_cv_build
13832 else
13833   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
13834     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
13835 fi
13836 
13837 fi
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
13839 $as_echo "$ac_cv_host" >&6; }
13840 case $ac_cv_host in
13841 *-*-*) ;;
13842 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
13843 esac
13844 host=$ac_cv_host
13845 ac_save_IFS=$IFS; IFS='-'
13846 set x $ac_cv_host
13847 shift
13848 host_cpu=$1
13849 host_vendor=$2
13850 shift; shift
13851 # Remember, the first character of IFS is used to create $*,
13852 # except with old shells:
13853 host_os=$*
13854 IFS=$ac_save_IFS
13855 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13856 
13857 
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
13859 $as_echo_n "checking target system type... " >&6; }
13860 if ${ac_cv_target+:} false; then :
13861   $as_echo_n "(cached) " >&6
13862 else
13863   if test "x$target_alias" = x; then
13864   ac_cv_target=$ac_cv_host
13865 else
13866   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
13867     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
13868 fi
13869 
13870 fi
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
13872 $as_echo "$ac_cv_target" >&6; }
13873 case $ac_cv_target in
13874 *-*-*) ;;
13875 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
13876 esac
13877 target=$ac_cv_target
13878 ac_save_IFS=$IFS; IFS='-'
13879 set x $ac_cv_target
13880 shift
13881 target_cpu=$1
13882 target_vendor=$2
13883 shift; shift
13884 # Remember, the first character of IFS is used to create $*,
13885 # except with old shells:
13886 target_os=$*
13887 IFS=$ac_save_IFS
13888 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13889 
13890 
13891 # The aliases save the names the user supplied, while $host etc.
13892 # will get canonicalized.
13893 test -n "$target_alias" &&
13894   test "$program_prefix$program_suffix$program_transform_name" = \
13895     NONENONEs,x,x, &&
13896   program_prefix=${target_alias}-
13897 
13898   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
13899   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
13900   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
13901   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
13902   # to use the configure naming style.
13903 
13904 
13905 
13906 
13907 
13908   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
13909   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
13910   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
13911   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
13912   OPENJDK_TARGET_AUTOCONF_NAME="$host"
13913   OPENJDK_BUILD_AUTOCONF_NAME="$build"
13914 
13915 
13916 
13917   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13918 
13919   case "$build_os" in
13920     *linux*)
13921       VAR_OS=linux
13922       VAR_OS_TYPE=unix
13923       ;;
13924     *solaris*)
13925       VAR_OS=solaris
13926       VAR_OS_TYPE=unix
13927       ;;
13928     *darwin*)
13929       VAR_OS=macosx
13930       VAR_OS_TYPE=unix
13931       ;;
13932     *bsd*)
13933       VAR_OS=bsd
13934       VAR_OS_TYPE=unix
13935       ;;
13936     *cygwin*)
13937       VAR_OS=windows
13938       VAR_OS_ENV=windows.cygwin
13939       ;;
13940     *mingw*)
13941       VAR_OS=windows
13942       VAR_OS_ENV=windows.msys
13943       ;;
13944     *aix*)
13945       VAR_OS=aix
13946       VAR_OS_TYPE=unix
13947       ;;
13948     *)
13949       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
13950       ;;
13951   esac
13952 
13953 
13954   # First argument is the cpu name from the trip/quad
13955   case "$build_cpu" in
13956     x86_64)
13957       VAR_CPU=x86_64
13958       VAR_CPU_ARCH=x86
13959       VAR_CPU_BITS=64
13960       VAR_CPU_ENDIAN=little
13961       ;;
13962     i?86)
13963       VAR_CPU=x86
13964       VAR_CPU_ARCH=x86
13965       VAR_CPU_BITS=32
13966       VAR_CPU_ENDIAN=little
13967       ;;
13968     arm*)
13969       VAR_CPU=arm
13970       VAR_CPU_ARCH=arm
13971       VAR_CPU_BITS=32
13972       VAR_CPU_ENDIAN=little
13973       ;;
13974     aarch64)
13975       VAR_CPU=aarch64
13976       VAR_CPU_ARCH=aarch64
13977       VAR_CPU_BITS=64
13978       VAR_CPU_ENDIAN=little
13979       ;;
13980     powerpc)
13981       VAR_CPU=ppc
13982       VAR_CPU_ARCH=ppc
13983       VAR_CPU_BITS=32
13984       VAR_CPU_ENDIAN=big
13985       ;;
13986     powerpc64)
13987       VAR_CPU=ppc64
13988       VAR_CPU_ARCH=ppc
13989       VAR_CPU_BITS=64
13990       VAR_CPU_ENDIAN=big
13991       ;;
13992     powerpc64le)
13993       VAR_CPU=ppc64
13994       VAR_CPU_ARCH=ppc
13995       VAR_CPU_BITS=64
13996       VAR_CPU_ENDIAN=little
13997       ;;
13998     s390)
13999       VAR_CPU=s390
14000       VAR_CPU_ARCH=s390
14001       VAR_CPU_BITS=32
14002       VAR_CPU_ENDIAN=big
14003       ;;
14004     s390x)
14005       VAR_CPU=s390x
14006       VAR_CPU_ARCH=s390
14007       VAR_CPU_BITS=64
14008       VAR_CPU_ENDIAN=big
14009       ;;
14010     sparc)
14011       VAR_CPU=sparc
14012       VAR_CPU_ARCH=sparc
14013       VAR_CPU_BITS=32
14014       VAR_CPU_ENDIAN=big
14015       ;;
14016     sparcv9|sparc64)
14017       VAR_CPU=sparcv9
14018       VAR_CPU_ARCH=sparc
14019       VAR_CPU_BITS=64
14020       VAR_CPU_ENDIAN=big
14021       ;;
14022     *)
14023       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
14024       ;;
14025   esac
14026 
14027   # ..and setup our own variables. (Do this explicitely to facilitate searching)
14028   OPENJDK_BUILD_OS="$VAR_OS"
14029   if test "x$VAR_OS_TYPE" != x; then
14030     OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE"
14031   else
14032     OPENJDK_BUILD_OS_TYPE="$VAR_OS"
14033   fi
14034   if test "x$VAR_OS_ENV" != x; then
14035     OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
14036   else
14037     OPENJDK_BUILD_OS_ENV="$VAR_OS"
14038   fi
14039   OPENJDK_BUILD_CPU="$VAR_CPU"
14040   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
14041   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
14042   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
14043 
14044 
14045 
14046 
14047 
14048 
14049 
14050 
14051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
14052 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
14053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
14054 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
14055 
14056   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
14057 
14058   case "$host_os" in
14059     *linux*)
14060       VAR_OS=linux
14061       VAR_OS_TYPE=unix
14062       ;;
14063     *solaris*)
14064       VAR_OS=solaris
14065       VAR_OS_TYPE=unix
14066       ;;
14067     *darwin*)
14068       VAR_OS=macosx
14069       VAR_OS_TYPE=unix
14070       ;;
14071     *bsd*)
14072       VAR_OS=bsd
14073       VAR_OS_TYPE=unix
14074       ;;
14075     *cygwin*)
14076       VAR_OS=windows
14077       VAR_OS_ENV=windows.cygwin
14078       ;;
14079     *mingw*)
14080       VAR_OS=windows
14081       VAR_OS_ENV=windows.msys
14082       ;;
14083     *aix*)
14084       VAR_OS=aix
14085       VAR_OS_TYPE=unix
14086       ;;
14087     *)
14088       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
14089       ;;
14090   esac
14091 
14092 
14093   # First argument is the cpu name from the trip/quad
14094   case "$host_cpu" in
14095     x86_64)
14096       VAR_CPU=x86_64
14097       VAR_CPU_ARCH=x86
14098       VAR_CPU_BITS=64
14099       VAR_CPU_ENDIAN=little
14100       ;;
14101     i?86)
14102       VAR_CPU=x86
14103       VAR_CPU_ARCH=x86
14104       VAR_CPU_BITS=32
14105       VAR_CPU_ENDIAN=little
14106       ;;
14107     arm*)
14108       VAR_CPU=arm
14109       VAR_CPU_ARCH=arm
14110       VAR_CPU_BITS=32
14111       VAR_CPU_ENDIAN=little
14112       ;;
14113     aarch64)
14114       VAR_CPU=aarch64
14115       VAR_CPU_ARCH=aarch64
14116       VAR_CPU_BITS=64
14117       VAR_CPU_ENDIAN=little
14118       ;;
14119     powerpc)
14120       VAR_CPU=ppc
14121       VAR_CPU_ARCH=ppc
14122       VAR_CPU_BITS=32
14123       VAR_CPU_ENDIAN=big
14124       ;;
14125     powerpc64)
14126       VAR_CPU=ppc64
14127       VAR_CPU_ARCH=ppc
14128       VAR_CPU_BITS=64
14129       VAR_CPU_ENDIAN=big
14130       ;;
14131     powerpc64le)
14132       VAR_CPU=ppc64
14133       VAR_CPU_ARCH=ppc
14134       VAR_CPU_BITS=64
14135       VAR_CPU_ENDIAN=little
14136       ;;
14137     s390)
14138       VAR_CPU=s390
14139       VAR_CPU_ARCH=s390
14140       VAR_CPU_BITS=32
14141       VAR_CPU_ENDIAN=big
14142       ;;
14143     s390x)
14144       VAR_CPU=s390x
14145       VAR_CPU_ARCH=s390
14146       VAR_CPU_BITS=64
14147       VAR_CPU_ENDIAN=big
14148       ;;
14149     sparc)
14150       VAR_CPU=sparc
14151       VAR_CPU_ARCH=sparc
14152       VAR_CPU_BITS=32
14153       VAR_CPU_ENDIAN=big
14154       ;;
14155     sparcv9|sparc64)
14156       VAR_CPU=sparcv9
14157       VAR_CPU_ARCH=sparc
14158       VAR_CPU_BITS=64
14159       VAR_CPU_ENDIAN=big
14160       ;;
14161     *)
14162       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
14163       ;;
14164   esac
14165 
14166   # ... and setup our own variables. (Do this explicitely to facilitate searching)
14167   OPENJDK_TARGET_OS="$VAR_OS"
14168   if test "x$VAR_OS_TYPE" != x; then
14169     OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE"
14170   else
14171     OPENJDK_TARGET_OS_TYPE="$VAR_OS"
14172   fi
14173   if test "x$VAR_OS_ENV" != x; then
14174     OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
14175   else
14176     OPENJDK_TARGET_OS_ENV="$VAR_OS"
14177   fi
14178   OPENJDK_TARGET_CPU="$VAR_CPU"
14179   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
14180   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
14181   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
14182 
14183 
14184 
14185 
14186 
14187 
14188 
14189 
14190   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
14191 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
14192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
14193 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
14194 
14195 
14196 
14197 # Check whether --with-target-bits was given.
14198 if test "${with_target_bits+set}" = set; then :
14199   withval=$with_target_bits;
14200 fi
14201 
14202 
14203   # We have three types of compiles:
14204   # native  == normal compilation, target system == build system
14205   # cross   == traditional cross compilation, target system != build system; special toolchain needed
14206   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
14207   #
14208   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
14209     # We're doing a proper cross-compilation
14210     COMPILE_TYPE="cross"
14211   else
14212     COMPILE_TYPE="native"
14213   fi
14214 
14215   if test "x$with_target_bits" != x; then
14216     if test "x$COMPILE_TYPE" = "xcross"; then
14217       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
14218     fi
14219 
14220     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14221       # A reduced build is requested
14222       COMPILE_TYPE="reduced"
14223       OPENJDK_TARGET_CPU_BITS=32
14224       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
14225         OPENJDK_TARGET_CPU=x86
14226       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
14227         OPENJDK_TARGET_CPU=sparc
14228       else
14229         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
14230       fi
14231     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
14232       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
14233     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
14234       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
14235 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
14236     else
14237       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
14238     fi
14239   fi
14240 
14241 
14242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
14243 $as_echo_n "checking compilation type... " >&6; }
14244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
14245 $as_echo "$COMPILE_TYPE" >&6; }
14246 
14247 
14248   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
14249     REQUIRED_OS_NAME=SunOS
14250     REQUIRED_OS_VERSION=5.10
14251   fi
14252   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
14253     REQUIRED_OS_NAME=Linux
14254     REQUIRED_OS_VERSION=2.6
14255   fi
14256   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
14257     REQUIRED_OS_NAME=Windows
14258     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
14259       REQUIRED_OS_VERSION=5.2
14260     else
14261       REQUIRED_OS_VERSION=5.1
14262     fi
14263   fi
14264   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14265     REQUIRED_OS_NAME=Darwin
14266     REQUIRED_OS_VERSION=11.2
14267   fi
14268 
14269 
14270 
14271 
14272 
14273   # Also store the legacy naming of the cpu.
14274   # Ie i586 and amd64 instead of x86 and x86_64
14275   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
14276   if test "x$OPENJDK_TARGET_CPU" = xx86; then
14277     OPENJDK_TARGET_CPU_LEGACY="i586"
14278   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14279     # On all platforms except MacOSX replace x86_64 with amd64.
14280     OPENJDK_TARGET_CPU_LEGACY="amd64"
14281   fi
14282 
14283 
14284   # And the second legacy naming of the cpu.
14285   # Ie i386 and amd64 instead of x86 and x86_64.
14286   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
14287   if test "x$OPENJDK_TARGET_CPU" = xx86; then
14288     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
14289   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14290     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
14291   fi
14292 
14293 
14294   # This is the name of the cpu (but using i386 and amd64 instead of
14295   # x86 and x86_64, respectively), preceeded by a /, to be used when
14296   # locating libraries. On macosx, it's empty, though.
14297   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
14298   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
14299     OPENJDK_TARGET_CPU_LIBDIR=""
14300   fi
14301 
14302 
14303   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
14304   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
14305   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
14306   OPENJDK_TARGET_CPU_ISADIR=""
14307   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
14308     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14309       OPENJDK_TARGET_CPU_ISADIR="/amd64"
14310     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
14311       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
14312     fi
14313   fi
14314 
14315 
14316   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
14317   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
14318   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
14319     # On linux only, we replace x86 with i386.
14320     OPENJDK_TARGET_CPU_OSARCH="i386"
14321   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14322     # On all platforms except macosx, we replace x86_64 with amd64.
14323     OPENJDK_TARGET_CPU_OSARCH="amd64"
14324   fi
14325 
14326 
14327   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
14328   if test "x$OPENJDK_TARGET_CPU" = xx86; then
14329     OPENJDK_TARGET_CPU_JLI="i386"
14330   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14331     # On all platforms except macosx, we replace x86_64 with amd64.
14332     OPENJDK_TARGET_CPU_JLI="amd64"
14333   fi
14334   # Now setup the -D flags for building libjli.
14335   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
14336   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
14337     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
14338       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
14339     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
14340       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
14341     fi
14342   fi
14343 
14344 
14345   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
14346       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
14347   else
14348       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE}
14349   fi
14350 
14351 
14352   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14353     A_LP64="LP64:="
14354     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
14355     # unpack200.exe
14356     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
14357       ADD_LP64="-D_LP64=1"
14358     fi
14359   fi
14360   LP64=$A_LP64
14361 
14362 
14363   if test "x$COMPILE_TYPE" = "xcross"; then
14364     # FIXME: ... or should this include reduced builds..?
14365     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
14366   else
14367     DEFINE_CROSS_COMPILE_ARCH=""
14368   fi
14369 
14370 
14371   # ZERO_ARCHDEF is used to enable architecture-specific code
14372   case "${OPENJDK_TARGET_CPU}" in
14373     ppc)     ZERO_ARCHDEF=PPC32 ;;
14374     ppc64)   ZERO_ARCHDEF=PPC64 ;;
14375     s390*)   ZERO_ARCHDEF=S390  ;;
14376     sparc*)  ZERO_ARCHDEF=SPARC ;;
14377     x86_64*) ZERO_ARCHDEF=AMD64 ;;
14378     x86)     ZERO_ARCHDEF=IA32  ;;
14379     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
14380   esac
14381 
14382 
14383 
14384 
14385 # Continue setting up basic stuff. Most remaining code require fundamental tools.
14386 
14387   # Save the current directory this script was started from
14388   CURDIR="$PWD"
14389 
14390   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
14391     PATH_SEP=";"
14392 
14393   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
14394   if test $SRC_ROOT_LENGTH -gt 100; then
14395     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
14396   fi
14397 
14398   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14399     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
14400 $as_echo_n "checking cygwin release... " >&6; }
14401     CYGWIN_VERSION=`$UNAME -r`
14402     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
14403 $as_echo "$CYGWIN_VERSION" >&6; }
14404     WINDOWS_ENV_VENDOR='cygwin'
14405     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
14406 
14407     CYGWIN_VERSION_OK=`$ECHO $CYGWIN_VERSION | $GREP ^1.7.`
14408     if test "x$CYGWIN_VERSION_OK" = x; then
14409       { $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
14410 $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;}
14411       as_fn_error $? "Cannot continue" "$LINENO" 5
14412     fi
14413     if test "x$CYGPATH" = x; then
14414       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
14415     fi
14416     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
14417 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
14418     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
14419     cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"`
14420     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
14421     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
14422     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
14423 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
14424     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
14425     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
14426     if test "x$test_cygdrive_prefix" = x; then
14427       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
14428     fi
14429   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14430     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
14431 $as_echo_n "checking msys release... " >&6; }
14432     MSYS_VERSION=`$UNAME -r`
14433     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
14434 $as_echo "$MSYS_VERSION" >&6; }
14435 
14436     WINDOWS_ENV_VENDOR='msys'
14437     WINDOWS_ENV_VERSION="$MSYS_VERSION"
14438 
14439     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
14440 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
14441     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
14442     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
14443 
14444   windows_path="$MSYS_ROOT_PATH"
14445   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14446     unix_path=`$CYGPATH -u "$windows_path"`
14447     MSYS_ROOT_PATH="$unix_path"
14448   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14449     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14450     MSYS_ROOT_PATH="$unix_path"
14451   fi
14452 
14453     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
14454 $as_echo "$MSYS_ROOT_PATH" >&6; }
14455     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
14456   else
14457     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
14458   fi
14459 
14460   # Test if windows or unix (cygwin/msys) find is first in path.
14461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
14462 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
14463   FIND_BINARY_OUTPUT=`find --version 2>&1`
14464   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
14465     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
14466 $as_echo "unix style" >&6; }
14467   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
14468     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
14469 $as_echo "Windows" >&6; }
14470     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
14471 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
14472     { $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
14473 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
14474     as_fn_error $? "Cannot continue" "$LINENO" 5
14475   else
14476     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
14477 $as_echo "unknown" >&6; }
14478     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
14479 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
14480   fi
14481 
14482   else
14483     PATH_SEP=":"
14484   fi
14485 
14486 
14487   # We get the top-level directory from the supporting wrappers.
14488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
14489 $as_echo_n "checking for top-level directory... " >&6; }
14490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
14491 $as_echo "$TOPDIR" >&6; }
14492 
14493 
14494   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
14495 
14496   # Only process if variable expands to non-empty
14497 
14498   if test "x$CURDIR" != x; then
14499     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14500 
14501   # Input might be given as Windows format, start by converting to
14502   # unix format.
14503   path="$CURDIR"
14504   new_path=`$CYGPATH -u "$path"`
14505 
14506   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14507   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14508   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14509   # "foo.exe" is OK but "foo" is an error.
14510   #
14511   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14512   # It is also a way to make sure we got the proper file name for the real test later on.
14513   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14514   if test "x$test_shortpath" = x; then
14515     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14516 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14517     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
14518   fi
14519 
14520   # Call helper function which possibly converts this using DOS-style short mode.
14521   # If so, the updated path is stored in $new_path.
14522 
14523   input_path="$new_path"
14524   # Check if we need to convert this using DOS-style short mode. If the path
14525   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14526   # take no chances and rewrite it.
14527   # Note: m4 eats our [], so we need to use [ and ] instead.
14528   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14529   if test "x$has_forbidden_chars" != x; then
14530     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14531     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14532     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14533     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14534       # Going to short mode and back again did indeed matter. Since short mode is
14535       # case insensitive, let's make it lowercase to improve readability.
14536       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14537       # Now convert it back to Unix-stile (cygpath)
14538       input_path=`$CYGPATH -u "$shortmode_path"`
14539       new_path="$input_path"
14540     fi
14541   fi
14542 
14543   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14544   if test "x$test_cygdrive_prefix" = x; then
14545     # As a simple fix, exclude /usr/bin since it's not a real path.
14546     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14547       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14548       # a path prefixed by /cygdrive for fixpath to work.
14549       new_path="$CYGWIN_ROOT_PATH$input_path"
14550     fi
14551   fi
14552 
14553 
14554   if test "x$path" != "x$new_path"; then
14555     CURDIR="$new_path"
14556     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14557 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14558   fi
14559 
14560     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14561 
14562   path="$CURDIR"
14563   has_colon=`$ECHO $path | $GREP ^.:`
14564   new_path="$path"
14565   if test "x$has_colon" = x; then
14566     # Not in mixed or Windows style, start by that.
14567     new_path=`cmd //c echo $path`
14568   fi
14569 
14570 
14571   input_path="$new_path"
14572   # Check if we need to convert this using DOS-style short mode. If the path
14573   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14574   # take no chances and rewrite it.
14575   # Note: m4 eats our [], so we need to use [ and ] instead.
14576   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14577   if test "x$has_forbidden_chars" != x; then
14578     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14579     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14580   fi
14581 
14582 
14583   windows_path="$new_path"
14584   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14585     unix_path=`$CYGPATH -u "$windows_path"`
14586     new_path="$unix_path"
14587   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14588     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14589     new_path="$unix_path"
14590   fi
14591 
14592   if test "x$path" != "x$new_path"; then
14593     CURDIR="$new_path"
14594     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14595 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14596   fi
14597 
14598   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14599   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14600 
14601     else
14602       # We're on a unix platform. Hooray! :)
14603       path="$CURDIR"
14604       has_space=`$ECHO "$path" | $GREP " "`
14605       if test "x$has_space" != x; then
14606         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14607 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14608         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14609       fi
14610 
14611       # Use eval to expand a potential ~
14612       eval path="$path"
14613       if test ! -f "$path" && test ! -d "$path"; then
14614         as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14615       fi
14616 
14617       CURDIR="`cd "$path"; $THEPWDCMD -L`"
14618     fi
14619   fi
14620 
14621 
14622   # Only process if variable expands to non-empty
14623 
14624   if test "x$TOPDIR" != x; then
14625     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14626 
14627   # Input might be given as Windows format, start by converting to
14628   # unix format.
14629   path="$TOPDIR"
14630   new_path=`$CYGPATH -u "$path"`
14631 
14632   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14633   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14634   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14635   # "foo.exe" is OK but "foo" is an error.
14636   #
14637   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14638   # It is also a way to make sure we got the proper file name for the real test later on.
14639   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14640   if test "x$test_shortpath" = x; then
14641     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14642 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14643     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
14644   fi
14645 
14646   # Call helper function which possibly converts this using DOS-style short mode.
14647   # If so, the updated path is stored in $new_path.
14648 
14649   input_path="$new_path"
14650   # Check if we need to convert this using DOS-style short mode. If the path
14651   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14652   # take no chances and rewrite it.
14653   # Note: m4 eats our [], so we need to use [ and ] instead.
14654   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14655   if test "x$has_forbidden_chars" != x; then
14656     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14657     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14658     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14659     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14660       # Going to short mode and back again did indeed matter. Since short mode is
14661       # case insensitive, let's make it lowercase to improve readability.
14662       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14663       # Now convert it back to Unix-stile (cygpath)
14664       input_path=`$CYGPATH -u "$shortmode_path"`
14665       new_path="$input_path"
14666     fi
14667   fi
14668 
14669   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14670   if test "x$test_cygdrive_prefix" = x; then
14671     # As a simple fix, exclude /usr/bin since it's not a real path.
14672     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14673       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14674       # a path prefixed by /cygdrive for fixpath to work.
14675       new_path="$CYGWIN_ROOT_PATH$input_path"
14676     fi
14677   fi
14678 
14679 
14680   if test "x$path" != "x$new_path"; then
14681     TOPDIR="$new_path"
14682     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14683 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14684   fi
14685 
14686     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14687 
14688   path="$TOPDIR"
14689   has_colon=`$ECHO $path | $GREP ^.:`
14690   new_path="$path"
14691   if test "x$has_colon" = x; then
14692     # Not in mixed or Windows style, start by that.
14693     new_path=`cmd //c echo $path`
14694   fi
14695 
14696 
14697   input_path="$new_path"
14698   # Check if we need to convert this using DOS-style short mode. If the path
14699   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14700   # take no chances and rewrite it.
14701   # Note: m4 eats our [], so we need to use [ and ] instead.
14702   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14703   if test "x$has_forbidden_chars" != x; then
14704     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14705     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14706   fi
14707 
14708 
14709   windows_path="$new_path"
14710   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14711     unix_path=`$CYGPATH -u "$windows_path"`
14712     new_path="$unix_path"
14713   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14714     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14715     new_path="$unix_path"
14716   fi
14717 
14718   if test "x$path" != "x$new_path"; then
14719     TOPDIR="$new_path"
14720     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14721 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14722   fi
14723 
14724   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14725   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14726 
14727     else
14728       # We're on a unix platform. Hooray! :)
14729       path="$TOPDIR"
14730       has_space=`$ECHO "$path" | $GREP " "`
14731       if test "x$has_space" != x; then
14732         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14733 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14734         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14735       fi
14736 
14737       # Use eval to expand a potential ~
14738       eval path="$path"
14739       if test ! -f "$path" && test ! -d "$path"; then
14740         as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14741       fi
14742 
14743       TOPDIR="`cd "$path"; $THEPWDCMD -L`"
14744     fi
14745   fi
14746 
14747   # SRC_ROOT is a traditional alias for TOPDIR.
14748   SRC_ROOT=$TOPDIR
14749 
14750   # Locate the directory of this script.
14751   AUTOCONF_DIR=$TOPDIR/common/autoconf
14752 
14753 
14754   # Setup default logging of stdout and stderr to build.log in the output root.
14755   BUILD_LOG='$(OUTPUT_ROOT)/build.log'
14756   BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old'
14757   BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
14758 
14759 
14760 
14761 
14762 
14763 # Check if it's a pure open build or if custom sources are to be used.
14764 
14765   # Check whether --enable-openjdk-only was given.
14766 if test "${enable_openjdk_only+set}" = set; then :
14767   enableval=$enable_openjdk_only;
14768 else
14769   enable_openjdk_only="no"
14770 fi
14771 
14772 
14773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
14774 $as_echo_n "checking for presence of closed sources... " >&6; }
14775   if test -d "$SRC_ROOT/jdk/src/closed"; then
14776     CLOSED_SOURCE_PRESENT=yes
14777   else
14778     CLOSED_SOURCE_PRESENT=no
14779   fi
14780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
14781 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
14782 
14783   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
14784 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
14785   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
14786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
14787 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
14788 
14789   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
14790     OPENJDK=true
14791     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14792       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
14793 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
14794     fi
14795   else
14796     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14797       OPENJDK=true
14798     else
14799       OPENJDK=false
14800     fi
14801   fi
14802 
14803   if test "x$OPENJDK" = "xtrue"; then
14804     SET_OPENJDK="OPENJDK=true"
14805   fi
14806 
14807 
14808 
14809   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
14810   # the IncludeCustomExtension macro.
14811 
14812 
14813 # Check whether --with-custom-make-dir was given.
14814 if test "${with_custom_make_dir+set}" = set; then :
14815   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
14816 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
14817 fi
14818 
14819 
14820 
14821 
14822 # These are needed to be able to create a configuration name (and thus the output directory)
14823 
14824 ###############################################################################
14825 #
14826 # Check which variant of the JDK that we want to build.
14827 # Currently we have:
14828 #    normal:   standard edition
14829 #    embedded: cut down to a smaller footprint
14830 #
14831 # Effectively the JDK variant gives a name to a specific set of
14832 # modules to compile into the JDK. In the future, these modules
14833 # might even be Jigsaw modules.
14834 #
14835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
14836 $as_echo_n "checking which variant of the JDK to build... " >&6; }
14837 
14838 # Check whether --with-jdk-variant was given.
14839 if test "${with_jdk_variant+set}" = set; then :
14840   withval=$with_jdk_variant;
14841 fi
14842 
14843 
14844   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
14845     JAVASE_EMBEDDED=""
14846     MINIMIZE_RAM_USAGE=""
14847     JDK_VARIANT="normal"
14848   elif test "x$with_jdk_variant" = xembedded; then
14849     if test "x$OPENJDK" = xtrue; then
14850       as_fn_error $? "When building OpenJDK only, embedded is not available" "$LINENO" 5
14851     fi
14852     JAVASE_EMBEDDED="JAVASE_EMBEDDED:=true"
14853     # Once we only have the configure based build for hotspot, this could
14854     # simply set the compiler define directly, and we can then remove that
14855     # from hotspot/make/<os>/makefiles/gcc.make
14856     MINIMIZE_RAM_USAGE="MINIMIZE_RAM_USAGE:=true"
14857     JDK_VARIANT="embedded"
14858   else
14859     as_fn_error $? "The available JDK variants are: normal, embedded" "$LINENO" 5
14860   fi
14861 
14862 
14863 
14864 
14865 
14866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
14867 $as_echo "$JDK_VARIANT" >&6; }
14868 
14869 
14870 ###############################################################################
14871 #
14872 # Check which interpreter of the JVM we want to build.
14873 # Currently we have:
14874 #    template: Template interpreter (the default)
14875 #    cpp     : C++ interpreter
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
14877 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
14878 
14879 # Check whether --with-jvm-interpreter was given.
14880 if test "${with_jvm_interpreter+set}" = set; then :
14881   withval=$with_jvm_interpreter;
14882 fi
14883 
14884 
14885 if test "x$with_jvm_interpreter" = x; then
14886      with_jvm_interpreter="template"
14887 fi
14888 
14889 JVM_INTERPRETER="$with_jvm_interpreter"
14890 
14891 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
14892    as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
14893 fi
14894 
14895 
14896 
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
14898 $as_echo "$with_jvm_interpreter" >&6; }
14899 
14900 
14901 
14902   ###############################################################################
14903   #
14904   # Check which variants of the JVM that we want to build.
14905   # Currently we have:
14906   #    server: normal interpreter and a tiered C1/C2 compiler
14907   #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
14908   #    minimal1: reduced form of client with optional VM services and features stripped out
14909   #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
14910   #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
14911   #    zero: no machine code interpreter, no compiler
14912   #    zeroshark: zero interpreter and shark/llvm compiler backend
14913 #    core: interpreter only, no compiler (only works on some platforms)
14914   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
14915 $as_echo_n "checking which variants of the JVM to build... " >&6; }
14916 
14917 # Check whether --with-jvm-variants was given.
14918 if test "${with_jvm_variants+set}" = set; then :
14919   withval=$with_jvm_variants;
14920 fi
14921 
14922 
14923   if test "x$with_jvm_variants" = x; then
14924     with_jvm_variants="server"
14925   fi
14926 
14927   JVM_VARIANTS=",$with_jvm_variants,"
14928   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,//'`
14929 
14930   if test "x$TEST_VARIANTS" != "x,"; then
14931      as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
14932   fi
14933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
14934 $as_echo "$with_jvm_variants" >&6; }
14935 
14936   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
14937   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
14938   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
14939   JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
14940   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
14941   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
14942   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
14943 
14944   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14945     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14946       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
14947     fi
14948   fi
14949   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14950     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14951       as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
14952     fi
14953   fi
14954   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14955     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14956       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
14957     fi
14958   fi
14959 
14960   # Replace the commas with AND for use in the build directory name.
14961   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
14962   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/'`
14963   if test "x$COUNT_VARIANTS" != "x,1"; then
14964     BUILDING_MULTIPLE_JVM_VARIANTS=yes
14965   else
14966     BUILDING_MULTIPLE_JVM_VARIANTS=no
14967   fi
14968 
14969 
14970 
14971 
14972 
14973 
14974 
14975 
14976 
14977 
14978   INCLUDE_SA=true
14979   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
14980     INCLUDE_SA=false
14981   fi
14982   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
14983     INCLUDE_SA=false
14984   fi
14985   if test "x$OPENJDK_TARGET_OS" = xaix ; then
14986     INCLUDE_SA=false
14987   fi
14988   if test "x$OPENJDK_TARGET_CPU" = xaarch64; then
14989     INCLUDE_SA=false
14990   fi
14991 
14992 
14993   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14994     MACOSX_UNIVERSAL="true"
14995   fi
14996 
14997 
14998 
14999 
15000   ###############################################################################
15001   #
15002   # Set the debug level
15003   #    release: no debug information, all optimizations, no asserts.
15004   #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
15005   #    fastdebug: debug information (-g), all optimizations, all asserts
15006   #    slowdebug: debug information (-g), no optimizations, all asserts
15007   #
15008   DEBUG_LEVEL="release"
15009   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
15010 $as_echo_n "checking which debug level to use... " >&6; }
15011   # Check whether --enable-debug was given.
15012 if test "${enable_debug+set}" = set; then :
15013   enableval=$enable_debug;
15014         ENABLE_DEBUG="${enableval}"
15015         DEBUG_LEVEL="fastdebug"
15016 
15017 else
15018   ENABLE_DEBUG="no"
15019 fi
15020 
15021 
15022 
15023 # Check whether --with-debug-level was given.
15024 if test "${with_debug_level+set}" = set; then :
15025   withval=$with_debug_level;
15026         DEBUG_LEVEL="${withval}"
15027         if test "x$ENABLE_DEBUG" = xyes; then
15028           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
15029         fi
15030 
15031 fi
15032 
15033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
15034 $as_echo "$DEBUG_LEVEL" >&6; }
15035 
15036   if test "x$DEBUG_LEVEL" != xrelease && \
15037       test "x$DEBUG_LEVEL" != xoptimized && \
15038       test "x$DEBUG_LEVEL" != xfastdebug && \
15039       test "x$DEBUG_LEVEL" != xslowdebug; then
15040     as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
15041   fi
15042 
15043 
15044   ###############################################################################
15045   #
15046   # Setup legacy vars/targets and new vars to deal with different debug levels.
15047   #
15048 
15049   case $DEBUG_LEVEL in
15050     release )
15051       VARIANT="OPT"
15052       FASTDEBUG="false"
15053       DEBUG_CLASSFILES="false"
15054       BUILD_VARIANT_RELEASE=""
15055       HOTSPOT_DEBUG_LEVEL="product"
15056       HOTSPOT_EXPORT="product"
15057       ;;
15058     fastdebug )
15059       VARIANT="DBG"
15060       FASTDEBUG="true"
15061       DEBUG_CLASSFILES="true"
15062       BUILD_VARIANT_RELEASE="-fastdebug"
15063       HOTSPOT_DEBUG_LEVEL="fastdebug"
15064       HOTSPOT_EXPORT="fastdebug"
15065       ;;
15066     slowdebug )
15067       VARIANT="DBG"
15068       FASTDEBUG="false"
15069       DEBUG_CLASSFILES="true"
15070       BUILD_VARIANT_RELEASE="-debug"
15071       HOTSPOT_DEBUG_LEVEL="debug"
15072       HOTSPOT_EXPORT="debug"
15073       ;;
15074     optimized )
15075       VARIANT="OPT"
15076       FASTDEBUG="false"
15077       DEBUG_CLASSFILES="false"
15078       BUILD_VARIANT_RELEASE="-optimized"
15079       HOTSPOT_DEBUG_LEVEL="optimized"
15080       HOTSPOT_EXPORT="optimized"
15081       ;;
15082   esac
15083 
15084   # The debug level 'optimized' is a little special because it is currently only
15085   # applicable to the HotSpot build where it means to build a completely
15086   # optimized version of the VM without any debugging code (like for the
15087   # 'release' debug level which is called 'product' in the HotSpot build) but
15088   # with the exception that it can contain additional code which is otherwise
15089   # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to
15090   # test new and/or experimental features which are not intended for customer
15091   # shipment. Because these new features need to be tested and benchmarked in
15092   # real world scenarios, we want to build the containing JDK at the 'release'
15093   # debug level.
15094   if test "x$DEBUG_LEVEL" = xoptimized; then
15095     DEBUG_LEVEL="release"
15096   fi
15097 
15098   #####
15099   # Generate the legacy makefile targets for hotspot.
15100   # The hotspot api for selecting the build artifacts, really, needs to be improved.
15101   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
15102   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
15103   # But until then ...
15104   HOTSPOT_TARGET=""
15105 
15106   if test "x$JVM_VARIANT_SERVER" = xtrue; then
15107     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
15108   fi
15109 
15110   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
15111     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
15112   fi
15113 
15114   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
15115     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
15116   fi
15117 
15118   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
15119     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
15120   fi
15121 
15122   if test "x$JVM_VARIANT_ZERO" = xtrue; then
15123     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
15124   fi
15125 
15126   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
15127     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
15128   fi
15129 
15130   if test "x$JVM_VARIANT_CORE" = xtrue; then
15131     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
15132   fi
15133 
15134   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
15135 
15136   # On Macosx universal binaries are produced, but they only contain
15137   # 64 bit intel. This invalidates control of which jvms are built
15138   # from configure, but only server is valid anyway. Fix this
15139   # when hotspot makefiles are rewritten.
15140   if test "x$MACOSX_UNIVERSAL" = xtrue; then
15141     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
15142   fi
15143 
15144   #####
15145 
15146 
15147 
15148 
15149 
15150 
15151 
15152 
15153 # With basic setup done, call the custom early hook.
15154 
15155   # We must intercept this option early to be able to disable ccache.
15156 
15157 # Check whether --with-parfait was given.
15158 if test "${with_parfait+set}" = set; then :
15159   withval=$with_parfait;
15160 fi
15161 
15162 
15163   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parfait" >&5
15164 $as_echo_n "checking for parfait... " >&6; }
15165 
15166   PARFAIT_DIR="$with_parfait"
15167   if test "x$with_parfait" != x; then
15168     if test "x$OPENJDK_BUILD_CPU_BITS" = x32; then
15169       { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
15170 $as_echo "not supported" >&6; }
15171       as_fn_error $? "Parfait cannot be enabled on 32-bit build hosts. (insufficient address space)" "$LINENO" 5
15172     fi
15173 
15174     if test "x$enable_ccache" = xyes; then
15175       { $as_echo "$as_me:${as_lineno-$LINENO}: result: misconfiguration" >&5
15176 $as_echo "misconfiguration" >&6; }
15177       as_fn_error $? "It is not possible to enable ccache when using parfait. Please remove --enable-ccache." "$LINENO" 5
15178     fi
15179 
15180     if test "x$with_parfait" = xyes; then
15181       { $as_echo "$as_me:${as_lineno-$LINENO}: result: misconfiguration" >&5
15182 $as_echo "misconfiguration" >&6; }
15183       as_fn_error $? "Parfait location cannot be automatically detected. Please specify a dir when using --with-parfait" "$LINENO" 5
15184     fi
15185 
15186     if test ! -x "$PARFAIT_DIR/bin/parfait"; then
15187       { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15188 $as_echo "not found" >&6; }
15189       { $as_echo "$as_me:${as_lineno-$LINENO}: $PARFAIT_DIR/bin/parfait is not found or not executable." >&5
15190 $as_echo "$as_me: $PARFAIT_DIR/bin/parfait is not found or not executable." >&6;}
15191       as_fn_error $? "This does not seem to be a valid parfait installation: $PARFAIT_DIR" "$LINENO" 5
15192     fi
15193 
15194     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PARFAIT_DIR" >&5
15195 $as_echo "$PARFAIT_DIR" >&6; }
15196 
15197     # Display parfait version for user convenience.
15198     { $as_echo "$as_me:${as_lineno-$LINENO}: checking parfait version" >&5
15199 $as_echo_n "checking parfait version... " >&6; }
15200     PARFAIT_VERSION=`$PARFAIT_DIR/bin/parfait --version 2>&1`
15201     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PARFAIT_VERSION" >&5
15202 $as_echo "$PARFAIT_VERSION" >&6; }
15203   else
15204     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not enabled" >&5
15205 $as_echo "not enabled" >&6; }
15206   fi
15207 
15208 
15209 
15210 
15211 
15212 # Check whether --with-parfait-baseline was given.
15213 if test "${with_parfait_baseline+set}" = set; then :
15214   withval=$with_parfait_baseline;
15215 fi
15216 
15217 
15218   if test "x${with_parfait_baseline}" != x; then
15219     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parfait baseline" >&5
15220 $as_echo_n "checking for parfait baseline... " >&6; }
15221     if test "x$PARFAIT_DIR" != "x"; then
15222       if test "x$with_parfait_baseline" = xyes; then
15223         { $as_echo "$as_me:${as_lineno-$LINENO}: result: misconfiguration" >&5
15224 $as_echo "misconfiguration" >&6; }
15225         as_fn_error $? "Parfait baseline URI cannot be automatically detected. Please specify a URI when using --with-parfait-baseline" "$LINENO" 5
15226       fi
15227       PARFAIT_BASELINE="${with_parfait_baseline}"
15228       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PARFAIT_BASELINE" >&5
15229 $as_echo "$PARFAIT_BASELINE" >&6; }
15230     else
15231       { $as_echo "$as_me:${as_lineno-$LINENO}: result: misconfiguration" >&5
15232 $as_echo "misconfiguration" >&6; }
15233       as_fn_error $? "Specifying Parfait baseline requires Parfait support to be enabled" "$LINENO" 5
15234     fi
15235   fi
15236 
15237 
15238 
15239 
15240 
15241 
15242 
15243 
15244   # --with-java-devtools feature can be used for open too, so don't guard all of it
15245   # from OPENJDK=true, but only the closed specific parts further down.
15246 
15247 
15248 # Check whether --with-java-path was given.
15249 if test "${with_java_path+set}" = set; then :
15250   withval=$with_java_path;
15251 fi
15252 
15253 
15254 # Check whether --with-java-devtools was given.
15255 if test "${with_java_devtools+set}" = set; then :
15256   withval=$with_java_devtools;
15257 fi
15258 
15259 
15260   # Fallback to --with-java-path for backwards compatibility.
15261   if test "x$with_java_devtools" = x; then
15262     with_java_devtools="$with_java_path"
15263   fi
15264 
15265   # Only use it to derive things for the new build if --with-java-devtools is explicitly given
15266   if test "x$with_java_devtools" != x; then
15267     if test "x$with_java_devtools" != xyes; then
15268       # override default value
15269       java_devtools="$with_java_devtools"
15270     else
15271       # Set default for use in deploy regardless of if --with-java-devtools is set.
15272       if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then
15273         java_devtools="/cygdrive/j/devtools"
15274       elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then
15275         java_devtools="/j/devtools"
15276       else
15277         java_devtools="/java/devtools"
15278       fi
15279     fi
15280 
15281     if test "x$OPENJDK_TARGET_OS" = xsolaris; then
15282       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit in $java_devtools" >&5
15283 $as_echo_n "checking for devkit in $java_devtools... " >&6; }
15284       if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
15285         devkit="$java_devtools/i386/devkit/SS12u3-Solaris10u10"
15286         if test -d "$devkit"; then
15287           { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris Studio in $devkit" >&5
15288 $as_echo "Solaris Studio in $devkit" >&6; }
15289           with_devkit="$devkit"
15290         else
15291           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15292 $as_echo "no" >&6; }
15293         fi
15294       elif test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
15295         devkit="$java_devtools/sparc/devkit/SS12u3-Solaris10u10"
15296         if test -d "$devkit"; then
15297           { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris Studio in $devkit" >&5
15298 $as_echo "Solaris Studio in $devkit" >&6; }
15299           with_devkit="$devkit"
15300         else
15301           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15302 $as_echo "no" >&6; }
15303         fi
15304       fi
15305     elif test "x$OPENJDK_TARGET_OS" = xlinux; then
15306       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit in $java_devtools" >&5
15307 $as_echo_n "checking for devkit in $java_devtools... " >&6; }
15308       devkit="$java_devtools/linux/devkit/gcc4.8.2-OEL5.5"
15309       if test -d "$devkit"; then
15310         { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC in $devkit" >&5
15311 $as_echo "GCC in $devkit" >&6; }
15312         with_devkit="$devkit"
15313       else
15314         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15315 $as_echo "no" >&6; }
15316       fi
15317       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for plugin devkit in $java_devtools" >&5
15318 $as_echo_n "checking for plugin devkit in $java_devtools... " >&6; }
15319       plugin_devkit="$java_devtools/linux/devkit/plugin-gcc4.1.2-OEL5.5"
15320       if test -d "$plugin_devkit"; then
15321         { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC in $plugin_devkit" >&5
15322 $as_echo "GCC in $plugin_devkit" >&6; }
15323         with_plugin_devkit="$plugin_devkit"
15324       else
15325         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15326 $as_echo "no" >&6; }
15327       fi
15328     fi
15329 
15330     if test "x$OPENJDK" = "xtrue"; then
15331     # Setup freetype
15332       if test -z "$with_freetype"; then
15333         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype in $java_devtools" >&5
15334 $as_echo_n "checking for freetype in $java_devtools... " >&6; }
15335         if test "x$OPENJDK_TARGET_OS" = xwindows; then
15336           freetype_base_dir="$java_devtools/win32"
15337         fi
15338         if test "x$freetype_base_dir" != x; then
15339           freetype_dir="$freetype_base_dir/freetype-$OPENJDK_TARGET_CPU_LEGACY"
15340           if test -d "$freetype_dir"; then
15341             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_dir" >&5
15342 $as_echo "$freetype_dir" >&6; }
15343             with_freetype="$freetype_dir"
15344           else
15345             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15346 $as_echo "no" >&6; }
15347           fi
15348         fi
15349       fi
15350     fi
15351 
15352     # Below here are only closed dependencies
15353     if test "x$OPENJDK" = "xfalse"; then
15354 
15355       # Setup ant
15356       if test -z "$with_ant_home"; then
15357         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ant in $java_devtools" >&5
15358 $as_echo_n "checking for ant in $java_devtools... " >&6; }
15359         ant_home="$java_devtools/share/ant/1.7.1"
15360         if test -d "$ant_home"; then
15361           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant_home" >&5
15362 $as_echo "$ant_home" >&6; }
15363           with_ant_home="$ant_home"
15364         else
15365           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15366 $as_echo "no" >&6; }
15367         fi
15368       fi
15369 
15370       # Setup junit
15371       if test -z "$with_junit_dir"; then
15372         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for junit in $java_devtools" >&5
15373 $as_echo_n "checking for junit in $java_devtools... " >&6; }
15374         junit_dir="$java_devtools/share/junit/junit-4.5"
15375         if test -d "$junit_dir"; then
15376           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $junit_dir" >&5
15377 $as_echo "$junit_dir" >&6; }
15378           with_junit_dir="$junit_dir"
15379         else
15380           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15381 $as_echo "no" >&6; }
15382         fi
15383       fi
15384 
15385       if test "x$OPENJDK_TARGET_OS" = xsolaris; then
15386         # Setup devtools path
15387         if test "x$OPENJDK_TARGET_CPU" = xx86 || test "x$OPENJDK_TARGET_CPU" = xx86_64; then
15388           devtools_arch_dir=i386
15389         else
15390           devtools_arch_dir=sparc
15391         fi
15392         if test -z "$with_devtools_path"; then
15393           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devtools path in $java_devtools" >&5
15394 $as_echo_n "checking for devtools path in $java_devtools... " >&6; }
15395           devtools_path="$java_devtools/$devtools_arch_dir/bin"
15396           if test -d "$devtools_path"; then
15397             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $devtools_path" >&5
15398 $as_echo "$devtools_path" >&6; }
15399             with_devtools_path="$devtools_path"
15400           else
15401             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15402 $as_echo "no" >&6; }
15403           fi
15404         fi
15405       fi
15406 
15407       if test "x$OPENJDK_TARGET_OS" = xmacosx; then
15408         if test -z "$with_sparkle_framework"; then
15409           # Setup Sparkle Framework
15410           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sparkle framework in $java_devtools" >&5
15411 $as_echo_n "checking for sparkle framework in $java_devtools... " >&6; }
15412           sparkle_framework_dir="$java_devtools/macosx/Sparkle/1.5b6"
15413           if test -d "$sparkle_framework_dir"; then
15414             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sparkle_framework_dir" >&5
15415 $as_echo "$sparkle_framework_dir" >&6; }
15416             with_sparkle_framework="$sparkle_framework_dir"
15417           else
15418             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15419 $as_echo "no" >&6; }
15420           fi
15421         fi
15422       fi
15423 
15424       if test "x$OPENJDK_TARGET_OS" != xsolaris; then
15425         if test -z "$with_javafx_zip_dir"; then
15426           # Setup JAVAFX cobundle
15427           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAFX cobundle in $java_devtools" >&5
15428 $as_echo_n "checking for JAVAFX cobundle in $java_devtools... " >&6; }
15429           javafx_zip_dir="${java_devtools}/../re/javafx/jdk-cobundle/9"
15430           if test -d "$javafx_zip_dir"; then
15431             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $javafx_zip_dir" >&5
15432 $as_echo "$javafx_zip_dir" >&6; }
15433             with_javafx_zip_dir="$javafx_zip_dir"
15434           else
15435             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15436 $as_echo "no" >&6; }
15437           fi
15438         fi
15439       fi
15440       if test "x$OPENJDK_TARGET_OS" != xsolaris; then
15441         if test -z "$with_jmc_zip_dir"; then
15442           # Setup JMC cobundle
15443           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JMC cobundle in $java_devtools" >&5
15444 $as_echo_n "checking for JMC cobundle in $java_devtools... " >&6; }
15445           jmc_zip_dir="${java_devtools}/../re/jmcbundles/jdk-cobundle/9"
15446           if test -d "$jmc_zip_dir"; then
15447             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jmc_zip_dir" >&5
15448 $as_echo "$jmc_zip_dir" >&6; }
15449             with_jmc_zip_dir="$jmc_zip_dir"
15450           else
15451             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15452 $as_echo "no" >&6; }
15453           fi
15454         fi
15455       fi
15456     fi
15457   fi
15458 
15459 
15460 # Check if we have devkits, extra paths or sysroot set.
15461 
15462 
15463 # Check whether --with-devkit was given.
15464 if test "${with_devkit+set}" = set; then :
15465   withval=$with_devkit;
15466 
15467   # Only process if variable expands to non-empty
15468 
15469   if test "x$with_devkit" != x; then
15470     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15471 
15472   # Input might be given as Windows format, start by converting to
15473   # unix format.
15474   path="$with_devkit"
15475   new_path=`$CYGPATH -u "$path"`
15476 
15477   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15478   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15479   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15480   # "foo.exe" is OK but "foo" is an error.
15481   #
15482   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15483   # It is also a way to make sure we got the proper file name for the real test later on.
15484   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15485   if test "x$test_shortpath" = x; then
15486     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
15487 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
15488     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
15489   fi
15490 
15491   # Call helper function which possibly converts this using DOS-style short mode.
15492   # If so, the updated path is stored in $new_path.
15493 
15494   input_path="$new_path"
15495   # Check if we need to convert this using DOS-style short mode. If the path
15496   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15497   # take no chances and rewrite it.
15498   # Note: m4 eats our [], so we need to use [ and ] instead.
15499   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15500   if test "x$has_forbidden_chars" != x; then
15501     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15502     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15503     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15504     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15505       # Going to short mode and back again did indeed matter. Since short mode is
15506       # case insensitive, let's make it lowercase to improve readability.
15507       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15508       # Now convert it back to Unix-stile (cygpath)
15509       input_path=`$CYGPATH -u "$shortmode_path"`
15510       new_path="$input_path"
15511     fi
15512   fi
15513 
15514   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15515   if test "x$test_cygdrive_prefix" = x; then
15516     # As a simple fix, exclude /usr/bin since it's not a real path.
15517     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15518       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15519       # a path prefixed by /cygdrive for fixpath to work.
15520       new_path="$CYGWIN_ROOT_PATH$input_path"
15521     fi
15522   fi
15523 
15524 
15525   if test "x$path" != "x$new_path"; then
15526     with_devkit="$new_path"
15527     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
15528 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
15529   fi
15530 
15531     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15532 
15533   path="$with_devkit"
15534   has_colon=`$ECHO $path | $GREP ^.:`
15535   new_path="$path"
15536   if test "x$has_colon" = x; then
15537     # Not in mixed or Windows style, start by that.
15538     new_path=`cmd //c echo $path`
15539   fi
15540 
15541 
15542   input_path="$new_path"
15543   # Check if we need to convert this using DOS-style short mode. If the path
15544   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15545   # take no chances and rewrite it.
15546   # Note: m4 eats our [], so we need to use [ and ] instead.
15547   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15548   if test "x$has_forbidden_chars" != x; then
15549     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15550     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15551   fi
15552 
15553 
15554   windows_path="$new_path"
15555   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15556     unix_path=`$CYGPATH -u "$windows_path"`
15557     new_path="$unix_path"
15558   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15559     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15560     new_path="$unix_path"
15561   fi
15562 
15563   if test "x$path" != "x$new_path"; then
15564     with_devkit="$new_path"
15565     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
15566 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
15567   fi
15568 
15569   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15570   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15571 
15572     else
15573       # We're on a unix platform. Hooray! :)
15574       path="$with_devkit"
15575       has_space=`$ECHO "$path" | $GREP " "`
15576       if test "x$has_space" != x; then
15577         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
15578 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
15579         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15580       fi
15581 
15582       # Use eval to expand a potential ~
15583       eval path="$path"
15584       if test ! -f "$path" && test ! -d "$path"; then
15585         as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
15586       fi
15587 
15588       with_devkit="`cd "$path"; $THEPWDCMD -L`"
15589     fi
15590   fi
15591 
15592         DEVKIT_ROOT="$with_devkit"
15593         # Check for a meta data info file in the root of the devkit
15594         if test -f "$DEVKIT_ROOT/devkit.info"; then
15595           # This potentially sets the following:
15596           # DEVKIT_NAME: A descriptive name of the devkit
15597           # DEVKIT_TOOLCHAIN_PATH: Corresponds to --with-toolchain-path
15598           # DEVKIT_EXTRA_PATH: Corresponds to --with-extra-path
15599           # DEVKIT_SYSROOT: Corresponds to --with-sysroot
15600           . $DEVKIT_ROOT/devkit.info
15601         fi
15602 
15603         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
15604 $as_echo_n "checking for devkit... " >&6; }
15605         if test "x$DEVKIT_NAME" != x; then
15606           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
15607 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
15608         else
15609           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
15610 $as_echo "$DEVKIT_ROOT" >&6; }
15611         fi
15612 
15613         if test "x$DEVKIT_EXTRA_PATH" != x; then
15614 
15615   if test "x$DEVKIT_EXTRA_PATH" != x; then
15616     if test "x$EXTRA_PATH" = x; then
15617       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
15618     else
15619       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
15620     fi
15621   fi
15622 
15623         fi
15624 
15625         # Fallback default of just /bin if DEVKIT_PATH is not defined
15626         if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
15627           DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
15628         fi
15629 
15630   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
15631     if test "x$TOOLCHAIN_PATH" = x; then
15632       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
15633     else
15634       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
15635     fi
15636   fi
15637 
15638 
15639         # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
15640         # places for backwards compatiblity.
15641         if test "x$DEVKIT_SYSROOT" != x; then
15642           SYSROOT="$DEVKIT_SYSROOT"
15643         elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
15644           SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
15645         elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
15646           SYSROOT="$DEVKIT_ROOT/$host/sys-root"
15647         fi
15648 
15649 
15650 fi
15651 
15652 
15653   # You can force the sysroot if the sysroot encoded into the compiler tools
15654   # is not correct.
15655 
15656 # Check whether --with-sys-root was given.
15657 if test "${with_sys_root+set}" = set; then :
15658   withval=$with_sys_root; SYSROOT=$with_sys_root
15659 
15660 fi
15661 
15662 
15663 
15664 # Check whether --with-sysroot was given.
15665 if test "${with_sysroot+set}" = set; then :
15666   withval=$with_sysroot; SYSROOT=$with_sysroot
15667 
15668 fi
15669 
15670 
15671 
15672 # Check whether --with-tools-dir was given.
15673 if test "${with_tools_dir+set}" = set; then :
15674   withval=$with_tools_dir;
15675   if test "x$with_tools_dir" != x; then
15676     if test "x$TOOLCHAIN_PATH" = x; then
15677       TOOLCHAIN_PATH="$with_tools_dir"
15678     else
15679       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
15680     fi
15681   fi
15682 
15683 
15684 fi
15685 
15686 
15687 
15688 # Check whether --with-toolchain-path was given.
15689 if test "${with_toolchain_path+set}" = set; then :
15690   withval=$with_toolchain_path;
15691   if test "x$with_toolchain_path" != x; then
15692     if test "x$TOOLCHAIN_PATH" = x; then
15693       TOOLCHAIN_PATH="$with_toolchain_path"
15694     else
15695       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
15696     fi
15697   fi
15698 
15699 
15700 fi
15701 
15702 
15703 
15704 # Check whether --with-extra-path was given.
15705 if test "${with_extra_path+set}" = set; then :
15706   withval=$with_extra_path;
15707   if test "x$with_extra_path" != x; then
15708     if test "x$EXTRA_PATH" = x; then
15709       EXTRA_PATH="$with_extra_path"
15710     else
15711       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
15712     fi
15713   fi
15714 
15715 
15716 fi
15717 
15718 
15719   if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then
15720     # detect if Xcode is installed by running xcodebuild -version
15721     # if no Xcode installed, xcodebuild exits with 1
15722     # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0
15723     if /usr/bin/xcodebuild -version >/dev/null 2>&1; then
15724       # We need to use xcodebuild in the toolchain dir provided by the user, this will
15725       # fall back on the stub binary in /usr/bin/xcodebuild
15726       # Extract the first word of "xcodebuild", so it can be a program name with args.
15727 set dummy xcodebuild; ac_word=$2
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15729 $as_echo_n "checking for $ac_word... " >&6; }
15730 if ${ac_cv_path_XCODEBUILD+:} false; then :
15731   $as_echo_n "(cached) " >&6
15732 else
15733   case $XCODEBUILD in
15734   [\\/]* | ?:[\\/]*)
15735   ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
15736   ;;
15737   *)
15738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15739 for as_dir in $TOOLCHAIN_PATH
15740 do
15741   IFS=$as_save_IFS
15742   test -z "$as_dir" && as_dir=.
15743     for ac_exec_ext in '' $ac_executable_extensions; do
15744   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15745     ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
15746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15747     break 2
15748   fi
15749 done
15750   done
15751 IFS=$as_save_IFS
15752 
15753   test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild"
15754   ;;
15755 esac
15756 fi
15757 XCODEBUILD=$ac_cv_path_XCODEBUILD
15758 if test -n "$XCODEBUILD"; then
15759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
15760 $as_echo "$XCODEBUILD" >&6; }
15761 else
15762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15763 $as_echo "no" >&6; }
15764 fi
15765 
15766 
15767     else
15768       # this should result in SYSROOT being empty, unless --with-sysroot is provided
15769       # when only the command line tools are installed there are no SDKs, so headers
15770       # are copied into the system frameworks
15771       XCODEBUILD=
15772 
15773     fi
15774 
15775     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5
15776 $as_echo_n "checking for sdk name... " >&6; }
15777 
15778 # Check whether --with-sdk-name was given.
15779 if test "${with_sdk_name+set}" = set; then :
15780   withval=$with_sdk_name; SDKNAME=$with_sdk_name
15781 
15782 fi
15783 
15784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5
15785 $as_echo "$SDKNAME" >&6; }
15786 
15787     # if toolchain path is specified then don't rely on system headers, they may not compile
15788     HAVE_SYSTEM_FRAMEWORK_HEADERS=0
15789     test -z "$TOOLCHAIN_PATH" && \
15790       HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?`
15791 
15792     if test -z "$SYSROOT"; then
15793       if test -n "$XCODEBUILD"; then
15794         # if we don't have system headers, use default SDK name (last resort)
15795         if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
15796           SDKNAME=${SDKNAME:-macosx}
15797         fi
15798 
15799         if test -n "$SDKNAME"; then
15800           # Call xcodebuild to determine SYSROOT
15801           SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | grep '^Path: ' | sed 's/Path: //'`
15802         fi
15803       else
15804         if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
15805           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
15806         fi
15807       fi
15808     else
15809       # warn user if --with-sdk-name was also set
15810       if test -n "$with_sdk_name"; then
15811         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5
15812 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;}
15813       fi
15814     fi
15815 
15816     if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then
15817       # If no system framework headers, then SYSROOT must be set, or we won't build
15818       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
15819     fi
15820 
15821     # Perform a basic sanity test
15822     if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then
15823       if test -z "$SYSROOT"; then
15824         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
15825       else
15826         as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5
15827       fi
15828     fi
15829 
15830     # set SDKROOT too, Xcode tools will pick it up
15831     SDKROOT=$SYSROOT
15832 
15833   fi
15834 
15835   # Prepend the extra path to the global path
15836 
15837   if test "x$EXTRA_PATH" != x; then
15838     if test "x$PATH" = x; then
15839       PATH="$EXTRA_PATH"
15840     else
15841       PATH="$EXTRA_PATH:$PATH"
15842     fi
15843   fi
15844 
15845 
15846   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
15847     # Add extra search paths on solaris for utilities like ar and as etc...
15848     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
15849   fi
15850 
15851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
15852 $as_echo_n "checking for sysroot... " >&6; }
15853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
15854 $as_echo "$SYSROOT" >&6; }
15855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
15856 $as_echo_n "checking for toolchain path... " >&6; }
15857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
15858 $as_echo "$TOOLCHAIN_PATH" >&6; }
15859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
15860 $as_echo_n "checking for extra path... " >&6; }
15861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
15862 $as_echo "$EXTRA_PATH" >&6; }
15863 
15864 
15865 # To properly create a configuration name, we need to have the OpenJDK target
15866 # and options (variants and debug level) parsed.
15867 
15868 
15869 
15870 # Check whether --with-conf-name was given.
15871 if test "${with_conf_name+set}" = set; then :
15872   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
15873 fi
15874 
15875 
15876   # Test from where we are running configure, in or outside of src root.
15877   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
15878 $as_echo_n "checking where to store configuration... " >&6; }
15879   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
15880       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
15881       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
15882     # We are running configure from the src root.
15883     # Create a default ./build/target-variant-debuglevel output root.
15884     if test "x${CONF_NAME}" = x; then
15885       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
15886 $as_echo "in default location" >&6; }
15887       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
15888     else
15889       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
15890 $as_echo "in build directory with custom name" >&6; }
15891     fi
15892     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
15893     $MKDIR -p "$OUTPUT_ROOT"
15894     if test ! -d "$OUTPUT_ROOT"; then
15895       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
15896     fi
15897   else
15898     # We are running configure from outside of the src dir.
15899     # Then use the current directory as output dir!
15900     # If configuration is situated in normal build directory, just use the build
15901     # directory name as configuration name, otherwise use the complete path.
15902     if test "x${CONF_NAME}" = x; then
15903       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
15904     fi
15905     OUTPUT_ROOT="$CURDIR"
15906     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
15907 $as_echo "in current directory" >&6; }
15908 
15909     # WARNING: This might be a bad thing to do. You need to be sure you want to
15910     # have a configuration in this directory. Do some sanity checks!
15911 
15912     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
15913       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
15914       # other files
15915       files_present=`$LS $OUTPUT_ROOT`
15916       # Configure has already touched config.log and confdefs.h in the current dir when this check
15917       # is performed.
15918       filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \
15919       | $TR -d '\n'`
15920       if test "x$filtered_files" != x; then
15921         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
15922 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
15923         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
15924 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
15925         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
15926 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
15927         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
15928 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
15929         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
15930 $as_echo "$as_me: seriously mess up just about everything." >&6;}
15931         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
15932 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
15933         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
15934 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
15935         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
15936       fi
15937     fi
15938   fi
15939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
15940 $as_echo_n "checking what configuration name to use... " >&6; }
15941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
15942 $as_echo "$CONF_NAME" >&6; }
15943 
15944 
15945   # Only process if variable expands to non-empty
15946 
15947   if test "x$OUTPUT_ROOT" != x; then
15948     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15949 
15950   # Input might be given as Windows format, start by converting to
15951   # unix format.
15952   path="$OUTPUT_ROOT"
15953   new_path=`$CYGPATH -u "$path"`
15954 
15955   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15956   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15957   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15958   # "foo.exe" is OK but "foo" is an error.
15959   #
15960   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15961   # It is also a way to make sure we got the proper file name for the real test later on.
15962   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15963   if test "x$test_shortpath" = x; then
15964     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
15965 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
15966     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
15967   fi
15968 
15969   # Call helper function which possibly converts this using DOS-style short mode.
15970   # If so, the updated path is stored in $new_path.
15971 
15972   input_path="$new_path"
15973   # Check if we need to convert this using DOS-style short mode. If the path
15974   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15975   # take no chances and rewrite it.
15976   # Note: m4 eats our [], so we need to use [ and ] instead.
15977   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15978   if test "x$has_forbidden_chars" != x; then
15979     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15980     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15981     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15982     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15983       # Going to short mode and back again did indeed matter. Since short mode is
15984       # case insensitive, let's make it lowercase to improve readability.
15985       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15986       # Now convert it back to Unix-stile (cygpath)
15987       input_path=`$CYGPATH -u "$shortmode_path"`
15988       new_path="$input_path"
15989     fi
15990   fi
15991 
15992   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15993   if test "x$test_cygdrive_prefix" = x; then
15994     # As a simple fix, exclude /usr/bin since it's not a real path.
15995     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15996       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15997       # a path prefixed by /cygdrive for fixpath to work.
15998       new_path="$CYGWIN_ROOT_PATH$input_path"
15999     fi
16000   fi
16001 
16002 
16003   if test "x$path" != "x$new_path"; then
16004     OUTPUT_ROOT="$new_path"
16005     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
16006 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
16007   fi
16008 
16009     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16010 
16011   path="$OUTPUT_ROOT"
16012   has_colon=`$ECHO $path | $GREP ^.:`
16013   new_path="$path"
16014   if test "x$has_colon" = x; then
16015     # Not in mixed or Windows style, start by that.
16016     new_path=`cmd //c echo $path`
16017   fi
16018 
16019 
16020   input_path="$new_path"
16021   # Check if we need to convert this using DOS-style short mode. If the path
16022   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16023   # take no chances and rewrite it.
16024   # Note: m4 eats our [], so we need to use [ and ] instead.
16025   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16026   if test "x$has_forbidden_chars" != x; then
16027     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16028     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16029   fi
16030 
16031 
16032   windows_path="$new_path"
16033   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16034     unix_path=`$CYGPATH -u "$windows_path"`
16035     new_path="$unix_path"
16036   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16037     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16038     new_path="$unix_path"
16039   fi
16040 
16041   if test "x$path" != "x$new_path"; then
16042     OUTPUT_ROOT="$new_path"
16043     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
16044 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
16045   fi
16046 
16047   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16048   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16049 
16050     else
16051       # We're on a unix platform. Hooray! :)
16052       path="$OUTPUT_ROOT"
16053       has_space=`$ECHO "$path" | $GREP " "`
16054       if test "x$has_space" != x; then
16055         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
16056 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
16057         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16058       fi
16059 
16060       # Use eval to expand a potential ~
16061       eval path="$path"
16062       if test ! -f "$path" && test ! -d "$path"; then
16063         as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
16064       fi
16065 
16066       OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
16067     fi
16068   fi
16069 
16070 
16071   SPEC=$OUTPUT_ROOT/spec.gmk
16072 
16073   CONF_NAME=$CONF_NAME
16074 
16075   OUTPUT_ROOT=$OUTPUT_ROOT
16076 
16077 
16078   # The spec.gmk file contains all variables for the make system.
16079   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
16080 
16081   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
16082   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
16083 
16084   # The bootcycle-spec.gmk file contains support for boot cycle builds.
16085   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
16086 
16087   # The compare.sh is used to compare the build output to other builds.
16088   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
16089 
16090   # The generated Makefile knows where the spec.gmk is and where the source is.
16091   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
16092   # which will look for generated configurations
16093   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
16094 
16095 
16096 
16097 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
16098 
16099   for ac_prog in apt-get yum port pkgutil pkgadd
16100 do
16101   # Extract the first word of "$ac_prog", so it can be a program name with args.
16102 set dummy $ac_prog; ac_word=$2
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16104 $as_echo_n "checking for $ac_word... " >&6; }
16105 if ${ac_cv_prog_PKGHANDLER+:} false; then :
16106   $as_echo_n "(cached) " >&6
16107 else
16108   if test -n "$PKGHANDLER"; then
16109   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
16110 else
16111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16112 for as_dir in $PATH
16113 do
16114   IFS=$as_save_IFS
16115   test -z "$as_dir" && as_dir=.
16116     for ac_exec_ext in '' $ac_executable_extensions; do
16117   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16118     ac_cv_prog_PKGHANDLER="$ac_prog"
16119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16120     break 2
16121   fi
16122 done
16123   done
16124 IFS=$as_save_IFS
16125 
16126 fi
16127 fi
16128 PKGHANDLER=$ac_cv_prog_PKGHANDLER
16129 if test -n "$PKGHANDLER"; then
16130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
16131 $as_echo "$PKGHANDLER" >&6; }
16132 else
16133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16134 $as_echo "no" >&6; }
16135 fi
16136 
16137 
16138   test -n "$PKGHANDLER" && break
16139 done
16140 
16141 
16142 
16143 # Setup tools that requires more complex handling, or that is not needed by the configure script.
16144 
16145 
16146   # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky.
16147   if test "x$MAKE" != x; then
16148     # User has supplied a make, test it.
16149     if test ! -f "$MAKE"; then
16150       as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5
16151     fi
16152 
16153   MAKE_CANDIDATE=""$MAKE""
16154   DESCRIPTION="user supplied MAKE=$MAKE"
16155   if test "x$MAKE_CANDIDATE" != x; then
16156     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16157 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16158     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16159     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16160     if test "x$IS_GNU_MAKE" = x; then
16161       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16162 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16163     else
16164       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16165       if test "x$IS_MODERN_MAKE" = x; then
16166         { $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
16167 $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;}
16168       else
16169         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16170           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16171             MAKE_EXPECTED_ENV='cygwin'
16172           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16173             MAKE_EXPECTED_ENV='msys'
16174           else
16175             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16176           fi
16177           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16178           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16179         else
16180           # Not relevant for non-Windows
16181           IS_MAKE_CORRECT_ENV=true
16182         fi
16183         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16184           { $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
16185 $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;}
16186         else
16187           FOUND_MAKE=$MAKE_CANDIDATE
16188 
16189   # Only process if variable expands to non-empty
16190 
16191   if test "x$FOUND_MAKE" != x; then
16192     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16193 
16194   # First separate the path from the arguments. This will split at the first
16195   # space.
16196   complete="$FOUND_MAKE"
16197   path="${complete%% *}"
16198   tmp="$complete EOL"
16199   arguments="${tmp#* }"
16200 
16201   # Input might be given as Windows format, start by converting to
16202   # unix format.
16203   new_path=`$CYGPATH -u "$path"`
16204 
16205   # Now try to locate executable using which
16206   new_path=`$WHICH "$new_path" 2> /dev/null`
16207   # bat and cmd files are not always considered executable in cygwin causing which
16208   # to not find them
16209   if test "x$new_path" = x \
16210       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16211       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16212     new_path=`$CYGPATH -u "$path"`
16213   fi
16214   if test "x$new_path" = x; then
16215     # Oops. Which didn't find the executable.
16216     # The splitting of arguments from the executable at a space might have been incorrect,
16217     # since paths with space are more likely in Windows. Give it another try with the whole
16218     # argument.
16219     path="$complete"
16220     arguments="EOL"
16221     new_path=`$CYGPATH -u "$path"`
16222     new_path=`$WHICH "$new_path" 2> /dev/null`
16223     # bat and cmd files are not always considered executable in cygwin causing which
16224     # to not find them
16225     if test "x$new_path" = x \
16226         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16227         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16228       new_path=`$CYGPATH -u "$path"`
16229     fi
16230     if test "x$new_path" = x; then
16231       # It's still not found. Now this is an unrecoverable error.
16232       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16233 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16234       has_space=`$ECHO "$complete" | $GREP " "`
16235       if test "x$has_space" != x; then
16236         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16237 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16238       fi
16239       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16240     fi
16241   fi
16242 
16243   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16244   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16245   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16246   # "foo.exe" is OK but "foo" is an error.
16247   #
16248   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16249   # It is also a way to make sure we got the proper file name for the real test later on.
16250   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16251   if test "x$test_shortpath" = x; then
16252     # Short path failed, file does not exist as specified.
16253     # Try adding .exe or .cmd
16254     if test -f "${new_path}.exe"; then
16255       input_to_shortpath="${new_path}.exe"
16256     elif test -f "${new_path}.cmd"; then
16257       input_to_shortpath="${new_path}.cmd"
16258     else
16259       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16260 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16261       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16262 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16263       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16264     fi
16265   else
16266     input_to_shortpath="$new_path"
16267   fi
16268 
16269   # Call helper function which possibly converts this using DOS-style short mode.
16270   # If so, the updated path is stored in $new_path.
16271   new_path="$input_to_shortpath"
16272 
16273   input_path="$input_to_shortpath"
16274   # Check if we need to convert this using DOS-style short mode. If the path
16275   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16276   # take no chances and rewrite it.
16277   # Note: m4 eats our [], so we need to use [ and ] instead.
16278   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16279   if test "x$has_forbidden_chars" != x; then
16280     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16281     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16282     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16283     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16284       # Going to short mode and back again did indeed matter. Since short mode is
16285       # case insensitive, let's make it lowercase to improve readability.
16286       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16287       # Now convert it back to Unix-stile (cygpath)
16288       input_path=`$CYGPATH -u "$shortmode_path"`
16289       new_path="$input_path"
16290     fi
16291   fi
16292 
16293   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16294   if test "x$test_cygdrive_prefix" = x; then
16295     # As a simple fix, exclude /usr/bin since it's not a real path.
16296     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16297       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16298       # a path prefixed by /cygdrive for fixpath to work.
16299       new_path="$CYGWIN_ROOT_PATH$input_path"
16300     fi
16301   fi
16302 
16303   # remove trailing .exe if any
16304   new_path="${new_path/%.exe/}"
16305 
16306     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16307 
16308   # First separate the path from the arguments. This will split at the first
16309   # space.
16310   complete="$FOUND_MAKE"
16311   path="${complete%% *}"
16312   tmp="$complete EOL"
16313   arguments="${tmp#* }"
16314 
16315   # Input might be given as Windows format, start by converting to
16316   # unix format.
16317   new_path="$path"
16318 
16319   windows_path="$new_path"
16320   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16321     unix_path=`$CYGPATH -u "$windows_path"`
16322     new_path="$unix_path"
16323   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16324     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16325     new_path="$unix_path"
16326   fi
16327 
16328 
16329   # Now try to locate executable using which
16330   new_path=`$WHICH "$new_path" 2> /dev/null`
16331 
16332   if test "x$new_path" = x; then
16333     # Oops. Which didn't find the executable.
16334     # The splitting of arguments from the executable at a space might have been incorrect,
16335     # since paths with space are more likely in Windows. Give it another try with the whole
16336     # argument.
16337     path="$complete"
16338     arguments="EOL"
16339     new_path="$path"
16340 
16341   windows_path="$new_path"
16342   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16343     unix_path=`$CYGPATH -u "$windows_path"`
16344     new_path="$unix_path"
16345   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16346     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16347     new_path="$unix_path"
16348   fi
16349 
16350 
16351     new_path=`$WHICH "$new_path" 2> /dev/null`
16352     # bat and cmd files are not always considered executable in MSYS causing which
16353     # to not find them
16354     if test "x$new_path" = x \
16355         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16356         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16357       new_path="$path"
16358 
16359   windows_path="$new_path"
16360   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16361     unix_path=`$CYGPATH -u "$windows_path"`
16362     new_path="$unix_path"
16363   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16364     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16365     new_path="$unix_path"
16366   fi
16367 
16368     fi
16369 
16370     if test "x$new_path" = x; then
16371       # It's still not found. Now this is an unrecoverable error.
16372       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16373 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16374       has_space=`$ECHO "$complete" | $GREP " "`
16375       if test "x$has_space" != x; then
16376         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16377 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16378       fi
16379       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16380     fi
16381   fi
16382 
16383   # Now new_path has a complete unix path to the binary
16384   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16385     # Keep paths in /bin as-is, but remove trailing .exe if any
16386     new_path="${new_path/%.exe/}"
16387     # Do not save /bin paths to all_fixpath_prefixes!
16388   else
16389     # Not in mixed or Windows style, start by that.
16390     new_path=`cmd //c echo $new_path`
16391 
16392   input_path="$new_path"
16393   # Check if we need to convert this using DOS-style short mode. If the path
16394   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16395   # take no chances and rewrite it.
16396   # Note: m4 eats our [], so we need to use [ and ] instead.
16397   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16398   if test "x$has_forbidden_chars" != x; then
16399     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16400     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16401   fi
16402 
16403     # Output is in $new_path
16404 
16405   windows_path="$new_path"
16406   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16407     unix_path=`$CYGPATH -u "$windows_path"`
16408     new_path="$unix_path"
16409   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16410     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16411     new_path="$unix_path"
16412   fi
16413 
16414     # remove trailing .exe if any
16415     new_path="${new_path/%.exe/}"
16416 
16417     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16418     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16419   fi
16420 
16421     else
16422       # We're on a unix platform. Hooray! :)
16423       # First separate the path from the arguments. This will split at the first
16424       # space.
16425       complete="$FOUND_MAKE"
16426       path="${complete%% *}"
16427       tmp="$complete EOL"
16428       arguments="${tmp#* }"
16429 
16430       # Cannot rely on the command "which" here since it doesn't always work.
16431       is_absolute_path=`$ECHO "$path" | $GREP ^/`
16432       if test -z "$is_absolute_path"; then
16433         # Path to executable is not absolute. Find it.
16434         IFS_save="$IFS"
16435         IFS=:
16436         for p in $PATH; do
16437           if test -f "$p/$path" && test -x "$p/$path"; then
16438             new_path="$p/$path"
16439             break
16440           fi
16441         done
16442         IFS="$IFS_save"
16443       else
16444         # This is an absolute path, we can use it without further modifications.
16445         new_path="$path"
16446       fi
16447 
16448       if test "x$new_path" = x; then
16449         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16450 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16451         has_space=`$ECHO "$complete" | $GREP " "`
16452         if test "x$has_space" != x; then
16453           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16454 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16455         fi
16456         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16457       fi
16458     fi
16459 
16460     # Now join together the path and the arguments once again
16461     if test "x$arguments" != xEOL; then
16462       new_complete="$new_path ${arguments% *}"
16463     else
16464       new_complete="$new_path"
16465     fi
16466 
16467     if test "x$complete" != "x$new_complete"; then
16468       FOUND_MAKE="$new_complete"
16469       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16470 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16471     fi
16472   fi
16473 
16474         fi
16475       fi
16476     fi
16477   fi
16478 
16479     if test "x$FOUND_MAKE" = x; then
16480       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
16481     fi
16482   else
16483     # Try our hardest to locate a correct version of GNU make
16484     for ac_prog in gmake
16485 do
16486   # Extract the first word of "$ac_prog", so it can be a program name with args.
16487 set dummy $ac_prog; ac_word=$2
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16489 $as_echo_n "checking for $ac_word... " >&6; }
16490 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
16491   $as_echo_n "(cached) " >&6
16492 else
16493   case $CHECK_GMAKE in
16494   [\\/]* | ?:[\\/]*)
16495   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
16496   ;;
16497   *)
16498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16499 for as_dir in $PATH
16500 do
16501   IFS=$as_save_IFS
16502   test -z "$as_dir" && as_dir=.
16503     for ac_exec_ext in '' $ac_executable_extensions; do
16504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16505     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
16506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16507     break 2
16508   fi
16509 done
16510   done
16511 IFS=$as_save_IFS
16512 
16513   ;;
16514 esac
16515 fi
16516 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
16517 if test -n "$CHECK_GMAKE"; then
16518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
16519 $as_echo "$CHECK_GMAKE" >&6; }
16520 else
16521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16522 $as_echo "no" >&6; }
16523 fi
16524 
16525 
16526   test -n "$CHECK_GMAKE" && break
16527 done
16528 
16529 
16530   MAKE_CANDIDATE=""$CHECK_GMAKE""
16531   DESCRIPTION="gmake in PATH"
16532   if test "x$MAKE_CANDIDATE" != x; then
16533     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16534 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16535     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16536     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16537     if test "x$IS_GNU_MAKE" = x; then
16538       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16539 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16540     else
16541       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16542       if test "x$IS_MODERN_MAKE" = x; then
16543         { $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
16544 $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;}
16545       else
16546         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16547           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16548             MAKE_EXPECTED_ENV='cygwin'
16549           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16550             MAKE_EXPECTED_ENV='msys'
16551           else
16552             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16553           fi
16554           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16555           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16556         else
16557           # Not relevant for non-Windows
16558           IS_MAKE_CORRECT_ENV=true
16559         fi
16560         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16561           { $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
16562 $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;}
16563         else
16564           FOUND_MAKE=$MAKE_CANDIDATE
16565 
16566   # Only process if variable expands to non-empty
16567 
16568   if test "x$FOUND_MAKE" != x; then
16569     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16570 
16571   # First separate the path from the arguments. This will split at the first
16572   # space.
16573   complete="$FOUND_MAKE"
16574   path="${complete%% *}"
16575   tmp="$complete EOL"
16576   arguments="${tmp#* }"
16577 
16578   # Input might be given as Windows format, start by converting to
16579   # unix format.
16580   new_path=`$CYGPATH -u "$path"`
16581 
16582   # Now try to locate executable using which
16583   new_path=`$WHICH "$new_path" 2> /dev/null`
16584   # bat and cmd files are not always considered executable in cygwin causing which
16585   # to not find them
16586   if test "x$new_path" = x \
16587       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16588       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16589     new_path=`$CYGPATH -u "$path"`
16590   fi
16591   if test "x$new_path" = x; then
16592     # Oops. Which didn't find the executable.
16593     # The splitting of arguments from the executable at a space might have been incorrect,
16594     # since paths with space are more likely in Windows. Give it another try with the whole
16595     # argument.
16596     path="$complete"
16597     arguments="EOL"
16598     new_path=`$CYGPATH -u "$path"`
16599     new_path=`$WHICH "$new_path" 2> /dev/null`
16600     # bat and cmd files are not always considered executable in cygwin causing which
16601     # to not find them
16602     if test "x$new_path" = x \
16603         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16604         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16605       new_path=`$CYGPATH -u "$path"`
16606     fi
16607     if test "x$new_path" = x; then
16608       # It's still not found. Now this is an unrecoverable error.
16609       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16610 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16611       has_space=`$ECHO "$complete" | $GREP " "`
16612       if test "x$has_space" != x; then
16613         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16614 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16615       fi
16616       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16617     fi
16618   fi
16619 
16620   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16621   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16622   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16623   # "foo.exe" is OK but "foo" is an error.
16624   #
16625   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16626   # It is also a way to make sure we got the proper file name for the real test later on.
16627   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16628   if test "x$test_shortpath" = x; then
16629     # Short path failed, file does not exist as specified.
16630     # Try adding .exe or .cmd
16631     if test -f "${new_path}.exe"; then
16632       input_to_shortpath="${new_path}.exe"
16633     elif test -f "${new_path}.cmd"; then
16634       input_to_shortpath="${new_path}.cmd"
16635     else
16636       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16637 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16638       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16639 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16640       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16641     fi
16642   else
16643     input_to_shortpath="$new_path"
16644   fi
16645 
16646   # Call helper function which possibly converts this using DOS-style short mode.
16647   # If so, the updated path is stored in $new_path.
16648   new_path="$input_to_shortpath"
16649 
16650   input_path="$input_to_shortpath"
16651   # Check if we need to convert this using DOS-style short mode. If the path
16652   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16653   # take no chances and rewrite it.
16654   # Note: m4 eats our [], so we need to use [ and ] instead.
16655   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16656   if test "x$has_forbidden_chars" != x; then
16657     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16658     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16659     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16660     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16661       # Going to short mode and back again did indeed matter. Since short mode is
16662       # case insensitive, let's make it lowercase to improve readability.
16663       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16664       # Now convert it back to Unix-stile (cygpath)
16665       input_path=`$CYGPATH -u "$shortmode_path"`
16666       new_path="$input_path"
16667     fi
16668   fi
16669 
16670   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16671   if test "x$test_cygdrive_prefix" = x; then
16672     # As a simple fix, exclude /usr/bin since it's not a real path.
16673     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16674       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16675       # a path prefixed by /cygdrive for fixpath to work.
16676       new_path="$CYGWIN_ROOT_PATH$input_path"
16677     fi
16678   fi
16679 
16680   # remove trailing .exe if any
16681   new_path="${new_path/%.exe/}"
16682 
16683     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16684 
16685   # First separate the path from the arguments. This will split at the first
16686   # space.
16687   complete="$FOUND_MAKE"
16688   path="${complete%% *}"
16689   tmp="$complete EOL"
16690   arguments="${tmp#* }"
16691 
16692   # Input might be given as Windows format, start by converting to
16693   # unix format.
16694   new_path="$path"
16695 
16696   windows_path="$new_path"
16697   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16698     unix_path=`$CYGPATH -u "$windows_path"`
16699     new_path="$unix_path"
16700   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16701     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16702     new_path="$unix_path"
16703   fi
16704 
16705 
16706   # Now try to locate executable using which
16707   new_path=`$WHICH "$new_path" 2> /dev/null`
16708 
16709   if test "x$new_path" = x; then
16710     # Oops. Which didn't find the executable.
16711     # The splitting of arguments from the executable at a space might have been incorrect,
16712     # since paths with space are more likely in Windows. Give it another try with the whole
16713     # argument.
16714     path="$complete"
16715     arguments="EOL"
16716     new_path="$path"
16717 
16718   windows_path="$new_path"
16719   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16720     unix_path=`$CYGPATH -u "$windows_path"`
16721     new_path="$unix_path"
16722   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16723     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16724     new_path="$unix_path"
16725   fi
16726 
16727 
16728     new_path=`$WHICH "$new_path" 2> /dev/null`
16729     # bat and cmd files are not always considered executable in MSYS causing which
16730     # to not find them
16731     if test "x$new_path" = x \
16732         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16733         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16734       new_path="$path"
16735 
16736   windows_path="$new_path"
16737   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16738     unix_path=`$CYGPATH -u "$windows_path"`
16739     new_path="$unix_path"
16740   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16741     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16742     new_path="$unix_path"
16743   fi
16744 
16745     fi
16746 
16747     if test "x$new_path" = x; then
16748       # It's still not found. Now this is an unrecoverable error.
16749       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16750 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16751       has_space=`$ECHO "$complete" | $GREP " "`
16752       if test "x$has_space" != x; then
16753         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16754 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16755       fi
16756       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16757     fi
16758   fi
16759 
16760   # Now new_path has a complete unix path to the binary
16761   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16762     # Keep paths in /bin as-is, but remove trailing .exe if any
16763     new_path="${new_path/%.exe/}"
16764     # Do not save /bin paths to all_fixpath_prefixes!
16765   else
16766     # Not in mixed or Windows style, start by that.
16767     new_path=`cmd //c echo $new_path`
16768 
16769   input_path="$new_path"
16770   # Check if we need to convert this using DOS-style short mode. If the path
16771   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16772   # take no chances and rewrite it.
16773   # Note: m4 eats our [], so we need to use [ and ] instead.
16774   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16775   if test "x$has_forbidden_chars" != x; then
16776     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16777     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16778   fi
16779 
16780     # Output is in $new_path
16781 
16782   windows_path="$new_path"
16783   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16784     unix_path=`$CYGPATH -u "$windows_path"`
16785     new_path="$unix_path"
16786   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16787     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16788     new_path="$unix_path"
16789   fi
16790 
16791     # remove trailing .exe if any
16792     new_path="${new_path/%.exe/}"
16793 
16794     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16795     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16796   fi
16797 
16798     else
16799       # We're on a unix platform. Hooray! :)
16800       # First separate the path from the arguments. This will split at the first
16801       # space.
16802       complete="$FOUND_MAKE"
16803       path="${complete%% *}"
16804       tmp="$complete EOL"
16805       arguments="${tmp#* }"
16806 
16807       # Cannot rely on the command "which" here since it doesn't always work.
16808       is_absolute_path=`$ECHO "$path" | $GREP ^/`
16809       if test -z "$is_absolute_path"; then
16810         # Path to executable is not absolute. Find it.
16811         IFS_save="$IFS"
16812         IFS=:
16813         for p in $PATH; do
16814           if test -f "$p/$path" && test -x "$p/$path"; then
16815             new_path="$p/$path"
16816             break
16817           fi
16818         done
16819         IFS="$IFS_save"
16820       else
16821         # This is an absolute path, we can use it without further modifications.
16822         new_path="$path"
16823       fi
16824 
16825       if test "x$new_path" = x; then
16826         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16827 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16828         has_space=`$ECHO "$complete" | $GREP " "`
16829         if test "x$has_space" != x; then
16830           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16831 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16832         fi
16833         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16834       fi
16835     fi
16836 
16837     # Now join together the path and the arguments once again
16838     if test "x$arguments" != xEOL; then
16839       new_complete="$new_path ${arguments% *}"
16840     else
16841       new_complete="$new_path"
16842     fi
16843 
16844     if test "x$complete" != "x$new_complete"; then
16845       FOUND_MAKE="$new_complete"
16846       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16847 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16848     fi
16849   fi
16850 
16851         fi
16852       fi
16853     fi
16854   fi
16855 
16856 
16857     if test "x$FOUND_MAKE" = x; then
16858       for ac_prog in make
16859 do
16860   # Extract the first word of "$ac_prog", so it can be a program name with args.
16861 set dummy $ac_prog; ac_word=$2
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16863 $as_echo_n "checking for $ac_word... " >&6; }
16864 if ${ac_cv_path_CHECK_MAKE+:} false; then :
16865   $as_echo_n "(cached) " >&6
16866 else
16867   case $CHECK_MAKE in
16868   [\\/]* | ?:[\\/]*)
16869   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
16870   ;;
16871   *)
16872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16873 for as_dir in $PATH
16874 do
16875   IFS=$as_save_IFS
16876   test -z "$as_dir" && as_dir=.
16877     for ac_exec_ext in '' $ac_executable_extensions; do
16878   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16879     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
16880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16881     break 2
16882   fi
16883 done
16884   done
16885 IFS=$as_save_IFS
16886 
16887   ;;
16888 esac
16889 fi
16890 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
16891 if test -n "$CHECK_MAKE"; then
16892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
16893 $as_echo "$CHECK_MAKE" >&6; }
16894 else
16895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16896 $as_echo "no" >&6; }
16897 fi
16898 
16899 
16900   test -n "$CHECK_MAKE" && break
16901 done
16902 
16903 
16904   MAKE_CANDIDATE=""$CHECK_MAKE""
16905   DESCRIPTION="make in PATH"
16906   if test "x$MAKE_CANDIDATE" != x; then
16907     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16908 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16909     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16910     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16911     if test "x$IS_GNU_MAKE" = x; then
16912       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16913 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16914     else
16915       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16916       if test "x$IS_MODERN_MAKE" = x; then
16917         { $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
16918 $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;}
16919       else
16920         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16921           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16922             MAKE_EXPECTED_ENV='cygwin'
16923           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16924             MAKE_EXPECTED_ENV='msys'
16925           else
16926             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16927           fi
16928           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16929           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16930         else
16931           # Not relevant for non-Windows
16932           IS_MAKE_CORRECT_ENV=true
16933         fi
16934         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16935           { $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
16936 $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;}
16937         else
16938           FOUND_MAKE=$MAKE_CANDIDATE
16939 
16940   # Only process if variable expands to non-empty
16941 
16942   if test "x$FOUND_MAKE" != x; then
16943     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16944 
16945   # First separate the path from the arguments. This will split at the first
16946   # space.
16947   complete="$FOUND_MAKE"
16948   path="${complete%% *}"
16949   tmp="$complete EOL"
16950   arguments="${tmp#* }"
16951 
16952   # Input might be given as Windows format, start by converting to
16953   # unix format.
16954   new_path=`$CYGPATH -u "$path"`
16955 
16956   # Now try to locate executable using which
16957   new_path=`$WHICH "$new_path" 2> /dev/null`
16958   # bat and cmd files are not always considered executable in cygwin causing which
16959   # to not find them
16960   if test "x$new_path" = x \
16961       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16962       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16963     new_path=`$CYGPATH -u "$path"`
16964   fi
16965   if test "x$new_path" = x; then
16966     # Oops. Which didn't find the executable.
16967     # The splitting of arguments from the executable at a space might have been incorrect,
16968     # since paths with space are more likely in Windows. Give it another try with the whole
16969     # argument.
16970     path="$complete"
16971     arguments="EOL"
16972     new_path=`$CYGPATH -u "$path"`
16973     new_path=`$WHICH "$new_path" 2> /dev/null`
16974     # bat and cmd files are not always considered executable in cygwin causing which
16975     # to not find them
16976     if test "x$new_path" = x \
16977         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16978         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16979       new_path=`$CYGPATH -u "$path"`
16980     fi
16981     if test "x$new_path" = x; then
16982       # It's still not found. Now this is an unrecoverable error.
16983       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16984 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16985       has_space=`$ECHO "$complete" | $GREP " "`
16986       if test "x$has_space" != x; then
16987         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16988 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16989       fi
16990       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16991     fi
16992   fi
16993 
16994   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16995   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16996   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16997   # "foo.exe" is OK but "foo" is an error.
16998   #
16999   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17000   # It is also a way to make sure we got the proper file name for the real test later on.
17001   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17002   if test "x$test_shortpath" = x; then
17003     # Short path failed, file does not exist as specified.
17004     # Try adding .exe or .cmd
17005     if test -f "${new_path}.exe"; then
17006       input_to_shortpath="${new_path}.exe"
17007     elif test -f "${new_path}.cmd"; then
17008       input_to_shortpath="${new_path}.cmd"
17009     else
17010       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17011 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17012       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17013 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17014       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17015     fi
17016   else
17017     input_to_shortpath="$new_path"
17018   fi
17019 
17020   # Call helper function which possibly converts this using DOS-style short mode.
17021   # If so, the updated path is stored in $new_path.
17022   new_path="$input_to_shortpath"
17023 
17024   input_path="$input_to_shortpath"
17025   # Check if we need to convert this using DOS-style short mode. If the path
17026   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17027   # take no chances and rewrite it.
17028   # Note: m4 eats our [], so we need to use [ and ] instead.
17029   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17030   if test "x$has_forbidden_chars" != x; then
17031     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17032     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17033     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17034     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17035       # Going to short mode and back again did indeed matter. Since short mode is
17036       # case insensitive, let's make it lowercase to improve readability.
17037       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17038       # Now convert it back to Unix-stile (cygpath)
17039       input_path=`$CYGPATH -u "$shortmode_path"`
17040       new_path="$input_path"
17041     fi
17042   fi
17043 
17044   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17045   if test "x$test_cygdrive_prefix" = x; then
17046     # As a simple fix, exclude /usr/bin since it's not a real path.
17047     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17048       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17049       # a path prefixed by /cygdrive for fixpath to work.
17050       new_path="$CYGWIN_ROOT_PATH$input_path"
17051     fi
17052   fi
17053 
17054   # remove trailing .exe if any
17055   new_path="${new_path/%.exe/}"
17056 
17057     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17058 
17059   # First separate the path from the arguments. This will split at the first
17060   # space.
17061   complete="$FOUND_MAKE"
17062   path="${complete%% *}"
17063   tmp="$complete EOL"
17064   arguments="${tmp#* }"
17065 
17066   # Input might be given as Windows format, start by converting to
17067   # unix format.
17068   new_path="$path"
17069 
17070   windows_path="$new_path"
17071   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17072     unix_path=`$CYGPATH -u "$windows_path"`
17073     new_path="$unix_path"
17074   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17075     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17076     new_path="$unix_path"
17077   fi
17078 
17079 
17080   # Now try to locate executable using which
17081   new_path=`$WHICH "$new_path" 2> /dev/null`
17082 
17083   if test "x$new_path" = x; then
17084     # Oops. Which didn't find the executable.
17085     # The splitting of arguments from the executable at a space might have been incorrect,
17086     # since paths with space are more likely in Windows. Give it another try with the whole
17087     # argument.
17088     path="$complete"
17089     arguments="EOL"
17090     new_path="$path"
17091 
17092   windows_path="$new_path"
17093   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17094     unix_path=`$CYGPATH -u "$windows_path"`
17095     new_path="$unix_path"
17096   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17097     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17098     new_path="$unix_path"
17099   fi
17100 
17101 
17102     new_path=`$WHICH "$new_path" 2> /dev/null`
17103     # bat and cmd files are not always considered executable in MSYS causing which
17104     # to not find them
17105     if test "x$new_path" = x \
17106         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17107         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17108       new_path="$path"
17109 
17110   windows_path="$new_path"
17111   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17112     unix_path=`$CYGPATH -u "$windows_path"`
17113     new_path="$unix_path"
17114   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17115     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17116     new_path="$unix_path"
17117   fi
17118 
17119     fi
17120 
17121     if test "x$new_path" = x; then
17122       # It's still not found. Now this is an unrecoverable error.
17123       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17124 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17125       has_space=`$ECHO "$complete" | $GREP " "`
17126       if test "x$has_space" != x; then
17127         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17128 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17129       fi
17130       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17131     fi
17132   fi
17133 
17134   # Now new_path has a complete unix path to the binary
17135   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17136     # Keep paths in /bin as-is, but remove trailing .exe if any
17137     new_path="${new_path/%.exe/}"
17138     # Do not save /bin paths to all_fixpath_prefixes!
17139   else
17140     # Not in mixed or Windows style, start by that.
17141     new_path=`cmd //c echo $new_path`
17142 
17143   input_path="$new_path"
17144   # Check if we need to convert this using DOS-style short mode. If the path
17145   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17146   # take no chances and rewrite it.
17147   # Note: m4 eats our [], so we need to use [ and ] instead.
17148   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17149   if test "x$has_forbidden_chars" != x; then
17150     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17151     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17152   fi
17153 
17154     # Output is in $new_path
17155 
17156   windows_path="$new_path"
17157   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17158     unix_path=`$CYGPATH -u "$windows_path"`
17159     new_path="$unix_path"
17160   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17161     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17162     new_path="$unix_path"
17163   fi
17164 
17165     # remove trailing .exe if any
17166     new_path="${new_path/%.exe/}"
17167 
17168     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17169     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17170   fi
17171 
17172     else
17173       # We're on a unix platform. Hooray! :)
17174       # First separate the path from the arguments. This will split at the first
17175       # space.
17176       complete="$FOUND_MAKE"
17177       path="${complete%% *}"
17178       tmp="$complete EOL"
17179       arguments="${tmp#* }"
17180 
17181       # Cannot rely on the command "which" here since it doesn't always work.
17182       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17183       if test -z "$is_absolute_path"; then
17184         # Path to executable is not absolute. Find it.
17185         IFS_save="$IFS"
17186         IFS=:
17187         for p in $PATH; do
17188           if test -f "$p/$path" && test -x "$p/$path"; then
17189             new_path="$p/$path"
17190             break
17191           fi
17192         done
17193         IFS="$IFS_save"
17194       else
17195         # This is an absolute path, we can use it without further modifications.
17196         new_path="$path"
17197       fi
17198 
17199       if test "x$new_path" = x; then
17200         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17201 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17202         has_space=`$ECHO "$complete" | $GREP " "`
17203         if test "x$has_space" != x; then
17204           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17205 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17206         fi
17207         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17208       fi
17209     fi
17210 
17211     # Now join together the path and the arguments once again
17212     if test "x$arguments" != xEOL; then
17213       new_complete="$new_path ${arguments% *}"
17214     else
17215       new_complete="$new_path"
17216     fi
17217 
17218     if test "x$complete" != "x$new_complete"; then
17219       FOUND_MAKE="$new_complete"
17220       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17221 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17222     fi
17223   fi
17224 
17225         fi
17226       fi
17227     fi
17228   fi
17229 
17230     fi
17231 
17232     if test "x$FOUND_MAKE" = x; then
17233       if test "x$TOOLCHAIN_PATH" != x; then
17234         # We have a toolchain path, check that as well before giving up.
17235         OLD_PATH=$PATH
17236         PATH=$TOOLCHAIN_PATH:$PATH
17237         for ac_prog in gmake
17238 do
17239   # Extract the first word of "$ac_prog", so it can be a program name with args.
17240 set dummy $ac_prog; ac_word=$2
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17242 $as_echo_n "checking for $ac_word... " >&6; }
17243 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
17244   $as_echo_n "(cached) " >&6
17245 else
17246   case $CHECK_TOOLSDIR_GMAKE in
17247   [\\/]* | ?:[\\/]*)
17248   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
17249   ;;
17250   *)
17251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17252 for as_dir in $PATH
17253 do
17254   IFS=$as_save_IFS
17255   test -z "$as_dir" && as_dir=.
17256     for ac_exec_ext in '' $ac_executable_extensions; do
17257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17258     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
17259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17260     break 2
17261   fi
17262 done
17263   done
17264 IFS=$as_save_IFS
17265 
17266   ;;
17267 esac
17268 fi
17269 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
17270 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
17271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
17272 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
17273 else
17274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17275 $as_echo "no" >&6; }
17276 fi
17277 
17278 
17279   test -n "$CHECK_TOOLSDIR_GMAKE" && break
17280 done
17281 
17282 
17283   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
17284   DESCRIPTION="gmake in tools-dir"
17285   if test "x$MAKE_CANDIDATE" != x; then
17286     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17287 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17288     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17289     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17290     if test "x$IS_GNU_MAKE" = x; then
17291       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17292 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17293     else
17294       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
17295       if test "x$IS_MODERN_MAKE" = x; then
17296         { $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
17297 $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;}
17298       else
17299         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17300           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17301             MAKE_EXPECTED_ENV='cygwin'
17302           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17303             MAKE_EXPECTED_ENV='msys'
17304           else
17305             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17306           fi
17307           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17308           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17309         else
17310           # Not relevant for non-Windows
17311           IS_MAKE_CORRECT_ENV=true
17312         fi
17313         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17314           { $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
17315 $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;}
17316         else
17317           FOUND_MAKE=$MAKE_CANDIDATE
17318 
17319   # Only process if variable expands to non-empty
17320 
17321   if test "x$FOUND_MAKE" != x; then
17322     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17323 
17324   # First separate the path from the arguments. This will split at the first
17325   # space.
17326   complete="$FOUND_MAKE"
17327   path="${complete%% *}"
17328   tmp="$complete EOL"
17329   arguments="${tmp#* }"
17330 
17331   # Input might be given as Windows format, start by converting to
17332   # unix format.
17333   new_path=`$CYGPATH -u "$path"`
17334 
17335   # Now try to locate executable using which
17336   new_path=`$WHICH "$new_path" 2> /dev/null`
17337   # bat and cmd files are not always considered executable in cygwin causing which
17338   # to not find them
17339   if test "x$new_path" = x \
17340       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17341       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17342     new_path=`$CYGPATH -u "$path"`
17343   fi
17344   if test "x$new_path" = x; then
17345     # Oops. Which didn't find the executable.
17346     # The splitting of arguments from the executable at a space might have been incorrect,
17347     # since paths with space are more likely in Windows. Give it another try with the whole
17348     # argument.
17349     path="$complete"
17350     arguments="EOL"
17351     new_path=`$CYGPATH -u "$path"`
17352     new_path=`$WHICH "$new_path" 2> /dev/null`
17353     # bat and cmd files are not always considered executable in cygwin causing which
17354     # to not find them
17355     if test "x$new_path" = x \
17356         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17357         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17358       new_path=`$CYGPATH -u "$path"`
17359     fi
17360     if test "x$new_path" = x; then
17361       # It's still not found. Now this is an unrecoverable error.
17362       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17363 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17364       has_space=`$ECHO "$complete" | $GREP " "`
17365       if test "x$has_space" != x; then
17366         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17367 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17368       fi
17369       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17370     fi
17371   fi
17372 
17373   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17374   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17375   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17376   # "foo.exe" is OK but "foo" is an error.
17377   #
17378   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17379   # It is also a way to make sure we got the proper file name for the real test later on.
17380   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17381   if test "x$test_shortpath" = x; then
17382     # Short path failed, file does not exist as specified.
17383     # Try adding .exe or .cmd
17384     if test -f "${new_path}.exe"; then
17385       input_to_shortpath="${new_path}.exe"
17386     elif test -f "${new_path}.cmd"; then
17387       input_to_shortpath="${new_path}.cmd"
17388     else
17389       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17390 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17391       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17392 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17393       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17394     fi
17395   else
17396     input_to_shortpath="$new_path"
17397   fi
17398 
17399   # Call helper function which possibly converts this using DOS-style short mode.
17400   # If so, the updated path is stored in $new_path.
17401   new_path="$input_to_shortpath"
17402 
17403   input_path="$input_to_shortpath"
17404   # Check if we need to convert this using DOS-style short mode. If the path
17405   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17406   # take no chances and rewrite it.
17407   # Note: m4 eats our [], so we need to use [ and ] instead.
17408   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17409   if test "x$has_forbidden_chars" != x; then
17410     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17411     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17412     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17413     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17414       # Going to short mode and back again did indeed matter. Since short mode is
17415       # case insensitive, let's make it lowercase to improve readability.
17416       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17417       # Now convert it back to Unix-stile (cygpath)
17418       input_path=`$CYGPATH -u "$shortmode_path"`
17419       new_path="$input_path"
17420     fi
17421   fi
17422 
17423   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17424   if test "x$test_cygdrive_prefix" = x; then
17425     # As a simple fix, exclude /usr/bin since it's not a real path.
17426     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17427       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17428       # a path prefixed by /cygdrive for fixpath to work.
17429       new_path="$CYGWIN_ROOT_PATH$input_path"
17430     fi
17431   fi
17432 
17433   # remove trailing .exe if any
17434   new_path="${new_path/%.exe/}"
17435 
17436     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17437 
17438   # First separate the path from the arguments. This will split at the first
17439   # space.
17440   complete="$FOUND_MAKE"
17441   path="${complete%% *}"
17442   tmp="$complete EOL"
17443   arguments="${tmp#* }"
17444 
17445   # Input might be given as Windows format, start by converting to
17446   # unix format.
17447   new_path="$path"
17448 
17449   windows_path="$new_path"
17450   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17451     unix_path=`$CYGPATH -u "$windows_path"`
17452     new_path="$unix_path"
17453   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17454     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17455     new_path="$unix_path"
17456   fi
17457 
17458 
17459   # Now try to locate executable using which
17460   new_path=`$WHICH "$new_path" 2> /dev/null`
17461 
17462   if test "x$new_path" = x; then
17463     # Oops. Which didn't find the executable.
17464     # The splitting of arguments from the executable at a space might have been incorrect,
17465     # since paths with space are more likely in Windows. Give it another try with the whole
17466     # argument.
17467     path="$complete"
17468     arguments="EOL"
17469     new_path="$path"
17470 
17471   windows_path="$new_path"
17472   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17473     unix_path=`$CYGPATH -u "$windows_path"`
17474     new_path="$unix_path"
17475   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17476     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17477     new_path="$unix_path"
17478   fi
17479 
17480 
17481     new_path=`$WHICH "$new_path" 2> /dev/null`
17482     # bat and cmd files are not always considered executable in MSYS causing which
17483     # to not find them
17484     if test "x$new_path" = x \
17485         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17486         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17487       new_path="$path"
17488 
17489   windows_path="$new_path"
17490   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17491     unix_path=`$CYGPATH -u "$windows_path"`
17492     new_path="$unix_path"
17493   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17494     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17495     new_path="$unix_path"
17496   fi
17497 
17498     fi
17499 
17500     if test "x$new_path" = x; then
17501       # It's still not found. Now this is an unrecoverable error.
17502       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17503 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17504       has_space=`$ECHO "$complete" | $GREP " "`
17505       if test "x$has_space" != x; then
17506         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17507 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17508       fi
17509       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17510     fi
17511   fi
17512 
17513   # Now new_path has a complete unix path to the binary
17514   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17515     # Keep paths in /bin as-is, but remove trailing .exe if any
17516     new_path="${new_path/%.exe/}"
17517     # Do not save /bin paths to all_fixpath_prefixes!
17518   else
17519     # Not in mixed or Windows style, start by that.
17520     new_path=`cmd //c echo $new_path`
17521 
17522   input_path="$new_path"
17523   # Check if we need to convert this using DOS-style short mode. If the path
17524   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17525   # take no chances and rewrite it.
17526   # Note: m4 eats our [], so we need to use [ and ] instead.
17527   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17528   if test "x$has_forbidden_chars" != x; then
17529     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17530     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17531   fi
17532 
17533     # Output is in $new_path
17534 
17535   windows_path="$new_path"
17536   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17537     unix_path=`$CYGPATH -u "$windows_path"`
17538     new_path="$unix_path"
17539   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17540     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17541     new_path="$unix_path"
17542   fi
17543 
17544     # remove trailing .exe if any
17545     new_path="${new_path/%.exe/}"
17546 
17547     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17548     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17549   fi
17550 
17551     else
17552       # We're on a unix platform. Hooray! :)
17553       # First separate the path from the arguments. This will split at the first
17554       # space.
17555       complete="$FOUND_MAKE"
17556       path="${complete%% *}"
17557       tmp="$complete EOL"
17558       arguments="${tmp#* }"
17559 
17560       # Cannot rely on the command "which" here since it doesn't always work.
17561       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17562       if test -z "$is_absolute_path"; then
17563         # Path to executable is not absolute. Find it.
17564         IFS_save="$IFS"
17565         IFS=:
17566         for p in $PATH; do
17567           if test -f "$p/$path" && test -x "$p/$path"; then
17568             new_path="$p/$path"
17569             break
17570           fi
17571         done
17572         IFS="$IFS_save"
17573       else
17574         # This is an absolute path, we can use it without further modifications.
17575         new_path="$path"
17576       fi
17577 
17578       if test "x$new_path" = x; then
17579         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17580 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17581         has_space=`$ECHO "$complete" | $GREP " "`
17582         if test "x$has_space" != x; then
17583           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17584 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17585         fi
17586         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17587       fi
17588     fi
17589 
17590     # Now join together the path and the arguments once again
17591     if test "x$arguments" != xEOL; then
17592       new_complete="$new_path ${arguments% *}"
17593     else
17594       new_complete="$new_path"
17595     fi
17596 
17597     if test "x$complete" != "x$new_complete"; then
17598       FOUND_MAKE="$new_complete"
17599       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17600 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17601     fi
17602   fi
17603 
17604         fi
17605       fi
17606     fi
17607   fi
17608 
17609         if test "x$FOUND_MAKE" = x; then
17610           for ac_prog in make
17611 do
17612   # Extract the first word of "$ac_prog", so it can be a program name with args.
17613 set dummy $ac_prog; ac_word=$2
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17615 $as_echo_n "checking for $ac_word... " >&6; }
17616 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
17617   $as_echo_n "(cached) " >&6
17618 else
17619   case $CHECK_TOOLSDIR_MAKE in
17620   [\\/]* | ?:[\\/]*)
17621   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
17622   ;;
17623   *)
17624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17625 for as_dir in $PATH
17626 do
17627   IFS=$as_save_IFS
17628   test -z "$as_dir" && as_dir=.
17629     for ac_exec_ext in '' $ac_executable_extensions; do
17630   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17631     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
17632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17633     break 2
17634   fi
17635 done
17636   done
17637 IFS=$as_save_IFS
17638 
17639   ;;
17640 esac
17641 fi
17642 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
17643 if test -n "$CHECK_TOOLSDIR_MAKE"; then
17644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
17645 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
17646 else
17647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17648 $as_echo "no" >&6; }
17649 fi
17650 
17651 
17652   test -n "$CHECK_TOOLSDIR_MAKE" && break
17653 done
17654 
17655 
17656   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
17657   DESCRIPTION="make in tools-dir"
17658   if test "x$MAKE_CANDIDATE" != x; then
17659     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17660 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17661     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17662     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17663     if test "x$IS_GNU_MAKE" = x; then
17664       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17665 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17666     else
17667       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
17668       if test "x$IS_MODERN_MAKE" = x; then
17669         { $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
17670 $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;}
17671       else
17672         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17673           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17674             MAKE_EXPECTED_ENV='cygwin'
17675           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17676             MAKE_EXPECTED_ENV='msys'
17677           else
17678             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17679           fi
17680           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17681           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17682         else
17683           # Not relevant for non-Windows
17684           IS_MAKE_CORRECT_ENV=true
17685         fi
17686         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17687           { $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
17688 $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;}
17689         else
17690           FOUND_MAKE=$MAKE_CANDIDATE
17691 
17692   # Only process if variable expands to non-empty
17693 
17694   if test "x$FOUND_MAKE" != x; then
17695     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17696 
17697   # First separate the path from the arguments. This will split at the first
17698   # space.
17699   complete="$FOUND_MAKE"
17700   path="${complete%% *}"
17701   tmp="$complete EOL"
17702   arguments="${tmp#* }"
17703 
17704   # Input might be given as Windows format, start by converting to
17705   # unix format.
17706   new_path=`$CYGPATH -u "$path"`
17707 
17708   # Now try to locate executable using which
17709   new_path=`$WHICH "$new_path" 2> /dev/null`
17710   # bat and cmd files are not always considered executable in cygwin causing which
17711   # to not find them
17712   if test "x$new_path" = x \
17713       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17714       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17715     new_path=`$CYGPATH -u "$path"`
17716   fi
17717   if test "x$new_path" = x; then
17718     # Oops. Which didn't find the executable.
17719     # The splitting of arguments from the executable at a space might have been incorrect,
17720     # since paths with space are more likely in Windows. Give it another try with the whole
17721     # argument.
17722     path="$complete"
17723     arguments="EOL"
17724     new_path=`$CYGPATH -u "$path"`
17725     new_path=`$WHICH "$new_path" 2> /dev/null`
17726     # bat and cmd files are not always considered executable in cygwin causing which
17727     # to not find them
17728     if test "x$new_path" = x \
17729         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17730         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17731       new_path=`$CYGPATH -u "$path"`
17732     fi
17733     if test "x$new_path" = x; then
17734       # It's still not found. Now this is an unrecoverable error.
17735       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17736 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17737       has_space=`$ECHO "$complete" | $GREP " "`
17738       if test "x$has_space" != x; then
17739         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17740 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17741       fi
17742       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17743     fi
17744   fi
17745 
17746   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17747   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17748   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17749   # "foo.exe" is OK but "foo" is an error.
17750   #
17751   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17752   # It is also a way to make sure we got the proper file name for the real test later on.
17753   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17754   if test "x$test_shortpath" = x; then
17755     # Short path failed, file does not exist as specified.
17756     # Try adding .exe or .cmd
17757     if test -f "${new_path}.exe"; then
17758       input_to_shortpath="${new_path}.exe"
17759     elif test -f "${new_path}.cmd"; then
17760       input_to_shortpath="${new_path}.cmd"
17761     else
17762       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17763 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17764       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17765 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17766       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17767     fi
17768   else
17769     input_to_shortpath="$new_path"
17770   fi
17771 
17772   # Call helper function which possibly converts this using DOS-style short mode.
17773   # If so, the updated path is stored in $new_path.
17774   new_path="$input_to_shortpath"
17775 
17776   input_path="$input_to_shortpath"
17777   # Check if we need to convert this using DOS-style short mode. If the path
17778   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17779   # take no chances and rewrite it.
17780   # Note: m4 eats our [], so we need to use [ and ] instead.
17781   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17782   if test "x$has_forbidden_chars" != x; then
17783     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17784     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17785     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17786     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17787       # Going to short mode and back again did indeed matter. Since short mode is
17788       # case insensitive, let's make it lowercase to improve readability.
17789       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17790       # Now convert it back to Unix-stile (cygpath)
17791       input_path=`$CYGPATH -u "$shortmode_path"`
17792       new_path="$input_path"
17793     fi
17794   fi
17795 
17796   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17797   if test "x$test_cygdrive_prefix" = x; then
17798     # As a simple fix, exclude /usr/bin since it's not a real path.
17799     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17800       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17801       # a path prefixed by /cygdrive for fixpath to work.
17802       new_path="$CYGWIN_ROOT_PATH$input_path"
17803     fi
17804   fi
17805 
17806   # remove trailing .exe if any
17807   new_path="${new_path/%.exe/}"
17808 
17809     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17810 
17811   # First separate the path from the arguments. This will split at the first
17812   # space.
17813   complete="$FOUND_MAKE"
17814   path="${complete%% *}"
17815   tmp="$complete EOL"
17816   arguments="${tmp#* }"
17817 
17818   # Input might be given as Windows format, start by converting to
17819   # unix format.
17820   new_path="$path"
17821 
17822   windows_path="$new_path"
17823   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17824     unix_path=`$CYGPATH -u "$windows_path"`
17825     new_path="$unix_path"
17826   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17827     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17828     new_path="$unix_path"
17829   fi
17830 
17831 
17832   # Now try to locate executable using which
17833   new_path=`$WHICH "$new_path" 2> /dev/null`
17834 
17835   if test "x$new_path" = x; then
17836     # Oops. Which didn't find the executable.
17837     # The splitting of arguments from the executable at a space might have been incorrect,
17838     # since paths with space are more likely in Windows. Give it another try with the whole
17839     # argument.
17840     path="$complete"
17841     arguments="EOL"
17842     new_path="$path"
17843 
17844   windows_path="$new_path"
17845   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17846     unix_path=`$CYGPATH -u "$windows_path"`
17847     new_path="$unix_path"
17848   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17849     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17850     new_path="$unix_path"
17851   fi
17852 
17853 
17854     new_path=`$WHICH "$new_path" 2> /dev/null`
17855     # bat and cmd files are not always considered executable in MSYS causing which
17856     # to not find them
17857     if test "x$new_path" = x \
17858         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17859         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17860       new_path="$path"
17861 
17862   windows_path="$new_path"
17863   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17864     unix_path=`$CYGPATH -u "$windows_path"`
17865     new_path="$unix_path"
17866   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17867     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17868     new_path="$unix_path"
17869   fi
17870 
17871     fi
17872 
17873     if test "x$new_path" = x; then
17874       # It's still not found. Now this is an unrecoverable error.
17875       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17876 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17877       has_space=`$ECHO "$complete" | $GREP " "`
17878       if test "x$has_space" != x; then
17879         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17880 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17881       fi
17882       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17883     fi
17884   fi
17885 
17886   # Now new_path has a complete unix path to the binary
17887   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17888     # Keep paths in /bin as-is, but remove trailing .exe if any
17889     new_path="${new_path/%.exe/}"
17890     # Do not save /bin paths to all_fixpath_prefixes!
17891   else
17892     # Not in mixed or Windows style, start by that.
17893     new_path=`cmd //c echo $new_path`
17894 
17895   input_path="$new_path"
17896   # Check if we need to convert this using DOS-style short mode. If the path
17897   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17898   # take no chances and rewrite it.
17899   # Note: m4 eats our [], so we need to use [ and ] instead.
17900   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17901   if test "x$has_forbidden_chars" != x; then
17902     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17903     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17904   fi
17905 
17906     # Output is in $new_path
17907 
17908   windows_path="$new_path"
17909   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17910     unix_path=`$CYGPATH -u "$windows_path"`
17911     new_path="$unix_path"
17912   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17913     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17914     new_path="$unix_path"
17915   fi
17916 
17917     # remove trailing .exe if any
17918     new_path="${new_path/%.exe/}"
17919 
17920     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17921     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17922   fi
17923 
17924     else
17925       # We're on a unix platform. Hooray! :)
17926       # First separate the path from the arguments. This will split at the first
17927       # space.
17928       complete="$FOUND_MAKE"
17929       path="${complete%% *}"
17930       tmp="$complete EOL"
17931       arguments="${tmp#* }"
17932 
17933       # Cannot rely on the command "which" here since it doesn't always work.
17934       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17935       if test -z "$is_absolute_path"; then
17936         # Path to executable is not absolute. Find it.
17937         IFS_save="$IFS"
17938         IFS=:
17939         for p in $PATH; do
17940           if test -f "$p/$path" && test -x "$p/$path"; then
17941             new_path="$p/$path"
17942             break
17943           fi
17944         done
17945         IFS="$IFS_save"
17946       else
17947         # This is an absolute path, we can use it without further modifications.
17948         new_path="$path"
17949       fi
17950 
17951       if test "x$new_path" = x; then
17952         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17953 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17954         has_space=`$ECHO "$complete" | $GREP " "`
17955         if test "x$has_space" != x; then
17956           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17957 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17958         fi
17959         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17960       fi
17961     fi
17962 
17963     # Now join together the path and the arguments once again
17964     if test "x$arguments" != xEOL; then
17965       new_complete="$new_path ${arguments% *}"
17966     else
17967       new_complete="$new_path"
17968     fi
17969 
17970     if test "x$complete" != "x$new_complete"; then
17971       FOUND_MAKE="$new_complete"
17972       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17973 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17974     fi
17975   fi
17976 
17977         fi
17978       fi
17979     fi
17980   fi
17981 
17982         fi
17983         PATH=$OLD_PATH
17984       fi
17985     fi
17986 
17987     if test "x$FOUND_MAKE" = x; then
17988       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
17989     fi
17990   fi
17991 
17992   MAKE=$FOUND_MAKE
17993 
17994   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
17995 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
17996 
17997 
17998   # Check if make supports the output sync option and if so, setup using it.
17999   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5
18000 $as_echo_n "checking if make --output-sync is supported... " >&6; }
18001   if $MAKE --version -O > /dev/null 2>&1; then
18002     OUTPUT_SYNC_SUPPORTED=true
18003     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18004 $as_echo "yes" >&6; }
18005     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5
18006 $as_echo_n "checking for output-sync value... " >&6; }
18007 
18008 # Check whether --with-output-sync was given.
18009 if test "${with_output_sync+set}" = set; then :
18010   withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync
18011 fi
18012 
18013     if test "x$OUTPUT_SYNC" = "x"; then
18014       OUTPUT_SYNC=none
18015     fi
18016     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5
18017 $as_echo "$OUTPUT_SYNC" >&6; }
18018     if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then
18019       as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5
18020     fi
18021   else
18022     OUTPUT_SYNC_SUPPORTED=false
18023     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18024 $as_echo "no" >&6; }
18025   fi
18026 
18027 
18028 
18029 
18030 
18031 
18032   # Test if find supports -delete
18033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
18034 $as_echo_n "checking if find supports -delete... " >&6; }
18035   FIND_DELETE="-delete"
18036 
18037   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
18038 
18039   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
18040 
18041   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
18042   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
18043     # No, it does not.
18044     rm $DELETEDIR/TestIfFindSupportsDelete
18045     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
18046       # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list
18047       FIND_DELETE="-print | xargs rm"
18048     else
18049       FIND_DELETE="-exec rm \{\} \+"
18050     fi
18051     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18052 $as_echo "no" >&6; }
18053   else
18054     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18055 $as_echo "yes" >&6; }
18056   fi
18057   rmdir $DELETEDIR
18058 
18059 
18060 
18061   # These tools might not be installed by default,
18062   # need hint on how to install them.
18063 
18064 
18065 
18066   # Publish this variable in the help.
18067 
18068 
18069   if test "x$UNZIP" = x; then
18070     # The variable is not set by user, try to locate tool using the code snippet
18071     for ac_prog in unzip
18072 do
18073   # Extract the first word of "$ac_prog", so it can be a program name with args.
18074 set dummy $ac_prog; ac_word=$2
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18076 $as_echo_n "checking for $ac_word... " >&6; }
18077 if ${ac_cv_path_UNZIP+:} false; then :
18078   $as_echo_n "(cached) " >&6
18079 else
18080   case $UNZIP in
18081   [\\/]* | ?:[\\/]*)
18082   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
18083   ;;
18084   *)
18085   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18086 for as_dir in $PATH
18087 do
18088   IFS=$as_save_IFS
18089   test -z "$as_dir" && as_dir=.
18090     for ac_exec_ext in '' $ac_executable_extensions; do
18091   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18092     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
18093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18094     break 2
18095   fi
18096 done
18097   done
18098 IFS=$as_save_IFS
18099 
18100   ;;
18101 esac
18102 fi
18103 UNZIP=$ac_cv_path_UNZIP
18104 if test -n "$UNZIP"; then
18105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
18106 $as_echo "$UNZIP" >&6; }
18107 else
18108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18109 $as_echo "no" >&6; }
18110 fi
18111 
18112 
18113   test -n "$UNZIP" && break
18114 done
18115 
18116   else
18117     # The variable is set, but is it from the command line or the environment?
18118 
18119     # Try to remove the string !UNZIP! from our list.
18120     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
18121     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18122       # If it failed, the variable was not from the command line. Ignore it,
18123       # but warn the user (except for BASH, which is always set by the calling BASH).
18124       if test "xUNZIP" != xBASH; then
18125         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
18126 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
18127       fi
18128       # Try to locate tool using the code snippet
18129       for ac_prog in unzip
18130 do
18131   # Extract the first word of "$ac_prog", so it can be a program name with args.
18132 set dummy $ac_prog; ac_word=$2
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18134 $as_echo_n "checking for $ac_word... " >&6; }
18135 if ${ac_cv_path_UNZIP+:} false; then :
18136   $as_echo_n "(cached) " >&6
18137 else
18138   case $UNZIP in
18139   [\\/]* | ?:[\\/]*)
18140   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
18141   ;;
18142   *)
18143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18144 for as_dir in $PATH
18145 do
18146   IFS=$as_save_IFS
18147   test -z "$as_dir" && as_dir=.
18148     for ac_exec_ext in '' $ac_executable_extensions; do
18149   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18150     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
18151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18152     break 2
18153   fi
18154 done
18155   done
18156 IFS=$as_save_IFS
18157 
18158   ;;
18159 esac
18160 fi
18161 UNZIP=$ac_cv_path_UNZIP
18162 if test -n "$UNZIP"; then
18163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
18164 $as_echo "$UNZIP" >&6; }
18165 else
18166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18167 $as_echo "no" >&6; }
18168 fi
18169 
18170 
18171   test -n "$UNZIP" && break
18172 done
18173 
18174     else
18175       # If it succeeded, then it was overridden by the user. We will use it
18176       # for the tool.
18177 
18178       # First remove it from the list of overridden variables, so we can test
18179       # for unknown variables in the end.
18180       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18181 
18182       # Check if the provided tool contains a complete path.
18183       tool_specified="$UNZIP"
18184       tool_basename="${tool_specified##*/}"
18185       if test "x$tool_basename" = "x$tool_specified"; then
18186         # A command without a complete path is provided, search $PATH.
18187         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
18188 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
18189         # Extract the first word of "$tool_basename", so it can be a program name with args.
18190 set dummy $tool_basename; ac_word=$2
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18192 $as_echo_n "checking for $ac_word... " >&6; }
18193 if ${ac_cv_path_UNZIP+:} false; then :
18194   $as_echo_n "(cached) " >&6
18195 else
18196   case $UNZIP in
18197   [\\/]* | ?:[\\/]*)
18198   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
18199   ;;
18200   *)
18201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18202 for as_dir in $PATH
18203 do
18204   IFS=$as_save_IFS
18205   test -z "$as_dir" && as_dir=.
18206     for ac_exec_ext in '' $ac_executable_extensions; do
18207   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18208     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
18209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18210     break 2
18211   fi
18212 done
18213   done
18214 IFS=$as_save_IFS
18215 
18216   ;;
18217 esac
18218 fi
18219 UNZIP=$ac_cv_path_UNZIP
18220 if test -n "$UNZIP"; then
18221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
18222 $as_echo "$UNZIP" >&6; }
18223 else
18224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18225 $as_echo "no" >&6; }
18226 fi
18227 
18228 
18229         if test "x$UNZIP" = x; then
18230           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18231         fi
18232       else
18233         # Otherwise we believe it is a complete path. Use it as it is.
18234         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
18235 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
18236         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
18237 $as_echo_n "checking for UNZIP... " >&6; }
18238         if test ! -x "$tool_specified"; then
18239           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18240 $as_echo "not found" >&6; }
18241           as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
18242         fi
18243         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18244 $as_echo "$tool_specified" >&6; }
18245       fi
18246     fi
18247   fi
18248 
18249 
18250 
18251   if test "x$UNZIP" = x; then
18252     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
18253   fi
18254 
18255 
18256 
18257 
18258 
18259   # Publish this variable in the help.
18260 
18261 
18262   if test "x$ZIP" = x; then
18263     # The variable is not set by user, try to locate tool using the code snippet
18264     for ac_prog in zip
18265 do
18266   # Extract the first word of "$ac_prog", so it can be a program name with args.
18267 set dummy $ac_prog; ac_word=$2
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18269 $as_echo_n "checking for $ac_word... " >&6; }
18270 if ${ac_cv_path_ZIP+:} false; then :
18271   $as_echo_n "(cached) " >&6
18272 else
18273   case $ZIP in
18274   [\\/]* | ?:[\\/]*)
18275   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
18276   ;;
18277   *)
18278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18279 for as_dir in $PATH
18280 do
18281   IFS=$as_save_IFS
18282   test -z "$as_dir" && as_dir=.
18283     for ac_exec_ext in '' $ac_executable_extensions; do
18284   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18285     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
18286     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18287     break 2
18288   fi
18289 done
18290   done
18291 IFS=$as_save_IFS
18292 
18293   ;;
18294 esac
18295 fi
18296 ZIP=$ac_cv_path_ZIP
18297 if test -n "$ZIP"; then
18298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
18299 $as_echo "$ZIP" >&6; }
18300 else
18301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18302 $as_echo "no" >&6; }
18303 fi
18304 
18305 
18306   test -n "$ZIP" && break
18307 done
18308 
18309   else
18310     # The variable is set, but is it from the command line or the environment?
18311 
18312     # Try to remove the string !ZIP! from our list.
18313     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
18314     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18315       # If it failed, the variable was not from the command line. Ignore it,
18316       # but warn the user (except for BASH, which is always set by the calling BASH).
18317       if test "xZIP" != xBASH; then
18318         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
18319 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
18320       fi
18321       # Try to locate tool using the code snippet
18322       for ac_prog in zip
18323 do
18324   # Extract the first word of "$ac_prog", so it can be a program name with args.
18325 set dummy $ac_prog; ac_word=$2
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18327 $as_echo_n "checking for $ac_word... " >&6; }
18328 if ${ac_cv_path_ZIP+:} false; then :
18329   $as_echo_n "(cached) " >&6
18330 else
18331   case $ZIP in
18332   [\\/]* | ?:[\\/]*)
18333   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
18334   ;;
18335   *)
18336   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18337 for as_dir in $PATH
18338 do
18339   IFS=$as_save_IFS
18340   test -z "$as_dir" && as_dir=.
18341     for ac_exec_ext in '' $ac_executable_extensions; do
18342   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18343     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
18344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18345     break 2
18346   fi
18347 done
18348   done
18349 IFS=$as_save_IFS
18350 
18351   ;;
18352 esac
18353 fi
18354 ZIP=$ac_cv_path_ZIP
18355 if test -n "$ZIP"; then
18356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
18357 $as_echo "$ZIP" >&6; }
18358 else
18359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18360 $as_echo "no" >&6; }
18361 fi
18362 
18363 
18364   test -n "$ZIP" && break
18365 done
18366 
18367     else
18368       # If it succeeded, then it was overridden by the user. We will use it
18369       # for the tool.
18370 
18371       # First remove it from the list of overridden variables, so we can test
18372       # for unknown variables in the end.
18373       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18374 
18375       # Check if the provided tool contains a complete path.
18376       tool_specified="$ZIP"
18377       tool_basename="${tool_specified##*/}"
18378       if test "x$tool_basename" = "x$tool_specified"; then
18379         # A command without a complete path is provided, search $PATH.
18380         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
18381 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
18382         # Extract the first word of "$tool_basename", so it can be a program name with args.
18383 set dummy $tool_basename; ac_word=$2
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18385 $as_echo_n "checking for $ac_word... " >&6; }
18386 if ${ac_cv_path_ZIP+:} false; then :
18387   $as_echo_n "(cached) " >&6
18388 else
18389   case $ZIP in
18390   [\\/]* | ?:[\\/]*)
18391   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
18392   ;;
18393   *)
18394   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18395 for as_dir in $PATH
18396 do
18397   IFS=$as_save_IFS
18398   test -z "$as_dir" && as_dir=.
18399     for ac_exec_ext in '' $ac_executable_extensions; do
18400   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18401     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
18402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18403     break 2
18404   fi
18405 done
18406   done
18407 IFS=$as_save_IFS
18408 
18409   ;;
18410 esac
18411 fi
18412 ZIP=$ac_cv_path_ZIP
18413 if test -n "$ZIP"; then
18414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
18415 $as_echo "$ZIP" >&6; }
18416 else
18417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18418 $as_echo "no" >&6; }
18419 fi
18420 
18421 
18422         if test "x$ZIP" = x; then
18423           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18424         fi
18425       else
18426         # Otherwise we believe it is a complete path. Use it as it is.
18427         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
18428 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
18429         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
18430 $as_echo_n "checking for ZIP... " >&6; }
18431         if test ! -x "$tool_specified"; then
18432           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18433 $as_echo "not found" >&6; }
18434           as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
18435         fi
18436         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18437 $as_echo "$tool_specified" >&6; }
18438       fi
18439     fi
18440   fi
18441 
18442 
18443 
18444   if test "x$ZIP" = x; then
18445     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
18446   fi
18447 
18448 
18449 
18450   # Non-required basic tools
18451 
18452 
18453 
18454   # Publish this variable in the help.
18455 
18456 
18457   if test "x$LDD" = x; then
18458     # The variable is not set by user, try to locate tool using the code snippet
18459     for ac_prog in ldd
18460 do
18461   # Extract the first word of "$ac_prog", so it can be a program name with args.
18462 set dummy $ac_prog; ac_word=$2
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18464 $as_echo_n "checking for $ac_word... " >&6; }
18465 if ${ac_cv_path_LDD+:} false; then :
18466   $as_echo_n "(cached) " >&6
18467 else
18468   case $LDD in
18469   [\\/]* | ?:[\\/]*)
18470   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
18471   ;;
18472   *)
18473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18474 for as_dir in $PATH
18475 do
18476   IFS=$as_save_IFS
18477   test -z "$as_dir" && as_dir=.
18478     for ac_exec_ext in '' $ac_executable_extensions; do
18479   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18480     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
18481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18482     break 2
18483   fi
18484 done
18485   done
18486 IFS=$as_save_IFS
18487 
18488   ;;
18489 esac
18490 fi
18491 LDD=$ac_cv_path_LDD
18492 if test -n "$LDD"; then
18493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
18494 $as_echo "$LDD" >&6; }
18495 else
18496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18497 $as_echo "no" >&6; }
18498 fi
18499 
18500 
18501   test -n "$LDD" && break
18502 done
18503 
18504   else
18505     # The variable is set, but is it from the command line or the environment?
18506 
18507     # Try to remove the string !LDD! from our list.
18508     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
18509     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18510       # If it failed, the variable was not from the command line. Ignore it,
18511       # but warn the user (except for BASH, which is always set by the calling BASH).
18512       if test "xLDD" != xBASH; then
18513         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
18514 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
18515       fi
18516       # Try to locate tool using the code snippet
18517       for ac_prog in ldd
18518 do
18519   # Extract the first word of "$ac_prog", so it can be a program name with args.
18520 set dummy $ac_prog; ac_word=$2
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18522 $as_echo_n "checking for $ac_word... " >&6; }
18523 if ${ac_cv_path_LDD+:} false; then :
18524   $as_echo_n "(cached) " >&6
18525 else
18526   case $LDD in
18527   [\\/]* | ?:[\\/]*)
18528   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
18529   ;;
18530   *)
18531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18532 for as_dir in $PATH
18533 do
18534   IFS=$as_save_IFS
18535   test -z "$as_dir" && as_dir=.
18536     for ac_exec_ext in '' $ac_executable_extensions; do
18537   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18538     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
18539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18540     break 2
18541   fi
18542 done
18543   done
18544 IFS=$as_save_IFS
18545 
18546   ;;
18547 esac
18548 fi
18549 LDD=$ac_cv_path_LDD
18550 if test -n "$LDD"; then
18551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
18552 $as_echo "$LDD" >&6; }
18553 else
18554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18555 $as_echo "no" >&6; }
18556 fi
18557 
18558 
18559   test -n "$LDD" && break
18560 done
18561 
18562     else
18563       # If it succeeded, then it was overridden by the user. We will use it
18564       # for the tool.
18565 
18566       # First remove it from the list of overridden variables, so we can test
18567       # for unknown variables in the end.
18568       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18569 
18570       # Check if the provided tool contains a complete path.
18571       tool_specified="$LDD"
18572       tool_basename="${tool_specified##*/}"
18573       if test "x$tool_basename" = "x$tool_specified"; then
18574         # A command without a complete path is provided, search $PATH.
18575         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
18576 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
18577         # Extract the first word of "$tool_basename", so it can be a program name with args.
18578 set dummy $tool_basename; ac_word=$2
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18580 $as_echo_n "checking for $ac_word... " >&6; }
18581 if ${ac_cv_path_LDD+:} false; then :
18582   $as_echo_n "(cached) " >&6
18583 else
18584   case $LDD in
18585   [\\/]* | ?:[\\/]*)
18586   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
18587   ;;
18588   *)
18589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18590 for as_dir in $PATH
18591 do
18592   IFS=$as_save_IFS
18593   test -z "$as_dir" && as_dir=.
18594     for ac_exec_ext in '' $ac_executable_extensions; do
18595   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18596     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
18597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18598     break 2
18599   fi
18600 done
18601   done
18602 IFS=$as_save_IFS
18603 
18604   ;;
18605 esac
18606 fi
18607 LDD=$ac_cv_path_LDD
18608 if test -n "$LDD"; then
18609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
18610 $as_echo "$LDD" >&6; }
18611 else
18612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18613 $as_echo "no" >&6; }
18614 fi
18615 
18616 
18617         if test "x$LDD" = x; then
18618           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18619         fi
18620       else
18621         # Otherwise we believe it is a complete path. Use it as it is.
18622         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
18623 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
18624         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
18625 $as_echo_n "checking for LDD... " >&6; }
18626         if test ! -x "$tool_specified"; then
18627           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18628 $as_echo "not found" >&6; }
18629           as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
18630         fi
18631         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18632 $as_echo "$tool_specified" >&6; }
18633       fi
18634     fi
18635   fi
18636 
18637 
18638   if test "x$LDD" = "x"; then
18639     # List shared lib dependencies is used for
18640     # debug output and checking for forbidden dependencies.
18641     # We can build without it.
18642     LDD="true"
18643   fi
18644 
18645 
18646   # Publish this variable in the help.
18647 
18648 
18649   if test "x$OTOOL" = x; then
18650     # The variable is not set by user, try to locate tool using the code snippet
18651     for ac_prog in otool
18652 do
18653   # Extract the first word of "$ac_prog", so it can be a program name with args.
18654 set dummy $ac_prog; ac_word=$2
18655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18656 $as_echo_n "checking for $ac_word... " >&6; }
18657 if ${ac_cv_path_OTOOL+:} false; then :
18658   $as_echo_n "(cached) " >&6
18659 else
18660   case $OTOOL in
18661   [\\/]* | ?:[\\/]*)
18662   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
18663   ;;
18664   *)
18665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18666 for as_dir in $PATH
18667 do
18668   IFS=$as_save_IFS
18669   test -z "$as_dir" && as_dir=.
18670     for ac_exec_ext in '' $ac_executable_extensions; do
18671   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18672     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
18673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18674     break 2
18675   fi
18676 done
18677   done
18678 IFS=$as_save_IFS
18679 
18680   ;;
18681 esac
18682 fi
18683 OTOOL=$ac_cv_path_OTOOL
18684 if test -n "$OTOOL"; then
18685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
18686 $as_echo "$OTOOL" >&6; }
18687 else
18688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18689 $as_echo "no" >&6; }
18690 fi
18691 
18692 
18693   test -n "$OTOOL" && break
18694 done
18695 
18696   else
18697     # The variable is set, but is it from the command line or the environment?
18698 
18699     # Try to remove the string !OTOOL! from our list.
18700     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
18701     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18702       # If it failed, the variable was not from the command line. Ignore it,
18703       # but warn the user (except for BASH, which is always set by the calling BASH).
18704       if test "xOTOOL" != xBASH; then
18705         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
18706 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
18707       fi
18708       # Try to locate tool using the code snippet
18709       for ac_prog in otool
18710 do
18711   # Extract the first word of "$ac_prog", so it can be a program name with args.
18712 set dummy $ac_prog; ac_word=$2
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18714 $as_echo_n "checking for $ac_word... " >&6; }
18715 if ${ac_cv_path_OTOOL+:} false; then :
18716   $as_echo_n "(cached) " >&6
18717 else
18718   case $OTOOL in
18719   [\\/]* | ?:[\\/]*)
18720   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
18721   ;;
18722   *)
18723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18724 for as_dir in $PATH
18725 do
18726   IFS=$as_save_IFS
18727   test -z "$as_dir" && as_dir=.
18728     for ac_exec_ext in '' $ac_executable_extensions; do
18729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18730     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
18731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18732     break 2
18733   fi
18734 done
18735   done
18736 IFS=$as_save_IFS
18737 
18738   ;;
18739 esac
18740 fi
18741 OTOOL=$ac_cv_path_OTOOL
18742 if test -n "$OTOOL"; then
18743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
18744 $as_echo "$OTOOL" >&6; }
18745 else
18746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18747 $as_echo "no" >&6; }
18748 fi
18749 
18750 
18751   test -n "$OTOOL" && break
18752 done
18753 
18754     else
18755       # If it succeeded, then it was overridden by the user. We will use it
18756       # for the tool.
18757 
18758       # First remove it from the list of overridden variables, so we can test
18759       # for unknown variables in the end.
18760       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18761 
18762       # Check if the provided tool contains a complete path.
18763       tool_specified="$OTOOL"
18764       tool_basename="${tool_specified##*/}"
18765       if test "x$tool_basename" = "x$tool_specified"; then
18766         # A command without a complete path is provided, search $PATH.
18767         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
18768 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
18769         # Extract the first word of "$tool_basename", so it can be a program name with args.
18770 set dummy $tool_basename; ac_word=$2
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18772 $as_echo_n "checking for $ac_word... " >&6; }
18773 if ${ac_cv_path_OTOOL+:} false; then :
18774   $as_echo_n "(cached) " >&6
18775 else
18776   case $OTOOL in
18777   [\\/]* | ?:[\\/]*)
18778   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
18779   ;;
18780   *)
18781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18782 for as_dir in $PATH
18783 do
18784   IFS=$as_save_IFS
18785   test -z "$as_dir" && as_dir=.
18786     for ac_exec_ext in '' $ac_executable_extensions; do
18787   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18788     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
18789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18790     break 2
18791   fi
18792 done
18793   done
18794 IFS=$as_save_IFS
18795 
18796   ;;
18797 esac
18798 fi
18799 OTOOL=$ac_cv_path_OTOOL
18800 if test -n "$OTOOL"; then
18801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
18802 $as_echo "$OTOOL" >&6; }
18803 else
18804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18805 $as_echo "no" >&6; }
18806 fi
18807 
18808 
18809         if test "x$OTOOL" = x; then
18810           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18811         fi
18812       else
18813         # Otherwise we believe it is a complete path. Use it as it is.
18814         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
18815 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
18816         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
18817 $as_echo_n "checking for OTOOL... " >&6; }
18818         if test ! -x "$tool_specified"; then
18819           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18820 $as_echo "not found" >&6; }
18821           as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
18822         fi
18823         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18824 $as_echo "$tool_specified" >&6; }
18825       fi
18826     fi
18827   fi
18828 
18829 
18830   if test "x$OTOOL" = "x"; then
18831     OTOOL="true"
18832   fi
18833 
18834 
18835   # Publish this variable in the help.
18836 
18837 
18838   if test "x$READELF" = x; then
18839     # The variable is not set by user, try to locate tool using the code snippet
18840     for ac_prog in greadelf readelf
18841 do
18842   # Extract the first word of "$ac_prog", so it can be a program name with args.
18843 set dummy $ac_prog; ac_word=$2
18844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18845 $as_echo_n "checking for $ac_word... " >&6; }
18846 if ${ac_cv_path_READELF+:} false; then :
18847   $as_echo_n "(cached) " >&6
18848 else
18849   case $READELF in
18850   [\\/]* | ?:[\\/]*)
18851   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
18852   ;;
18853   *)
18854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18855 for as_dir in $PATH
18856 do
18857   IFS=$as_save_IFS
18858   test -z "$as_dir" && as_dir=.
18859     for ac_exec_ext in '' $ac_executable_extensions; do
18860   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18861     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
18862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18863     break 2
18864   fi
18865 done
18866   done
18867 IFS=$as_save_IFS
18868 
18869   ;;
18870 esac
18871 fi
18872 READELF=$ac_cv_path_READELF
18873 if test -n "$READELF"; then
18874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
18875 $as_echo "$READELF" >&6; }
18876 else
18877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18878 $as_echo "no" >&6; }
18879 fi
18880 
18881 
18882   test -n "$READELF" && break
18883 done
18884 
18885   else
18886     # The variable is set, but is it from the command line or the environment?
18887 
18888     # Try to remove the string !READELF! from our list.
18889     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
18890     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18891       # If it failed, the variable was not from the command line. Ignore it,
18892       # but warn the user (except for BASH, which is always set by the calling BASH).
18893       if test "xREADELF" != xBASH; then
18894         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
18895 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
18896       fi
18897       # Try to locate tool using the code snippet
18898       for ac_prog in greadelf readelf
18899 do
18900   # Extract the first word of "$ac_prog", so it can be a program name with args.
18901 set dummy $ac_prog; ac_word=$2
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18903 $as_echo_n "checking for $ac_word... " >&6; }
18904 if ${ac_cv_path_READELF+:} false; then :
18905   $as_echo_n "(cached) " >&6
18906 else
18907   case $READELF in
18908   [\\/]* | ?:[\\/]*)
18909   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
18910   ;;
18911   *)
18912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18913 for as_dir in $PATH
18914 do
18915   IFS=$as_save_IFS
18916   test -z "$as_dir" && as_dir=.
18917     for ac_exec_ext in '' $ac_executable_extensions; do
18918   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18919     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
18920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18921     break 2
18922   fi
18923 done
18924   done
18925 IFS=$as_save_IFS
18926 
18927   ;;
18928 esac
18929 fi
18930 READELF=$ac_cv_path_READELF
18931 if test -n "$READELF"; then
18932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
18933 $as_echo "$READELF" >&6; }
18934 else
18935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18936 $as_echo "no" >&6; }
18937 fi
18938 
18939 
18940   test -n "$READELF" && break
18941 done
18942 
18943     else
18944       # If it succeeded, then it was overridden by the user. We will use it
18945       # for the tool.
18946 
18947       # First remove it from the list of overridden variables, so we can test
18948       # for unknown variables in the end.
18949       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18950 
18951       # Check if the provided tool contains a complete path.
18952       tool_specified="$READELF"
18953       tool_basename="${tool_specified##*/}"
18954       if test "x$tool_basename" = "x$tool_specified"; then
18955         # A command without a complete path is provided, search $PATH.
18956         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
18957 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
18958         # Extract the first word of "$tool_basename", so it can be a program name with args.
18959 set dummy $tool_basename; ac_word=$2
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18961 $as_echo_n "checking for $ac_word... " >&6; }
18962 if ${ac_cv_path_READELF+:} false; then :
18963   $as_echo_n "(cached) " >&6
18964 else
18965   case $READELF in
18966   [\\/]* | ?:[\\/]*)
18967   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
18968   ;;
18969   *)
18970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18971 for as_dir in $PATH
18972 do
18973   IFS=$as_save_IFS
18974   test -z "$as_dir" && as_dir=.
18975     for ac_exec_ext in '' $ac_executable_extensions; do
18976   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18977     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
18978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18979     break 2
18980   fi
18981 done
18982   done
18983 IFS=$as_save_IFS
18984 
18985   ;;
18986 esac
18987 fi
18988 READELF=$ac_cv_path_READELF
18989 if test -n "$READELF"; then
18990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
18991 $as_echo "$READELF" >&6; }
18992 else
18993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18994 $as_echo "no" >&6; }
18995 fi
18996 
18997 
18998         if test "x$READELF" = x; then
18999           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19000         fi
19001       else
19002         # Otherwise we believe it is a complete path. Use it as it is.
19003         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
19004 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
19005         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
19006 $as_echo_n "checking for READELF... " >&6; }
19007         if test ! -x "$tool_specified"; then
19008           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19009 $as_echo "not found" >&6; }
19010           as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
19011         fi
19012         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19013 $as_echo "$tool_specified" >&6; }
19014       fi
19015     fi
19016   fi
19017 
19018 
19019 
19020 
19021   # Publish this variable in the help.
19022 
19023 
19024   if test "x$HG" = x; then
19025     # The variable is not set by user, try to locate tool using the code snippet
19026     for ac_prog in hg
19027 do
19028   # Extract the first word of "$ac_prog", so it can be a program name with args.
19029 set dummy $ac_prog; ac_word=$2
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19031 $as_echo_n "checking for $ac_word... " >&6; }
19032 if ${ac_cv_path_HG+:} false; then :
19033   $as_echo_n "(cached) " >&6
19034 else
19035   case $HG in
19036   [\\/]* | ?:[\\/]*)
19037   ac_cv_path_HG="$HG" # Let the user override the test with a path.
19038   ;;
19039   *)
19040   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19041 for as_dir in $PATH
19042 do
19043   IFS=$as_save_IFS
19044   test -z "$as_dir" && as_dir=.
19045     for ac_exec_ext in '' $ac_executable_extensions; do
19046   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19047     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
19048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19049     break 2
19050   fi
19051 done
19052   done
19053 IFS=$as_save_IFS
19054 
19055   ;;
19056 esac
19057 fi
19058 HG=$ac_cv_path_HG
19059 if test -n "$HG"; then
19060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
19061 $as_echo "$HG" >&6; }
19062 else
19063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19064 $as_echo "no" >&6; }
19065 fi
19066 
19067 
19068   test -n "$HG" && break
19069 done
19070 
19071   else
19072     # The variable is set, but is it from the command line or the environment?
19073 
19074     # Try to remove the string !HG! from our list.
19075     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
19076     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19077       # If it failed, the variable was not from the command line. Ignore it,
19078       # but warn the user (except for BASH, which is always set by the calling BASH).
19079       if test "xHG" != xBASH; then
19080         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
19081 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
19082       fi
19083       # Try to locate tool using the code snippet
19084       for ac_prog in hg
19085 do
19086   # Extract the first word of "$ac_prog", so it can be a program name with args.
19087 set dummy $ac_prog; ac_word=$2
19088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19089 $as_echo_n "checking for $ac_word... " >&6; }
19090 if ${ac_cv_path_HG+:} false; then :
19091   $as_echo_n "(cached) " >&6
19092 else
19093   case $HG in
19094   [\\/]* | ?:[\\/]*)
19095   ac_cv_path_HG="$HG" # Let the user override the test with a path.
19096   ;;
19097   *)
19098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19099 for as_dir in $PATH
19100 do
19101   IFS=$as_save_IFS
19102   test -z "$as_dir" && as_dir=.
19103     for ac_exec_ext in '' $ac_executable_extensions; do
19104   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19105     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
19106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19107     break 2
19108   fi
19109 done
19110   done
19111 IFS=$as_save_IFS
19112 
19113   ;;
19114 esac
19115 fi
19116 HG=$ac_cv_path_HG
19117 if test -n "$HG"; then
19118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
19119 $as_echo "$HG" >&6; }
19120 else
19121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19122 $as_echo "no" >&6; }
19123 fi
19124 
19125 
19126   test -n "$HG" && break
19127 done
19128 
19129     else
19130       # If it succeeded, then it was overridden by the user. We will use it
19131       # for the tool.
19132 
19133       # First remove it from the list of overridden variables, so we can test
19134       # for unknown variables in the end.
19135       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19136 
19137       # Check if the provided tool contains a complete path.
19138       tool_specified="$HG"
19139       tool_basename="${tool_specified##*/}"
19140       if test "x$tool_basename" = "x$tool_specified"; then
19141         # A command without a complete path is provided, search $PATH.
19142         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
19143 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
19144         # Extract the first word of "$tool_basename", so it can be a program name with args.
19145 set dummy $tool_basename; ac_word=$2
19146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19147 $as_echo_n "checking for $ac_word... " >&6; }
19148 if ${ac_cv_path_HG+:} false; then :
19149   $as_echo_n "(cached) " >&6
19150 else
19151   case $HG in
19152   [\\/]* | ?:[\\/]*)
19153   ac_cv_path_HG="$HG" # Let the user override the test with a path.
19154   ;;
19155   *)
19156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19157 for as_dir in $PATH
19158 do
19159   IFS=$as_save_IFS
19160   test -z "$as_dir" && as_dir=.
19161     for ac_exec_ext in '' $ac_executable_extensions; do
19162   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19163     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
19164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19165     break 2
19166   fi
19167 done
19168   done
19169 IFS=$as_save_IFS
19170 
19171   ;;
19172 esac
19173 fi
19174 HG=$ac_cv_path_HG
19175 if test -n "$HG"; then
19176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
19177 $as_echo "$HG" >&6; }
19178 else
19179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19180 $as_echo "no" >&6; }
19181 fi
19182 
19183 
19184         if test "x$HG" = x; then
19185           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19186         fi
19187       else
19188         # Otherwise we believe it is a complete path. Use it as it is.
19189         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
19190 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
19191         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
19192 $as_echo_n "checking for HG... " >&6; }
19193         if test ! -x "$tool_specified"; then
19194           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19195 $as_echo "not found" >&6; }
19196           as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
19197         fi
19198         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19199 $as_echo "$tool_specified" >&6; }
19200       fi
19201     fi
19202   fi
19203 
19204 
19205 
19206 
19207   # Publish this variable in the help.
19208 
19209 
19210   if test "x$STAT" = x; then
19211     # The variable is not set by user, try to locate tool using the code snippet
19212     for ac_prog in stat
19213 do
19214   # Extract the first word of "$ac_prog", so it can be a program name with args.
19215 set dummy $ac_prog; ac_word=$2
19216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19217 $as_echo_n "checking for $ac_word... " >&6; }
19218 if ${ac_cv_path_STAT+:} false; then :
19219   $as_echo_n "(cached) " >&6
19220 else
19221   case $STAT in
19222   [\\/]* | ?:[\\/]*)
19223   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
19224   ;;
19225   *)
19226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19227 for as_dir in $PATH
19228 do
19229   IFS=$as_save_IFS
19230   test -z "$as_dir" && as_dir=.
19231     for ac_exec_ext in '' $ac_executable_extensions; do
19232   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19233     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
19234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19235     break 2
19236   fi
19237 done
19238   done
19239 IFS=$as_save_IFS
19240 
19241   ;;
19242 esac
19243 fi
19244 STAT=$ac_cv_path_STAT
19245 if test -n "$STAT"; then
19246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
19247 $as_echo "$STAT" >&6; }
19248 else
19249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19250 $as_echo "no" >&6; }
19251 fi
19252 
19253 
19254   test -n "$STAT" && break
19255 done
19256 
19257   else
19258     # The variable is set, but is it from the command line or the environment?
19259 
19260     # Try to remove the string !STAT! from our list.
19261     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
19262     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19263       # If it failed, the variable was not from the command line. Ignore it,
19264       # but warn the user (except for BASH, which is always set by the calling BASH).
19265       if test "xSTAT" != xBASH; then
19266         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
19267 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
19268       fi
19269       # Try to locate tool using the code snippet
19270       for ac_prog in stat
19271 do
19272   # Extract the first word of "$ac_prog", so it can be a program name with args.
19273 set dummy $ac_prog; ac_word=$2
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19275 $as_echo_n "checking for $ac_word... " >&6; }
19276 if ${ac_cv_path_STAT+:} false; then :
19277   $as_echo_n "(cached) " >&6
19278 else
19279   case $STAT in
19280   [\\/]* | ?:[\\/]*)
19281   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
19282   ;;
19283   *)
19284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19285 for as_dir in $PATH
19286 do
19287   IFS=$as_save_IFS
19288   test -z "$as_dir" && as_dir=.
19289     for ac_exec_ext in '' $ac_executable_extensions; do
19290   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19291     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
19292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19293     break 2
19294   fi
19295 done
19296   done
19297 IFS=$as_save_IFS
19298 
19299   ;;
19300 esac
19301 fi
19302 STAT=$ac_cv_path_STAT
19303 if test -n "$STAT"; then
19304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
19305 $as_echo "$STAT" >&6; }
19306 else
19307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19308 $as_echo "no" >&6; }
19309 fi
19310 
19311 
19312   test -n "$STAT" && break
19313 done
19314 
19315     else
19316       # If it succeeded, then it was overridden by the user. We will use it
19317       # for the tool.
19318 
19319       # First remove it from the list of overridden variables, so we can test
19320       # for unknown variables in the end.
19321       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19322 
19323       # Check if the provided tool contains a complete path.
19324       tool_specified="$STAT"
19325       tool_basename="${tool_specified##*/}"
19326       if test "x$tool_basename" = "x$tool_specified"; then
19327         # A command without a complete path is provided, search $PATH.
19328         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
19329 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
19330         # Extract the first word of "$tool_basename", so it can be a program name with args.
19331 set dummy $tool_basename; ac_word=$2
19332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19333 $as_echo_n "checking for $ac_word... " >&6; }
19334 if ${ac_cv_path_STAT+:} false; then :
19335   $as_echo_n "(cached) " >&6
19336 else
19337   case $STAT in
19338   [\\/]* | ?:[\\/]*)
19339   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
19340   ;;
19341   *)
19342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19343 for as_dir in $PATH
19344 do
19345   IFS=$as_save_IFS
19346   test -z "$as_dir" && as_dir=.
19347     for ac_exec_ext in '' $ac_executable_extensions; do
19348   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19349     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
19350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19351     break 2
19352   fi
19353 done
19354   done
19355 IFS=$as_save_IFS
19356 
19357   ;;
19358 esac
19359 fi
19360 STAT=$ac_cv_path_STAT
19361 if test -n "$STAT"; then
19362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
19363 $as_echo "$STAT" >&6; }
19364 else
19365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19366 $as_echo "no" >&6; }
19367 fi
19368 
19369 
19370         if test "x$STAT" = x; then
19371           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19372         fi
19373       else
19374         # Otherwise we believe it is a complete path. Use it as it is.
19375         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
19376 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
19377         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
19378 $as_echo_n "checking for STAT... " >&6; }
19379         if test ! -x "$tool_specified"; then
19380           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19381 $as_echo "not found" >&6; }
19382           as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
19383         fi
19384         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19385 $as_echo "$tool_specified" >&6; }
19386       fi
19387     fi
19388   fi
19389 
19390 
19391 
19392 
19393   # Publish this variable in the help.
19394 
19395 
19396   if test "x$TIME" = x; then
19397     # The variable is not set by user, try to locate tool using the code snippet
19398     for ac_prog in time
19399 do
19400   # Extract the first word of "$ac_prog", so it can be a program name with args.
19401 set dummy $ac_prog; ac_word=$2
19402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19403 $as_echo_n "checking for $ac_word... " >&6; }
19404 if ${ac_cv_path_TIME+:} false; then :
19405   $as_echo_n "(cached) " >&6
19406 else
19407   case $TIME in
19408   [\\/]* | ?:[\\/]*)
19409   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
19410   ;;
19411   *)
19412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19413 for as_dir in $PATH
19414 do
19415   IFS=$as_save_IFS
19416   test -z "$as_dir" && as_dir=.
19417     for ac_exec_ext in '' $ac_executable_extensions; do
19418   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19419     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
19420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19421     break 2
19422   fi
19423 done
19424   done
19425 IFS=$as_save_IFS
19426 
19427   ;;
19428 esac
19429 fi
19430 TIME=$ac_cv_path_TIME
19431 if test -n "$TIME"; then
19432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
19433 $as_echo "$TIME" >&6; }
19434 else
19435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19436 $as_echo "no" >&6; }
19437 fi
19438 
19439 
19440   test -n "$TIME" && break
19441 done
19442 
19443   else
19444     # The variable is set, but is it from the command line or the environment?
19445 
19446     # Try to remove the string !TIME! from our list.
19447     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
19448     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19449       # If it failed, the variable was not from the command line. Ignore it,
19450       # but warn the user (except for BASH, which is always set by the calling BASH).
19451       if test "xTIME" != xBASH; then
19452         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
19453 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
19454       fi
19455       # Try to locate tool using the code snippet
19456       for ac_prog in time
19457 do
19458   # Extract the first word of "$ac_prog", so it can be a program name with args.
19459 set dummy $ac_prog; ac_word=$2
19460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19461 $as_echo_n "checking for $ac_word... " >&6; }
19462 if ${ac_cv_path_TIME+:} false; then :
19463   $as_echo_n "(cached) " >&6
19464 else
19465   case $TIME in
19466   [\\/]* | ?:[\\/]*)
19467   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
19468   ;;
19469   *)
19470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19471 for as_dir in $PATH
19472 do
19473   IFS=$as_save_IFS
19474   test -z "$as_dir" && as_dir=.
19475     for ac_exec_ext in '' $ac_executable_extensions; do
19476   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19477     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
19478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19479     break 2
19480   fi
19481 done
19482   done
19483 IFS=$as_save_IFS
19484 
19485   ;;
19486 esac
19487 fi
19488 TIME=$ac_cv_path_TIME
19489 if test -n "$TIME"; then
19490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
19491 $as_echo "$TIME" >&6; }
19492 else
19493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19494 $as_echo "no" >&6; }
19495 fi
19496 
19497 
19498   test -n "$TIME" && break
19499 done
19500 
19501     else
19502       # If it succeeded, then it was overridden by the user. We will use it
19503       # for the tool.
19504 
19505       # First remove it from the list of overridden variables, so we can test
19506       # for unknown variables in the end.
19507       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19508 
19509       # Check if the provided tool contains a complete path.
19510       tool_specified="$TIME"
19511       tool_basename="${tool_specified##*/}"
19512       if test "x$tool_basename" = "x$tool_specified"; then
19513         # A command without a complete path is provided, search $PATH.
19514         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
19515 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
19516         # Extract the first word of "$tool_basename", so it can be a program name with args.
19517 set dummy $tool_basename; ac_word=$2
19518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19519 $as_echo_n "checking for $ac_word... " >&6; }
19520 if ${ac_cv_path_TIME+:} false; then :
19521   $as_echo_n "(cached) " >&6
19522 else
19523   case $TIME in
19524   [\\/]* | ?:[\\/]*)
19525   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
19526   ;;
19527   *)
19528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19529 for as_dir in $PATH
19530 do
19531   IFS=$as_save_IFS
19532   test -z "$as_dir" && as_dir=.
19533     for ac_exec_ext in '' $ac_executable_extensions; do
19534   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19535     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
19536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19537     break 2
19538   fi
19539 done
19540   done
19541 IFS=$as_save_IFS
19542 
19543   ;;
19544 esac
19545 fi
19546 TIME=$ac_cv_path_TIME
19547 if test -n "$TIME"; then
19548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
19549 $as_echo "$TIME" >&6; }
19550 else
19551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19552 $as_echo "no" >&6; }
19553 fi
19554 
19555 
19556         if test "x$TIME" = x; then
19557           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19558         fi
19559       else
19560         # Otherwise we believe it is a complete path. Use it as it is.
19561         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
19562 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
19563         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
19564 $as_echo_n "checking for TIME... " >&6; }
19565         if test ! -x "$tool_specified"; then
19566           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19567 $as_echo "not found" >&6; }
19568           as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
19569         fi
19570         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19571 $as_echo "$tool_specified" >&6; }
19572       fi
19573     fi
19574   fi
19575 
19576 
19577   # Check if it's GNU time
19578   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
19579   if test "x$IS_GNU_TIME" != x; then
19580     IS_GNU_TIME=yes
19581   else
19582     IS_GNU_TIME=no
19583   fi
19584 
19585 
19586   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
19587 
19588 
19589 
19590   # Publish this variable in the help.
19591 
19592 
19593   if test "x$DSYMUTIL" = x; then
19594     # The variable is not set by user, try to locate tool using the code snippet
19595     for ac_prog in dsymutil
19596 do
19597   # Extract the first word of "$ac_prog", so it can be a program name with args.
19598 set dummy $ac_prog; ac_word=$2
19599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19600 $as_echo_n "checking for $ac_word... " >&6; }
19601 if ${ac_cv_path_DSYMUTIL+:} false; then :
19602   $as_echo_n "(cached) " >&6
19603 else
19604   case $DSYMUTIL in
19605   [\\/]* | ?:[\\/]*)
19606   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
19607   ;;
19608   *)
19609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19610 for as_dir in $PATH
19611 do
19612   IFS=$as_save_IFS
19613   test -z "$as_dir" && as_dir=.
19614     for ac_exec_ext in '' $ac_executable_extensions; do
19615   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19616     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
19617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19618     break 2
19619   fi
19620 done
19621   done
19622 IFS=$as_save_IFS
19623 
19624   ;;
19625 esac
19626 fi
19627 DSYMUTIL=$ac_cv_path_DSYMUTIL
19628 if test -n "$DSYMUTIL"; then
19629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
19630 $as_echo "$DSYMUTIL" >&6; }
19631 else
19632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19633 $as_echo "no" >&6; }
19634 fi
19635 
19636 
19637   test -n "$DSYMUTIL" && break
19638 done
19639 
19640   else
19641     # The variable is set, but is it from the command line or the environment?
19642 
19643     # Try to remove the string !DSYMUTIL! from our list.
19644     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
19645     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19646       # If it failed, the variable was not from the command line. Ignore it,
19647       # but warn the user (except for BASH, which is always set by the calling BASH).
19648       if test "xDSYMUTIL" != xBASH; then
19649         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
19650 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
19651       fi
19652       # Try to locate tool using the code snippet
19653       for ac_prog in dsymutil
19654 do
19655   # Extract the first word of "$ac_prog", so it can be a program name with args.
19656 set dummy $ac_prog; ac_word=$2
19657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19658 $as_echo_n "checking for $ac_word... " >&6; }
19659 if ${ac_cv_path_DSYMUTIL+:} false; then :
19660   $as_echo_n "(cached) " >&6
19661 else
19662   case $DSYMUTIL in
19663   [\\/]* | ?:[\\/]*)
19664   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
19665   ;;
19666   *)
19667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19668 for as_dir in $PATH
19669 do
19670   IFS=$as_save_IFS
19671   test -z "$as_dir" && as_dir=.
19672     for ac_exec_ext in '' $ac_executable_extensions; do
19673   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19674     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
19675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19676     break 2
19677   fi
19678 done
19679   done
19680 IFS=$as_save_IFS
19681 
19682   ;;
19683 esac
19684 fi
19685 DSYMUTIL=$ac_cv_path_DSYMUTIL
19686 if test -n "$DSYMUTIL"; then
19687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
19688 $as_echo "$DSYMUTIL" >&6; }
19689 else
19690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19691 $as_echo "no" >&6; }
19692 fi
19693 
19694 
19695   test -n "$DSYMUTIL" && break
19696 done
19697 
19698     else
19699       # If it succeeded, then it was overridden by the user. We will use it
19700       # for the tool.
19701 
19702       # First remove it from the list of overridden variables, so we can test
19703       # for unknown variables in the end.
19704       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19705 
19706       # Check if the provided tool contains a complete path.
19707       tool_specified="$DSYMUTIL"
19708       tool_basename="${tool_specified##*/}"
19709       if test "x$tool_basename" = "x$tool_specified"; then
19710         # A command without a complete path is provided, search $PATH.
19711         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
19712 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
19713         # Extract the first word of "$tool_basename", so it can be a program name with args.
19714 set dummy $tool_basename; ac_word=$2
19715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19716 $as_echo_n "checking for $ac_word... " >&6; }
19717 if ${ac_cv_path_DSYMUTIL+:} false; then :
19718   $as_echo_n "(cached) " >&6
19719 else
19720   case $DSYMUTIL in
19721   [\\/]* | ?:[\\/]*)
19722   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
19723   ;;
19724   *)
19725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19726 for as_dir in $PATH
19727 do
19728   IFS=$as_save_IFS
19729   test -z "$as_dir" && as_dir=.
19730     for ac_exec_ext in '' $ac_executable_extensions; do
19731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19732     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
19733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19734     break 2
19735   fi
19736 done
19737   done
19738 IFS=$as_save_IFS
19739 
19740   ;;
19741 esac
19742 fi
19743 DSYMUTIL=$ac_cv_path_DSYMUTIL
19744 if test -n "$DSYMUTIL"; then
19745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
19746 $as_echo "$DSYMUTIL" >&6; }
19747 else
19748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19749 $as_echo "no" >&6; }
19750 fi
19751 
19752 
19753         if test "x$DSYMUTIL" = x; then
19754           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19755         fi
19756       else
19757         # Otherwise we believe it is a complete path. Use it as it is.
19758         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
19759 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
19760         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
19761 $as_echo_n "checking for DSYMUTIL... " >&6; }
19762         if test ! -x "$tool_specified"; then
19763           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19764 $as_echo "not found" >&6; }
19765           as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
19766         fi
19767         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19768 $as_echo "$tool_specified" >&6; }
19769       fi
19770     fi
19771   fi
19772 
19773 
19774 
19775   if test "x$DSYMUTIL" = x; then
19776     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
19777   fi
19778 
19779 
19780 
19781 
19782 
19783   # Publish this variable in the help.
19784 
19785 
19786   if test "x$XATTR" = x; then
19787     # The variable is not set by user, try to locate tool using the code snippet
19788     for ac_prog in xattr
19789 do
19790   # Extract the first word of "$ac_prog", so it can be a program name with args.
19791 set dummy $ac_prog; ac_word=$2
19792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19793 $as_echo_n "checking for $ac_word... " >&6; }
19794 if ${ac_cv_path_XATTR+:} false; then :
19795   $as_echo_n "(cached) " >&6
19796 else
19797   case $XATTR in
19798   [\\/]* | ?:[\\/]*)
19799   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19800   ;;
19801   *)
19802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19803 for as_dir in $PATH
19804 do
19805   IFS=$as_save_IFS
19806   test -z "$as_dir" && as_dir=.
19807     for ac_exec_ext in '' $ac_executable_extensions; do
19808   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19809     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19811     break 2
19812   fi
19813 done
19814   done
19815 IFS=$as_save_IFS
19816 
19817   ;;
19818 esac
19819 fi
19820 XATTR=$ac_cv_path_XATTR
19821 if test -n "$XATTR"; then
19822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19823 $as_echo "$XATTR" >&6; }
19824 else
19825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19826 $as_echo "no" >&6; }
19827 fi
19828 
19829 
19830   test -n "$XATTR" && break
19831 done
19832 
19833   else
19834     # The variable is set, but is it from the command line or the environment?
19835 
19836     # Try to remove the string !XATTR! from our list.
19837     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
19838     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19839       # If it failed, the variable was not from the command line. Ignore it,
19840       # but warn the user (except for BASH, which is always set by the calling BASH).
19841       if test "xXATTR" != xBASH; then
19842         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
19843 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
19844       fi
19845       # Try to locate tool using the code snippet
19846       for ac_prog in xattr
19847 do
19848   # Extract the first word of "$ac_prog", so it can be a program name with args.
19849 set dummy $ac_prog; ac_word=$2
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19851 $as_echo_n "checking for $ac_word... " >&6; }
19852 if ${ac_cv_path_XATTR+:} false; then :
19853   $as_echo_n "(cached) " >&6
19854 else
19855   case $XATTR in
19856   [\\/]* | ?:[\\/]*)
19857   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19858   ;;
19859   *)
19860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19861 for as_dir in $PATH
19862 do
19863   IFS=$as_save_IFS
19864   test -z "$as_dir" && as_dir=.
19865     for ac_exec_ext in '' $ac_executable_extensions; do
19866   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19867     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19869     break 2
19870   fi
19871 done
19872   done
19873 IFS=$as_save_IFS
19874 
19875   ;;
19876 esac
19877 fi
19878 XATTR=$ac_cv_path_XATTR
19879 if test -n "$XATTR"; then
19880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19881 $as_echo "$XATTR" >&6; }
19882 else
19883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19884 $as_echo "no" >&6; }
19885 fi
19886 
19887 
19888   test -n "$XATTR" && break
19889 done
19890 
19891     else
19892       # If it succeeded, then it was overridden by the user. We will use it
19893       # for the tool.
19894 
19895       # First remove it from the list of overridden variables, so we can test
19896       # for unknown variables in the end.
19897       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19898 
19899       # Check if the provided tool contains a complete path.
19900       tool_specified="$XATTR"
19901       tool_basename="${tool_specified##*/}"
19902       if test "x$tool_basename" = "x$tool_specified"; then
19903         # A command without a complete path is provided, search $PATH.
19904         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
19905 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
19906         # Extract the first word of "$tool_basename", so it can be a program name with args.
19907 set dummy $tool_basename; ac_word=$2
19908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19909 $as_echo_n "checking for $ac_word... " >&6; }
19910 if ${ac_cv_path_XATTR+:} false; then :
19911   $as_echo_n "(cached) " >&6
19912 else
19913   case $XATTR in
19914   [\\/]* | ?:[\\/]*)
19915   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19916   ;;
19917   *)
19918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19919 for as_dir in $PATH
19920 do
19921   IFS=$as_save_IFS
19922   test -z "$as_dir" && as_dir=.
19923     for ac_exec_ext in '' $ac_executable_extensions; do
19924   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19925     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19927     break 2
19928   fi
19929 done
19930   done
19931 IFS=$as_save_IFS
19932 
19933   ;;
19934 esac
19935 fi
19936 XATTR=$ac_cv_path_XATTR
19937 if test -n "$XATTR"; then
19938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19939 $as_echo "$XATTR" >&6; }
19940 else
19941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19942 $as_echo "no" >&6; }
19943 fi
19944 
19945 
19946         if test "x$XATTR" = x; then
19947           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19948         fi
19949       else
19950         # Otherwise we believe it is a complete path. Use it as it is.
19951         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
19952 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
19953         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
19954 $as_echo_n "checking for XATTR... " >&6; }
19955         if test ! -x "$tool_specified"; then
19956           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19957 $as_echo "not found" >&6; }
19958           as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
19959         fi
19960         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19961 $as_echo "$tool_specified" >&6; }
19962       fi
19963     fi
19964   fi
19965 
19966 
19967 
19968   if test "x$XATTR" = x; then
19969     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
19970   fi
19971 
19972 
19973 
19974 
19975   # Publish this variable in the help.
19976 
19977 
19978   if test "x$CODESIGN" = x; then
19979     # The variable is not set by user, try to locate tool using the code snippet
19980     for ac_prog in codesign
19981 do
19982   # Extract the first word of "$ac_prog", so it can be a program name with args.
19983 set dummy $ac_prog; ac_word=$2
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19985 $as_echo_n "checking for $ac_word... " >&6; }
19986 if ${ac_cv_path_CODESIGN+:} false; then :
19987   $as_echo_n "(cached) " >&6
19988 else
19989   case $CODESIGN in
19990   [\\/]* | ?:[\\/]*)
19991   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19992   ;;
19993   *)
19994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19995 for as_dir in $PATH
19996 do
19997   IFS=$as_save_IFS
19998   test -z "$as_dir" && as_dir=.
19999     for ac_exec_ext in '' $ac_executable_extensions; do
20000   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20001     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
20002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20003     break 2
20004   fi
20005 done
20006   done
20007 IFS=$as_save_IFS
20008 
20009   ;;
20010 esac
20011 fi
20012 CODESIGN=$ac_cv_path_CODESIGN
20013 if test -n "$CODESIGN"; then
20014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
20015 $as_echo "$CODESIGN" >&6; }
20016 else
20017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20018 $as_echo "no" >&6; }
20019 fi
20020 
20021 
20022   test -n "$CODESIGN" && break
20023 done
20024 
20025   else
20026     # The variable is set, but is it from the command line or the environment?
20027 
20028     # Try to remove the string !CODESIGN! from our list.
20029     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
20030     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20031       # If it failed, the variable was not from the command line. Ignore it,
20032       # but warn the user (except for BASH, which is always set by the calling BASH).
20033       if test "xCODESIGN" != xBASH; then
20034         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
20035 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
20036       fi
20037       # Try to locate tool using the code snippet
20038       for ac_prog in codesign
20039 do
20040   # Extract the first word of "$ac_prog", so it can be a program name with args.
20041 set dummy $ac_prog; ac_word=$2
20042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20043 $as_echo_n "checking for $ac_word... " >&6; }
20044 if ${ac_cv_path_CODESIGN+:} false; then :
20045   $as_echo_n "(cached) " >&6
20046 else
20047   case $CODESIGN in
20048   [\\/]* | ?:[\\/]*)
20049   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
20050   ;;
20051   *)
20052   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20053 for as_dir in $PATH
20054 do
20055   IFS=$as_save_IFS
20056   test -z "$as_dir" && as_dir=.
20057     for ac_exec_ext in '' $ac_executable_extensions; do
20058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20059     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
20060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20061     break 2
20062   fi
20063 done
20064   done
20065 IFS=$as_save_IFS
20066 
20067   ;;
20068 esac
20069 fi
20070 CODESIGN=$ac_cv_path_CODESIGN
20071 if test -n "$CODESIGN"; then
20072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
20073 $as_echo "$CODESIGN" >&6; }
20074 else
20075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20076 $as_echo "no" >&6; }
20077 fi
20078 
20079 
20080   test -n "$CODESIGN" && break
20081 done
20082 
20083     else
20084       # If it succeeded, then it was overridden by the user. We will use it
20085       # for the tool.
20086 
20087       # First remove it from the list of overridden variables, so we can test
20088       # for unknown variables in the end.
20089       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20090 
20091       # Check if the provided tool contains a complete path.
20092       tool_specified="$CODESIGN"
20093       tool_basename="${tool_specified##*/}"
20094       if test "x$tool_basename" = "x$tool_specified"; then
20095         # A command without a complete path is provided, search $PATH.
20096         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
20097 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
20098         # Extract the first word of "$tool_basename", so it can be a program name with args.
20099 set dummy $tool_basename; ac_word=$2
20100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20101 $as_echo_n "checking for $ac_word... " >&6; }
20102 if ${ac_cv_path_CODESIGN+:} false; then :
20103   $as_echo_n "(cached) " >&6
20104 else
20105   case $CODESIGN in
20106   [\\/]* | ?:[\\/]*)
20107   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
20108   ;;
20109   *)
20110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20111 for as_dir in $PATH
20112 do
20113   IFS=$as_save_IFS
20114   test -z "$as_dir" && as_dir=.
20115     for ac_exec_ext in '' $ac_executable_extensions; do
20116   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20117     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
20118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20119     break 2
20120   fi
20121 done
20122   done
20123 IFS=$as_save_IFS
20124 
20125   ;;
20126 esac
20127 fi
20128 CODESIGN=$ac_cv_path_CODESIGN
20129 if test -n "$CODESIGN"; then
20130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
20131 $as_echo "$CODESIGN" >&6; }
20132 else
20133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20134 $as_echo "no" >&6; }
20135 fi
20136 
20137 
20138         if test "x$CODESIGN" = x; then
20139           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20140         fi
20141       else
20142         # Otherwise we believe it is a complete path. Use it as it is.
20143         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
20144 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
20145         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
20146 $as_echo_n "checking for CODESIGN... " >&6; }
20147         if test ! -x "$tool_specified"; then
20148           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20149 $as_echo "not found" >&6; }
20150           as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
20151         fi
20152         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20153 $as_echo "$tool_specified" >&6; }
20154       fi
20155     fi
20156   fi
20157 
20158 
20159     if test "x$CODESIGN" != "x"; then
20160       # Verify that the openjdk_codesign certificate is present
20161       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
20162 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
20163       rm -f codesign-testfile
20164       touch codesign-testfile
20165       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
20166       rm -f codesign-testfile
20167       if test "x$CODESIGN" = x; then
20168         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20169 $as_echo "no" >&6; }
20170       else
20171         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20172 $as_echo "yes" >&6; }
20173       fi
20174     fi
20175   fi
20176 
20177 
20178   # Test if bash supports pipefail.
20179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5
20180 $as_echo_n "checking if bash supports pipefail... " >&6; }
20181   if ${BASH} -c 'set -o pipefail'; then
20182     BASH_ARGS="$BASH_ARGS -o pipefail"
20183     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20184 $as_echo "yes" >&6; }
20185   else
20186     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20187 $as_echo "no" >&6; }
20188   fi
20189 
20190   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5
20191 $as_echo_n "checking if bash supports errexit (-e)... " >&6; }
20192   if ${BASH} -e -c 'true'; then
20193     BASH_ARGS="$BASH_ARGS -e"
20194     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20195 $as_echo "yes" >&6; }
20196   else
20197     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20198 $as_echo "no" >&6; }
20199   fi
20200 
20201 
20202 
20203 
20204 # Check if pkg-config is available.
20205 
20206 
20207 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20208         if test -n "$ac_tool_prefix"; then
20209   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20210 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20212 $as_echo_n "checking for $ac_word... " >&6; }
20213 if ${ac_cv_path_PKG_CONFIG+:} false; then :
20214   $as_echo_n "(cached) " >&6
20215 else
20216   case $PKG_CONFIG in
20217   [\\/]* | ?:[\\/]*)
20218   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20219   ;;
20220   *)
20221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20222 for as_dir in $PATH
20223 do
20224   IFS=$as_save_IFS
20225   test -z "$as_dir" && as_dir=.
20226     for ac_exec_ext in '' $ac_executable_extensions; do
20227   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20228     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20230     break 2
20231   fi
20232 done
20233   done
20234 IFS=$as_save_IFS
20235 
20236   ;;
20237 esac
20238 fi
20239 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20240 if test -n "$PKG_CONFIG"; then
20241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20242 $as_echo "$PKG_CONFIG" >&6; }
20243 else
20244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20245 $as_echo "no" >&6; }
20246 fi
20247 
20248 
20249 fi
20250 if test -z "$ac_cv_path_PKG_CONFIG"; then
20251   ac_pt_PKG_CONFIG=$PKG_CONFIG
20252   # Extract the first word of "pkg-config", so it can be a program name with args.
20253 set dummy pkg-config; ac_word=$2
20254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20255 $as_echo_n "checking for $ac_word... " >&6; }
20256 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
20257   $as_echo_n "(cached) " >&6
20258 else
20259   case $ac_pt_PKG_CONFIG in
20260   [\\/]* | ?:[\\/]*)
20261   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20262   ;;
20263   *)
20264   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20265 for as_dir in $PATH
20266 do
20267   IFS=$as_save_IFS
20268   test -z "$as_dir" && as_dir=.
20269     for ac_exec_ext in '' $ac_executable_extensions; do
20270   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20271     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20273     break 2
20274   fi
20275 done
20276   done
20277 IFS=$as_save_IFS
20278 
20279   ;;
20280 esac
20281 fi
20282 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20283 if test -n "$ac_pt_PKG_CONFIG"; then
20284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20285 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
20286 else
20287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20288 $as_echo "no" >&6; }
20289 fi
20290 
20291   if test "x$ac_pt_PKG_CONFIG" = x; then
20292     PKG_CONFIG=""
20293   else
20294     case $cross_compiling:$ac_tool_warned in
20295 yes:)
20296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20298 ac_tool_warned=yes ;;
20299 esac
20300     PKG_CONFIG=$ac_pt_PKG_CONFIG
20301   fi
20302 else
20303   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20304 fi
20305 
20306 fi
20307 if test -n "$PKG_CONFIG"; then
20308         _pkg_min_version=0.9.0
20309         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
20310 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20311         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20312                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20313 $as_echo "yes" >&6; }
20314         else
20315                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20316 $as_echo "no" >&6; }
20317                 PKG_CONFIG=""
20318         fi
20319 
20320 fi
20321 
20322 # After basic tools have been setup, we can check build os specific details.
20323 
20324   ###############################################################################
20325 
20326   # Note that this is the build platform OS version!
20327 
20328   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
20329   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
20330   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
20331   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
20332 
20333 
20334 
20335 
20336 
20337 # Setup builddeps, for automatic downloading of tools we need.
20338 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in
20339 # boot-jdk setup, but we need to have basic tools setup first.
20340 
20341 
20342 # Check whether --with-builddeps-conf was given.
20343 if test "${with_builddeps_conf+set}" = set; then :
20344   withval=$with_builddeps_conf;
20345 fi
20346 
20347 
20348 
20349 # Check whether --with-builddeps-server was given.
20350 if test "${with_builddeps_server+set}" = set; then :
20351   withval=$with_builddeps_server;
20352 fi
20353 
20354 
20355 
20356 # Check whether --with-builddeps-dir was given.
20357 if test "${with_builddeps_dir+set}" = set; then :
20358   withval=$with_builddeps_dir;
20359 else
20360   with_builddeps_dir=/localhome/builddeps
20361 fi
20362 
20363 
20364 
20365 # Check whether --with-builddeps-group was given.
20366 if test "${with_builddeps_group+set}" = set; then :
20367   withval=$with_builddeps_group;
20368 fi
20369 
20370 
20371 
20372 
20373   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
20374     if test "x$with_builddeps_conf" != x; then
20375       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5
20376 $as_echo_n "checking for supplied builddeps configuration file... " >&6; }
20377       builddepsfile=$with_builddeps_conf
20378       if test -s $builddepsfile; then
20379         . $builddepsfile
20380         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5
20381 $as_echo "loaded!" >&6; }
20382       else
20383         as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5
20384       fi
20385     else
20386       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5
20387 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; }
20388       builddepsfile=`mktemp`
20389       touch $builddepsfile
20390       # Put all found confs into a single file.
20391       find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile
20392       # Source the file to acquire the variables
20393       if test -s $builddepsfile; then
20394         . $builddepsfile
20395         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5
20396 $as_echo "found at least one!" >&6; }
20397       else
20398         as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5
20399       fi
20400     fi
20401     # Create build and target names that use _ instead of "-" and ".".
20402     # This is necessary to use them in variable names.
20403     build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
20404     target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
20405     # Extract rewrite information for build and target
20406     eval rewritten_build=\${REWRITE_${build_var}}
20407     if test "x$rewritten_build" = x; then
20408       rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME}
20409       echo Build stays the same $rewritten_build
20410     else
20411       echo Rewriting build for builddeps into $rewritten_build
20412     fi
20413     eval rewritten_target=\${REWRITE_${target_var}}
20414     if test "x$rewritten_target" = x; then
20415       rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
20416       echo Target stays the same $rewritten_target
20417     else
20418       echo Rewriting target for builddeps into $rewritten_target
20419     fi
20420     rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
20421     rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
20422   fi
20423   for ac_prog in 7z unzip
20424 do
20425   # Extract the first word of "$ac_prog", so it can be a program name with args.
20426 set dummy $ac_prog; ac_word=$2
20427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20428 $as_echo_n "checking for $ac_word... " >&6; }
20429 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then :
20430   $as_echo_n "(cached) " >&6
20431 else
20432   if test -n "$BDEPS_UNZIP"; then
20433   ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
20434 else
20435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20436 for as_dir in $PATH
20437 do
20438   IFS=$as_save_IFS
20439   test -z "$as_dir" && as_dir=.
20440     for ac_exec_ext in '' $ac_executable_extensions; do
20441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20442     ac_cv_prog_BDEPS_UNZIP="$ac_prog"
20443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20444     break 2
20445   fi
20446 done
20447   done
20448 IFS=$as_save_IFS
20449 
20450 fi
20451 fi
20452 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
20453 if test -n "$BDEPS_UNZIP"; then
20454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
20455 $as_echo "$BDEPS_UNZIP" >&6; }
20456 else
20457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20458 $as_echo "no" >&6; }
20459 fi
20460 
20461 
20462   test -n "$BDEPS_UNZIP" && break
20463 done
20464 
20465   if test "x$BDEPS_UNZIP" = x7z; then
20466     BDEPS_UNZIP="7z x"
20467   fi
20468 
20469   for ac_prog in wget lftp ftp
20470 do
20471   # Extract the first word of "$ac_prog", so it can be a program name with args.
20472 set dummy $ac_prog; ac_word=$2
20473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20474 $as_echo_n "checking for $ac_word... " >&6; }
20475 if ${ac_cv_prog_BDEPS_FTP+:} false; then :
20476   $as_echo_n "(cached) " >&6
20477 else
20478   if test -n "$BDEPS_FTP"; then
20479   ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
20480 else
20481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20482 for as_dir in $PATH
20483 do
20484   IFS=$as_save_IFS
20485   test -z "$as_dir" && as_dir=.
20486     for ac_exec_ext in '' $ac_executable_extensions; do
20487   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20488     ac_cv_prog_BDEPS_FTP="$ac_prog"
20489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20490     break 2
20491   fi
20492 done
20493   done
20494 IFS=$as_save_IFS
20495 
20496 fi
20497 fi
20498 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
20499 if test -n "$BDEPS_FTP"; then
20500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
20501 $as_echo "$BDEPS_FTP" >&6; }
20502 else
20503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20504 $as_echo "no" >&6; }
20505 fi
20506 
20507 
20508   test -n "$BDEPS_FTP" && break
20509 done
20510 
20511 
20512 
20513 ###############################################################################
20514 #
20515 # Determine OpenJDK variants, options and version numbers.
20516 #
20517 ###############################################################################
20518 
20519 # We need build & target for this.
20520 
20521 
20522   ###############################################################################
20523   #
20524   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
20525   # We always build headless support.
20526   #
20527   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
20528 $as_echo_n "checking headful support... " >&6; }
20529   # Check whether --enable-headful was given.
20530 if test "${enable_headful+set}" = set; then :
20531   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
20532 else
20533   SUPPORT_HEADFUL=yes
20534 fi
20535 
20536 
20537   SUPPORT_HEADLESS=yes
20538   BUILD_HEADLESS="BUILD_HEADLESS:=true"
20539 
20540   if test "x$SUPPORT_HEADFUL" = xyes; then
20541     # We are building both headful and headless.
20542     headful_msg="include support for both headful and headless"
20543   fi
20544 
20545   if test "x$SUPPORT_HEADFUL" = xno; then
20546     # Thus we are building headless only.
20547     BUILD_HEADLESS="BUILD_HEADLESS:=true"
20548     headful_msg="headless only"
20549   fi
20550 
20551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
20552 $as_echo "$headful_msg" >&6; }
20553 
20554 
20555 
20556 
20557 
20558   # Control wether Hotspot runs Queens test after build.
20559   # Check whether --enable-hotspot-test-in-build was given.
20560 if test "${enable_hotspot_test_in_build+set}" = set; then :
20561   enableval=$enable_hotspot_test_in_build;
20562 else
20563   enable_hotspot_test_in_build=no
20564 fi
20565 
20566   if test "x$enable_hotspot_test_in_build" = "xyes"; then
20567     TEST_IN_BUILD=true
20568   else
20569     TEST_IN_BUILD=false
20570   fi
20571 
20572 
20573   ###############################################################################
20574   #
20575   # Choose cacerts source file
20576   #
20577 
20578 # Check whether --with-cacerts-file was given.
20579 if test "${with_cacerts_file+set}" = set; then :
20580   withval=$with_cacerts_file;
20581 fi
20582 
20583   if test "x$with_cacerts_file" != x; then
20584     CACERTS_FILE=$with_cacerts_file
20585   fi
20586 
20587 
20588   ###############################################################################
20589   #
20590   # Enable or disable unlimited crypto
20591   #
20592   # Check whether --enable-unlimited-crypto was given.
20593 if test "${enable_unlimited_crypto+set}" = set; then :
20594   enableval=$enable_unlimited_crypto;
20595 else
20596   enable_unlimited_crypto=no
20597 fi
20598 
20599   if test "x$enable_unlimited_crypto" = "xyes"; then
20600     UNLIMITED_CRYPTO=true
20601   else
20602     UNLIMITED_CRYPTO=false
20603   fi
20604 
20605 
20606   ###############################################################################
20607   #
20608   # Enable or disable the elliptic curve crypto implementation
20609   #
20610 
20611 
20612   ###############################################################################
20613   #
20614   # --enable-rmiconnector-iiop
20615   #
20616   # Check whether --enable-rmiconnector-iiop was given.
20617 if test "${enable_rmiconnector_iiop+set}" = set; then :
20618   enableval=$enable_rmiconnector_iiop;
20619 fi
20620 
20621   if test "x$enable_rmiconnector_iiop" = "xyes"; then
20622     RMICONNECTOR_IIOP=true
20623   else
20624     RMICONNECTOR_IIOP=false
20625   fi
20626 
20627 
20628   ###############################################################################
20629   #
20630   # Compress jars
20631   #
20632   COMPRESS_JARS=false
20633 
20634 
20635 
20636 
20637   # Source the version numbers
20638   . $AUTOCONF_DIR/version-numbers
20639 
20640   # Get the settings from parameters
20641 
20642 # Check whether --with-milestone was given.
20643 if test "${with_milestone+set}" = set; then :
20644   withval=$with_milestone;
20645 fi
20646 
20647   if test "x$with_milestone" = xyes; then
20648     as_fn_error $? "Milestone must have a value" "$LINENO" 5
20649   elif test "x$with_milestone" != x; then
20650     MILESTONE="$with_milestone"
20651   fi
20652   if test "x$MILESTONE" = x; then
20653     MILESTONE=internal
20654   fi
20655 
20656 
20657 # Check whether --with-update-version was given.
20658 if test "${with_update_version+set}" = set; then :
20659   withval=$with_update_version;
20660 fi
20661 
20662   if test "x$with_update_version" = xyes; then
20663     as_fn_error $? "Update version must have a value" "$LINENO" 5
20664   elif test "x$with_update_version" != x; then
20665     JDK_UPDATE_VERSION="$with_update_version"
20666     # On macosx 10.7, it's not possible to set --with-update-version=0X due
20667     # to a bug in expr (which reduces it to just X). To work around this, we
20668     # always add a 0 to one digit update versions.
20669     if test "${#JDK_UPDATE_VERSION}" = "1"; then
20670       JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
20671     fi
20672   fi
20673 
20674 
20675 # Check whether --with-user-release-suffix was given.
20676 if test "${with_user_release_suffix+set}" = set; then :
20677   withval=$with_user_release_suffix;
20678 fi
20679 
20680   if test "x$with_user_release_suffix" = xyes; then
20681     as_fn_error $? "Release suffix must have a value" "$LINENO" 5
20682   elif test "x$with_user_release_suffix" != x; then
20683     USER_RELEASE_SUFFIX="$with_user_release_suffix"
20684   fi
20685 
20686 
20687 # Check whether --with-build-number was given.
20688 if test "${with_build_number+set}" = set; then :
20689   withval=$with_build_number;
20690 fi
20691 
20692   if test "x$with_build_number" = xyes; then
20693     as_fn_error $? "Build number must have a value" "$LINENO" 5
20694   elif test "x$with_build_number" != x; then
20695     JDK_BUILD_NUMBER="$with_build_number"
20696   fi
20697   # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
20698   if test "x$JDK_BUILD_NUMBER" = x; then
20699     JDK_BUILD_NUMBER=b00
20700     if test "x$USER_RELEASE_SUFFIX" = x; then
20701       BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
20702       # Avoid [:alnum:] since it depends on the locale.
20703       CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
20704       USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20705     fi
20706   fi
20707 
20708   # Now set the JDK version, milestone, build number etc.
20709 
20710 
20711 
20712 
20713 
20714 
20715 
20716 
20717 
20718 
20719 
20720 
20721 
20722 
20723 
20724 
20725 # Check whether --with-copyright-year was given.
20726 if test "${with_copyright_year+set}" = set; then :
20727   withval=$with_copyright_year;
20728 fi
20729 
20730   if test "x$with_copyright_year" = xyes; then
20731     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
20732   elif test "x$with_copyright_year" != x; then
20733     COPYRIGHT_YEAR="$with_copyright_year"
20734   else
20735     COPYRIGHT_YEAR=`date +'%Y'`
20736   fi
20737 
20738 
20739   if test "x$JDK_UPDATE_VERSION" != x; then
20740     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
20741   else
20742     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
20743   fi
20744 
20745 
20746   COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
20747 
20748 
20749 
20750 ###############################################################################
20751 #
20752 # Setup BootJDK, used to bootstrap the build.
20753 #
20754 ###############################################################################
20755 
20756 
20757   BOOT_JDK_FOUND=no
20758 
20759 # Check whether --with-boot-jdk was given.
20760 if test "${with_boot_jdk+set}" = set; then :
20761   withval=$with_boot_jdk;
20762 fi
20763 
20764 
20765   # We look for the Boot JDK through various means, going from more certain to
20766   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
20767   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
20768   # must check if this is indeed valid; otherwise we'll continue looking.
20769 
20770   # Test: Is bootjdk explicitely set by command line arguments?
20771 
20772   if test "x$BOOT_JDK_FOUND" = xno; then
20773     # Now execute the test
20774 
20775   if test "x$with_boot_jdk" != x; then
20776     BOOT_JDK=$with_boot_jdk
20777     BOOT_JDK_FOUND=maybe
20778     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
20779 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
20780   fi
20781 
20782 
20783     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20784     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20785       # Do we have a bin/java?
20786       if test ! -x "$BOOT_JDK/bin/java"; then
20787         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20788 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20789         BOOT_JDK_FOUND=no
20790       else
20791         # Do we have a bin/javac?
20792         if test ! -x "$BOOT_JDK/bin/javac"; then
20793           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20794 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20795           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20796 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20797           BOOT_JDK_FOUND=no
20798         else
20799           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20800           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20801 
20802           # Extra M4 quote needed to protect [] in grep expression.
20803           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
20804           if test "x$FOUND_CORRECT_VERSION" = x; then
20805             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20806 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20807             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
20808 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
20809             BOOT_JDK_FOUND=no
20810           else
20811             # We're done! :-)
20812             BOOT_JDK_FOUND=yes
20813 
20814   # Only process if variable expands to non-empty
20815 
20816   if test "x$BOOT_JDK" != x; then
20817     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20818 
20819   # Input might be given as Windows format, start by converting to
20820   # unix format.
20821   path="$BOOT_JDK"
20822   new_path=`$CYGPATH -u "$path"`
20823 
20824   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20825   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20826   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20827   # "foo.exe" is OK but "foo" is an error.
20828   #
20829   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20830   # It is also a way to make sure we got the proper file name for the real test later on.
20831   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20832   if test "x$test_shortpath" = x; then
20833     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20834 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20835     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20836   fi
20837 
20838   # Call helper function which possibly converts this using DOS-style short mode.
20839   # If so, the updated path is stored in $new_path.
20840 
20841   input_path="$new_path"
20842   # Check if we need to convert this using DOS-style short mode. If the path
20843   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20844   # take no chances and rewrite it.
20845   # Note: m4 eats our [], so we need to use [ and ] instead.
20846   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20847   if test "x$has_forbidden_chars" != x; then
20848     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20849     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20850     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20851     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20852       # Going to short mode and back again did indeed matter. Since short mode is
20853       # case insensitive, let's make it lowercase to improve readability.
20854       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20855       # Now convert it back to Unix-stile (cygpath)
20856       input_path=`$CYGPATH -u "$shortmode_path"`
20857       new_path="$input_path"
20858     fi
20859   fi
20860 
20861   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20862   if test "x$test_cygdrive_prefix" = x; then
20863     # As a simple fix, exclude /usr/bin since it's not a real path.
20864     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20865       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20866       # a path prefixed by /cygdrive for fixpath to work.
20867       new_path="$CYGWIN_ROOT_PATH$input_path"
20868     fi
20869   fi
20870 
20871 
20872   if test "x$path" != "x$new_path"; then
20873     BOOT_JDK="$new_path"
20874     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20875 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20876   fi
20877 
20878     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20879 
20880   path="$BOOT_JDK"
20881   has_colon=`$ECHO $path | $GREP ^.:`
20882   new_path="$path"
20883   if test "x$has_colon" = x; then
20884     # Not in mixed or Windows style, start by that.
20885     new_path=`cmd //c echo $path`
20886   fi
20887 
20888 
20889   input_path="$new_path"
20890   # Check if we need to convert this using DOS-style short mode. If the path
20891   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20892   # take no chances and rewrite it.
20893   # Note: m4 eats our [], so we need to use [ and ] instead.
20894   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20895   if test "x$has_forbidden_chars" != x; then
20896     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20897     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20898   fi
20899 
20900 
20901   windows_path="$new_path"
20902   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20903     unix_path=`$CYGPATH -u "$windows_path"`
20904     new_path="$unix_path"
20905   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20906     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20907     new_path="$unix_path"
20908   fi
20909 
20910   if test "x$path" != "x$new_path"; then
20911     BOOT_JDK="$new_path"
20912     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20913 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20914   fi
20915 
20916   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20917   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20918 
20919     else
20920       # We're on a unix platform. Hooray! :)
20921       path="$BOOT_JDK"
20922       has_space=`$ECHO "$path" | $GREP " "`
20923       if test "x$has_space" != x; then
20924         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20925 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20926         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20927       fi
20928 
20929       # Use eval to expand a potential ~
20930       eval path="$path"
20931       if test ! -f "$path" && test ! -d "$path"; then
20932         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20933       fi
20934 
20935       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20936     fi
20937   fi
20938 
20939             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20940 $as_echo_n "checking for Boot JDK... " >&6; }
20941             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20942 $as_echo "$BOOT_JDK" >&6; }
20943             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20944 $as_echo_n "checking Boot JDK version... " >&6; }
20945             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20946             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20947 $as_echo "$BOOT_JDK_VERSION" >&6; }
20948           fi # end check jdk version
20949         fi # end check javac
20950       fi # end check java
20951     fi # end check boot jdk found
20952   fi
20953 
20954   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
20955     # Having specified an argument which is incorrect will produce an instant failure;
20956     # we should not go on looking
20957     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
20958   fi
20959 
20960   # Test: Is bootjdk available from builddeps?
20961 
20962   if test "x$BOOT_JDK_FOUND" = xno; then
20963     # Now execute the test
20964 
20965 
20966 
20967   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
20968     # Source the builddeps file again, to make sure it uses the latest variables!
20969     . $builddepsfile
20970     # Look for a target and build machine specific resource!
20971     eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
20972     if test "x$resource" = x; then
20973       # Ok, lets instead look for a target specific resource
20974       eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}}
20975     fi
20976     if test "x$resource" = x; then
20977       # Ok, lets instead look for a build specific resource
20978       eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}}
20979     fi
20980     if test "x$resource" = x; then
20981       # Ok, lets instead look for a generic resource
20982       # (The bootjdk comes from M4 and not the shell, thus no need for eval here.)
20983       resource=${builddep_bootjdk}
20984     fi
20985     if test "x$resource" != x; then
20986       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5
20987 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;}
20988       # If the resource in the builddeps.conf file is an existing directory,
20989       # for example /java/linux/cups
20990       if test -d ${resource}; then
20991         depdir=${resource}
20992       else
20993 
20994   # bootjdk is for example mymodule
20995   # $resource is for example libs/general/libmymod_1_2_3.zip
20996   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
20997   # $with_builddeps_dir is for example /localhome/builddeps
20998   # depdir is the name of the variable into which we store the depdir, eg MYMOD
20999   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
21000   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
21001   filename=`basename $resource`
21002   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
21003   filebase=${filename%%.*}
21004   extension=${filename#*.}
21005   installdir=$with_builddeps_dir/$filebase
21006   if test ! -f $installdir/$filename.unpacked; then
21007     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5
21008 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;}
21009     if test ! -d $installdir; then
21010       mkdir -p $installdir
21011     fi
21012     if test ! -d $installdir; then
21013       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
21014     fi
21015     tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX`
21016     touch $tmpfile
21017     if test ! -f $tmpfile; then
21018       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
21019     fi
21020 
21021   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
21022   # $tmpfile is the local file name for the downloaded file.
21023   VALID_TOOL=no
21024   if test "x$BDEPS_FTP" = xwget; then
21025     VALID_TOOL=yes
21026     wget -O $tmpfile $with_builddeps_server/$resource
21027   fi
21028   if test "x$BDEPS_FTP" = xlftp; then
21029     VALID_TOOL=yes
21030     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
21031   fi
21032   if test "x$BDEPS_FTP" = xftp; then
21033     VALID_TOOL=yes
21034     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
21035     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
21036     FTPUSERPWD=${FTPSERVER%%@*}
21037     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
21038       FTPUSER=${userpwd%%:*}
21039       FTPPWD=${userpwd#*@}
21040       FTPSERVER=${FTPSERVER#*@}
21041     else
21042       FTPUSER=ftp
21043       FTPPWD=ftp
21044     fi
21045     # the "pass" command does not work on some
21046     # ftp clients (read ftp.exe) but if it works,
21047     # passive mode is better!
21048     ( \
21049         echo "user $FTPUSER $FTPPWD"        ; \
21050         echo "pass"                         ; \
21051         echo "bin"                          ; \
21052         echo "get $FTPPATH $tmpfile"              ; \
21053     ) | ftp -in $FTPSERVER
21054   fi
21055   if test "x$VALID_TOOL" != xyes; then
21056     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
21057   fi
21058 
21059     mv $tmpfile $installdir/$filename
21060     if test ! -s $installdir/$filename; then
21061       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
21062     fi
21063     case "$extension" in
21064       zip)  echo "Unzipping $installdir/$filename..."
21065         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
21066         ;;
21067       tar.gz) echo "Untaring $installdir/$filename..."
21068         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
21069         ;;
21070       tgz) echo "Untaring $installdir/$filename..."
21071         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
21072         ;;
21073       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
21074         ;;
21075     esac
21076   fi
21077   if test -f $installdir/$filename.unpacked; then
21078     depdir=$installdir
21079   fi
21080 
21081       fi
21082       # Source the builddeps file again, because in the previous command, the depdir
21083       # was updated to point at the current build dependency install directory.
21084       . $builddepsfile
21085       # Now extract variables from the builddeps.conf files.
21086       theroot=${builddep_bootjdk_ROOT}
21087       thecflags=${builddep_bootjdk_CFLAGS}
21088       thelibs=${builddep_bootjdk_LIBS}
21089       if test "x$depdir" = x; then
21090         as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5
21091       fi
21092       BOOT_JDK=$depdir
21093       if test "x$theroot" != x; then
21094         BOOT_JDK="$theroot"
21095       fi
21096       if test "x$thecflags" != x; then
21097         BOOT_JDK_CFLAGS="$thecflags"
21098       fi
21099       if test "x$thelibs" != x; then
21100         BOOT_JDK_LIBS="$thelibs"
21101       fi
21102       BOOT_JDK_FOUND=maybe
21103       else BOOT_JDK_FOUND=no
21104 
21105     fi
21106     else BOOT_JDK_FOUND=no
21107 
21108   fi
21109 
21110 
21111 
21112     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21113     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21114       # Do we have a bin/java?
21115       if test ! -x "$BOOT_JDK/bin/java"; then
21116         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21117 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21118         BOOT_JDK_FOUND=no
21119       else
21120         # Do we have a bin/javac?
21121         if test ! -x "$BOOT_JDK/bin/javac"; then
21122           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21123 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21124           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21125 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21126           BOOT_JDK_FOUND=no
21127         else
21128           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21129           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21130 
21131           # Extra M4 quote needed to protect [] in grep expression.
21132           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
21133           if test "x$FOUND_CORRECT_VERSION" = x; then
21134             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21135 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21136             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
21137 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
21138             BOOT_JDK_FOUND=no
21139           else
21140             # We're done! :-)
21141             BOOT_JDK_FOUND=yes
21142 
21143   # Only process if variable expands to non-empty
21144 
21145   if test "x$BOOT_JDK" != x; then
21146     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21147 
21148   # Input might be given as Windows format, start by converting to
21149   # unix format.
21150   path="$BOOT_JDK"
21151   new_path=`$CYGPATH -u "$path"`
21152 
21153   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21154   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21155   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21156   # "foo.exe" is OK but "foo" is an error.
21157   #
21158   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21159   # It is also a way to make sure we got the proper file name for the real test later on.
21160   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21161   if test "x$test_shortpath" = x; then
21162     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21163 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21164     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21165   fi
21166 
21167   # Call helper function which possibly converts this using DOS-style short mode.
21168   # If so, the updated path is stored in $new_path.
21169 
21170   input_path="$new_path"
21171   # Check if we need to convert this using DOS-style short mode. If the path
21172   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21173   # take no chances and rewrite it.
21174   # Note: m4 eats our [], so we need to use [ and ] instead.
21175   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21176   if test "x$has_forbidden_chars" != x; then
21177     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21178     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21179     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21180     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21181       # Going to short mode and back again did indeed matter. Since short mode is
21182       # case insensitive, let's make it lowercase to improve readability.
21183       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21184       # Now convert it back to Unix-stile (cygpath)
21185       input_path=`$CYGPATH -u "$shortmode_path"`
21186       new_path="$input_path"
21187     fi
21188   fi
21189 
21190   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21191   if test "x$test_cygdrive_prefix" = x; then
21192     # As a simple fix, exclude /usr/bin since it's not a real path.
21193     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21194       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21195       # a path prefixed by /cygdrive for fixpath to work.
21196       new_path="$CYGWIN_ROOT_PATH$input_path"
21197     fi
21198   fi
21199 
21200 
21201   if test "x$path" != "x$new_path"; then
21202     BOOT_JDK="$new_path"
21203     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21204 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21205   fi
21206 
21207     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21208 
21209   path="$BOOT_JDK"
21210   has_colon=`$ECHO $path | $GREP ^.:`
21211   new_path="$path"
21212   if test "x$has_colon" = x; then
21213     # Not in mixed or Windows style, start by that.
21214     new_path=`cmd //c echo $path`
21215   fi
21216 
21217 
21218   input_path="$new_path"
21219   # Check if we need to convert this using DOS-style short mode. If the path
21220   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21221   # take no chances and rewrite it.
21222   # Note: m4 eats our [], so we need to use [ and ] instead.
21223   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21224   if test "x$has_forbidden_chars" != x; then
21225     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21226     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21227   fi
21228 
21229 
21230   windows_path="$new_path"
21231   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21232     unix_path=`$CYGPATH -u "$windows_path"`
21233     new_path="$unix_path"
21234   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21235     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21236     new_path="$unix_path"
21237   fi
21238 
21239   if test "x$path" != "x$new_path"; then
21240     BOOT_JDK="$new_path"
21241     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21242 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21243   fi
21244 
21245   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21246   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21247 
21248     else
21249       # We're on a unix platform. Hooray! :)
21250       path="$BOOT_JDK"
21251       has_space=`$ECHO "$path" | $GREP " "`
21252       if test "x$has_space" != x; then
21253         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21254 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21255         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21256       fi
21257 
21258       # Use eval to expand a potential ~
21259       eval path="$path"
21260       if test ! -f "$path" && test ! -d "$path"; then
21261         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21262       fi
21263 
21264       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21265     fi
21266   fi
21267 
21268             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21269 $as_echo_n "checking for Boot JDK... " >&6; }
21270             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21271 $as_echo "$BOOT_JDK" >&6; }
21272             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21273 $as_echo_n "checking Boot JDK version... " >&6; }
21274             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21275             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21276 $as_echo "$BOOT_JDK_VERSION" >&6; }
21277           fi # end check jdk version
21278         fi # end check javac
21279       fi # end check java
21280     fi # end check boot jdk found
21281   fi
21282 
21283 
21284   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
21285 
21286   if test "x$BOOT_JDK_FOUND" = xno; then
21287     # Now execute the test
21288 
21289   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
21290     # First check at user selected default
21291 
21292   if test "x$BOOT_JDK_FOUND" = xno; then
21293     # Now execute the test
21294 
21295   if test -x /usr/libexec/java_home; then
21296     BOOT_JDK=`/usr/libexec/java_home `
21297     BOOT_JDK_FOUND=maybe
21298     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
21299 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
21300   fi
21301 
21302 
21303     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21304     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21305       # Do we have a bin/java?
21306       if test ! -x "$BOOT_JDK/bin/java"; then
21307         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21308 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21309         BOOT_JDK_FOUND=no
21310       else
21311         # Do we have a bin/javac?
21312         if test ! -x "$BOOT_JDK/bin/javac"; then
21313           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21314 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21315           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21316 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21317           BOOT_JDK_FOUND=no
21318         else
21319           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21320           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21321 
21322           # Extra M4 quote needed to protect [] in grep expression.
21323           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
21324           if test "x$FOUND_CORRECT_VERSION" = x; then
21325             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21326 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21327             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
21328 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
21329             BOOT_JDK_FOUND=no
21330           else
21331             # We're done! :-)
21332             BOOT_JDK_FOUND=yes
21333 
21334   # Only process if variable expands to non-empty
21335 
21336   if test "x$BOOT_JDK" != x; then
21337     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21338 
21339   # Input might be given as Windows format, start by converting to
21340   # unix format.
21341   path="$BOOT_JDK"
21342   new_path=`$CYGPATH -u "$path"`
21343 
21344   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21345   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21346   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21347   # "foo.exe" is OK but "foo" is an error.
21348   #
21349   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21350   # It is also a way to make sure we got the proper file name for the real test later on.
21351   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21352   if test "x$test_shortpath" = x; then
21353     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21354 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21355     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21356   fi
21357 
21358   # Call helper function which possibly converts this using DOS-style short mode.
21359   # If so, the updated path is stored in $new_path.
21360 
21361   input_path="$new_path"
21362   # Check if we need to convert this using DOS-style short mode. If the path
21363   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21364   # take no chances and rewrite it.
21365   # Note: m4 eats our [], so we need to use [ and ] instead.
21366   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21367   if test "x$has_forbidden_chars" != x; then
21368     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21369     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21370     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21371     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21372       # Going to short mode and back again did indeed matter. Since short mode is
21373       # case insensitive, let's make it lowercase to improve readability.
21374       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21375       # Now convert it back to Unix-stile (cygpath)
21376       input_path=`$CYGPATH -u "$shortmode_path"`
21377       new_path="$input_path"
21378     fi
21379   fi
21380 
21381   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21382   if test "x$test_cygdrive_prefix" = x; then
21383     # As a simple fix, exclude /usr/bin since it's not a real path.
21384     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21385       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21386       # a path prefixed by /cygdrive for fixpath to work.
21387       new_path="$CYGWIN_ROOT_PATH$input_path"
21388     fi
21389   fi
21390 
21391 
21392   if test "x$path" != "x$new_path"; then
21393     BOOT_JDK="$new_path"
21394     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21395 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21396   fi
21397 
21398     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21399 
21400   path="$BOOT_JDK"
21401   has_colon=`$ECHO $path | $GREP ^.:`
21402   new_path="$path"
21403   if test "x$has_colon" = x; then
21404     # Not in mixed or Windows style, start by that.
21405     new_path=`cmd //c echo $path`
21406   fi
21407 
21408 
21409   input_path="$new_path"
21410   # Check if we need to convert this using DOS-style short mode. If the path
21411   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21412   # take no chances and rewrite it.
21413   # Note: m4 eats our [], so we need to use [ and ] instead.
21414   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21415   if test "x$has_forbidden_chars" != x; then
21416     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21417     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21418   fi
21419 
21420 
21421   windows_path="$new_path"
21422   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21423     unix_path=`$CYGPATH -u "$windows_path"`
21424     new_path="$unix_path"
21425   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21426     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21427     new_path="$unix_path"
21428   fi
21429 
21430   if test "x$path" != "x$new_path"; then
21431     BOOT_JDK="$new_path"
21432     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21433 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21434   fi
21435 
21436   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21437   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21438 
21439     else
21440       # We're on a unix platform. Hooray! :)
21441       path="$BOOT_JDK"
21442       has_space=`$ECHO "$path" | $GREP " "`
21443       if test "x$has_space" != x; then
21444         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21445 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21446         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21447       fi
21448 
21449       # Use eval to expand a potential ~
21450       eval path="$path"
21451       if test ! -f "$path" && test ! -d "$path"; then
21452         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21453       fi
21454 
21455       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21456     fi
21457   fi
21458 
21459             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21460 $as_echo_n "checking for Boot JDK... " >&6; }
21461             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21462 $as_echo "$BOOT_JDK" >&6; }
21463             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21464 $as_echo_n "checking Boot JDK version... " >&6; }
21465             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21466             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21467 $as_echo "$BOOT_JDK_VERSION" >&6; }
21468           fi # end check jdk version
21469         fi # end check javac
21470       fi # end check java
21471     fi # end check boot jdk found
21472   fi
21473 
21474     # If that did not work out (e.g. too old), try explicit versions instead
21475 
21476   if test "x$BOOT_JDK_FOUND" = xno; then
21477     # Now execute the test
21478 
21479   if test -x /usr/libexec/java_home; then
21480     BOOT_JDK=`/usr/libexec/java_home -v 1.9`
21481     BOOT_JDK_FOUND=maybe
21482     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5
21483 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;}
21484   fi
21485 
21486 
21487     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21488     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21489       # Do we have a bin/java?
21490       if test ! -x "$BOOT_JDK/bin/java"; then
21491         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21492 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21493         BOOT_JDK_FOUND=no
21494       else
21495         # Do we have a bin/javac?
21496         if test ! -x "$BOOT_JDK/bin/javac"; then
21497           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21498 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21499           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21500 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21501           BOOT_JDK_FOUND=no
21502         else
21503           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21504           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21505 
21506           # Extra M4 quote needed to protect [] in grep expression.
21507           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
21508           if test "x$FOUND_CORRECT_VERSION" = x; then
21509             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21510 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21511             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
21512 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
21513             BOOT_JDK_FOUND=no
21514           else
21515             # We're done! :-)
21516             BOOT_JDK_FOUND=yes
21517 
21518   # Only process if variable expands to non-empty
21519 
21520   if test "x$BOOT_JDK" != x; then
21521     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21522 
21523   # Input might be given as Windows format, start by converting to
21524   # unix format.
21525   path="$BOOT_JDK"
21526   new_path=`$CYGPATH -u "$path"`
21527 
21528   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21529   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21530   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21531   # "foo.exe" is OK but "foo" is an error.
21532   #
21533   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21534   # It is also a way to make sure we got the proper file name for the real test later on.
21535   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21536   if test "x$test_shortpath" = x; then
21537     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21538 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21539     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21540   fi
21541 
21542   # Call helper function which possibly converts this using DOS-style short mode.
21543   # If so, the updated path is stored in $new_path.
21544 
21545   input_path="$new_path"
21546   # Check if we need to convert this using DOS-style short mode. If the path
21547   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21548   # take no chances and rewrite it.
21549   # Note: m4 eats our [], so we need to use [ and ] instead.
21550   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21551   if test "x$has_forbidden_chars" != x; then
21552     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21553     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21554     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21555     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21556       # Going to short mode and back again did indeed matter. Since short mode is
21557       # case insensitive, let's make it lowercase to improve readability.
21558       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21559       # Now convert it back to Unix-stile (cygpath)
21560       input_path=`$CYGPATH -u "$shortmode_path"`
21561       new_path="$input_path"
21562     fi
21563   fi
21564 
21565   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21566   if test "x$test_cygdrive_prefix" = x; then
21567     # As a simple fix, exclude /usr/bin since it's not a real path.
21568     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21569       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21570       # a path prefixed by /cygdrive for fixpath to work.
21571       new_path="$CYGWIN_ROOT_PATH$input_path"
21572     fi
21573   fi
21574 
21575 
21576   if test "x$path" != "x$new_path"; then
21577     BOOT_JDK="$new_path"
21578     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21579 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21580   fi
21581 
21582     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21583 
21584   path="$BOOT_JDK"
21585   has_colon=`$ECHO $path | $GREP ^.:`
21586   new_path="$path"
21587   if test "x$has_colon" = x; then
21588     # Not in mixed or Windows style, start by that.
21589     new_path=`cmd //c echo $path`
21590   fi
21591 
21592 
21593   input_path="$new_path"
21594   # Check if we need to convert this using DOS-style short mode. If the path
21595   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21596   # take no chances and rewrite it.
21597   # Note: m4 eats our [], so we need to use [ and ] instead.
21598   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21599   if test "x$has_forbidden_chars" != x; then
21600     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21601     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21602   fi
21603 
21604 
21605   windows_path="$new_path"
21606   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21607     unix_path=`$CYGPATH -u "$windows_path"`
21608     new_path="$unix_path"
21609   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21610     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21611     new_path="$unix_path"
21612   fi
21613 
21614   if test "x$path" != "x$new_path"; then
21615     BOOT_JDK="$new_path"
21616     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21617 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21618   fi
21619 
21620   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21621   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21622 
21623     else
21624       # We're on a unix platform. Hooray! :)
21625       path="$BOOT_JDK"
21626       has_space=`$ECHO "$path" | $GREP " "`
21627       if test "x$has_space" != x; then
21628         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21629 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21630         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21631       fi
21632 
21633       # Use eval to expand a potential ~
21634       eval path="$path"
21635       if test ! -f "$path" && test ! -d "$path"; then
21636         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21637       fi
21638 
21639       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21640     fi
21641   fi
21642 
21643             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21644 $as_echo_n "checking for Boot JDK... " >&6; }
21645             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21646 $as_echo "$BOOT_JDK" >&6; }
21647             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21648 $as_echo_n "checking Boot JDK version... " >&6; }
21649             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21650             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21651 $as_echo "$BOOT_JDK_VERSION" >&6; }
21652           fi # end check jdk version
21653         fi # end check javac
21654       fi # end check java
21655     fi # end check boot jdk found
21656   fi
21657 
21658 
21659   if test "x$BOOT_JDK_FOUND" = xno; then
21660     # Now execute the test
21661 
21662   if test -x /usr/libexec/java_home; then
21663     BOOT_JDK=`/usr/libexec/java_home -v 1.8`
21664     BOOT_JDK_FOUND=maybe
21665     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5
21666 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;}
21667   fi
21668 
21669 
21670     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21671     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21672       # Do we have a bin/java?
21673       if test ! -x "$BOOT_JDK/bin/java"; then
21674         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21675 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21676         BOOT_JDK_FOUND=no
21677       else
21678         # Do we have a bin/javac?
21679         if test ! -x "$BOOT_JDK/bin/javac"; then
21680           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21681 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21682           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21683 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21684           BOOT_JDK_FOUND=no
21685         else
21686           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21687           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21688 
21689           # Extra M4 quote needed to protect [] in grep expression.
21690           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
21691           if test "x$FOUND_CORRECT_VERSION" = x; then
21692             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21693 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21694             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
21695 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
21696             BOOT_JDK_FOUND=no
21697           else
21698             # We're done! :-)
21699             BOOT_JDK_FOUND=yes
21700 
21701   # Only process if variable expands to non-empty
21702 
21703   if test "x$BOOT_JDK" != x; then
21704     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21705 
21706   # Input might be given as Windows format, start by converting to
21707   # unix format.
21708   path="$BOOT_JDK"
21709   new_path=`$CYGPATH -u "$path"`
21710 
21711   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21712   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21713   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21714   # "foo.exe" is OK but "foo" is an error.
21715   #
21716   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21717   # It is also a way to make sure we got the proper file name for the real test later on.
21718   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21719   if test "x$test_shortpath" = x; then
21720     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21721 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21722     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21723   fi
21724 
21725   # Call helper function which possibly converts this using DOS-style short mode.
21726   # If so, the updated path is stored in $new_path.
21727 
21728   input_path="$new_path"
21729   # Check if we need to convert this using DOS-style short mode. If the path
21730   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21731   # take no chances and rewrite it.
21732   # Note: m4 eats our [], so we need to use [ and ] instead.
21733   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21734   if test "x$has_forbidden_chars" != x; then
21735     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21736     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21737     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21738     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21739       # Going to short mode and back again did indeed matter. Since short mode is
21740       # case insensitive, let's make it lowercase to improve readability.
21741       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21742       # Now convert it back to Unix-stile (cygpath)
21743       input_path=`$CYGPATH -u "$shortmode_path"`
21744       new_path="$input_path"
21745     fi
21746   fi
21747 
21748   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21749   if test "x$test_cygdrive_prefix" = x; then
21750     # As a simple fix, exclude /usr/bin since it's not a real path.
21751     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21752       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21753       # a path prefixed by /cygdrive for fixpath to work.
21754       new_path="$CYGWIN_ROOT_PATH$input_path"
21755     fi
21756   fi
21757 
21758 
21759   if test "x$path" != "x$new_path"; then
21760     BOOT_JDK="$new_path"
21761     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21762 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21763   fi
21764 
21765     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21766 
21767   path="$BOOT_JDK"
21768   has_colon=`$ECHO $path | $GREP ^.:`
21769   new_path="$path"
21770   if test "x$has_colon" = x; then
21771     # Not in mixed or Windows style, start by that.
21772     new_path=`cmd //c echo $path`
21773   fi
21774 
21775 
21776   input_path="$new_path"
21777   # Check if we need to convert this using DOS-style short mode. If the path
21778   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21779   # take no chances and rewrite it.
21780   # Note: m4 eats our [], so we need to use [ and ] instead.
21781   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21782   if test "x$has_forbidden_chars" != x; then
21783     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21784     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21785   fi
21786 
21787 
21788   windows_path="$new_path"
21789   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21790     unix_path=`$CYGPATH -u "$windows_path"`
21791     new_path="$unix_path"
21792   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21793     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21794     new_path="$unix_path"
21795   fi
21796 
21797   if test "x$path" != "x$new_path"; then
21798     BOOT_JDK="$new_path"
21799     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21800 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21801   fi
21802 
21803   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21804   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21805 
21806     else
21807       # We're on a unix platform. Hooray! :)
21808       path="$BOOT_JDK"
21809       has_space=`$ECHO "$path" | $GREP " "`
21810       if test "x$has_space" != x; then
21811         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21812 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21813         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21814       fi
21815 
21816       # Use eval to expand a potential ~
21817       eval path="$path"
21818       if test ! -f "$path" && test ! -d "$path"; then
21819         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21820       fi
21821 
21822       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21823     fi
21824   fi
21825 
21826             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21827 $as_echo_n "checking for Boot JDK... " >&6; }
21828             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21829 $as_echo "$BOOT_JDK" >&6; }
21830             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21831 $as_echo_n "checking Boot JDK version... " >&6; }
21832             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21833             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21834 $as_echo "$BOOT_JDK_VERSION" >&6; }
21835           fi # end check jdk version
21836         fi # end check javac
21837       fi # end check java
21838     fi # end check boot jdk found
21839   fi
21840 
21841 
21842   if test "x$BOOT_JDK_FOUND" = xno; then
21843     # Now execute the test
21844 
21845   if test -x /usr/libexec/java_home; then
21846     BOOT_JDK=`/usr/libexec/java_home -v 1.7`
21847     BOOT_JDK_FOUND=maybe
21848     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5
21849 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;}
21850   fi
21851 
21852 
21853     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21854     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21855       # Do we have a bin/java?
21856       if test ! -x "$BOOT_JDK/bin/java"; then
21857         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21858 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21859         BOOT_JDK_FOUND=no
21860       else
21861         # Do we have a bin/javac?
21862         if test ! -x "$BOOT_JDK/bin/javac"; then
21863           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21864 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21865           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21866 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21867           BOOT_JDK_FOUND=no
21868         else
21869           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21870           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21871 
21872           # Extra M4 quote needed to protect [] in grep expression.
21873           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
21874           if test "x$FOUND_CORRECT_VERSION" = x; then
21875             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21876 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21877             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
21878 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
21879             BOOT_JDK_FOUND=no
21880           else
21881             # We're done! :-)
21882             BOOT_JDK_FOUND=yes
21883 
21884   # Only process if variable expands to non-empty
21885 
21886   if test "x$BOOT_JDK" != x; then
21887     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21888 
21889   # Input might be given as Windows format, start by converting to
21890   # unix format.
21891   path="$BOOT_JDK"
21892   new_path=`$CYGPATH -u "$path"`
21893 
21894   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21895   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21896   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21897   # "foo.exe" is OK but "foo" is an error.
21898   #
21899   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21900   # It is also a way to make sure we got the proper file name for the real test later on.
21901   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21902   if test "x$test_shortpath" = x; then
21903     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21904 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21905     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21906   fi
21907 
21908   # Call helper function which possibly converts this using DOS-style short mode.
21909   # If so, the updated path is stored in $new_path.
21910 
21911   input_path="$new_path"
21912   # Check if we need to convert this using DOS-style short mode. If the path
21913   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21914   # take no chances and rewrite it.
21915   # Note: m4 eats our [], so we need to use [ and ] instead.
21916   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21917   if test "x$has_forbidden_chars" != x; then
21918     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21919     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21920     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21921     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21922       # Going to short mode and back again did indeed matter. Since short mode is
21923       # case insensitive, let's make it lowercase to improve readability.
21924       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21925       # Now convert it back to Unix-stile (cygpath)
21926       input_path=`$CYGPATH -u "$shortmode_path"`
21927       new_path="$input_path"
21928     fi
21929   fi
21930 
21931   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21932   if test "x$test_cygdrive_prefix" = x; then
21933     # As a simple fix, exclude /usr/bin since it's not a real path.
21934     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21935       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21936       # a path prefixed by /cygdrive for fixpath to work.
21937       new_path="$CYGWIN_ROOT_PATH$input_path"
21938     fi
21939   fi
21940 
21941 
21942   if test "x$path" != "x$new_path"; then
21943     BOOT_JDK="$new_path"
21944     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21945 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21946   fi
21947 
21948     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21949 
21950   path="$BOOT_JDK"
21951   has_colon=`$ECHO $path | $GREP ^.:`
21952   new_path="$path"
21953   if test "x$has_colon" = x; then
21954     # Not in mixed or Windows style, start by that.
21955     new_path=`cmd //c echo $path`
21956   fi
21957 
21958 
21959   input_path="$new_path"
21960   # Check if we need to convert this using DOS-style short mode. If the path
21961   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21962   # take no chances and rewrite it.
21963   # Note: m4 eats our [], so we need to use [ and ] instead.
21964   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21965   if test "x$has_forbidden_chars" != x; then
21966     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21967     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21968   fi
21969 
21970 
21971   windows_path="$new_path"
21972   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21973     unix_path=`$CYGPATH -u "$windows_path"`
21974     new_path="$unix_path"
21975   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21976     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21977     new_path="$unix_path"
21978   fi
21979 
21980   if test "x$path" != "x$new_path"; then
21981     BOOT_JDK="$new_path"
21982     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21983 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21984   fi
21985 
21986   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21987   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21988 
21989     else
21990       # We're on a unix platform. Hooray! :)
21991       path="$BOOT_JDK"
21992       has_space=`$ECHO "$path" | $GREP " "`
21993       if test "x$has_space" != x; then
21994         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21995 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21996         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21997       fi
21998 
21999       # Use eval to expand a potential ~
22000       eval path="$path"
22001       if test ! -f "$path" && test ! -d "$path"; then
22002         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22003       fi
22004 
22005       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22006     fi
22007   fi
22008 
22009             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22010 $as_echo_n "checking for Boot JDK... " >&6; }
22011             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22012 $as_echo "$BOOT_JDK" >&6; }
22013             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22014 $as_echo_n "checking Boot JDK version... " >&6; }
22015             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22016             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22017 $as_echo "$BOOT_JDK_VERSION" >&6; }
22018           fi # end check jdk version
22019         fi # end check javac
22020       fi # end check java
22021     fi # end check boot jdk found
22022   fi
22023 
22024   fi
22025 
22026 
22027     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22028     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22029       # Do we have a bin/java?
22030       if test ! -x "$BOOT_JDK/bin/java"; then
22031         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22032 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22033         BOOT_JDK_FOUND=no
22034       else
22035         # Do we have a bin/javac?
22036         if test ! -x "$BOOT_JDK/bin/javac"; then
22037           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22038 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22039           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22040 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22041           BOOT_JDK_FOUND=no
22042         else
22043           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22044           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22045 
22046           # Extra M4 quote needed to protect [] in grep expression.
22047           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
22048           if test "x$FOUND_CORRECT_VERSION" = x; then
22049             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22050 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22051             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
22052 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
22053             BOOT_JDK_FOUND=no
22054           else
22055             # We're done! :-)
22056             BOOT_JDK_FOUND=yes
22057 
22058   # Only process if variable expands to non-empty
22059 
22060   if test "x$BOOT_JDK" != x; then
22061     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22062 
22063   # Input might be given as Windows format, start by converting to
22064   # unix format.
22065   path="$BOOT_JDK"
22066   new_path=`$CYGPATH -u "$path"`
22067 
22068   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22069   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22070   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22071   # "foo.exe" is OK but "foo" is an error.
22072   #
22073   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22074   # It is also a way to make sure we got the proper file name for the real test later on.
22075   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22076   if test "x$test_shortpath" = x; then
22077     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22078 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22079     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22080   fi
22081 
22082   # Call helper function which possibly converts this using DOS-style short mode.
22083   # If so, the updated path is stored in $new_path.
22084 
22085   input_path="$new_path"
22086   # Check if we need to convert this using DOS-style short mode. If the path
22087   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22088   # take no chances and rewrite it.
22089   # Note: m4 eats our [], so we need to use [ and ] instead.
22090   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22091   if test "x$has_forbidden_chars" != x; then
22092     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22093     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22094     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22095     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22096       # Going to short mode and back again did indeed matter. Since short mode is
22097       # case insensitive, let's make it lowercase to improve readability.
22098       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22099       # Now convert it back to Unix-stile (cygpath)
22100       input_path=`$CYGPATH -u "$shortmode_path"`
22101       new_path="$input_path"
22102     fi
22103   fi
22104 
22105   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22106   if test "x$test_cygdrive_prefix" = x; then
22107     # As a simple fix, exclude /usr/bin since it's not a real path.
22108     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22109       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22110       # a path prefixed by /cygdrive for fixpath to work.
22111       new_path="$CYGWIN_ROOT_PATH$input_path"
22112     fi
22113   fi
22114 
22115 
22116   if test "x$path" != "x$new_path"; then
22117     BOOT_JDK="$new_path"
22118     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22119 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22120   fi
22121 
22122     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22123 
22124   path="$BOOT_JDK"
22125   has_colon=`$ECHO $path | $GREP ^.:`
22126   new_path="$path"
22127   if test "x$has_colon" = x; then
22128     # Not in mixed or Windows style, start by that.
22129     new_path=`cmd //c echo $path`
22130   fi
22131 
22132 
22133   input_path="$new_path"
22134   # Check if we need to convert this using DOS-style short mode. If the path
22135   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22136   # take no chances and rewrite it.
22137   # Note: m4 eats our [], so we need to use [ and ] instead.
22138   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22139   if test "x$has_forbidden_chars" != x; then
22140     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22141     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22142   fi
22143 
22144 
22145   windows_path="$new_path"
22146   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22147     unix_path=`$CYGPATH -u "$windows_path"`
22148     new_path="$unix_path"
22149   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22150     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22151     new_path="$unix_path"
22152   fi
22153 
22154   if test "x$path" != "x$new_path"; then
22155     BOOT_JDK="$new_path"
22156     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22157 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22158   fi
22159 
22160   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22161   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22162 
22163     else
22164       # We're on a unix platform. Hooray! :)
22165       path="$BOOT_JDK"
22166       has_space=`$ECHO "$path" | $GREP " "`
22167       if test "x$has_space" != x; then
22168         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22169 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22170         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22171       fi
22172 
22173       # Use eval to expand a potential ~
22174       eval path="$path"
22175       if test ! -f "$path" && test ! -d "$path"; then
22176         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22177       fi
22178 
22179       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22180     fi
22181   fi
22182 
22183             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22184 $as_echo_n "checking for Boot JDK... " >&6; }
22185             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22186 $as_echo "$BOOT_JDK" >&6; }
22187             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22188 $as_echo_n "checking Boot JDK version... " >&6; }
22189             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22190             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22191 $as_echo "$BOOT_JDK_VERSION" >&6; }
22192           fi # end check jdk version
22193         fi # end check javac
22194       fi # end check java
22195     fi # end check boot jdk found
22196   fi
22197 
22198 
22199   # Test: Is $JAVA_HOME set?
22200 
22201   if test "x$BOOT_JDK_FOUND" = xno; then
22202     # Now execute the test
22203 
22204   if test "x$JAVA_HOME" != x; then
22205     JAVA_HOME_PROCESSED="$JAVA_HOME"
22206 
22207   # Only process if variable expands to non-empty
22208 
22209   if test "x$JAVA_HOME_PROCESSED" != x; then
22210     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22211 
22212   # Input might be given as Windows format, start by converting to
22213   # unix format.
22214   path="$JAVA_HOME_PROCESSED"
22215   new_path=`$CYGPATH -u "$path"`
22216 
22217   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22218   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22219   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22220   # "foo.exe" is OK but "foo" is an error.
22221   #
22222   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22223   # It is also a way to make sure we got the proper file name for the real test later on.
22224   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22225   if test "x$test_shortpath" = x; then
22226     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
22227 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
22228     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
22229   fi
22230 
22231   # Call helper function which possibly converts this using DOS-style short mode.
22232   # If so, the updated path is stored in $new_path.
22233 
22234   input_path="$new_path"
22235   # Check if we need to convert this using DOS-style short mode. If the path
22236   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22237   # take no chances and rewrite it.
22238   # Note: m4 eats our [], so we need to use [ and ] instead.
22239   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22240   if test "x$has_forbidden_chars" != x; then
22241     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22242     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22243     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22244     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22245       # Going to short mode and back again did indeed matter. Since short mode is
22246       # case insensitive, let's make it lowercase to improve readability.
22247       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22248       # Now convert it back to Unix-stile (cygpath)
22249       input_path=`$CYGPATH -u "$shortmode_path"`
22250       new_path="$input_path"
22251     fi
22252   fi
22253 
22254   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22255   if test "x$test_cygdrive_prefix" = x; then
22256     # As a simple fix, exclude /usr/bin since it's not a real path.
22257     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22258       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22259       # a path prefixed by /cygdrive for fixpath to work.
22260       new_path="$CYGWIN_ROOT_PATH$input_path"
22261     fi
22262   fi
22263 
22264 
22265   if test "x$path" != "x$new_path"; then
22266     JAVA_HOME_PROCESSED="$new_path"
22267     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
22268 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
22269   fi
22270 
22271     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22272 
22273   path="$JAVA_HOME_PROCESSED"
22274   has_colon=`$ECHO $path | $GREP ^.:`
22275   new_path="$path"
22276   if test "x$has_colon" = x; then
22277     # Not in mixed or Windows style, start by that.
22278     new_path=`cmd //c echo $path`
22279   fi
22280 
22281 
22282   input_path="$new_path"
22283   # Check if we need to convert this using DOS-style short mode. If the path
22284   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22285   # take no chances and rewrite it.
22286   # Note: m4 eats our [], so we need to use [ and ] instead.
22287   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22288   if test "x$has_forbidden_chars" != x; then
22289     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22290     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22291   fi
22292 
22293 
22294   windows_path="$new_path"
22295   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22296     unix_path=`$CYGPATH -u "$windows_path"`
22297     new_path="$unix_path"
22298   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22299     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22300     new_path="$unix_path"
22301   fi
22302 
22303   if test "x$path" != "x$new_path"; then
22304     JAVA_HOME_PROCESSED="$new_path"
22305     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
22306 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
22307   fi
22308 
22309   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22310   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22311 
22312     else
22313       # We're on a unix platform. Hooray! :)
22314       path="$JAVA_HOME_PROCESSED"
22315       has_space=`$ECHO "$path" | $GREP " "`
22316       if test "x$has_space" != x; then
22317         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
22318 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
22319         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22320       fi
22321 
22322       # Use eval to expand a potential ~
22323       eval path="$path"
22324       if test ! -f "$path" && test ! -d "$path"; then
22325         as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
22326       fi
22327 
22328       JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
22329     fi
22330   fi
22331 
22332     if test ! -d "$JAVA_HOME_PROCESSED"; then
22333       { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
22334 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
22335     else
22336       # Aha, the user has set a JAVA_HOME
22337       # let us use that as the Boot JDK.
22338       BOOT_JDK="$JAVA_HOME_PROCESSED"
22339       BOOT_JDK_FOUND=maybe
22340       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
22341 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
22342     fi
22343   fi
22344 
22345 
22346     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22347     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22348       # Do we have a bin/java?
22349       if test ! -x "$BOOT_JDK/bin/java"; then
22350         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22351 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22352         BOOT_JDK_FOUND=no
22353       else
22354         # Do we have a bin/javac?
22355         if test ! -x "$BOOT_JDK/bin/javac"; then
22356           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22357 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22358           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22359 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22360           BOOT_JDK_FOUND=no
22361         else
22362           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22363           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22364 
22365           # Extra M4 quote needed to protect [] in grep expression.
22366           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
22367           if test "x$FOUND_CORRECT_VERSION" = x; then
22368             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22369 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22370             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
22371 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
22372             BOOT_JDK_FOUND=no
22373           else
22374             # We're done! :-)
22375             BOOT_JDK_FOUND=yes
22376 
22377   # Only process if variable expands to non-empty
22378 
22379   if test "x$BOOT_JDK" != x; then
22380     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22381 
22382   # Input might be given as Windows format, start by converting to
22383   # unix format.
22384   path="$BOOT_JDK"
22385   new_path=`$CYGPATH -u "$path"`
22386 
22387   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22388   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22389   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22390   # "foo.exe" is OK but "foo" is an error.
22391   #
22392   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22393   # It is also a way to make sure we got the proper file name for the real test later on.
22394   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22395   if test "x$test_shortpath" = x; then
22396     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22397 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22398     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22399   fi
22400 
22401   # Call helper function which possibly converts this using DOS-style short mode.
22402   # If so, the updated path is stored in $new_path.
22403 
22404   input_path="$new_path"
22405   # Check if we need to convert this using DOS-style short mode. If the path
22406   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22407   # take no chances and rewrite it.
22408   # Note: m4 eats our [], so we need to use [ and ] instead.
22409   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22410   if test "x$has_forbidden_chars" != x; then
22411     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22412     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22413     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22414     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22415       # Going to short mode and back again did indeed matter. Since short mode is
22416       # case insensitive, let's make it lowercase to improve readability.
22417       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22418       # Now convert it back to Unix-stile (cygpath)
22419       input_path=`$CYGPATH -u "$shortmode_path"`
22420       new_path="$input_path"
22421     fi
22422   fi
22423 
22424   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22425   if test "x$test_cygdrive_prefix" = x; then
22426     # As a simple fix, exclude /usr/bin since it's not a real path.
22427     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22428       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22429       # a path prefixed by /cygdrive for fixpath to work.
22430       new_path="$CYGWIN_ROOT_PATH$input_path"
22431     fi
22432   fi
22433 
22434 
22435   if test "x$path" != "x$new_path"; then
22436     BOOT_JDK="$new_path"
22437     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22438 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22439   fi
22440 
22441     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22442 
22443   path="$BOOT_JDK"
22444   has_colon=`$ECHO $path | $GREP ^.:`
22445   new_path="$path"
22446   if test "x$has_colon" = x; then
22447     # Not in mixed or Windows style, start by that.
22448     new_path=`cmd //c echo $path`
22449   fi
22450 
22451 
22452   input_path="$new_path"
22453   # Check if we need to convert this using DOS-style short mode. If the path
22454   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22455   # take no chances and rewrite it.
22456   # Note: m4 eats our [], so we need to use [ and ] instead.
22457   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22458   if test "x$has_forbidden_chars" != x; then
22459     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22460     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22461   fi
22462 
22463 
22464   windows_path="$new_path"
22465   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22466     unix_path=`$CYGPATH -u "$windows_path"`
22467     new_path="$unix_path"
22468   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22469     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22470     new_path="$unix_path"
22471   fi
22472 
22473   if test "x$path" != "x$new_path"; then
22474     BOOT_JDK="$new_path"
22475     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22476 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22477   fi
22478 
22479   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22480   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22481 
22482     else
22483       # We're on a unix platform. Hooray! :)
22484       path="$BOOT_JDK"
22485       has_space=`$ECHO "$path" | $GREP " "`
22486       if test "x$has_space" != x; then
22487         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22488 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22489         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22490       fi
22491 
22492       # Use eval to expand a potential ~
22493       eval path="$path"
22494       if test ! -f "$path" && test ! -d "$path"; then
22495         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22496       fi
22497 
22498       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22499     fi
22500   fi
22501 
22502             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22503 $as_echo_n "checking for Boot JDK... " >&6; }
22504             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22505 $as_echo "$BOOT_JDK" >&6; }
22506             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22507 $as_echo_n "checking Boot JDK version... " >&6; }
22508             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22509             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22510 $as_echo "$BOOT_JDK_VERSION" >&6; }
22511           fi # end check jdk version
22512         fi # end check javac
22513       fi # end check java
22514     fi # end check boot jdk found
22515   fi
22516 
22517 
22518   # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
22519 
22520   if test "x$BOOT_JDK_FOUND" = xno; then
22521     # Now execute the test
22522 
22523   # Extract the first word of "javac", so it can be a program name with args.
22524 set dummy javac; ac_word=$2
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22526 $as_echo_n "checking for $ac_word... " >&6; }
22527 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
22528   $as_echo_n "(cached) " >&6
22529 else
22530   case $JAVAC_CHECK in
22531   [\\/]* | ?:[\\/]*)
22532   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
22533   ;;
22534   *)
22535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22536 for as_dir in $PATH
22537 do
22538   IFS=$as_save_IFS
22539   test -z "$as_dir" && as_dir=.
22540     for ac_exec_ext in '' $ac_executable_extensions; do
22541   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22542     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
22543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22544     break 2
22545   fi
22546 done
22547   done
22548 IFS=$as_save_IFS
22549 
22550   ;;
22551 esac
22552 fi
22553 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
22554 if test -n "$JAVAC_CHECK"; then
22555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
22556 $as_echo "$JAVAC_CHECK" >&6; }
22557 else
22558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22559 $as_echo "no" >&6; }
22560 fi
22561 
22562 
22563   # Extract the first word of "java", so it can be a program name with args.
22564 set dummy java; ac_word=$2
22565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22566 $as_echo_n "checking for $ac_word... " >&6; }
22567 if ${ac_cv_path_JAVA_CHECK+:} false; then :
22568   $as_echo_n "(cached) " >&6
22569 else
22570   case $JAVA_CHECK in
22571   [\\/]* | ?:[\\/]*)
22572   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
22573   ;;
22574   *)
22575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22576 for as_dir in $PATH
22577 do
22578   IFS=$as_save_IFS
22579   test -z "$as_dir" && as_dir=.
22580     for ac_exec_ext in '' $ac_executable_extensions; do
22581   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22582     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
22583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22584     break 2
22585   fi
22586 done
22587   done
22588 IFS=$as_save_IFS
22589 
22590   ;;
22591 esac
22592 fi
22593 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
22594 if test -n "$JAVA_CHECK"; then
22595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
22596 $as_echo "$JAVA_CHECK" >&6; }
22597 else
22598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22599 $as_echo "no" >&6; }
22600 fi
22601 
22602 
22603   BINARY="$JAVAC_CHECK"
22604   if test "x$JAVAC_CHECK" = x; then
22605     BINARY="$JAVA_CHECK"
22606   fi
22607   if test "x$BINARY" != x; then
22608     # So there is a java(c) binary, it might be part of a JDK.
22609     # Lets find the JDK/JRE directory by following symbolic links.
22610     # Linux/GNU systems often have links from /usr/bin/java to
22611     # /etc/alternatives/java to the real JDK binary.
22612 
22613   if test "x$OPENJDK_BUILD_OS" != xwindows; then
22614     # Follow a chain of symbolic links. Use readlink
22615     # where it exists, else fall back to horribly
22616     # complicated shell code.
22617     if test "x$READLINK_TESTED" != yes; then
22618       # On MacOSX there is a readlink tool with a different
22619       # purpose than the GNU readlink tool. Check the found readlink.
22620       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
22621       if test "x$ISGNU" = x; then
22622         # A readlink that we do not know how to use.
22623         # Are there other non-GNU readlinks out there?
22624         READLINK_TESTED=yes
22625         READLINK=
22626       fi
22627     fi
22628 
22629     if test "x$READLINK" != x; then
22630       BINARY=`$READLINK -f $BINARY`
22631     else
22632       # Save the current directory for restoring afterwards
22633       STARTDIR=$PWD
22634       COUNTER=0
22635       sym_link_dir=`$DIRNAME $BINARY`
22636       sym_link_file=`$BASENAME $BINARY`
22637       cd $sym_link_dir
22638       # Use -P flag to resolve symlinks in directories.
22639       cd `$THEPWDCMD -P`
22640       sym_link_dir=`$THEPWDCMD -P`
22641       # Resolve file symlinks
22642       while test $COUNTER -lt 20; do
22643         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
22644         if test "x$ISLINK" == x; then
22645           # This is not a symbolic link! We are done!
22646           break
22647         fi
22648         # Again resolve directory symlinks since the target of the just found
22649         # link could be in a different directory
22650         cd `$DIRNAME $ISLINK`
22651         sym_link_dir=`$THEPWDCMD -P`
22652         sym_link_file=`$BASENAME $ISLINK`
22653         let COUNTER=COUNTER+1
22654       done
22655       cd $STARTDIR
22656       BINARY=$sym_link_dir/$sym_link_file
22657     fi
22658   fi
22659 
22660     BOOT_JDK=`dirname "$BINARY"`
22661     BOOT_JDK=`cd "$BOOT_JDK/.."; pwd`
22662     if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
22663       # Looks like we found ourselves an JDK
22664       BOOT_JDK_FOUND=maybe
22665       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5
22666 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;}
22667     fi
22668   fi
22669 
22670 
22671     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22672     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22673       # Do we have a bin/java?
22674       if test ! -x "$BOOT_JDK/bin/java"; then
22675         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22676 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22677         BOOT_JDK_FOUND=no
22678       else
22679         # Do we have a bin/javac?
22680         if test ! -x "$BOOT_JDK/bin/javac"; then
22681           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22682 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22683           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22684 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22685           BOOT_JDK_FOUND=no
22686         else
22687           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22688           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22689 
22690           # Extra M4 quote needed to protect [] in grep expression.
22691           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
22692           if test "x$FOUND_CORRECT_VERSION" = x; then
22693             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22694 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22695             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
22696 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
22697             BOOT_JDK_FOUND=no
22698           else
22699             # We're done! :-)
22700             BOOT_JDK_FOUND=yes
22701 
22702   # Only process if variable expands to non-empty
22703 
22704   if test "x$BOOT_JDK" != x; then
22705     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22706 
22707   # Input might be given as Windows format, start by converting to
22708   # unix format.
22709   path="$BOOT_JDK"
22710   new_path=`$CYGPATH -u "$path"`
22711 
22712   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22713   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22714   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22715   # "foo.exe" is OK but "foo" is an error.
22716   #
22717   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22718   # It is also a way to make sure we got the proper file name for the real test later on.
22719   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22720   if test "x$test_shortpath" = x; then
22721     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22722 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22723     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22724   fi
22725 
22726   # Call helper function which possibly converts this using DOS-style short mode.
22727   # If so, the updated path is stored in $new_path.
22728 
22729   input_path="$new_path"
22730   # Check if we need to convert this using DOS-style short mode. If the path
22731   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22732   # take no chances and rewrite it.
22733   # Note: m4 eats our [], so we need to use [ and ] instead.
22734   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22735   if test "x$has_forbidden_chars" != x; then
22736     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22737     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22738     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22739     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22740       # Going to short mode and back again did indeed matter. Since short mode is
22741       # case insensitive, let's make it lowercase to improve readability.
22742       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22743       # Now convert it back to Unix-stile (cygpath)
22744       input_path=`$CYGPATH -u "$shortmode_path"`
22745       new_path="$input_path"
22746     fi
22747   fi
22748 
22749   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22750   if test "x$test_cygdrive_prefix" = x; then
22751     # As a simple fix, exclude /usr/bin since it's not a real path.
22752     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22753       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22754       # a path prefixed by /cygdrive for fixpath to work.
22755       new_path="$CYGWIN_ROOT_PATH$input_path"
22756     fi
22757   fi
22758 
22759 
22760   if test "x$path" != "x$new_path"; then
22761     BOOT_JDK="$new_path"
22762     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22763 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22764   fi
22765 
22766     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22767 
22768   path="$BOOT_JDK"
22769   has_colon=`$ECHO $path | $GREP ^.:`
22770   new_path="$path"
22771   if test "x$has_colon" = x; then
22772     # Not in mixed or Windows style, start by that.
22773     new_path=`cmd //c echo $path`
22774   fi
22775 
22776 
22777   input_path="$new_path"
22778   # Check if we need to convert this using DOS-style short mode. If the path
22779   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22780   # take no chances and rewrite it.
22781   # Note: m4 eats our [], so we need to use [ and ] instead.
22782   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22783   if test "x$has_forbidden_chars" != x; then
22784     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22785     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22786   fi
22787 
22788 
22789   windows_path="$new_path"
22790   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22791     unix_path=`$CYGPATH -u "$windows_path"`
22792     new_path="$unix_path"
22793   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22794     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22795     new_path="$unix_path"
22796   fi
22797 
22798   if test "x$path" != "x$new_path"; then
22799     BOOT_JDK="$new_path"
22800     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22801 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22802   fi
22803 
22804   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22805   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22806 
22807     else
22808       # We're on a unix platform. Hooray! :)
22809       path="$BOOT_JDK"
22810       has_space=`$ECHO "$path" | $GREP " "`
22811       if test "x$has_space" != x; then
22812         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22813 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22814         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22815       fi
22816 
22817       # Use eval to expand a potential ~
22818       eval path="$path"
22819       if test ! -f "$path" && test ! -d "$path"; then
22820         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22821       fi
22822 
22823       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22824     fi
22825   fi
22826 
22827             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22828 $as_echo_n "checking for Boot JDK... " >&6; }
22829             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22830 $as_echo "$BOOT_JDK" >&6; }
22831             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22832 $as_echo_n "checking Boot JDK version... " >&6; }
22833             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22834             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22835 $as_echo "$BOOT_JDK_VERSION" >&6; }
22836           fi # end check jdk version
22837         fi # end check javac
22838       fi # end check java
22839     fi # end check boot jdk found
22840   fi
22841 
22842 
22843   # Test: Is there a JDK installed in default, well-known locations?
22844 
22845   if test "x$BOOT_JDK_FOUND" = xno; then
22846     # Now execute the test
22847 
22848   if test "x$OPENJDK_TARGET_OS" = xwindows; then
22849 
22850   if test "x$BOOT_JDK_FOUND" = xno; then
22851     # Now execute the test
22852 
22853   if test "x$ProgramW6432" != x; then
22854     VIRTUAL_DIR="$ProgramW6432/Java"
22855 
22856   windows_path="$VIRTUAL_DIR"
22857   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22858     unix_path=`$CYGPATH -u "$windows_path"`
22859     VIRTUAL_DIR="$unix_path"
22860   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22861     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22862     VIRTUAL_DIR="$unix_path"
22863   fi
22864 
22865 
22866   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22867   BOOT_JDK_SUFFIX=""
22868   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22869   if test "x$ALL_JDKS_FOUND" != x; then
22870     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22871 
22872   if test "x$BOOT_JDK_FOUND" = xno; then
22873     # Now execute the test
22874 
22875         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22876         if test -d "$BOOT_JDK"; then
22877           BOOT_JDK_FOUND=maybe
22878           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22879 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22880         fi
22881 
22882 
22883     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22884     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22885       # Do we have a bin/java?
22886       if test ! -x "$BOOT_JDK/bin/java"; then
22887         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22888 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22889         BOOT_JDK_FOUND=no
22890       else
22891         # Do we have a bin/javac?
22892         if test ! -x "$BOOT_JDK/bin/javac"; then
22893           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22894 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22895           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22896 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22897           BOOT_JDK_FOUND=no
22898         else
22899           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22900           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22901 
22902           # Extra M4 quote needed to protect [] in grep expression.
22903           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
22904           if test "x$FOUND_CORRECT_VERSION" = x; then
22905             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22906 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22907             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
22908 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
22909             BOOT_JDK_FOUND=no
22910           else
22911             # We're done! :-)
22912             BOOT_JDK_FOUND=yes
22913 
22914   # Only process if variable expands to non-empty
22915 
22916   if test "x$BOOT_JDK" != x; then
22917     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22918 
22919   # Input might be given as Windows format, start by converting to
22920   # unix format.
22921   path="$BOOT_JDK"
22922   new_path=`$CYGPATH -u "$path"`
22923 
22924   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22925   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22926   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22927   # "foo.exe" is OK but "foo" is an error.
22928   #
22929   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22930   # It is also a way to make sure we got the proper file name for the real test later on.
22931   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22932   if test "x$test_shortpath" = x; then
22933     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22934 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22935     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22936   fi
22937 
22938   # Call helper function which possibly converts this using DOS-style short mode.
22939   # If so, the updated path is stored in $new_path.
22940 
22941   input_path="$new_path"
22942   # Check if we need to convert this using DOS-style short mode. If the path
22943   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22944   # take no chances and rewrite it.
22945   # Note: m4 eats our [], so we need to use [ and ] instead.
22946   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22947   if test "x$has_forbidden_chars" != x; then
22948     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22949     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22950     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22951     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22952       # Going to short mode and back again did indeed matter. Since short mode is
22953       # case insensitive, let's make it lowercase to improve readability.
22954       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22955       # Now convert it back to Unix-stile (cygpath)
22956       input_path=`$CYGPATH -u "$shortmode_path"`
22957       new_path="$input_path"
22958     fi
22959   fi
22960 
22961   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22962   if test "x$test_cygdrive_prefix" = x; then
22963     # As a simple fix, exclude /usr/bin since it's not a real path.
22964     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22965       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22966       # a path prefixed by /cygdrive for fixpath to work.
22967       new_path="$CYGWIN_ROOT_PATH$input_path"
22968     fi
22969   fi
22970 
22971 
22972   if test "x$path" != "x$new_path"; then
22973     BOOT_JDK="$new_path"
22974     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22975 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22976   fi
22977 
22978     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22979 
22980   path="$BOOT_JDK"
22981   has_colon=`$ECHO $path | $GREP ^.:`
22982   new_path="$path"
22983   if test "x$has_colon" = x; then
22984     # Not in mixed or Windows style, start by that.
22985     new_path=`cmd //c echo $path`
22986   fi
22987 
22988 
22989   input_path="$new_path"
22990   # Check if we need to convert this using DOS-style short mode. If the path
22991   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22992   # take no chances and rewrite it.
22993   # Note: m4 eats our [], so we need to use [ and ] instead.
22994   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22995   if test "x$has_forbidden_chars" != x; then
22996     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22997     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22998   fi
22999 
23000 
23001   windows_path="$new_path"
23002   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23003     unix_path=`$CYGPATH -u "$windows_path"`
23004     new_path="$unix_path"
23005   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23006     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23007     new_path="$unix_path"
23008   fi
23009 
23010   if test "x$path" != "x$new_path"; then
23011     BOOT_JDK="$new_path"
23012     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23013 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23014   fi
23015 
23016   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23017   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23018 
23019     else
23020       # We're on a unix platform. Hooray! :)
23021       path="$BOOT_JDK"
23022       has_space=`$ECHO "$path" | $GREP " "`
23023       if test "x$has_space" != x; then
23024         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23025 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23026         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23027       fi
23028 
23029       # Use eval to expand a potential ~
23030       eval path="$path"
23031       if test ! -f "$path" && test ! -d "$path"; then
23032         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23033       fi
23034 
23035       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23036     fi
23037   fi
23038 
23039             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23040 $as_echo_n "checking for Boot JDK... " >&6; }
23041             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23042 $as_echo "$BOOT_JDK" >&6; }
23043             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23044 $as_echo_n "checking Boot JDK version... " >&6; }
23045             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23046             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23047 $as_echo "$BOOT_JDK_VERSION" >&6; }
23048           fi # end check jdk version
23049         fi # end check javac
23050       fi # end check java
23051     fi # end check boot jdk found
23052   fi
23053 
23054     done
23055   fi
23056 
23057   fi
23058 
23059 
23060     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23061     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23062       # Do we have a bin/java?
23063       if test ! -x "$BOOT_JDK/bin/java"; then
23064         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23065 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23066         BOOT_JDK_FOUND=no
23067       else
23068         # Do we have a bin/javac?
23069         if test ! -x "$BOOT_JDK/bin/javac"; then
23070           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23071 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23072           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23073 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23074           BOOT_JDK_FOUND=no
23075         else
23076           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23077           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23078 
23079           # Extra M4 quote needed to protect [] in grep expression.
23080           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23081           if test "x$FOUND_CORRECT_VERSION" = x; then
23082             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23083 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23084             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23085 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23086             BOOT_JDK_FOUND=no
23087           else
23088             # We're done! :-)
23089             BOOT_JDK_FOUND=yes
23090 
23091   # Only process if variable expands to non-empty
23092 
23093   if test "x$BOOT_JDK" != x; then
23094     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23095 
23096   # Input might be given as Windows format, start by converting to
23097   # unix format.
23098   path="$BOOT_JDK"
23099   new_path=`$CYGPATH -u "$path"`
23100 
23101   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23102   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23103   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23104   # "foo.exe" is OK but "foo" is an error.
23105   #
23106   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23107   # It is also a way to make sure we got the proper file name for the real test later on.
23108   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23109   if test "x$test_shortpath" = x; then
23110     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23111 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23112     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23113   fi
23114 
23115   # Call helper function which possibly converts this using DOS-style short mode.
23116   # If so, the updated path is stored in $new_path.
23117 
23118   input_path="$new_path"
23119   # Check if we need to convert this using DOS-style short mode. If the path
23120   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23121   # take no chances and rewrite it.
23122   # Note: m4 eats our [], so we need to use [ and ] instead.
23123   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23124   if test "x$has_forbidden_chars" != x; then
23125     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23126     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23127     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23128     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23129       # Going to short mode and back again did indeed matter. Since short mode is
23130       # case insensitive, let's make it lowercase to improve readability.
23131       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23132       # Now convert it back to Unix-stile (cygpath)
23133       input_path=`$CYGPATH -u "$shortmode_path"`
23134       new_path="$input_path"
23135     fi
23136   fi
23137 
23138   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23139   if test "x$test_cygdrive_prefix" = x; then
23140     # As a simple fix, exclude /usr/bin since it's not a real path.
23141     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23142       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23143       # a path prefixed by /cygdrive for fixpath to work.
23144       new_path="$CYGWIN_ROOT_PATH$input_path"
23145     fi
23146   fi
23147 
23148 
23149   if test "x$path" != "x$new_path"; then
23150     BOOT_JDK="$new_path"
23151     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23152 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23153   fi
23154 
23155     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23156 
23157   path="$BOOT_JDK"
23158   has_colon=`$ECHO $path | $GREP ^.:`
23159   new_path="$path"
23160   if test "x$has_colon" = x; then
23161     # Not in mixed or Windows style, start by that.
23162     new_path=`cmd //c echo $path`
23163   fi
23164 
23165 
23166   input_path="$new_path"
23167   # Check if we need to convert this using DOS-style short mode. If the path
23168   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23169   # take no chances and rewrite it.
23170   # Note: m4 eats our [], so we need to use [ and ] instead.
23171   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23172   if test "x$has_forbidden_chars" != x; then
23173     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23174     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23175   fi
23176 
23177 
23178   windows_path="$new_path"
23179   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23180     unix_path=`$CYGPATH -u "$windows_path"`
23181     new_path="$unix_path"
23182   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23183     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23184     new_path="$unix_path"
23185   fi
23186 
23187   if test "x$path" != "x$new_path"; then
23188     BOOT_JDK="$new_path"
23189     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23190 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23191   fi
23192 
23193   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23194   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23195 
23196     else
23197       # We're on a unix platform. Hooray! :)
23198       path="$BOOT_JDK"
23199       has_space=`$ECHO "$path" | $GREP " "`
23200       if test "x$has_space" != x; then
23201         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23202 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23203         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23204       fi
23205 
23206       # Use eval to expand a potential ~
23207       eval path="$path"
23208       if test ! -f "$path" && test ! -d "$path"; then
23209         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23210       fi
23211 
23212       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23213     fi
23214   fi
23215 
23216             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23217 $as_echo_n "checking for Boot JDK... " >&6; }
23218             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23219 $as_echo "$BOOT_JDK" >&6; }
23220             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23221 $as_echo_n "checking Boot JDK version... " >&6; }
23222             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23223             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23224 $as_echo "$BOOT_JDK_VERSION" >&6; }
23225           fi # end check jdk version
23226         fi # end check javac
23227       fi # end check java
23228     fi # end check boot jdk found
23229   fi
23230 
23231 
23232   if test "x$BOOT_JDK_FOUND" = xno; then
23233     # Now execute the test
23234 
23235   if test "x$PROGRAMW6432" != x; then
23236     VIRTUAL_DIR="$PROGRAMW6432/Java"
23237 
23238   windows_path="$VIRTUAL_DIR"
23239   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23240     unix_path=`$CYGPATH -u "$windows_path"`
23241     VIRTUAL_DIR="$unix_path"
23242   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23243     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23244     VIRTUAL_DIR="$unix_path"
23245   fi
23246 
23247 
23248   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
23249   BOOT_JDK_SUFFIX=""
23250   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23251   if test "x$ALL_JDKS_FOUND" != x; then
23252     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23253 
23254   if test "x$BOOT_JDK_FOUND" = xno; then
23255     # Now execute the test
23256 
23257         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23258         if test -d "$BOOT_JDK"; then
23259           BOOT_JDK_FOUND=maybe
23260           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23261 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23262         fi
23263 
23264 
23265     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23266     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23267       # Do we have a bin/java?
23268       if test ! -x "$BOOT_JDK/bin/java"; then
23269         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23270 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23271         BOOT_JDK_FOUND=no
23272       else
23273         # Do we have a bin/javac?
23274         if test ! -x "$BOOT_JDK/bin/javac"; then
23275           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23276 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23277           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23278 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23279           BOOT_JDK_FOUND=no
23280         else
23281           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23282           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23283 
23284           # Extra M4 quote needed to protect [] in grep expression.
23285           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23286           if test "x$FOUND_CORRECT_VERSION" = x; then
23287             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23288 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23289             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23290 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23291             BOOT_JDK_FOUND=no
23292           else
23293             # We're done! :-)
23294             BOOT_JDK_FOUND=yes
23295 
23296   # Only process if variable expands to non-empty
23297 
23298   if test "x$BOOT_JDK" != x; then
23299     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23300 
23301   # Input might be given as Windows format, start by converting to
23302   # unix format.
23303   path="$BOOT_JDK"
23304   new_path=`$CYGPATH -u "$path"`
23305 
23306   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23307   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23308   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23309   # "foo.exe" is OK but "foo" is an error.
23310   #
23311   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23312   # It is also a way to make sure we got the proper file name for the real test later on.
23313   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23314   if test "x$test_shortpath" = x; then
23315     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23316 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23317     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23318   fi
23319 
23320   # Call helper function which possibly converts this using DOS-style short mode.
23321   # If so, the updated path is stored in $new_path.
23322 
23323   input_path="$new_path"
23324   # Check if we need to convert this using DOS-style short mode. If the path
23325   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23326   # take no chances and rewrite it.
23327   # Note: m4 eats our [], so we need to use [ and ] instead.
23328   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23329   if test "x$has_forbidden_chars" != x; then
23330     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23331     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23332     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23333     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23334       # Going to short mode and back again did indeed matter. Since short mode is
23335       # case insensitive, let's make it lowercase to improve readability.
23336       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23337       # Now convert it back to Unix-stile (cygpath)
23338       input_path=`$CYGPATH -u "$shortmode_path"`
23339       new_path="$input_path"
23340     fi
23341   fi
23342 
23343   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23344   if test "x$test_cygdrive_prefix" = x; then
23345     # As a simple fix, exclude /usr/bin since it's not a real path.
23346     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23347       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23348       # a path prefixed by /cygdrive for fixpath to work.
23349       new_path="$CYGWIN_ROOT_PATH$input_path"
23350     fi
23351   fi
23352 
23353 
23354   if test "x$path" != "x$new_path"; then
23355     BOOT_JDK="$new_path"
23356     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23357 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23358   fi
23359 
23360     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23361 
23362   path="$BOOT_JDK"
23363   has_colon=`$ECHO $path | $GREP ^.:`
23364   new_path="$path"
23365   if test "x$has_colon" = x; then
23366     # Not in mixed or Windows style, start by that.
23367     new_path=`cmd //c echo $path`
23368   fi
23369 
23370 
23371   input_path="$new_path"
23372   # Check if we need to convert this using DOS-style short mode. If the path
23373   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23374   # take no chances and rewrite it.
23375   # Note: m4 eats our [], so we need to use [ and ] instead.
23376   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23377   if test "x$has_forbidden_chars" != x; then
23378     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23379     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23380   fi
23381 
23382 
23383   windows_path="$new_path"
23384   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23385     unix_path=`$CYGPATH -u "$windows_path"`
23386     new_path="$unix_path"
23387   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23388     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23389     new_path="$unix_path"
23390   fi
23391 
23392   if test "x$path" != "x$new_path"; then
23393     BOOT_JDK="$new_path"
23394     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23395 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23396   fi
23397 
23398   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23399   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23400 
23401     else
23402       # We're on a unix platform. Hooray! :)
23403       path="$BOOT_JDK"
23404       has_space=`$ECHO "$path" | $GREP " "`
23405       if test "x$has_space" != x; then
23406         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23407 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23408         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23409       fi
23410 
23411       # Use eval to expand a potential ~
23412       eval path="$path"
23413       if test ! -f "$path" && test ! -d "$path"; then
23414         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23415       fi
23416 
23417       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23418     fi
23419   fi
23420 
23421             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23422 $as_echo_n "checking for Boot JDK... " >&6; }
23423             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23424 $as_echo "$BOOT_JDK" >&6; }
23425             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23426 $as_echo_n "checking Boot JDK version... " >&6; }
23427             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23428             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23429 $as_echo "$BOOT_JDK_VERSION" >&6; }
23430           fi # end check jdk version
23431         fi # end check javac
23432       fi # end check java
23433     fi # end check boot jdk found
23434   fi
23435 
23436     done
23437   fi
23438 
23439   fi
23440 
23441 
23442     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23443     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23444       # Do we have a bin/java?
23445       if test ! -x "$BOOT_JDK/bin/java"; then
23446         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23447 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23448         BOOT_JDK_FOUND=no
23449       else
23450         # Do we have a bin/javac?
23451         if test ! -x "$BOOT_JDK/bin/javac"; then
23452           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23453 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23454           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23455 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23456           BOOT_JDK_FOUND=no
23457         else
23458           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23459           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23460 
23461           # Extra M4 quote needed to protect [] in grep expression.
23462           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23463           if test "x$FOUND_CORRECT_VERSION" = x; then
23464             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23465 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23466             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23467 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23468             BOOT_JDK_FOUND=no
23469           else
23470             # We're done! :-)
23471             BOOT_JDK_FOUND=yes
23472 
23473   # Only process if variable expands to non-empty
23474 
23475   if test "x$BOOT_JDK" != x; then
23476     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23477 
23478   # Input might be given as Windows format, start by converting to
23479   # unix format.
23480   path="$BOOT_JDK"
23481   new_path=`$CYGPATH -u "$path"`
23482 
23483   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23484   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23485   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23486   # "foo.exe" is OK but "foo" is an error.
23487   #
23488   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23489   # It is also a way to make sure we got the proper file name for the real test later on.
23490   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23491   if test "x$test_shortpath" = x; then
23492     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23493 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23494     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23495   fi
23496 
23497   # Call helper function which possibly converts this using DOS-style short mode.
23498   # If so, the updated path is stored in $new_path.
23499 
23500   input_path="$new_path"
23501   # Check if we need to convert this using DOS-style short mode. If the path
23502   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23503   # take no chances and rewrite it.
23504   # Note: m4 eats our [], so we need to use [ and ] instead.
23505   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23506   if test "x$has_forbidden_chars" != x; then
23507     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23508     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23509     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23510     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23511       # Going to short mode and back again did indeed matter. Since short mode is
23512       # case insensitive, let's make it lowercase to improve readability.
23513       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23514       # Now convert it back to Unix-stile (cygpath)
23515       input_path=`$CYGPATH -u "$shortmode_path"`
23516       new_path="$input_path"
23517     fi
23518   fi
23519 
23520   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23521   if test "x$test_cygdrive_prefix" = x; then
23522     # As a simple fix, exclude /usr/bin since it's not a real path.
23523     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23524       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23525       # a path prefixed by /cygdrive for fixpath to work.
23526       new_path="$CYGWIN_ROOT_PATH$input_path"
23527     fi
23528   fi
23529 
23530 
23531   if test "x$path" != "x$new_path"; then
23532     BOOT_JDK="$new_path"
23533     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23534 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23535   fi
23536 
23537     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23538 
23539   path="$BOOT_JDK"
23540   has_colon=`$ECHO $path | $GREP ^.:`
23541   new_path="$path"
23542   if test "x$has_colon" = x; then
23543     # Not in mixed or Windows style, start by that.
23544     new_path=`cmd //c echo $path`
23545   fi
23546 
23547 
23548   input_path="$new_path"
23549   # Check if we need to convert this using DOS-style short mode. If the path
23550   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23551   # take no chances and rewrite it.
23552   # Note: m4 eats our [], so we need to use [ and ] instead.
23553   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23554   if test "x$has_forbidden_chars" != x; then
23555     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23556     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23557   fi
23558 
23559 
23560   windows_path="$new_path"
23561   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23562     unix_path=`$CYGPATH -u "$windows_path"`
23563     new_path="$unix_path"
23564   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23565     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23566     new_path="$unix_path"
23567   fi
23568 
23569   if test "x$path" != "x$new_path"; then
23570     BOOT_JDK="$new_path"
23571     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23572 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23573   fi
23574 
23575   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23576   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23577 
23578     else
23579       # We're on a unix platform. Hooray! :)
23580       path="$BOOT_JDK"
23581       has_space=`$ECHO "$path" | $GREP " "`
23582       if test "x$has_space" != x; then
23583         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23584 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23585         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23586       fi
23587 
23588       # Use eval to expand a potential ~
23589       eval path="$path"
23590       if test ! -f "$path" && test ! -d "$path"; then
23591         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23592       fi
23593 
23594       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23595     fi
23596   fi
23597 
23598             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23599 $as_echo_n "checking for Boot JDK... " >&6; }
23600             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23601 $as_echo "$BOOT_JDK" >&6; }
23602             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23603 $as_echo_n "checking Boot JDK version... " >&6; }
23604             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23605             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23606 $as_echo "$BOOT_JDK_VERSION" >&6; }
23607           fi # end check jdk version
23608         fi # end check javac
23609       fi # end check java
23610     fi # end check boot jdk found
23611   fi
23612 
23613 
23614   if test "x$BOOT_JDK_FOUND" = xno; then
23615     # Now execute the test
23616 
23617   if test "x$PROGRAMFILES" != x; then
23618     VIRTUAL_DIR="$PROGRAMFILES/Java"
23619 
23620   windows_path="$VIRTUAL_DIR"
23621   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23622     unix_path=`$CYGPATH -u "$windows_path"`
23623     VIRTUAL_DIR="$unix_path"
23624   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23625     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23626     VIRTUAL_DIR="$unix_path"
23627   fi
23628 
23629 
23630   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
23631   BOOT_JDK_SUFFIX=""
23632   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23633   if test "x$ALL_JDKS_FOUND" != x; then
23634     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23635 
23636   if test "x$BOOT_JDK_FOUND" = xno; then
23637     # Now execute the test
23638 
23639         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23640         if test -d "$BOOT_JDK"; then
23641           BOOT_JDK_FOUND=maybe
23642           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23643 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23644         fi
23645 
23646 
23647     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23648     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23649       # Do we have a bin/java?
23650       if test ! -x "$BOOT_JDK/bin/java"; then
23651         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23652 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23653         BOOT_JDK_FOUND=no
23654       else
23655         # Do we have a bin/javac?
23656         if test ! -x "$BOOT_JDK/bin/javac"; then
23657           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23658 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23659           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23660 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23661           BOOT_JDK_FOUND=no
23662         else
23663           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23664           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23665 
23666           # Extra M4 quote needed to protect [] in grep expression.
23667           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23668           if test "x$FOUND_CORRECT_VERSION" = x; then
23669             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23670 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23671             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23672 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23673             BOOT_JDK_FOUND=no
23674           else
23675             # We're done! :-)
23676             BOOT_JDK_FOUND=yes
23677 
23678   # Only process if variable expands to non-empty
23679 
23680   if test "x$BOOT_JDK" != x; then
23681     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23682 
23683   # Input might be given as Windows format, start by converting to
23684   # unix format.
23685   path="$BOOT_JDK"
23686   new_path=`$CYGPATH -u "$path"`
23687 
23688   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23689   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23690   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23691   # "foo.exe" is OK but "foo" is an error.
23692   #
23693   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23694   # It is also a way to make sure we got the proper file name for the real test later on.
23695   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23696   if test "x$test_shortpath" = x; then
23697     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23698 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23699     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23700   fi
23701 
23702   # Call helper function which possibly converts this using DOS-style short mode.
23703   # If so, the updated path is stored in $new_path.
23704 
23705   input_path="$new_path"
23706   # Check if we need to convert this using DOS-style short mode. If the path
23707   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23708   # take no chances and rewrite it.
23709   # Note: m4 eats our [], so we need to use [ and ] instead.
23710   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23711   if test "x$has_forbidden_chars" != x; then
23712     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23713     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23714     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23715     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23716       # Going to short mode and back again did indeed matter. Since short mode is
23717       # case insensitive, let's make it lowercase to improve readability.
23718       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23719       # Now convert it back to Unix-stile (cygpath)
23720       input_path=`$CYGPATH -u "$shortmode_path"`
23721       new_path="$input_path"
23722     fi
23723   fi
23724 
23725   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23726   if test "x$test_cygdrive_prefix" = x; then
23727     # As a simple fix, exclude /usr/bin since it's not a real path.
23728     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23729       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23730       # a path prefixed by /cygdrive for fixpath to work.
23731       new_path="$CYGWIN_ROOT_PATH$input_path"
23732     fi
23733   fi
23734 
23735 
23736   if test "x$path" != "x$new_path"; then
23737     BOOT_JDK="$new_path"
23738     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23739 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23740   fi
23741 
23742     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23743 
23744   path="$BOOT_JDK"
23745   has_colon=`$ECHO $path | $GREP ^.:`
23746   new_path="$path"
23747   if test "x$has_colon" = x; then
23748     # Not in mixed or Windows style, start by that.
23749     new_path=`cmd //c echo $path`
23750   fi
23751 
23752 
23753   input_path="$new_path"
23754   # Check if we need to convert this using DOS-style short mode. If the path
23755   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23756   # take no chances and rewrite it.
23757   # Note: m4 eats our [], so we need to use [ and ] instead.
23758   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23759   if test "x$has_forbidden_chars" != x; then
23760     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23761     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23762   fi
23763 
23764 
23765   windows_path="$new_path"
23766   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23767     unix_path=`$CYGPATH -u "$windows_path"`
23768     new_path="$unix_path"
23769   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23770     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23771     new_path="$unix_path"
23772   fi
23773 
23774   if test "x$path" != "x$new_path"; then
23775     BOOT_JDK="$new_path"
23776     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23777 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23778   fi
23779 
23780   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23781   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23782 
23783     else
23784       # We're on a unix platform. Hooray! :)
23785       path="$BOOT_JDK"
23786       has_space=`$ECHO "$path" | $GREP " "`
23787       if test "x$has_space" != x; then
23788         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23789 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23790         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23791       fi
23792 
23793       # Use eval to expand a potential ~
23794       eval path="$path"
23795       if test ! -f "$path" && test ! -d "$path"; then
23796         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23797       fi
23798 
23799       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23800     fi
23801   fi
23802 
23803             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23804 $as_echo_n "checking for Boot JDK... " >&6; }
23805             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23806 $as_echo "$BOOT_JDK" >&6; }
23807             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23808 $as_echo_n "checking Boot JDK version... " >&6; }
23809             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23810             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23811 $as_echo "$BOOT_JDK_VERSION" >&6; }
23812           fi # end check jdk version
23813         fi # end check javac
23814       fi # end check java
23815     fi # end check boot jdk found
23816   fi
23817 
23818     done
23819   fi
23820 
23821   fi
23822 
23823 
23824     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23825     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23826       # Do we have a bin/java?
23827       if test ! -x "$BOOT_JDK/bin/java"; then
23828         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23829 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23830         BOOT_JDK_FOUND=no
23831       else
23832         # Do we have a bin/javac?
23833         if test ! -x "$BOOT_JDK/bin/javac"; then
23834           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23835 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23836           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23837 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23838           BOOT_JDK_FOUND=no
23839         else
23840           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23841           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23842 
23843           # Extra M4 quote needed to protect [] in grep expression.
23844           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23845           if test "x$FOUND_CORRECT_VERSION" = x; then
23846             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23847 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23848             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23849 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23850             BOOT_JDK_FOUND=no
23851           else
23852             # We're done! :-)
23853             BOOT_JDK_FOUND=yes
23854 
23855   # Only process if variable expands to non-empty
23856 
23857   if test "x$BOOT_JDK" != x; then
23858     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23859 
23860   # Input might be given as Windows format, start by converting to
23861   # unix format.
23862   path="$BOOT_JDK"
23863   new_path=`$CYGPATH -u "$path"`
23864 
23865   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23866   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23867   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23868   # "foo.exe" is OK but "foo" is an error.
23869   #
23870   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23871   # It is also a way to make sure we got the proper file name for the real test later on.
23872   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23873   if test "x$test_shortpath" = x; then
23874     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23875 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23876     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23877   fi
23878 
23879   # Call helper function which possibly converts this using DOS-style short mode.
23880   # If so, the updated path is stored in $new_path.
23881 
23882   input_path="$new_path"
23883   # Check if we need to convert this using DOS-style short mode. If the path
23884   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23885   # take no chances and rewrite it.
23886   # Note: m4 eats our [], so we need to use [ and ] instead.
23887   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23888   if test "x$has_forbidden_chars" != x; then
23889     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23890     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23891     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23892     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23893       # Going to short mode and back again did indeed matter. Since short mode is
23894       # case insensitive, let's make it lowercase to improve readability.
23895       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23896       # Now convert it back to Unix-stile (cygpath)
23897       input_path=`$CYGPATH -u "$shortmode_path"`
23898       new_path="$input_path"
23899     fi
23900   fi
23901 
23902   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23903   if test "x$test_cygdrive_prefix" = x; then
23904     # As a simple fix, exclude /usr/bin since it's not a real path.
23905     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23906       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23907       # a path prefixed by /cygdrive for fixpath to work.
23908       new_path="$CYGWIN_ROOT_PATH$input_path"
23909     fi
23910   fi
23911 
23912 
23913   if test "x$path" != "x$new_path"; then
23914     BOOT_JDK="$new_path"
23915     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23916 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23917   fi
23918 
23919     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23920 
23921   path="$BOOT_JDK"
23922   has_colon=`$ECHO $path | $GREP ^.:`
23923   new_path="$path"
23924   if test "x$has_colon" = x; then
23925     # Not in mixed or Windows style, start by that.
23926     new_path=`cmd //c echo $path`
23927   fi
23928 
23929 
23930   input_path="$new_path"
23931   # Check if we need to convert this using DOS-style short mode. If the path
23932   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23933   # take no chances and rewrite it.
23934   # Note: m4 eats our [], so we need to use [ and ] instead.
23935   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23936   if test "x$has_forbidden_chars" != x; then
23937     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23938     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23939   fi
23940 
23941 
23942   windows_path="$new_path"
23943   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23944     unix_path=`$CYGPATH -u "$windows_path"`
23945     new_path="$unix_path"
23946   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23947     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23948     new_path="$unix_path"
23949   fi
23950 
23951   if test "x$path" != "x$new_path"; then
23952     BOOT_JDK="$new_path"
23953     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23954 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23955   fi
23956 
23957   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23958   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23959 
23960     else
23961       # We're on a unix platform. Hooray! :)
23962       path="$BOOT_JDK"
23963       has_space=`$ECHO "$path" | $GREP " "`
23964       if test "x$has_space" != x; then
23965         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23966 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23967         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23968       fi
23969 
23970       # Use eval to expand a potential ~
23971       eval path="$path"
23972       if test ! -f "$path" && test ! -d "$path"; then
23973         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23974       fi
23975 
23976       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23977     fi
23978   fi
23979 
23980             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23981 $as_echo_n "checking for Boot JDK... " >&6; }
23982             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23983 $as_echo "$BOOT_JDK" >&6; }
23984             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23985 $as_echo_n "checking Boot JDK version... " >&6; }
23986             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23987             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23988 $as_echo "$BOOT_JDK_VERSION" >&6; }
23989           fi # end check jdk version
23990         fi # end check javac
23991       fi # end check java
23992     fi # end check boot jdk found
23993   fi
23994 
23995 
23996   if test "x$BOOT_JDK_FOUND" = xno; then
23997     # Now execute the test
23998 
23999   if test "x$ProgramFiles" != x; then
24000     VIRTUAL_DIR="$ProgramFiles/Java"
24001 
24002   windows_path="$VIRTUAL_DIR"
24003   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24004     unix_path=`$CYGPATH -u "$windows_path"`
24005     VIRTUAL_DIR="$unix_path"
24006   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24007     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24008     VIRTUAL_DIR="$unix_path"
24009   fi
24010 
24011 
24012   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
24013   BOOT_JDK_SUFFIX=""
24014   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24015   if test "x$ALL_JDKS_FOUND" != x; then
24016     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24017 
24018   if test "x$BOOT_JDK_FOUND" = xno; then
24019     # Now execute the test
24020 
24021         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24022         if test -d "$BOOT_JDK"; then
24023           BOOT_JDK_FOUND=maybe
24024           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24025 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24026         fi
24027 
24028 
24029     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24030     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24031       # Do we have a bin/java?
24032       if test ! -x "$BOOT_JDK/bin/java"; then
24033         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24034 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24035         BOOT_JDK_FOUND=no
24036       else
24037         # Do we have a bin/javac?
24038         if test ! -x "$BOOT_JDK/bin/javac"; then
24039           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24040 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24041           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24042 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24043           BOOT_JDK_FOUND=no
24044         else
24045           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24046           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24047 
24048           # Extra M4 quote needed to protect [] in grep expression.
24049           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24050           if test "x$FOUND_CORRECT_VERSION" = x; then
24051             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24052 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24053             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24054 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24055             BOOT_JDK_FOUND=no
24056           else
24057             # We're done! :-)
24058             BOOT_JDK_FOUND=yes
24059 
24060   # Only process if variable expands to non-empty
24061 
24062   if test "x$BOOT_JDK" != x; then
24063     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24064 
24065   # Input might be given as Windows format, start by converting to
24066   # unix format.
24067   path="$BOOT_JDK"
24068   new_path=`$CYGPATH -u "$path"`
24069 
24070   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24071   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24072   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24073   # "foo.exe" is OK but "foo" is an error.
24074   #
24075   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24076   # It is also a way to make sure we got the proper file name for the real test later on.
24077   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24078   if test "x$test_shortpath" = x; then
24079     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24080 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24081     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24082   fi
24083 
24084   # Call helper function which possibly converts this using DOS-style short mode.
24085   # If so, the updated path is stored in $new_path.
24086 
24087   input_path="$new_path"
24088   # Check if we need to convert this using DOS-style short mode. If the path
24089   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24090   # take no chances and rewrite it.
24091   # Note: m4 eats our [], so we need to use [ and ] instead.
24092   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24093   if test "x$has_forbidden_chars" != x; then
24094     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24095     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24096     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24097     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24098       # Going to short mode and back again did indeed matter. Since short mode is
24099       # case insensitive, let's make it lowercase to improve readability.
24100       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24101       # Now convert it back to Unix-stile (cygpath)
24102       input_path=`$CYGPATH -u "$shortmode_path"`
24103       new_path="$input_path"
24104     fi
24105   fi
24106 
24107   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24108   if test "x$test_cygdrive_prefix" = x; then
24109     # As a simple fix, exclude /usr/bin since it's not a real path.
24110     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24111       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24112       # a path prefixed by /cygdrive for fixpath to work.
24113       new_path="$CYGWIN_ROOT_PATH$input_path"
24114     fi
24115   fi
24116 
24117 
24118   if test "x$path" != "x$new_path"; then
24119     BOOT_JDK="$new_path"
24120     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24121 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24122   fi
24123 
24124     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24125 
24126   path="$BOOT_JDK"
24127   has_colon=`$ECHO $path | $GREP ^.:`
24128   new_path="$path"
24129   if test "x$has_colon" = x; then
24130     # Not in mixed or Windows style, start by that.
24131     new_path=`cmd //c echo $path`
24132   fi
24133 
24134 
24135   input_path="$new_path"
24136   # Check if we need to convert this using DOS-style short mode. If the path
24137   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24138   # take no chances and rewrite it.
24139   # Note: m4 eats our [], so we need to use [ and ] instead.
24140   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24141   if test "x$has_forbidden_chars" != x; then
24142     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24143     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24144   fi
24145 
24146 
24147   windows_path="$new_path"
24148   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24149     unix_path=`$CYGPATH -u "$windows_path"`
24150     new_path="$unix_path"
24151   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24152     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24153     new_path="$unix_path"
24154   fi
24155 
24156   if test "x$path" != "x$new_path"; then
24157     BOOT_JDK="$new_path"
24158     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24159 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24160   fi
24161 
24162   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24163   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24164 
24165     else
24166       # We're on a unix platform. Hooray! :)
24167       path="$BOOT_JDK"
24168       has_space=`$ECHO "$path" | $GREP " "`
24169       if test "x$has_space" != x; then
24170         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24171 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24172         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24173       fi
24174 
24175       # Use eval to expand a potential ~
24176       eval path="$path"
24177       if test ! -f "$path" && test ! -d "$path"; then
24178         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24179       fi
24180 
24181       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24182     fi
24183   fi
24184 
24185             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24186 $as_echo_n "checking for Boot JDK... " >&6; }
24187             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24188 $as_echo "$BOOT_JDK" >&6; }
24189             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24190 $as_echo_n "checking Boot JDK version... " >&6; }
24191             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24192             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24193 $as_echo "$BOOT_JDK_VERSION" >&6; }
24194           fi # end check jdk version
24195         fi # end check javac
24196       fi # end check java
24197     fi # end check boot jdk found
24198   fi
24199 
24200     done
24201   fi
24202 
24203   fi
24204 
24205 
24206     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24207     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24208       # Do we have a bin/java?
24209       if test ! -x "$BOOT_JDK/bin/java"; then
24210         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24211 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24212         BOOT_JDK_FOUND=no
24213       else
24214         # Do we have a bin/javac?
24215         if test ! -x "$BOOT_JDK/bin/javac"; then
24216           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24217 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24218           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24219 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24220           BOOT_JDK_FOUND=no
24221         else
24222           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24223           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24224 
24225           # Extra M4 quote needed to protect [] in grep expression.
24226           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24227           if test "x$FOUND_CORRECT_VERSION" = x; then
24228             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24229 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24230             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24231 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24232             BOOT_JDK_FOUND=no
24233           else
24234             # We're done! :-)
24235             BOOT_JDK_FOUND=yes
24236 
24237   # Only process if variable expands to non-empty
24238 
24239   if test "x$BOOT_JDK" != x; then
24240     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24241 
24242   # Input might be given as Windows format, start by converting to
24243   # unix format.
24244   path="$BOOT_JDK"
24245   new_path=`$CYGPATH -u "$path"`
24246 
24247   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24248   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24249   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24250   # "foo.exe" is OK but "foo" is an error.
24251   #
24252   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24253   # It is also a way to make sure we got the proper file name for the real test later on.
24254   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24255   if test "x$test_shortpath" = x; then
24256     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24257 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24258     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24259   fi
24260 
24261   # Call helper function which possibly converts this using DOS-style short mode.
24262   # If so, the updated path is stored in $new_path.
24263 
24264   input_path="$new_path"
24265   # Check if we need to convert this using DOS-style short mode. If the path
24266   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24267   # take no chances and rewrite it.
24268   # Note: m4 eats our [], so we need to use [ and ] instead.
24269   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24270   if test "x$has_forbidden_chars" != x; then
24271     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24272     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24273     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24274     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24275       # Going to short mode and back again did indeed matter. Since short mode is
24276       # case insensitive, let's make it lowercase to improve readability.
24277       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24278       # Now convert it back to Unix-stile (cygpath)
24279       input_path=`$CYGPATH -u "$shortmode_path"`
24280       new_path="$input_path"
24281     fi
24282   fi
24283 
24284   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24285   if test "x$test_cygdrive_prefix" = x; then
24286     # As a simple fix, exclude /usr/bin since it's not a real path.
24287     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24288       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24289       # a path prefixed by /cygdrive for fixpath to work.
24290       new_path="$CYGWIN_ROOT_PATH$input_path"
24291     fi
24292   fi
24293 
24294 
24295   if test "x$path" != "x$new_path"; then
24296     BOOT_JDK="$new_path"
24297     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24298 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24299   fi
24300 
24301     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24302 
24303   path="$BOOT_JDK"
24304   has_colon=`$ECHO $path | $GREP ^.:`
24305   new_path="$path"
24306   if test "x$has_colon" = x; then
24307     # Not in mixed or Windows style, start by that.
24308     new_path=`cmd //c echo $path`
24309   fi
24310 
24311 
24312   input_path="$new_path"
24313   # Check if we need to convert this using DOS-style short mode. If the path
24314   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24315   # take no chances and rewrite it.
24316   # Note: m4 eats our [], so we need to use [ and ] instead.
24317   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24318   if test "x$has_forbidden_chars" != x; then
24319     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24320     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24321   fi
24322 
24323 
24324   windows_path="$new_path"
24325   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24326     unix_path=`$CYGPATH -u "$windows_path"`
24327     new_path="$unix_path"
24328   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24329     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24330     new_path="$unix_path"
24331   fi
24332 
24333   if test "x$path" != "x$new_path"; then
24334     BOOT_JDK="$new_path"
24335     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24336 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24337   fi
24338 
24339   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24340   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24341 
24342     else
24343       # We're on a unix platform. Hooray! :)
24344       path="$BOOT_JDK"
24345       has_space=`$ECHO "$path" | $GREP " "`
24346       if test "x$has_space" != x; then
24347         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24348 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24349         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24350       fi
24351 
24352       # Use eval to expand a potential ~
24353       eval path="$path"
24354       if test ! -f "$path" && test ! -d "$path"; then
24355         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24356       fi
24357 
24358       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24359     fi
24360   fi
24361 
24362             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24363 $as_echo_n "checking for Boot JDK... " >&6; }
24364             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24365 $as_echo "$BOOT_JDK" >&6; }
24366             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24367 $as_echo_n "checking Boot JDK version... " >&6; }
24368             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24369             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24370 $as_echo "$BOOT_JDK_VERSION" >&6; }
24371           fi # end check jdk version
24372         fi # end check javac
24373       fi # end check java
24374     fi # end check boot jdk found
24375   fi
24376 
24377 
24378   if test "x$BOOT_JDK_FOUND" = xno; then
24379     # Now execute the test
24380 
24381   BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java"
24382   BOOT_JDK_SUFFIX=""
24383   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24384   if test "x$ALL_JDKS_FOUND" != x; then
24385     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24386 
24387   if test "x$BOOT_JDK_FOUND" = xno; then
24388     # Now execute the test
24389 
24390         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24391         if test -d "$BOOT_JDK"; then
24392           BOOT_JDK_FOUND=maybe
24393           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24394 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24395         fi
24396 
24397 
24398     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24399     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24400       # Do we have a bin/java?
24401       if test ! -x "$BOOT_JDK/bin/java"; then
24402         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24403 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24404         BOOT_JDK_FOUND=no
24405       else
24406         # Do we have a bin/javac?
24407         if test ! -x "$BOOT_JDK/bin/javac"; then
24408           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24409 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24410           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24411 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24412           BOOT_JDK_FOUND=no
24413         else
24414           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24415           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24416 
24417           # Extra M4 quote needed to protect [] in grep expression.
24418           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24419           if test "x$FOUND_CORRECT_VERSION" = x; then
24420             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24421 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24422             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24423 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24424             BOOT_JDK_FOUND=no
24425           else
24426             # We're done! :-)
24427             BOOT_JDK_FOUND=yes
24428 
24429   # Only process if variable expands to non-empty
24430 
24431   if test "x$BOOT_JDK" != x; then
24432     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24433 
24434   # Input might be given as Windows format, start by converting to
24435   # unix format.
24436   path="$BOOT_JDK"
24437   new_path=`$CYGPATH -u "$path"`
24438 
24439   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24440   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24441   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24442   # "foo.exe" is OK but "foo" is an error.
24443   #
24444   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24445   # It is also a way to make sure we got the proper file name for the real test later on.
24446   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24447   if test "x$test_shortpath" = x; then
24448     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24449 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24450     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24451   fi
24452 
24453   # Call helper function which possibly converts this using DOS-style short mode.
24454   # If so, the updated path is stored in $new_path.
24455 
24456   input_path="$new_path"
24457   # Check if we need to convert this using DOS-style short mode. If the path
24458   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24459   # take no chances and rewrite it.
24460   # Note: m4 eats our [], so we need to use [ and ] instead.
24461   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24462   if test "x$has_forbidden_chars" != x; then
24463     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24464     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24465     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24466     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24467       # Going to short mode and back again did indeed matter. Since short mode is
24468       # case insensitive, let's make it lowercase to improve readability.
24469       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24470       # Now convert it back to Unix-stile (cygpath)
24471       input_path=`$CYGPATH -u "$shortmode_path"`
24472       new_path="$input_path"
24473     fi
24474   fi
24475 
24476   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24477   if test "x$test_cygdrive_prefix" = x; then
24478     # As a simple fix, exclude /usr/bin since it's not a real path.
24479     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24480       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24481       # a path prefixed by /cygdrive for fixpath to work.
24482       new_path="$CYGWIN_ROOT_PATH$input_path"
24483     fi
24484   fi
24485 
24486 
24487   if test "x$path" != "x$new_path"; then
24488     BOOT_JDK="$new_path"
24489     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24490 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24491   fi
24492 
24493     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24494 
24495   path="$BOOT_JDK"
24496   has_colon=`$ECHO $path | $GREP ^.:`
24497   new_path="$path"
24498   if test "x$has_colon" = x; then
24499     # Not in mixed or Windows style, start by that.
24500     new_path=`cmd //c echo $path`
24501   fi
24502 
24503 
24504   input_path="$new_path"
24505   # Check if we need to convert this using DOS-style short mode. If the path
24506   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24507   # take no chances and rewrite it.
24508   # Note: m4 eats our [], so we need to use [ and ] instead.
24509   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24510   if test "x$has_forbidden_chars" != x; then
24511     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24512     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24513   fi
24514 
24515 
24516   windows_path="$new_path"
24517   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24518     unix_path=`$CYGPATH -u "$windows_path"`
24519     new_path="$unix_path"
24520   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24521     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24522     new_path="$unix_path"
24523   fi
24524 
24525   if test "x$path" != "x$new_path"; then
24526     BOOT_JDK="$new_path"
24527     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24528 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24529   fi
24530 
24531   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24532   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24533 
24534     else
24535       # We're on a unix platform. Hooray! :)
24536       path="$BOOT_JDK"
24537       has_space=`$ECHO "$path" | $GREP " "`
24538       if test "x$has_space" != x; then
24539         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24540 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24541         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24542       fi
24543 
24544       # Use eval to expand a potential ~
24545       eval path="$path"
24546       if test ! -f "$path" && test ! -d "$path"; then
24547         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24548       fi
24549 
24550       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24551     fi
24552   fi
24553 
24554             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24555 $as_echo_n "checking for Boot JDK... " >&6; }
24556             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24557 $as_echo "$BOOT_JDK" >&6; }
24558             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24559 $as_echo_n "checking Boot JDK version... " >&6; }
24560             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24561             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24562 $as_echo "$BOOT_JDK_VERSION" >&6; }
24563           fi # end check jdk version
24564         fi # end check javac
24565       fi # end check java
24566     fi # end check boot jdk found
24567   fi
24568 
24569     done
24570   fi
24571 
24572 
24573     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24574     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24575       # Do we have a bin/java?
24576       if test ! -x "$BOOT_JDK/bin/java"; then
24577         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24578 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24579         BOOT_JDK_FOUND=no
24580       else
24581         # Do we have a bin/javac?
24582         if test ! -x "$BOOT_JDK/bin/javac"; then
24583           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24584 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24585           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24586 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24587           BOOT_JDK_FOUND=no
24588         else
24589           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24590           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24591 
24592           # Extra M4 quote needed to protect [] in grep expression.
24593           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24594           if test "x$FOUND_CORRECT_VERSION" = x; then
24595             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24596 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24597             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24598 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24599             BOOT_JDK_FOUND=no
24600           else
24601             # We're done! :-)
24602             BOOT_JDK_FOUND=yes
24603 
24604   # Only process if variable expands to non-empty
24605 
24606   if test "x$BOOT_JDK" != x; then
24607     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24608 
24609   # Input might be given as Windows format, start by converting to
24610   # unix format.
24611   path="$BOOT_JDK"
24612   new_path=`$CYGPATH -u "$path"`
24613 
24614   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24615   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24616   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24617   # "foo.exe" is OK but "foo" is an error.
24618   #
24619   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24620   # It is also a way to make sure we got the proper file name for the real test later on.
24621   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24622   if test "x$test_shortpath" = x; then
24623     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24624 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24625     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24626   fi
24627 
24628   # Call helper function which possibly converts this using DOS-style short mode.
24629   # If so, the updated path is stored in $new_path.
24630 
24631   input_path="$new_path"
24632   # Check if we need to convert this using DOS-style short mode. If the path
24633   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24634   # take no chances and rewrite it.
24635   # Note: m4 eats our [], so we need to use [ and ] instead.
24636   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24637   if test "x$has_forbidden_chars" != x; then
24638     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24639     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24640     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24641     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24642       # Going to short mode and back again did indeed matter. Since short mode is
24643       # case insensitive, let's make it lowercase to improve readability.
24644       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24645       # Now convert it back to Unix-stile (cygpath)
24646       input_path=`$CYGPATH -u "$shortmode_path"`
24647       new_path="$input_path"
24648     fi
24649   fi
24650 
24651   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24652   if test "x$test_cygdrive_prefix" = x; then
24653     # As a simple fix, exclude /usr/bin since it's not a real path.
24654     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24655       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24656       # a path prefixed by /cygdrive for fixpath to work.
24657       new_path="$CYGWIN_ROOT_PATH$input_path"
24658     fi
24659   fi
24660 
24661 
24662   if test "x$path" != "x$new_path"; then
24663     BOOT_JDK="$new_path"
24664     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24665 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24666   fi
24667 
24668     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24669 
24670   path="$BOOT_JDK"
24671   has_colon=`$ECHO $path | $GREP ^.:`
24672   new_path="$path"
24673   if test "x$has_colon" = x; then
24674     # Not in mixed or Windows style, start by that.
24675     new_path=`cmd //c echo $path`
24676   fi
24677 
24678 
24679   input_path="$new_path"
24680   # Check if we need to convert this using DOS-style short mode. If the path
24681   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24682   # take no chances and rewrite it.
24683   # Note: m4 eats our [], so we need to use [ and ] instead.
24684   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24685   if test "x$has_forbidden_chars" != x; then
24686     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24687     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24688   fi
24689 
24690 
24691   windows_path="$new_path"
24692   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24693     unix_path=`$CYGPATH -u "$windows_path"`
24694     new_path="$unix_path"
24695   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24696     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24697     new_path="$unix_path"
24698   fi
24699 
24700   if test "x$path" != "x$new_path"; then
24701     BOOT_JDK="$new_path"
24702     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24703 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24704   fi
24705 
24706   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24707   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24708 
24709     else
24710       # We're on a unix platform. Hooray! :)
24711       path="$BOOT_JDK"
24712       has_space=`$ECHO "$path" | $GREP " "`
24713       if test "x$has_space" != x; then
24714         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24715 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24716         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24717       fi
24718 
24719       # Use eval to expand a potential ~
24720       eval path="$path"
24721       if test ! -f "$path" && test ! -d "$path"; then
24722         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24723       fi
24724 
24725       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24726     fi
24727   fi
24728 
24729             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24730 $as_echo_n "checking for Boot JDK... " >&6; }
24731             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24732 $as_echo "$BOOT_JDK" >&6; }
24733             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24734 $as_echo_n "checking Boot JDK version... " >&6; }
24735             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24736             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24737 $as_echo "$BOOT_JDK_VERSION" >&6; }
24738           fi # end check jdk version
24739         fi # end check javac
24740       fi # end check java
24741     fi # end check boot jdk found
24742   fi
24743 
24744   elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
24745 
24746   if test "x$BOOT_JDK_FOUND" = xno; then
24747     # Now execute the test
24748 
24749   BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines"
24750   BOOT_JDK_SUFFIX="/Contents/Home"
24751   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24752   if test "x$ALL_JDKS_FOUND" != x; then
24753     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24754 
24755   if test "x$BOOT_JDK_FOUND" = xno; then
24756     # Now execute the test
24757 
24758         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24759         if test -d "$BOOT_JDK"; then
24760           BOOT_JDK_FOUND=maybe
24761           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24762 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24763         fi
24764 
24765 
24766     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24767     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24768       # Do we have a bin/java?
24769       if test ! -x "$BOOT_JDK/bin/java"; then
24770         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24771 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24772         BOOT_JDK_FOUND=no
24773       else
24774         # Do we have a bin/javac?
24775         if test ! -x "$BOOT_JDK/bin/javac"; then
24776           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24777 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24778           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24779 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24780           BOOT_JDK_FOUND=no
24781         else
24782           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24783           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24784 
24785           # Extra M4 quote needed to protect [] in grep expression.
24786           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24787           if test "x$FOUND_CORRECT_VERSION" = x; then
24788             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24789 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24790             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24791 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24792             BOOT_JDK_FOUND=no
24793           else
24794             # We're done! :-)
24795             BOOT_JDK_FOUND=yes
24796 
24797   # Only process if variable expands to non-empty
24798 
24799   if test "x$BOOT_JDK" != x; then
24800     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24801 
24802   # Input might be given as Windows format, start by converting to
24803   # unix format.
24804   path="$BOOT_JDK"
24805   new_path=`$CYGPATH -u "$path"`
24806 
24807   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24808   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24809   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24810   # "foo.exe" is OK but "foo" is an error.
24811   #
24812   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24813   # It is also a way to make sure we got the proper file name for the real test later on.
24814   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24815   if test "x$test_shortpath" = x; then
24816     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24817 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24818     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24819   fi
24820 
24821   # Call helper function which possibly converts this using DOS-style short mode.
24822   # If so, the updated path is stored in $new_path.
24823 
24824   input_path="$new_path"
24825   # Check if we need to convert this using DOS-style short mode. If the path
24826   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24827   # take no chances and rewrite it.
24828   # Note: m4 eats our [], so we need to use [ and ] instead.
24829   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24830   if test "x$has_forbidden_chars" != x; then
24831     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24832     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24833     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24834     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24835       # Going to short mode and back again did indeed matter. Since short mode is
24836       # case insensitive, let's make it lowercase to improve readability.
24837       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24838       # Now convert it back to Unix-stile (cygpath)
24839       input_path=`$CYGPATH -u "$shortmode_path"`
24840       new_path="$input_path"
24841     fi
24842   fi
24843 
24844   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24845   if test "x$test_cygdrive_prefix" = x; then
24846     # As a simple fix, exclude /usr/bin since it's not a real path.
24847     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24848       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24849       # a path prefixed by /cygdrive for fixpath to work.
24850       new_path="$CYGWIN_ROOT_PATH$input_path"
24851     fi
24852   fi
24853 
24854 
24855   if test "x$path" != "x$new_path"; then
24856     BOOT_JDK="$new_path"
24857     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24858 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24859   fi
24860 
24861     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24862 
24863   path="$BOOT_JDK"
24864   has_colon=`$ECHO $path | $GREP ^.:`
24865   new_path="$path"
24866   if test "x$has_colon" = x; then
24867     # Not in mixed or Windows style, start by that.
24868     new_path=`cmd //c echo $path`
24869   fi
24870 
24871 
24872   input_path="$new_path"
24873   # Check if we need to convert this using DOS-style short mode. If the path
24874   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24875   # take no chances and rewrite it.
24876   # Note: m4 eats our [], so we need to use [ and ] instead.
24877   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24878   if test "x$has_forbidden_chars" != x; then
24879     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24880     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24881   fi
24882 
24883 
24884   windows_path="$new_path"
24885   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24886     unix_path=`$CYGPATH -u "$windows_path"`
24887     new_path="$unix_path"
24888   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24889     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24890     new_path="$unix_path"
24891   fi
24892 
24893   if test "x$path" != "x$new_path"; then
24894     BOOT_JDK="$new_path"
24895     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24896 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24897   fi
24898 
24899   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24900   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24901 
24902     else
24903       # We're on a unix platform. Hooray! :)
24904       path="$BOOT_JDK"
24905       has_space=`$ECHO "$path" | $GREP " "`
24906       if test "x$has_space" != x; then
24907         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24908 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24909         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24910       fi
24911 
24912       # Use eval to expand a potential ~
24913       eval path="$path"
24914       if test ! -f "$path" && test ! -d "$path"; then
24915         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24916       fi
24917 
24918       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24919     fi
24920   fi
24921 
24922             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24923 $as_echo_n "checking for Boot JDK... " >&6; }
24924             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24925 $as_echo "$BOOT_JDK" >&6; }
24926             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24927 $as_echo_n "checking Boot JDK version... " >&6; }
24928             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24929             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24930 $as_echo "$BOOT_JDK_VERSION" >&6; }
24931           fi # end check jdk version
24932         fi # end check javac
24933       fi # end check java
24934     fi # end check boot jdk found
24935   fi
24936 
24937     done
24938   fi
24939 
24940 
24941     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24942     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24943       # Do we have a bin/java?
24944       if test ! -x "$BOOT_JDK/bin/java"; then
24945         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24946 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24947         BOOT_JDK_FOUND=no
24948       else
24949         # Do we have a bin/javac?
24950         if test ! -x "$BOOT_JDK/bin/javac"; then
24951           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24952 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24953           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24954 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24955           BOOT_JDK_FOUND=no
24956         else
24957           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24958           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24959 
24960           # Extra M4 quote needed to protect [] in grep expression.
24961           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24962           if test "x$FOUND_CORRECT_VERSION" = x; then
24963             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24964 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24965             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24966 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24967             BOOT_JDK_FOUND=no
24968           else
24969             # We're done! :-)
24970             BOOT_JDK_FOUND=yes
24971 
24972   # Only process if variable expands to non-empty
24973 
24974   if test "x$BOOT_JDK" != x; then
24975     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24976 
24977   # Input might be given as Windows format, start by converting to
24978   # unix format.
24979   path="$BOOT_JDK"
24980   new_path=`$CYGPATH -u "$path"`
24981 
24982   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24983   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24984   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24985   # "foo.exe" is OK but "foo" is an error.
24986   #
24987   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24988   # It is also a way to make sure we got the proper file name for the real test later on.
24989   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24990   if test "x$test_shortpath" = x; then
24991     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24992 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24993     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24994   fi
24995 
24996   # Call helper function which possibly converts this using DOS-style short mode.
24997   # If so, the updated path is stored in $new_path.
24998 
24999   input_path="$new_path"
25000   # Check if we need to convert this using DOS-style short mode. If the path
25001   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25002   # take no chances and rewrite it.
25003   # Note: m4 eats our [], so we need to use [ and ] instead.
25004   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
25005   if test "x$has_forbidden_chars" != x; then
25006     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25007     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
25008     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
25009     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
25010       # Going to short mode and back again did indeed matter. Since short mode is
25011       # case insensitive, let's make it lowercase to improve readability.
25012       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25013       # Now convert it back to Unix-stile (cygpath)
25014       input_path=`$CYGPATH -u "$shortmode_path"`
25015       new_path="$input_path"
25016     fi
25017   fi
25018 
25019   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
25020   if test "x$test_cygdrive_prefix" = x; then
25021     # As a simple fix, exclude /usr/bin since it's not a real path.
25022     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
25023       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
25024       # a path prefixed by /cygdrive for fixpath to work.
25025       new_path="$CYGWIN_ROOT_PATH$input_path"
25026     fi
25027   fi
25028 
25029 
25030   if test "x$path" != "x$new_path"; then
25031     BOOT_JDK="$new_path"
25032     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25033 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25034   fi
25035 
25036     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25037 
25038   path="$BOOT_JDK"
25039   has_colon=`$ECHO $path | $GREP ^.:`
25040   new_path="$path"
25041   if test "x$has_colon" = x; then
25042     # Not in mixed or Windows style, start by that.
25043     new_path=`cmd //c echo $path`
25044   fi
25045 
25046 
25047   input_path="$new_path"
25048   # Check if we need to convert this using DOS-style short mode. If the path
25049   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25050   # take no chances and rewrite it.
25051   # Note: m4 eats our [], so we need to use [ and ] instead.
25052   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
25053   if test "x$has_forbidden_chars" != x; then
25054     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25055     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25056   fi
25057 
25058 
25059   windows_path="$new_path"
25060   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25061     unix_path=`$CYGPATH -u "$windows_path"`
25062     new_path="$unix_path"
25063   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25064     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
25065     new_path="$unix_path"
25066   fi
25067 
25068   if test "x$path" != "x$new_path"; then
25069