1 #!/bin/bash
   2 #
   3 # ##########################################################
   4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
   5 # ##########################################################
   6 #
   7 #! /bin/sh
   8 # Guess values for system-dependent variables and create Makefiles.
   9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk8.
  10 #
  11 # Report bugs to <build-dev@openjdk.java.net>.
  12 #
  13 #
  14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  15 #
  16 #
  17 # This configure script is free software; the Free Software Foundation
  18 # gives unlimited permission to copy, distribute and modify it.
  19 ## -------------------- ##
  20 ## M4sh Initialization. ##
  21 ## -------------------- ##
  22 
  23 # Be more Bourne compatible
  24 DUALCASE=1; export DUALCASE # for MKS sh
  25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  26   emulate sh
  27   NULLCMD=:
  28   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  29   # is contrary to our usage.  Disable this feature.
  30   alias -g '${1+"$@"}'='"$@"'
  31   setopt NO_GLOB_SUBST
  32 else
  33   case `(set -o) 2>/dev/null` in #(
  34   *posix*) :
  35     set -o posix ;; #(
  36   *) :
  37      ;;
  38 esac
  39 fi
  40 
  41 
  42 as_nl='
  43 '
  44 export as_nl
  45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
  46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  49 # Prefer a ksh shell builtin over an external printf program on Solaris,
  50 # but without wasting forks for bash or zsh.
  51 if test -z "$BASH_VERSION$ZSH_VERSION" \
  52     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  53   as_echo='print -r --'
  54   as_echo_n='print -rn --'
  55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  56   as_echo='printf %s\n'
  57   as_echo_n='printf %s'
  58 else
  59   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  60     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  61     as_echo_n='/usr/ucb/echo -n'
  62   else
  63     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  64     as_echo_n_body='eval
  65       arg=$1;
  66       case $arg in #(
  67       *"$as_nl"*)
  68         expr "X$arg" : "X\\(.*\\)$as_nl";
  69         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  70       esac;
  71       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  72     '
  73     export as_echo_n_body
  74     as_echo_n='sh -c $as_echo_n_body as_echo'
  75   fi
  76   export as_echo_body
  77   as_echo='sh -c $as_echo_body as_echo'
  78 fi
  79 
  80 # The user is always right.
  81 if test "${PATH_SEPARATOR+set}" != set; then
  82   PATH_SEPARATOR=:
  83   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  84     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  85       PATH_SEPARATOR=';'
  86   }
  87 fi
  88 
  89 
  90 # IFS
  91 # We need space, tab and new line, in precisely that order.  Quoting is
  92 # there to prevent editors from complaining about space-tab.
  93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  94 # splitting by setting IFS to empty value.)
  95 IFS=" ""        $as_nl"
  96 
  97 # Find who we are.  Look in the path if we contain no directory separator.
  98 as_myself=
  99 case $0 in #((
 100   *[\\/]* ) as_myself=$0 ;;
 101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 102 for as_dir in $PATH
 103 do
 104   IFS=$as_save_IFS
 105   test -z "$as_dir" && as_dir=.
 106     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 107   done
 108 IFS=$as_save_IFS
 109 
 110      ;;
 111 esac
 112 # We did not find ourselves, most probably we were run as `sh COMMAND'
 113 # in which case we are not to be found in the path.
 114 if test "x$as_myself" = x; then
 115   as_myself=$0
 116 fi
 117 if test ! -f "$as_myself"; then
 118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 119   exit 1
 120 fi
 121 
 122 # Unset variables that we do not need and which cause bugs (e.g. in
 123 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 124 # suppresses any "Segmentation fault" message there.  '((' could
 125 # trigger a bug in pdksh 5.2.14.
 126 for as_var in BASH_ENV ENV MAIL MAILPATH
 127 do eval test x\${$as_var+set} = xset \
 128   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 129 done
 130 PS1='$ '
 131 PS2='> '
 132 PS4='+ '
 133 
 134 # NLS nuisances.
 135 LC_ALL=C
 136 export LC_ALL
 137 LANGUAGE=C
 138 export LANGUAGE
 139 
 140 # CDPATH.
 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 142 
 143 # Use a proper internal environment variable to ensure we don't fall
 144   # into an infinite loop, continuously re-executing ourselves.
 145   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 146     _as_can_reexec=no; export _as_can_reexec;
 147     # We cannot yet assume a decent shell, so we have to provide a
 148 # neutralization value for shells without unset; and this also
 149 # works around shells that cannot unset nonexistent variables.
 150 # Preserve -v and -x to the replacement shell.
 151 BASH_ENV=/dev/null
 152 ENV=/dev/null
 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 154 case $- in # ((((
 155   *v*x* | *x*v* ) as_opts=-vx ;;
 156   *v* ) as_opts=-v ;;
 157   *x* ) as_opts=-x ;;
 158   * ) as_opts= ;;
 159 esac
 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 161 # Admittedly, this is quite paranoid, since all the known shells bail
 162 # out after a failed `exec'.
 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 164 as_fn_exit 255
 165   fi
 166   # We don't want this to propagate to other subprocesses.
 167           { _as_can_reexec=; unset _as_can_reexec;}
 168 if test "x$CONFIG_SHELL" = x; then
 169   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 170   emulate sh
 171   NULLCMD=:
 172   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 173   # is contrary to our usage.  Disable this feature.
 174   alias -g '\${1+\"\$@\"}'='\"\$@\"'
 175   setopt NO_GLOB_SUBST
 176 else
 177   case \`(set -o) 2>/dev/null\` in #(
 178   *posix*) :
 179     set -o posix ;; #(
 180   *) :
 181      ;;
 182 esac
 183 fi
 184 "
 185   as_required="as_fn_return () { (exit \$1); }
 186 as_fn_success () { as_fn_return 0; }
 187 as_fn_failure () { as_fn_return 1; }
 188 as_fn_ret_success () { return 0; }
 189 as_fn_ret_failure () { return 1; }
 190 
 191 exitcode=0
 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 197 
 198 else
 199   exitcode=1; echo positional parameters were not saved.
 200 fi
 201 test x\$exitcode = x0 || exit 1
 202 test -x / || exit 1"
 203   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 204   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 205   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 206   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 207 test \$(( 1 + 1 )) = 2 || exit 1"
 208   if (eval "$as_required") 2>/dev/null; then :
 209   as_have_required=yes
 210 else
 211   as_have_required=no
 212 fi
 213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 214 
 215 else
 216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 217 as_found=false
 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 219 do
 220   IFS=$as_save_IFS
 221   test -z "$as_dir" && as_dir=.
 222   as_found=:
 223   case $as_dir in #(
 224          /*)
 225            for as_base in sh bash ksh sh5; do
 226              # Try only shells that exist, to save several forks.
 227              as_shell=$as_dir/$as_base
 228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 230   CONFIG_SHELL=$as_shell as_have_required=yes
 231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 232   break 2
 233 fi
 234 fi
 235            done;;
 236        esac
 237   as_found=false
 238 done
 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 241   CONFIG_SHELL=$SHELL as_have_required=yes
 242 fi; }
 243 IFS=$as_save_IFS
 244 
 245 
 246       if test "x$CONFIG_SHELL" != x; then :
 247   export CONFIG_SHELL
 248              # We cannot yet assume a decent shell, so we have to provide a
 249 # neutralization value for shells without unset; and this also
 250 # works around shells that cannot unset nonexistent variables.
 251 # Preserve -v and -x to the replacement shell.
 252 BASH_ENV=/dev/null
 253 ENV=/dev/null
 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 255 case $- in # ((((
 256   *v*x* | *x*v* ) as_opts=-vx ;;
 257   *v* ) as_opts=-v ;;
 258   *x* ) as_opts=-x ;;
 259   * ) as_opts= ;;
 260 esac
 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 262 # Admittedly, this is quite paranoid, since all the known shells bail
 263 # out after a failed `exec'.
 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 265 exit 255
 266 fi
 267 
 268     if test x$as_have_required = xno; then :
 269   $as_echo "$0: This script requires a shell more modern than all"
 270   $as_echo "$0: the shells that I found on your system."
 271   if test x${ZSH_VERSION+set} = xset ; then
 272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 274   else
 275     $as_echo "$0: Please tell bug-autoconf@gnu.org and
 276 $0: build-dev@openjdk.java.net about your system, including
 277 $0: any error possibly output before this message. Then
 278 $0: install a modern shell, or manually run the script
 279 $0: under such a shell if you do have one."
 280   fi
 281   exit 1
 282 fi
 283 fi
 284 fi
 285 SHELL=${CONFIG_SHELL-/bin/sh}
 286 export SHELL
 287 # Unset more variables known to interfere with behavior of common tools.
 288 CLICOLOR_FORCE= GREP_OPTIONS=
 289 unset CLICOLOR_FORCE GREP_OPTIONS
 290 
 291 ## --------------------- ##
 292 ## M4sh Shell Functions. ##
 293 ## --------------------- ##
 294 # as_fn_unset VAR
 295 # ---------------
 296 # Portably unset VAR.
 297 as_fn_unset ()
 298 {
 299   { eval $1=; unset $1;}
 300 }
 301 as_unset=as_fn_unset
 302 
 303 # as_fn_set_status STATUS
 304 # -----------------------
 305 # Set $? to STATUS, without forking.
 306 as_fn_set_status ()
 307 {
 308   return $1
 309 } # as_fn_set_status
 310 
 311 # as_fn_exit STATUS
 312 # -----------------
 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 314 as_fn_exit ()
 315 {
 316   set +e
 317   as_fn_set_status $1
 318   exit $1
 319 } # as_fn_exit
 320 
 321 # as_fn_mkdir_p
 322 # -------------
 323 # Create "$as_dir" as a directory, including parents if necessary.
 324 as_fn_mkdir_p ()
 325 {
 326 
 327   case $as_dir in #(
 328   -*) as_dir=./$as_dir;;
 329   esac
 330   test -d "$as_dir" || eval $as_mkdir_p || {
 331     as_dirs=
 332     while :; do
 333       case $as_dir in #(
 334       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 335       *) as_qdir=$as_dir;;
 336       esac
 337       as_dirs="'$as_qdir' $as_dirs"
 338       as_dir=`$as_dirname -- "$as_dir" ||
 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 340          X"$as_dir" : 'X\(//\)[^/]' \| \
 341          X"$as_dir" : 'X\(//\)$' \| \
 342          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 343 $as_echo X"$as_dir" |
 344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 345             s//\1/
 346             q
 347           }
 348           /^X\(\/\/\)[^/].*/{
 349             s//\1/
 350             q
 351           }
 352           /^X\(\/\/\)$/{
 353             s//\1/
 354             q
 355           }
 356           /^X\(\/\).*/{
 357             s//\1/
 358             q
 359           }
 360           s/.*/./; q'`
 361       test -d "$as_dir" && break
 362     done
 363     test -z "$as_dirs" || eval "mkdir $as_dirs"
 364   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 365 
 366 
 367 } # as_fn_mkdir_p
 368 
 369 # as_fn_executable_p FILE
 370 # -----------------------
 371 # Test if FILE is an executable regular file.
 372 as_fn_executable_p ()
 373 {
 374   test -f "$1" && test -x "$1"
 375 } # as_fn_executable_p
 376 # as_fn_append VAR VALUE
 377 # ----------------------
 378 # Append the text in VALUE to the end of the definition contained in VAR. Take
 379 # advantage of any shell optimizations that allow amortized linear growth over
 380 # repeated appends, instead of the typical quadratic growth present in naive
 381 # implementations.
 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 383   eval 'as_fn_append ()
 384   {
 385     eval $1+=\$2
 386   }'
 387 else
 388   as_fn_append ()
 389   {
 390     eval $1=\$$1\$2
 391   }
 392 fi # as_fn_append
 393 
 394 # as_fn_arith ARG...
 395 # ------------------
 396 # Perform arithmetic evaluation on the ARGs, and store the result in the
 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments
 398 # must be portable across $(()) and expr.
 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 400   eval 'as_fn_arith ()
 401   {
 402     as_val=$(( $* ))
 403   }'
 404 else
 405   as_fn_arith ()
 406   {
 407     as_val=`expr "$@" || test $? -eq 1`
 408   }
 409 fi # as_fn_arith
 410 
 411 
 412 # as_fn_error STATUS ERROR [LINENO LOG_FD]
 413 # ----------------------------------------
 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 416 # script with STATUS, using 1 if that was 0.
 417 as_fn_error ()
 418 {
 419   as_status=$1; test $as_status -eq 0 && as_status=1
 420   if test "$4"; then
 421     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 422     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 423   fi
 424   $as_echo "$as_me: error: $2" >&2
 425   as_fn_exit $as_status
 426 } # as_fn_error
 427 
 428 if expr a : '\(a\)' >/dev/null 2>&1 &&
 429    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 430   as_expr=expr
 431 else
 432   as_expr=false
 433 fi
 434 
 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 436   as_basename=basename
 437 else
 438   as_basename=false
 439 fi
 440 
 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 442   as_dirname=dirname
 443 else
 444   as_dirname=false
 445 fi
 446 
 447 as_me=`$as_basename -- "$0" ||
 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 449          X"$0" : 'X\(//\)$' \| \
 450          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 451 $as_echo X/"$0" |
 452     sed '/^.*\/\([^/][^/]*\)\/*$/{
 453             s//\1/
 454             q
 455           }
 456           /^X\/\(\/\/\)$/{
 457             s//\1/
 458             q
 459           }
 460           /^X\/\(\/\).*/{
 461             s//\1/
 462             q
 463           }
 464           s/.*/./; q'`
 465 
 466 # Avoid depending upon Character Ranges.
 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 470 as_cr_digits='0123456789'
 471 as_cr_alnum=$as_cr_Letters$as_cr_digits
 472 
 473 
 474   as_lineno_1=$LINENO as_lineno_1a=$LINENO
 475   as_lineno_2=$LINENO as_lineno_2a=$LINENO
 476   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 477   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 478   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 479   sed -n '
 480     p
 481     /[$]LINENO/=
 482   ' <$as_myself |
 483     sed '
 484       s/[$]LINENO.*/&-/
 485       t lineno
 486       b
 487       :lineno
 488       N
 489       :loop
 490       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 491       t loop
 492       s/-\n.*//
 493     ' >$as_me.lineno &&
 494   chmod +x "$as_me.lineno" ||
 495     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 496 
 497   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 498   # already done that, so ensure we don't try to do so again and fall
 499   # in an infinite loop.  This has already happened in practice.
 500   _as_can_reexec=no; export _as_can_reexec
 501   # Don't try to exec as it changes $[0], causing all sort of problems
 502   # (the dirname of $[0] is not the place where we might find the
 503   # original and so on.  Autoconf is especially sensitive to this).
 504   . "./$as_me.lineno"
 505   # Exit status is that of the last command.
 506   exit
 507 }
 508 
 509 ECHO_C= ECHO_N= ECHO_T=
 510 case `echo -n x` in #(((((
 511 -n*)
 512   case `echo 'xy\c'` in
 513   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 514   xy)  ECHO_C='\c';;
 515   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 516        ECHO_T=' ';;
 517   esac;;
 518 *)
 519   ECHO_N='-n';;
 520 esac
 521 
 522 rm -f conf$$ conf$$.exe conf$$.file
 523 if test -d conf$$.dir; then
 524   rm -f conf$$.dir/conf$$.file
 525 else
 526   rm -f conf$$.dir
 527   mkdir conf$$.dir 2>/dev/null
 528 fi
 529 if (echo >conf$$.file) 2>/dev/null; then
 530   if ln -s conf$$.file conf$$ 2>/dev/null; then
 531     as_ln_s='ln -s'
 532     # ... but there are two gotchas:
 533     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 534     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 535     # In both cases, we have to default to `cp -pR'.
 536     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 537       as_ln_s='cp -pR'
 538   elif ln conf$$.file conf$$ 2>/dev/null; then
 539     as_ln_s=ln
 540   else
 541     as_ln_s='cp -pR'
 542   fi
 543 else
 544   as_ln_s='cp -pR'
 545 fi
 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 547 rmdir conf$$.dir 2>/dev/null
 548 
 549 if mkdir -p . 2>/dev/null; then
 550   as_mkdir_p='mkdir -p "$as_dir"'
 551 else
 552   test -d ./-p && rmdir ./-p
 553   as_mkdir_p=false
 554 fi
 555 
 556 as_test_x='test -x'
 557 as_executable_p=as_fn_executable_p
 558 
 559 # Sed expression to map a string onto a valid CPP name.
 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 561 
 562 # Sed expression to map a string onto a valid variable name.
 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 564 
 565 
 566 test -n "$DJDIR" || exec 7<&0 </dev/null
 567 exec 6>&1
 568 
 569 # Name of the host.
 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 571 # so uname gets run too.
 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 573 
 574 #
 575 # Initializations.
 576 #
 577 ac_default_prefix=/usr/local
 578 ac_clean_files=
 579 ac_config_libobj_dir=.
 580 LIBOBJS=
 581 cross_compiling=no
 582 subdirs=
 583 MFLAGS=
 584 MAKEFLAGS=
 585 
 586 # Identity of this package.
 587 PACKAGE_NAME='OpenJDK'
 588 PACKAGE_TARNAME='openjdk'
 589 PACKAGE_VERSION='jdk8'
 590 PACKAGE_STRING='OpenJDK jdk8'
 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net'
 592 PACKAGE_URL='http://openjdk.java.net'
 593 
 594 # Factoring default headers for most tests.
 595 ac_includes_default="\
 596 #include <stdio.h>
 597 #ifdef HAVE_SYS_TYPES_H
 598 # include <sys/types.h>
 599 #endif
 600 #ifdef HAVE_SYS_STAT_H
 601 # include <sys/stat.h>
 602 #endif
 603 #ifdef STDC_HEADERS
 604 # include <stdlib.h>
 605 # include <stddef.h>
 606 #else
 607 # ifdef HAVE_STDLIB_H
 608 #  include <stdlib.h>
 609 # endif
 610 #endif
 611 #ifdef HAVE_STRING_H
 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 613 #  include <memory.h>
 614 # endif
 615 # include <string.h>
 616 #endif
 617 #ifdef HAVE_STRINGS_H
 618 # include <strings.h>
 619 #endif
 620 #ifdef HAVE_INTTYPES_H
 621 # include <inttypes.h>
 622 #endif
 623 #ifdef HAVE_STDINT_H
 624 # include <stdint.h>
 625 #endif
 626 #ifdef HAVE_UNISTD_H
 627 # include <unistd.h>
 628 #endif"
 629 
 630 ac_subst_vars='LTLIBOBJS
 631 LIBOBJS
 632 CCACHE
 633 USE_PRECOMPILED_HEADER
 634 SJAVAC_SERVER_DIR
 635 ENABLE_SJAVAC
 636 SJAVAC_SERVER_JAVA
 637 JOBS
 638 MEMORY_SIZE
 639 NUM_CORES
 640 ENABLE_INTREE_EC
 641 SALIB_NAME
 642 HOTSPOT_MAKE_ARGS
 643 MSVCP_DLL
 644 MSVCR_DLL
 645 LIBCXX
 646 LLVM_LIBS
 647 LLVM_LDFLAGS
 648 LLVM_CFLAGS
 649 LLVM_CONFIG
 650 LIBFFI_LIBS
 651 LIBFFI_CFLAGS
 652 STATIC_CXX_SETTING
 653 LIBDL
 654 LIBM
 655 LIBZIP_CAN_USE_MMAP
 656 USE_EXTERNAL_LIBZ
 657 USE_EXTERNAL_LIBGIF
 658 USE_EXTERNAL_LIBJPEG
 659 ALSA_LIBS
 660 ALSA_CFLAGS
 661 FREETYPE_BUNDLE_LIB_PATH
 662 FREETYPE_LIBS
 663 FREETYPE_CFLAGS
 664 CUPS_CFLAGS
 665 X_EXTRA_LIBS
 666 X_LIBS
 667 X_PRE_LIBS
 668 X_CFLAGS
 669 XMKMF
 670 FIXPATH
 671 ZIP_DEBUGINFO_FILES
 672 ENABLE_DEBUG_SYMBOLS
 673 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 674 ZERO_ARCHFLAG
 675 LDFLAGS_CXX_JDK
 676 LDFLAGS_JDKEXE_SUFFIX
 677 LDFLAGS_JDKLIB_SUFFIX
 678 LDFLAGS_JDKEXE
 679 LDFLAGS_JDKLIB
 680 CXXFLAGS_JDKEXE
 681 CXXFLAGS_JDKLIB
 682 CFLAGS_JDKEXE
 683 CFLAGS_JDKLIB
 684 MACOSX_VERSION_MIN
 685 NO_LIFETIME_DSE_CFLAG
 686 NO_DELETE_NULL_POINTER_CHECKS_CFLAG
 687 LEGACY_EXTRA_LDFLAGS
 688 LEGACY_EXTRA_CXXFLAGS
 689 LEGACY_EXTRA_CFLAGS
 690 CXXSTD_CXXFLAG
 691 CXX_O_FLAG_NONE
 692 CXX_O_FLAG_NORM
 693 CXX_O_FLAG_HI
 694 CXX_O_FLAG_HIGHEST
 695 C_O_FLAG_NONE
 696 C_O_FLAG_NORM
 697 C_O_FLAG_HI
 698 C_O_FLAG_HIGHEST
 699 CXXFLAGS_DEBUG_SYMBOLS
 700 CFLAGS_DEBUG_SYMBOLS
 701 CXX_FLAG_DEPS
 702 C_FLAG_DEPS
 703 SET_SHARED_LIBRARY_MAPFILE
 704 SET_SHARED_LIBRARY_NAME
 705 SET_SHARED_LIBRARY_ORIGIN
 706 SET_EXECUTABLE_ORIGIN
 707 SHARED_LIBRARY_FLAGS
 708 CXX_FLAG_REORDER
 709 C_FLAG_REORDER
 710 SYSROOT_LDFLAGS
 711 SYSROOT_CFLAGS
 712 RC_FLAGS
 713 AR_OUT_OPTION
 714 LD_OUT_OPTION
 715 EXE_OUT_OPTION
 716 CC_OUT_OPTION
 717 POST_MCS_CMD
 718 POST_STRIP_CMD
 719 ARFLAGS
 720 COMPILER_TARGET_BITS_FLAG
 721 JT_HOME
 722 JTREGEXE
 723 USING_BROKEN_SUSE_LD
 724 PACKAGE_PATH
 725 LDEXECXX
 726 LDEXE
 727 USE_CLANG
 728 HOTSPOT_LD
 729 HOTSPOT_CXX
 730 HOTSPOT_RC
 731 HOTSPOT_MT
 732 BUILD_LD
 733 BUILD_CXX
 734 BUILD_CC
 735 ac_ct_OBJDUMP
 736 OBJDUMP
 737 ac_ct_OBJCOPY
 738 OBJCOPY
 739 ac_ct_NM
 740 OTOOL
 741 ac_ct_STRIP
 742 MCS
 743 GNM
 744 NM
 745 STRIP
 746 MSBUILD
 747 DUMPBIN
 748 RC
 749 MT
 750 LIPO
 751 ac_ct_OBJC
 752 OBJCFLAGS
 753 OBJC
 754 ac_ct_AR
 755 AR
 756 AS
 757 LDCXX
 758 LD
 759 CXXCPP
 760 CPP
 761 CXX_VERSION_NUMBER
 762 CC_VERSION_NUMBER
 763 ac_ct_CXX
 764 CXXFLAGS
 765 CXX
 766 ac_ct_PROPER_COMPILER_CXX
 767 PROPER_COMPILER_CXX
 768 TOOLCHAIN_PATH_CXX
 769 POTENTIAL_CXX
 770 OBJEXT
 771 EXEEXT
 772 ac_ct_CC
 773 CPPFLAGS
 774 LDFLAGS
 775 CFLAGS
 776 CC
 777 ac_ct_PROPER_COMPILER_CC
 778 PROPER_COMPILER_CC
 779 TOOLCHAIN_PATH_CC
 780 POTENTIAL_CC
 781 SDKPATH
 782 XCODEBUILD
 783 SET_DEVELOPER_DIR
 784 VS_LIB
 785 VS_INCLUDE
 786 VS_PATH
 787 CYGWIN_LINK
 788 EXE_SUFFIX
 789 OBJ_SUFFIX
 790 STATIC_LIBRARY
 791 SHARED_LIBRARY
 792 STATIC_LIBRARY_SUFFIX
 793 SHARED_LIBRARY_SUFFIX
 794 LIBRARY_PREFIX
 795 TOOLCHAIN_TYPE
 796 BUILD_HOTSPOT
 797 HOTSPOT_DIST
 798 BUILD_OUTPUT
 799 OVERRIDE_SRC_ROOT
 800 ADD_SRC_ROOT
 801 JDK_TOPDIR
 802 NASHORN_TOPDIR
 803 HOTSPOT_TOPDIR
 804 JAXWS_TOPDIR
 805 JAXP_TOPDIR
 806 CORBA_TOPDIR
 807 LANGTOOLS_TOPDIR
 808 JAVA_FLAGS_SMALL
 809 JAVA_FLAGS_BIG
 810 JAVA_FLAGS
 811 BOOT_JDK_BITS
 812 JAVAC_FLAGS
 813 BOOT_JDK_SOURCETARGET
 814 BOOT_JDK
 815 BOOT_TOOLSJAR
 816 BOOT_RTJAR
 817 JAVA_CHECK
 818 JAVAC_CHECK
 819 COOKED_BUILD_NUMBER
 820 COOKED_JDK_UPDATE_VERSION
 821 JDK_VERSION
 822 COPYRIGHT_YEAR
 823 MACOSX_BUNDLE_ID_BASE
 824 MACOSX_BUNDLE_NAME_BASE
 825 COMPANY_NAME
 826 JDK_RC_PLATFORM_NAME
 827 PRODUCT_SUFFIX
 828 PRODUCT_NAME
 829 LAUNCHER_NAME
 830 MILESTONE
 831 JDK_BUILD_NUMBER
 832 JDK_UPDATE_VERSION
 833 JDK_MICRO_VERSION
 834 JDK_MINOR_VERSION
 835 JDK_MAJOR_VERSION
 836 USER_RELEASE_SUFFIX
 837 COMPRESS_JARS
 838 UNLIMITED_CRYPTO
 839 CACERTS_FILE
 840 TEST_IN_BUILD
 841 BUILD_HEADLESS
 842 SUPPORT_HEADFUL
 843 SUPPORT_HEADLESS
 844 BDEPS_FTP
 845 BDEPS_UNZIP
 846 OS_VERSION_MICRO
 847 OS_VERSION_MINOR
 848 OS_VERSION_MAJOR
 849 PKG_CONFIG
 850 CODESIGN
 851 XATTR
 852 DSYMUTIL
 853 IS_GNU_TIME
 854 TIME
 855 STAT
 856 HG
 857 READELF
 858 LDD
 859 ZIP
 860 UNZIP
 861 FIND_DELETE
 862 MAKE
 863 CHECK_TOOLSDIR_MAKE
 864 CHECK_TOOLSDIR_GMAKE
 865 CHECK_MAKE
 866 CHECK_GMAKE
 867 PKGHANDLER
 868 OUTPUT_ROOT
 869 CONF_NAME
 870 SPEC
 871 BUILD_VARIANT_RELEASE
 872 DEBUG_CLASSFILES
 873 FASTDEBUG
 874 VARIANT
 875 DEBUG_LEVEL
 876 MACOSX_UNIVERSAL
 877 INCLUDE_SA
 878 JVM_VARIANT_CORE
 879 JVM_VARIANT_ZEROSHARK
 880 JVM_VARIANT_ZERO
 881 JVM_VARIANT_KERNEL
 882 JVM_VARIANT_MINIMAL1
 883 JVM_VARIANT_CLIENT
 884 JVM_VARIANT_SERVER
 885 JVM_VARIANTS
 886 JVM_INTERPRETER
 887 JDK_VARIANT
 888 SET_OPENJDK
 889 BUILD_LOG_WRAPPER
 890 BUILD_LOG_PREVIOUS
 891 BUILD_LOG
 892 TOPDIR
 893 PATH_SEP
 894 ZERO_ARCHDEF
 895 DEFINE_CROSS_COMPILE_ARCH
 896 LP64
 897 OPENJDK_TARGET_OS_EXPORT_DIR
 898 OPENJDK_TARGET_OS_API_DIR
 899 OPENJDK_TARGET_CPU_JLI_CFLAGS
 900 OPENJDK_TARGET_CPU_OSARCH
 901 OPENJDK_TARGET_CPU_ISADIR
 902 OPENJDK_TARGET_CPU_LIBDIR
 903 OPENJDK_TARGET_CPU_LEGACY_LIB
 904 OPENJDK_TARGET_CPU_LEGACY
 905 REQUIRED_OS_VERSION
 906 REQUIRED_OS_NAME
 907 COMPILE_TYPE
 908 OPENJDK_TARGET_CPU_ENDIAN
 909 OPENJDK_TARGET_CPU_BITS
 910 OPENJDK_TARGET_CPU_ARCH
 911 OPENJDK_TARGET_CPU
 912 OPENJDK_TARGET_OS_ENV
 913 OPENJDK_TARGET_OS_API
 914 OPENJDK_TARGET_OS
 915 OPENJDK_BUILD_CPU_ENDIAN
 916 OPENJDK_BUILD_CPU_BITS
 917 OPENJDK_BUILD_CPU_ARCH
 918 OPENJDK_BUILD_CPU
 919 OPENJDK_BUILD_OS_ENV
 920 OPENJDK_BUILD_OS_API
 921 OPENJDK_BUILD_OS
 922 OPENJDK_BUILD_AUTOCONF_NAME
 923 OPENJDK_TARGET_AUTOCONF_NAME
 924 target_os
 925 target_vendor
 926 target_cpu
 927 target
 928 host_os
 929 host_vendor
 930 host_cpu
 931 host
 932 build_os
 933 build_vendor
 934 build_cpu
 935 build
 936 CPIO
 937 SETFILE
 938 DF
 939 READLINK
 940 CYGPATH
 941 SED
 942 FGREP
 943 EGREP
 944 GREP
 945 AWK
 946 XARGS
 947 WHICH
 948 WC
 949 UNIQ
 950 UNAME
 951 TR
 952 TOUCH
 953 TEE
 954 TAR
 955 TAIL
 956 SORT
 957 SH
 958 RM
 959 PRINTF
 960 NAWK
 961 MV
 962 MKTEMP
 963 MKDIR
 964 LS
 965 LN
 966 HEAD
 967 FIND
 968 FILE
 969 EXPR
 970 ECHO
 971 DIRNAME
 972 DIFF
 973 DATE
 974 CUT
 975 CP
 976 COMM
 977 CMP
 978 CHMOD
 979 CAT
 980 BASH
 981 BASENAME
 982 DATE_WHEN_CONFIGURED
 983 CONFIGURE_COMMAND_LINE
 984 CUSTOM_MAKE_DIR
 985 target_alias
 986 host_alias
 987 build_alias
 988 LIBS
 989 ECHO_T
 990 ECHO_N
 991 ECHO_C
 992 DEFS
 993 mandir
 994 localedir
 995 libdir
 996 psdir
 997 pdfdir
 998 dvidir
 999 htmldir
1000 infodir
1001 docdir
1002 oldincludedir
1003 includedir
1004 localstatedir
1005 sharedstatedir
1006 sysconfdir
1007 datadir
1008 datarootdir
1009 libexecdir
1010 sbindir
1011 bindir
1012 program_transform_name
1013 prefix
1014 exec_prefix
1015 PACKAGE_URL
1016 PACKAGE_BUGREPORT
1017 PACKAGE_STRING
1018 PACKAGE_VERSION
1019 PACKAGE_TARNAME
1020 PACKAGE_NAME
1021 PATH_SEPARATOR
1022 SHELL'
1023 ac_subst_files=''
1024 ac_user_opts='
1025 enable_option_checking
1026 with_custom_make_dir
1027 with_target_bits
1028 enable_openjdk_only
1029 with_jdk_variant
1030 with_jvm_interpreter
1031 with_jvm_variants
1032 enable_debug
1033 with_debug_level
1034 with_devkit
1035 with_sys_root
1036 with_sysroot
1037 with_tools_dir
1038 with_toolchain_path
1039 with_extra_path
1040 with_xcode_path
1041 with_conf_name
1042 with_builddeps_conf
1043 with_builddeps_server
1044 with_builddeps_dir
1045 with_builddeps_group
1046 enable_headful
1047 enable_hotspot_test_in_build
1048 with_cacerts_file
1049 enable_unlimited_crypto
1050 with_milestone
1051 with_update_version
1052 with_user_release_suffix
1053 with_build_number
1054 with_copyright_year
1055 with_boot_jdk
1056 with_boot_jdk_jvmargs
1057 with_add_source_root
1058 with_override_source_root
1059 with_adds_and_overrides
1060 with_override_langtools
1061 with_override_corba
1062 with_override_jaxp
1063 with_override_jaxws
1064 with_override_hotspot
1065 with_override_nashorn
1066 with_override_jdk
1067 with_import_hotspot
1068 with_toolchain_type
1069 with_toolchain_version
1070 with_jtreg
1071 with_extra_cflags
1072 with_extra_cxxflags
1073 with_extra_ldflags
1074 enable_debug_symbols
1075 enable_zip_debug_info
1076 enable_macosx_runtime_support
1077 with_x
1078 with_cups
1079 with_cups_include
1080 with_freetype
1081 with_freetype_include
1082 with_freetype_lib
1083 with_freetype_src
1084 enable_freetype_bundling
1085 with_alsa
1086 with_alsa_include
1087 with_alsa_lib
1088 with_giflib
1089 with_zlib
1090 with_stdc__lib
1091 with_msvcr_dll
1092 with_msvcp_dll
1093 with_dxsdk
1094 with_dxsdk_lib
1095 with_dxsdk_include
1096 with_num_cores
1097 with_memory_size
1098 with_jobs
1099 with_sjavac_server_java
1100 enable_sjavac
1101 enable_precompiled_headers
1102 enable_ccache
1103 with_ccache_dir
1104 '
1105       ac_precious_vars='build_alias
1106 host_alias
1107 target_alias
1108 BASENAME
1109 BASH
1110 CAT
1111 CHMOD
1112 CMP
1113 COMM
1114 CP
1115 CUT
1116 DATE
1117 DIFF
1118 DIRNAME
1119 ECHO
1120 EXPR
1121 FILE
1122 FIND
1123 HEAD
1124 LN
1125 LS
1126 MKDIR
1127 MKTEMP
1128 MV
1129 NAWK
1130 PRINTF
1131 RM
1132 SH
1133 SORT
1134 TAIL
1135 TAR
1136 TEE
1137 TOUCH
1138 TR
1139 UNAME
1140 UNIQ
1141 WC
1142 WHICH
1143 XARGS
1144 AWK
1145 GREP
1146 EGREP
1147 FGREP
1148 SED
1149 CYGPATH
1150 READLINK
1151 DF
1152 SETFILE
1153 CPIO
1154 UNZIP
1155 ZIP
1156 LDD
1157 READELF
1158 HG
1159 STAT
1160 TIME
1161 DSYMUTIL
1162 XATTR
1163 CODESIGN
1164 PKG_CONFIG
1165 CC
1166 CFLAGS
1167 LDFLAGS
1168 LIBS
1169 CPPFLAGS
1170 CXX
1171 CXXFLAGS
1172 CCC
1173 CPP
1174 CXXCPP
1175 AS
1176 AR
1177 OBJC
1178 OBJCFLAGS
1179 LIPO
1180 STRIP
1181 NM
1182 GNM
1183 MCS
1184 OBJCOPY
1185 OBJDUMP
1186 BUILD_CC
1187 BUILD_CXX
1188 BUILD_LD
1189 JTREGEXE
1190 XMKMF
1191 FREETYPE_CFLAGS
1192 FREETYPE_LIBS
1193 ALSA_CFLAGS
1194 ALSA_LIBS
1195 LIBFFI_CFLAGS
1196 LIBFFI_LIBS
1197 CCACHE'
1198 
1199 
1200 # Initialize some variables set by options.
1201 ac_init_help=
1202 ac_init_version=false
1203 ac_unrecognized_opts=
1204 ac_unrecognized_sep=
1205 # The variables have the same names as the options, with
1206 # dashes changed to underlines.
1207 cache_file=/dev/null
1208 exec_prefix=NONE
1209 no_create=
1210 no_recursion=
1211 prefix=NONE
1212 program_prefix=NONE
1213 program_suffix=NONE
1214 program_transform_name=s,x,x,
1215 silent=
1216 site=
1217 srcdir=
1218 verbose=
1219 x_includes=NONE
1220 x_libraries=NONE
1221 
1222 # Installation directory options.
1223 # These are left unexpanded so users can "make install exec_prefix=/foo"
1224 # and all the variables that are supposed to be based on exec_prefix
1225 # by default will actually change.
1226 # Use braces instead of parens because sh, perl, etc. also accept them.
1227 # (The list follows the same order as the GNU Coding Standards.)
1228 bindir='${exec_prefix}/bin'
1229 sbindir='${exec_prefix}/sbin'
1230 libexecdir='${exec_prefix}/libexec'
1231 datarootdir='${prefix}/share'
1232 datadir='${datarootdir}'
1233 sysconfdir='${prefix}/etc'
1234 sharedstatedir='${prefix}/com'
1235 localstatedir='${prefix}/var'
1236 includedir='${prefix}/include'
1237 oldincludedir='/usr/include'
1238 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1239 infodir='${datarootdir}/info'
1240 htmldir='${docdir}'
1241 dvidir='${docdir}'
1242 pdfdir='${docdir}'
1243 psdir='${docdir}'
1244 libdir='${exec_prefix}/lib'
1245 localedir='${datarootdir}/locale'
1246 mandir='${datarootdir}/man'
1247 
1248 ac_prev=
1249 ac_dashdash=
1250 for ac_option
1251 do
1252   # If the previous option needs an argument, assign it.
1253   if test -n "$ac_prev"; then
1254     eval $ac_prev=\$ac_option
1255     ac_prev=
1256     continue
1257   fi
1258 
1259   case $ac_option in
1260   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1261   *=)   ac_optarg= ;;
1262   *)    ac_optarg=yes ;;
1263   esac
1264 
1265   # Accept the important Cygnus configure options, so we can diagnose typos.
1266 
1267   case $ac_dashdash$ac_option in
1268   --)
1269     ac_dashdash=yes ;;
1270 
1271   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1272     ac_prev=bindir ;;
1273   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1274     bindir=$ac_optarg ;;
1275 
1276   -build | --build | --buil | --bui | --bu)
1277     ac_prev=build_alias ;;
1278   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1279     build_alias=$ac_optarg ;;
1280 
1281   -cache-file | --cache-file | --cache-fil | --cache-fi \
1282   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1283     ac_prev=cache_file ;;
1284   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1285   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1286     cache_file=$ac_optarg ;;
1287 
1288   --config-cache | -C)
1289     cache_file=config.cache ;;
1290 
1291   -datadir | --datadir | --datadi | --datad)
1292     ac_prev=datadir ;;
1293   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1294     datadir=$ac_optarg ;;
1295 
1296   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1297   | --dataroo | --dataro | --datar)
1298     ac_prev=datarootdir ;;
1299   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1300   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1301     datarootdir=$ac_optarg ;;
1302 
1303   -disable-* | --disable-*)
1304     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1305     # Reject names that are not valid shell variable names.
1306     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1307       as_fn_error $? "invalid feature name: $ac_useropt"
1308     ac_useropt_orig=$ac_useropt
1309     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1310     case $ac_user_opts in
1311       *"
1312 "enable_$ac_useropt"
1313 "*) ;;
1314       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1315          ac_unrecognized_sep=', ';;
1316     esac
1317     eval enable_$ac_useropt=no ;;
1318 
1319   -docdir | --docdir | --docdi | --doc | --do)
1320     ac_prev=docdir ;;
1321   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1322     docdir=$ac_optarg ;;
1323 
1324   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1325     ac_prev=dvidir ;;
1326   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1327     dvidir=$ac_optarg ;;
1328 
1329   -enable-* | --enable-*)
1330     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1331     # Reject names that are not valid shell variable names.
1332     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1333       as_fn_error $? "invalid feature name: $ac_useropt"
1334     ac_useropt_orig=$ac_useropt
1335     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1336     case $ac_user_opts in
1337       *"
1338 "enable_$ac_useropt"
1339 "*) ;;
1340       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1341          ac_unrecognized_sep=', ';;
1342     esac
1343     eval enable_$ac_useropt=\$ac_optarg ;;
1344 
1345   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1346   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1347   | --exec | --exe | --ex)
1348     ac_prev=exec_prefix ;;
1349   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1350   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1351   | --exec=* | --exe=* | --ex=*)
1352     exec_prefix=$ac_optarg ;;
1353 
1354   -gas | --gas | --ga | --g)
1355     # Obsolete; use --with-gas.
1356     with_gas=yes ;;
1357 
1358   -help | --help | --hel | --he | -h)
1359     ac_init_help=long ;;
1360   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1361     ac_init_help=recursive ;;
1362   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1363     ac_init_help=short ;;
1364 
1365   -host | --host | --hos | --ho)
1366     ac_prev=host_alias ;;
1367   -host=* | --host=* | --hos=* | --ho=*)
1368     host_alias=$ac_optarg ;;
1369 
1370   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1371     ac_prev=htmldir ;;
1372   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1373   | --ht=*)
1374     htmldir=$ac_optarg ;;
1375 
1376   -includedir | --includedir | --includedi | --included | --include \
1377   | --includ | --inclu | --incl | --inc)
1378     ac_prev=includedir ;;
1379   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1380   | --includ=* | --inclu=* | --incl=* | --inc=*)
1381     includedir=$ac_optarg ;;
1382 
1383   -infodir | --infodir | --infodi | --infod | --info | --inf)
1384     ac_prev=infodir ;;
1385   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1386     infodir=$ac_optarg ;;
1387 
1388   -libdir | --libdir | --libdi | --libd)
1389     ac_prev=libdir ;;
1390   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1391     libdir=$ac_optarg ;;
1392 
1393   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1394   | --libexe | --libex | --libe)
1395     ac_prev=libexecdir ;;
1396   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1397   | --libexe=* | --libex=* | --libe=*)
1398     libexecdir=$ac_optarg ;;
1399 
1400   -localedir | --localedir | --localedi | --localed | --locale)
1401     ac_prev=localedir ;;
1402   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1403     localedir=$ac_optarg ;;
1404 
1405   -localstatedir | --localstatedir | --localstatedi | --localstated \
1406   | --localstate | --localstat | --localsta | --localst | --locals)
1407     ac_prev=localstatedir ;;
1408   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1409   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1410     localstatedir=$ac_optarg ;;
1411 
1412   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1413     ac_prev=mandir ;;
1414   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1415     mandir=$ac_optarg ;;
1416 
1417   -nfp | --nfp | --nf)
1418     # Obsolete; use --without-fp.
1419     with_fp=no ;;
1420 
1421   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1422   | --no-cr | --no-c | -n)
1423     no_create=yes ;;
1424 
1425   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1426   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1427     no_recursion=yes ;;
1428 
1429   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1430   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1431   | --oldin | --oldi | --old | --ol | --o)
1432     ac_prev=oldincludedir ;;
1433   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1434   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1435   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1436     oldincludedir=$ac_optarg ;;
1437 
1438   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1439     ac_prev=prefix ;;
1440   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1441     prefix=$ac_optarg ;;
1442 
1443   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1444   | --program-pre | --program-pr | --program-p)
1445     ac_prev=program_prefix ;;
1446   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1447   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1448     program_prefix=$ac_optarg ;;
1449 
1450   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1451   | --program-suf | --program-su | --program-s)
1452     ac_prev=program_suffix ;;
1453   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1454   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1455     program_suffix=$ac_optarg ;;
1456 
1457   -program-transform-name | --program-transform-name \
1458   | --program-transform-nam | --program-transform-na \
1459   | --program-transform-n | --program-transform- \
1460   | --program-transform | --program-transfor \
1461   | --program-transfo | --program-transf \
1462   | --program-trans | --program-tran \
1463   | --progr-tra | --program-tr | --program-t)
1464     ac_prev=program_transform_name ;;
1465   -program-transform-name=* | --program-transform-name=* \
1466   | --program-transform-nam=* | --program-transform-na=* \
1467   | --program-transform-n=* | --program-transform-=* \
1468   | --program-transform=* | --program-transfor=* \
1469   | --program-transfo=* | --program-transf=* \
1470   | --program-trans=* | --program-tran=* \
1471   | --progr-tra=* | --program-tr=* | --program-t=*)
1472     program_transform_name=$ac_optarg ;;
1473 
1474   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1475     ac_prev=pdfdir ;;
1476   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1477     pdfdir=$ac_optarg ;;
1478 
1479   -psdir | --psdir | --psdi | --psd | --ps)
1480     ac_prev=psdir ;;
1481   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1482     psdir=$ac_optarg ;;
1483 
1484   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1485   | -silent | --silent | --silen | --sile | --sil)
1486     silent=yes ;;
1487 
1488   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1489     ac_prev=sbindir ;;
1490   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1491   | --sbi=* | --sb=*)
1492     sbindir=$ac_optarg ;;
1493 
1494   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1495   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1496   | --sharedst | --shareds | --shared | --share | --shar \
1497   | --sha | --sh)
1498     ac_prev=sharedstatedir ;;
1499   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1500   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1501   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1502   | --sha=* | --sh=*)
1503     sharedstatedir=$ac_optarg ;;
1504 
1505   -site | --site | --sit)
1506     ac_prev=site ;;
1507   -site=* | --site=* | --sit=*)
1508     site=$ac_optarg ;;
1509 
1510   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1511     ac_prev=srcdir ;;
1512   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1513     srcdir=$ac_optarg ;;
1514 
1515   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1516   | --syscon | --sysco | --sysc | --sys | --sy)
1517     ac_prev=sysconfdir ;;
1518   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1519   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1520     sysconfdir=$ac_optarg ;;
1521 
1522   -target | --target | --targe | --targ | --tar | --ta | --t)
1523     ac_prev=target_alias ;;
1524   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1525     target_alias=$ac_optarg ;;
1526 
1527   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1528     verbose=yes ;;
1529 
1530   -version | --version | --versio | --versi | --vers | -V)
1531     ac_init_version=: ;;
1532 
1533   -with-* | --with-*)
1534     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1535     # Reject names that are not valid shell variable names.
1536     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1537       as_fn_error $? "invalid package name: $ac_useropt"
1538     ac_useropt_orig=$ac_useropt
1539     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1540     case $ac_user_opts in
1541       *"
1542 "with_$ac_useropt"
1543 "*) ;;
1544       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1545          ac_unrecognized_sep=', ';;
1546     esac
1547     eval with_$ac_useropt=\$ac_optarg ;;
1548 
1549   -without-* | --without-*)
1550     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1551     # Reject names that are not valid shell variable names.
1552     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1553       as_fn_error $? "invalid package name: $ac_useropt"
1554     ac_useropt_orig=$ac_useropt
1555     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1556     case $ac_user_opts in
1557       *"
1558 "with_$ac_useropt"
1559 "*) ;;
1560       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1561          ac_unrecognized_sep=', ';;
1562     esac
1563     eval with_$ac_useropt=no ;;
1564 
1565   --x)
1566     # Obsolete; use --with-x.
1567     with_x=yes ;;
1568 
1569   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1570   | --x-incl | --x-inc | --x-in | --x-i)
1571     ac_prev=x_includes ;;
1572   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1573   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1574     x_includes=$ac_optarg ;;
1575 
1576   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1577   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1578     ac_prev=x_libraries ;;
1579   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1580   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1581     x_libraries=$ac_optarg ;;
1582 
1583   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1584 Try \`$0 --help' for more information"
1585     ;;
1586 
1587   *=*)
1588     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1589     # Reject names that are not valid shell variable names.
1590     case $ac_envvar in #(
1591       '' | [0-9]* | *[!_$as_cr_alnum]* )
1592       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1593     esac
1594     eval $ac_envvar=\$ac_optarg
1595     export $ac_envvar ;;
1596 
1597   *)
1598     # FIXME: should be removed in autoconf 3.0.
1599     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1600     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1601       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1602     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1603     ;;
1604 
1605   esac
1606 done
1607 
1608 if test -n "$ac_prev"; then
1609   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1610   as_fn_error $? "missing argument to $ac_option"
1611 fi
1612 
1613 if test -n "$ac_unrecognized_opts"; then
1614   case $enable_option_checking in
1615     no) ;;
1616     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1617     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1618   esac
1619 fi
1620 
1621 # Check all directory arguments for consistency.
1622 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1623                 datadir sysconfdir sharedstatedir localstatedir includedir \
1624                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1625                 libdir localedir mandir
1626 do
1627   eval ac_val=\$$ac_var
1628   # Remove trailing slashes.
1629   case $ac_val in
1630     */ )
1631       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1632       eval $ac_var=\$ac_val;;
1633   esac
1634   # Be sure to have absolute directory names.
1635   case $ac_val in
1636     [\\/$]* | ?:[\\/]* )  continue;;
1637     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1638   esac
1639   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1640 done
1641 
1642 # There might be people who depend on the old broken behavior: `$host'
1643 # used to hold the argument of --host etc.
1644 # FIXME: To remove some day.
1645 build=$build_alias
1646 host=$host_alias
1647 target=$target_alias
1648 
1649 # FIXME: To remove some day.
1650 if test "x$host_alias" != x; then
1651   if test "x$build_alias" = x; then
1652     cross_compiling=maybe
1653   elif test "x$build_alias" != "x$host_alias"; then
1654     cross_compiling=yes
1655   fi
1656 fi
1657 
1658 ac_tool_prefix=
1659 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1660 
1661 test "$silent" = yes && exec 6>/dev/null
1662 
1663 
1664 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1665 ac_ls_di=`ls -di .` &&
1666 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1667   as_fn_error $? "working directory cannot be determined"
1668 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1669   as_fn_error $? "pwd does not report name of working directory"
1670 
1671 
1672 # Find the source files, if location was not specified.
1673 if test -z "$srcdir"; then
1674   ac_srcdir_defaulted=yes
1675   # Try the directory containing this script, then the parent directory.
1676   ac_confdir=`$as_dirname -- "$as_myself" ||
1677 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1678          X"$as_myself" : 'X\(//\)[^/]' \| \
1679          X"$as_myself" : 'X\(//\)$' \| \
1680          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1681 $as_echo X"$as_myself" |
1682     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1683             s//\1/
1684             q
1685           }
1686           /^X\(\/\/\)[^/].*/{
1687             s//\1/
1688             q
1689           }
1690           /^X\(\/\/\)$/{
1691             s//\1/
1692             q
1693           }
1694           /^X\(\/\).*/{
1695             s//\1/
1696             q
1697           }
1698           s/.*/./; q'`
1699   srcdir=$ac_confdir
1700   if test ! -r "$srcdir/$ac_unique_file"; then
1701     srcdir=..
1702   fi
1703 else
1704   ac_srcdir_defaulted=no
1705 fi
1706 if test ! -r "$srcdir/$ac_unique_file"; then
1707   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1708   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1709 fi
1710 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1711 ac_abs_confdir=`(
1712         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1713         pwd)`
1714 # When building in place, set srcdir=.
1715 if test "$ac_abs_confdir" = "$ac_pwd"; then
1716   srcdir=.
1717 fi
1718 # Remove unnecessary trailing slashes from srcdir.
1719 # Double slashes in file names in object file debugging info
1720 # mess up M-x gdb in Emacs.
1721 case $srcdir in
1722 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1723 esac
1724 for ac_var in $ac_precious_vars; do
1725   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1726   eval ac_env_${ac_var}_value=\$${ac_var}
1727   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1728   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1729 done
1730 
1731 #
1732 # Report the --help message.
1733 #
1734 if test "$ac_init_help" = "long"; then
1735   # Omit some internal or obsolete options to make the list less imposing.
1736   # This message is too long to be a string in the A/UX 3.1 sh.
1737   cat <<_ACEOF
1738 \`configure' configures OpenJDK jdk8 to adapt to many kinds of systems.
1739 
1740 Usage: $0 [OPTION]... [VAR=VALUE]...
1741 
1742 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1743 VAR=VALUE.  See below for descriptions of some of the useful variables.
1744 
1745 Defaults for the options are specified in brackets.
1746 
1747 Configuration:
1748   -h, --help              display this help and exit
1749       --help=short        display options specific to this package
1750       --help=recursive    display the short help of all the included packages
1751   -V, --version           display version information and exit
1752   -q, --quiet, --silent   do not print \`checking ...' messages
1753       --cache-file=FILE   cache test results in FILE [disabled]
1754   -C, --config-cache      alias for \`--cache-file=config.cache'
1755   -n, --no-create         do not create output files
1756       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1757 
1758 Installation directories:
1759   --prefix=PREFIX         install architecture-independent files in PREFIX
1760                           [$ac_default_prefix]
1761   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1762                           [PREFIX]
1763 
1764 By default, \`make install' will install all the files in
1765 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1766 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1767 for instance \`--prefix=\$HOME'.
1768 
1769 For better control, use the options below.
1770 
1771 Fine tuning of the installation directories:
1772   --bindir=DIR            user executables [EPREFIX/bin]
1773   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1774   --libexecdir=DIR        program executables [EPREFIX/libexec]
1775   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1776   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1777   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1778   --libdir=DIR            object code libraries [EPREFIX/lib]
1779   --includedir=DIR        C header files [PREFIX/include]
1780   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1781   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1782   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1783   --infodir=DIR           info documentation [DATAROOTDIR/info]
1784   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1785   --mandir=DIR            man documentation [DATAROOTDIR/man]
1786   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1787   --htmldir=DIR           html documentation [DOCDIR]
1788   --dvidir=DIR            dvi documentation [DOCDIR]
1789   --pdfdir=DIR            pdf documentation [DOCDIR]
1790   --psdir=DIR             ps documentation [DOCDIR]
1791 _ACEOF
1792 
1793   cat <<\_ACEOF
1794 
1795 X features:
1796   --x-includes=DIR    X include files are in DIR
1797   --x-libraries=DIR   X library files are in DIR
1798 
1799 System types:
1800   --build=BUILD     configure for building on BUILD [guessed]
1801   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1802   --target=TARGET   configure for building compilers for TARGET [HOST]
1803 _ACEOF
1804 fi
1805 
1806 if test -n "$ac_init_help"; then
1807   case $ac_init_help in
1808      short | recursive ) echo "Configuration of OpenJDK jdk8:";;
1809    esac
1810   cat <<\_ACEOF
1811 
1812 Optional Features:
1813   --disable-option-checking  ignore unrecognized --enable/--with options
1814   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1815   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1816   --enable-openjdk-only   suppress building custom source even if present
1817                           [disabled]
1818   --enable-debug          set the debug level to fastdebug (shorthand for
1819                           --with-debug-level=fastdebug) [disabled]
1820   --disable-headful       disable building headful support (graphical UI
1821                           support) [enabled]
1822   --enable-hotspot-test-in-build
1823                           run the Queens test after Hotspot build [disabled]
1824   --enable-unlimited-crypto
1825                           Enable unlimited crypto policy [disabled]
1826   --disable-debug-symbols disable generation of debug symbols [enabled]
1827   --disable-zip-debug-info
1828                           disable zipping of debug-info files [enabled]
1829   --enable-macosx-runtime-support
1830                           Deprecated. Option is kept for backwards
1831                           compatibility and is ignored
1832   --disable-freetype-bundling
1833                           disable bundling of the freetype library with the
1834                           build result [enabled on Windows or when using
1835                           --with-freetype, disabled otherwise]
1836   --enable-sjavac         use sjavac to do fast incremental compiles
1837                           [disabled]
1838   --disable-precompiled-headers
1839                           disable using precompiled headers when compiling C++
1840                           [enabled]
1841   --enable-ccache         enable using ccache to speed up recompilations
1842                           [disabled]
1843 
1844 Optional Packages:
1845   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1846   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1847   --with-custom-make-dir  use this directory for custom build/make files
1848   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1849                           support it), e.g. --with-target-bits=32 [guessed]
1850   --with-jdk-variant      JDK variant to build (normal) [normal]
1851   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1852   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1853                           client, minimal1, kernel, zero, zeroshark, core)
1854                           [server]
1855   --with-debug-level      set the debug level (release, fastdebug, slowdebug)
1856                           [release]
1857   --with-devkit           use this devkit for compilers, tools and resources
1858   --with-sys-root         alias for --with-sysroot for backwards compatability
1859   --with-sysroot          use this directory as sysroot)
1860   --with-tools-dir        alias for --with-toolchain-path for backwards
1861                           compatibility
1862   --with-toolchain-path   prepend these directories when searching for
1863                           toolchain binaries (compilers etc)
1864   --with-extra-path       prepend these directories to the default path
1865   --with-xcode-path       explicit path to Xcode 4 (generally for building on
1866                           10.9 and later)
1867   --with-conf-name        use this as the name of the configuration [generated
1868                           from important configuration options]
1869   --with-builddeps-conf   use this configuration file for the builddeps
1870   --with-builddeps-server download and use build dependencies from this server
1871                           url
1872   --with-builddeps-dir    store downloaded build dependencies here
1873                           [/localhome/builddeps]
1874   --with-builddeps-group  chgrp the downloaded build dependencies to this
1875                           group
1876   --with-cacerts-file     specify alternative cacerts file
1877   --with-milestone        Set milestone value for build [internal]
1878   --with-update-version   Set update version value for build [b00]
1879   --with-user-release-suffix
1880                           Add a custom string to the version string if build
1881                           number isn't set.[username_builddateb00]
1882   --with-build-number     Set build number value for build [b00]
1883   --with-copyright-year   Set copyright year value for build [current year]
1884   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1885   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all
1886                           invocations of the Boot JDK, overriding the default
1887                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
1888                           -enableassertions"
1889   --with-add-source-root  for each and every source directory, look in this
1890                           additional source root for the same directory; if it
1891                           exists and have files in it, include it in the build
1892   --with-override-source-root
1893                           for each and every source directory, look in this
1894                           override source root for the same directory; if it
1895                           exists, use that directory instead and ignore the
1896                           directory in the original source root
1897   --with-adds-and-overrides
1898                           use the subdirs 'adds' and 'overrides' in the
1899                           specified directory as add-source-root and
1900                           override-source-root
1901   --with-override-langtools
1902                           use this langtools dir for the build
1903   --with-override-corba   use this corba dir for the build
1904   --with-override-jaxp    use this jaxp dir for the build
1905   --with-override-jaxws   use this jaxws dir for the build
1906   --with-override-hotspot use this hotspot dir for the build
1907   --with-override-nashorn use this nashorn dir for the build
1908   --with-override-jdk     use this jdk dir for the build
1909   --with-import-hotspot   import hotspot binaries from this jdk image or
1910                           hotspot build dist dir instead of building from
1911                           source
1912   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
1913                           to show possible values [platform dependent]
1914   --with-toolchain-version
1915                           the version of the toolchain to look for, use
1916                           '--help' to show possible values [platform
1917                           dependent]
1918   --with-jtreg            Regression Test Harness [probed]
1919   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1920   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1921   --with-extra-ldflags    extra flags to be used when linking jdk
1922   --with-x                use the X Window System
1923   --with-cups             specify prefix directory for the cups package
1924                           (expecting the headers under PATH/include)
1925   --with-cups-include     specify directory for the cups include files
1926   --with-freetype         specify prefix directory for the freetype package
1927                           (expecting the libraries under PATH/lib and the
1928                           headers under PATH/include)
1929   --with-freetype-include specify directory for the freetype include files
1930   --with-freetype-lib     specify directory for the freetype library
1931   --with-freetype-src     specify directory with freetype sources to
1932                           automatically build the library (experimental,
1933                           Windows-only)
1934   --with-alsa             specify prefix directory for the alsa package
1935                           (expecting the libraries under PATH/lib and the
1936                           headers under PATH/include)
1937   --with-alsa-include     specify directory for the alsa include files
1938   --with-alsa-lib         specify directory for the alsa library
1939   --with-giflib           use giflib from build system or OpenJDK source
1940                           (system, bundled) [bundled]
1941   --with-zlib             use zlib from build system or OpenJDK source
1942                           (system, bundled) [bundled]
1943   --with-stdc++lib=<static>,<dynamic>,<default>
1944                           force linking of the C++ runtime on Linux to either
1945                           static or dynamic, default is static with dynamic as
1946                           fallback
1947   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
1948                           (Windows only) [probed]
1949   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
1950                           (Windows only) [probed]
1951   --with-dxsdk            Deprecated. Option is kept for backwards
1952                           compatibility and is ignored
1953   --with-dxsdk-lib        Deprecated. Option is kept for backwards
1954                           compatibility and is ignored
1955   --with-dxsdk-include    Deprecated. Option is kept for backwards
1956                           compatibility and is ignored
1957   --with-num-cores        number of cores in the build system, e.g.
1958                           --with-num-cores=8 [probed]
1959   --with-memory-size      memory (in MB) available in the build system, e.g.
1960                           --with-memory-size=1024 [probed]
1961   --with-jobs             number of parallel jobs to let make run [calculated
1962                           based on cores and memory]
1963   --with-sjavac-server-java
1964                           use this java binary for running the sjavac
1965                           background server [Boot JDK java]
1966   --with-ccache-dir       where to store ccache files [~/.ccache]
1967 
1968 Some influential environment variables:
1969   BASENAME    Override default value for BASENAME
1970   BASH        Override default value for BASH
1971   CAT         Override default value for CAT
1972   CHMOD       Override default value for CHMOD
1973   CMP         Override default value for CMP
1974   COMM        Override default value for COMM
1975   CP          Override default value for CP
1976   CUT         Override default value for CUT
1977   DATE        Override default value for DATE
1978   DIFF        Override default value for DIFF
1979   DIRNAME     Override default value for DIRNAME
1980   ECHO        Override default value for ECHO
1981   EXPR        Override default value for EXPR
1982   FILE        Override default value for FILE
1983   FIND        Override default value for FIND
1984   HEAD        Override default value for HEAD
1985   LN          Override default value for LN
1986   LS          Override default value for LS
1987   MKDIR       Override default value for MKDIR
1988   MKTEMP      Override default value for MKTEMP
1989   MV          Override default value for MV
1990   NAWK        Override default value for NAWK
1991   PRINTF      Override default value for PRINTF
1992   RM          Override default value for RM
1993   SH          Override default value for SH
1994   SORT        Override default value for SORT
1995   TAIL        Override default value for TAIL
1996   TAR         Override default value for TAR
1997   TEE         Override default value for TEE
1998   TOUCH       Override default value for TOUCH
1999   TR          Override default value for TR
2000   UNAME       Override default value for UNAME
2001   UNIQ        Override default value for UNIQ
2002   WC          Override default value for WC
2003   WHICH       Override default value for WHICH
2004   XARGS       Override default value for XARGS
2005   AWK         Override default value for AWK
2006   GREP        Override default value for GREP
2007   EGREP       Override default value for EGREP
2008   FGREP       Override default value for FGREP
2009   SED         Override default value for SED
2010   CYGPATH     Override default value for CYGPATH
2011   READLINK    Override default value for READLINK
2012   DF          Override default value for DF
2013   SETFILE     Override default value for SETFILE
2014   CPIO        Override default value for CPIO
2015   UNZIP       Override default value for UNZIP
2016   ZIP         Override default value for ZIP
2017   LDD         Override default value for LDD
2018   READELF     Override default value for READELF
2019   HG          Override default value for HG
2020   STAT        Override default value for STAT
2021   TIME        Override default value for TIME
2022   DSYMUTIL    Override default value for DSYMUTIL
2023   XATTR       Override default value for XATTR
2024   CODESIGN    Override default value for CODESIGN
2025   PKG_CONFIG  path to pkg-config utility
2026   CC          C compiler command
2027   CFLAGS      C compiler flags
2028   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2029               nonstandard directory <lib dir>
2030   LIBS        libraries to pass to the linker, e.g. -l<library>
2031   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2032               you have headers in a nonstandard directory <include dir>
2033   CXX         C++ compiler command
2034   CXXFLAGS    C++ compiler flags
2035   CPP         C preprocessor
2036   CXXCPP      C++ preprocessor
2037   AS          Override default value for AS
2038   AR          Override default value for AR
2039   OBJC        Objective C compiler command
2040   OBJCFLAGS   Objective C compiler flags
2041   LIPO        Override default value for LIPO
2042   STRIP       Override default value for STRIP
2043   NM          Override default value for NM
2044   GNM         Override default value for GNM
2045   MCS         Override default value for MCS
2046   OBJCOPY     Override default value for OBJCOPY
2047   OBJDUMP     Override default value for OBJDUMP
2048   BUILD_CC    Override default value for BUILD_CC
2049   BUILD_CXX   Override default value for BUILD_CXX
2050   BUILD_LD    Override default value for BUILD_LD
2051   JTREGEXE    Override default value for JTREGEXE
2052   XMKMF       Path to xmkmf, Makefile generator for X Window System
2053   FREETYPE_CFLAGS
2054               C compiler flags for FREETYPE, overriding pkg-config
2055   FREETYPE_LIBS
2056               linker flags for FREETYPE, overriding pkg-config
2057   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2058   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2059   LIBFFI_CFLAGS
2060               C compiler flags for LIBFFI, overriding pkg-config
2061   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2062   CCACHE      Override default value for CCACHE
2063 
2064 Use these variables to override the choices made by `configure' or to help
2065 it to find libraries and programs with nonstandard names/locations.
2066 
2067 Report bugs to <build-dev@openjdk.java.net>.
2068 OpenJDK home page: <http://openjdk.java.net>.
2069 _ACEOF
2070 ac_status=$?
2071 fi
2072 
2073 if test "$ac_init_help" = "recursive"; then
2074   # If there are subdirs, report their specific --help.
2075   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2076     test -d "$ac_dir" ||
2077       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2078       continue
2079     ac_builddir=.
2080 
2081 case "$ac_dir" in
2082 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2083 *)
2084   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2085   # A ".." for each directory in $ac_dir_suffix.
2086   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2087   case $ac_top_builddir_sub in
2088   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2089   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2090   esac ;;
2091 esac
2092 ac_abs_top_builddir=$ac_pwd
2093 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2094 # for backward compatibility:
2095 ac_top_builddir=$ac_top_build_prefix
2096 
2097 case $srcdir in
2098   .)  # We are building in place.
2099     ac_srcdir=.
2100     ac_top_srcdir=$ac_top_builddir_sub
2101     ac_abs_top_srcdir=$ac_pwd ;;
2102   [\\/]* | ?:[\\/]* )  # Absolute name.
2103     ac_srcdir=$srcdir$ac_dir_suffix;
2104     ac_top_srcdir=$srcdir
2105     ac_abs_top_srcdir=$srcdir ;;
2106   *) # Relative name.
2107     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2108     ac_top_srcdir=$ac_top_build_prefix$srcdir
2109     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2110 esac
2111 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2112 
2113     cd "$ac_dir" || { ac_status=$?; continue; }
2114     # Check for guested configure.
2115     if test -f "$ac_srcdir/configure.gnu"; then
2116       echo &&
2117       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2118     elif test -f "$ac_srcdir/configure"; then
2119       echo &&
2120       $SHELL "$ac_srcdir/configure" --help=recursive
2121     else
2122       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2123     fi || ac_status=$?
2124     cd "$ac_pwd" || { ac_status=$?; break; }
2125   done
2126 fi
2127 
2128 test -n "$ac_init_help" && exit $ac_status
2129 if $ac_init_version; then
2130   cat <<\_ACEOF
2131 OpenJDK configure jdk8
2132 generated by GNU Autoconf 2.69
2133 
2134 Copyright (C) 2012 Free Software Foundation, Inc.
2135 This configure script is free software; the Free Software Foundation
2136 gives unlimited permission to copy, distribute and modify it.
2137 _ACEOF
2138   exit
2139 fi
2140 
2141 ## ------------------------ ##
2142 ## Autoconf initialization. ##
2143 ## ------------------------ ##
2144 
2145 # ac_fn_c_try_compile LINENO
2146 # --------------------------
2147 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2148 ac_fn_c_try_compile ()
2149 {
2150   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2151   rm -f conftest.$ac_objext
2152   if { { ac_try="$ac_compile"
2153 case "(($ac_try" in
2154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155   *) ac_try_echo=$ac_try;;
2156 esac
2157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2158 $as_echo "$ac_try_echo"; } >&5
2159   (eval "$ac_compile") 2>conftest.err
2160   ac_status=$?
2161   if test -s conftest.err; then
2162     grep -v '^ *+' conftest.err >conftest.er1
2163     cat conftest.er1 >&5
2164     mv -f conftest.er1 conftest.err
2165   fi
2166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2167   test $ac_status = 0; } && {
2168          test -z "$ac_c_werror_flag" ||
2169          test ! -s conftest.err
2170        } && test -s conftest.$ac_objext; then :
2171   ac_retval=0
2172 else
2173   $as_echo "$as_me: failed program was:" >&5
2174 sed 's/^/| /' conftest.$ac_ext >&5
2175 
2176         ac_retval=1
2177 fi
2178   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2179   as_fn_set_status $ac_retval
2180 
2181 } # ac_fn_c_try_compile
2182 
2183 # ac_fn_cxx_try_compile LINENO
2184 # ----------------------------
2185 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2186 ac_fn_cxx_try_compile ()
2187 {
2188   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2189   rm -f conftest.$ac_objext
2190   if { { ac_try="$ac_compile"
2191 case "(($ac_try" in
2192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193   *) ac_try_echo=$ac_try;;
2194 esac
2195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2196 $as_echo "$ac_try_echo"; } >&5
2197   (eval "$ac_compile") 2>conftest.err
2198   ac_status=$?
2199   if test -s conftest.err; then
2200     grep -v '^ *+' conftest.err >conftest.er1
2201     cat conftest.er1 >&5
2202     mv -f conftest.er1 conftest.err
2203   fi
2204   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205   test $ac_status = 0; } && {
2206          test -z "$ac_cxx_werror_flag" ||
2207          test ! -s conftest.err
2208        } && test -s conftest.$ac_objext; then :
2209   ac_retval=0
2210 else
2211   $as_echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2213 
2214         ac_retval=1
2215 fi
2216   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217   as_fn_set_status $ac_retval
2218 
2219 } # ac_fn_cxx_try_compile
2220 
2221 # ac_fn_c_try_cpp LINENO
2222 # ----------------------
2223 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2224 ac_fn_c_try_cpp ()
2225 {
2226   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227   if { { ac_try="$ac_cpp conftest.$ac_ext"
2228 case "(($ac_try" in
2229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230   *) ac_try_echo=$ac_try;;
2231 esac
2232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2233 $as_echo "$ac_try_echo"; } >&5
2234   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2235   ac_status=$?
2236   if test -s conftest.err; then
2237     grep -v '^ *+' conftest.err >conftest.er1
2238     cat conftest.er1 >&5
2239     mv -f conftest.er1 conftest.err
2240   fi
2241   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2242   test $ac_status = 0; } > conftest.i && {
2243          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2244          test ! -s conftest.err
2245        }; then :
2246   ac_retval=0
2247 else
2248   $as_echo "$as_me: failed program was:" >&5
2249 sed 's/^/| /' conftest.$ac_ext >&5
2250 
2251     ac_retval=1
2252 fi
2253   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2254   as_fn_set_status $ac_retval
2255 
2256 } # ac_fn_c_try_cpp
2257 
2258 # ac_fn_cxx_try_cpp LINENO
2259 # ------------------------
2260 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2261 ac_fn_cxx_try_cpp ()
2262 {
2263   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2264   if { { ac_try="$ac_cpp conftest.$ac_ext"
2265 case "(($ac_try" in
2266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267   *) ac_try_echo=$ac_try;;
2268 esac
2269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2270 $as_echo "$ac_try_echo"; } >&5
2271   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2272   ac_status=$?
2273   if test -s conftest.err; then
2274     grep -v '^ *+' conftest.err >conftest.er1
2275     cat conftest.er1 >&5
2276     mv -f conftest.er1 conftest.err
2277   fi
2278   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2279   test $ac_status = 0; } > conftest.i && {
2280          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2281          test ! -s conftest.err
2282        }; then :
2283   ac_retval=0
2284 else
2285   $as_echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2287 
2288     ac_retval=1
2289 fi
2290   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2291   as_fn_set_status $ac_retval
2292 
2293 } # ac_fn_cxx_try_cpp
2294 
2295 # ac_fn_objc_try_compile LINENO
2296 # -----------------------------
2297 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2298 ac_fn_objc_try_compile ()
2299 {
2300   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301   rm -f conftest.$ac_objext
2302   if { { ac_try="$ac_compile"
2303 case "(($ac_try" in
2304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2305   *) ac_try_echo=$ac_try;;
2306 esac
2307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2308 $as_echo "$ac_try_echo"; } >&5
2309   (eval "$ac_compile") 2>conftest.err
2310   ac_status=$?
2311   if test -s conftest.err; then
2312     grep -v '^ *+' conftest.err >conftest.er1
2313     cat conftest.er1 >&5
2314     mv -f conftest.er1 conftest.err
2315   fi
2316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2317   test $ac_status = 0; } && {
2318          test -z "$ac_objc_werror_flag" ||
2319          test ! -s conftest.err
2320        } && test -s conftest.$ac_objext; then :
2321   ac_retval=0
2322 else
2323   $as_echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2325 
2326         ac_retval=1
2327 fi
2328   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2329   as_fn_set_status $ac_retval
2330 
2331 } # ac_fn_objc_try_compile
2332 
2333 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2334 # ---------------------------------------------------------
2335 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2336 # the include files in INCLUDES and setting the cache variable VAR
2337 # accordingly.
2338 ac_fn_cxx_check_header_mongrel ()
2339 {
2340   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341   if eval \${$3+:} false; then :
2342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2343 $as_echo_n "checking for $2... " >&6; }
2344 if eval \${$3+:} false; then :
2345   $as_echo_n "(cached) " >&6
2346 fi
2347 eval ac_res=\$$3
2348                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349 $as_echo "$ac_res" >&6; }
2350 else
2351   # Is the header compilable?
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2353 $as_echo_n "checking $2 usability... " >&6; }
2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h.  */
2356 $4
2357 #include <$2>
2358 _ACEOF
2359 if ac_fn_cxx_try_compile "$LINENO"; then :
2360   ac_header_compiler=yes
2361 else
2362   ac_header_compiler=no
2363 fi
2364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2366 $as_echo "$ac_header_compiler" >&6; }
2367 
2368 # Is the header present?
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2370 $as_echo_n "checking $2 presence... " >&6; }
2371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2372 /* end confdefs.h.  */
2373 #include <$2>
2374 _ACEOF
2375 if ac_fn_cxx_try_cpp "$LINENO"; then :
2376   ac_header_preproc=yes
2377 else
2378   ac_header_preproc=no
2379 fi
2380 rm -f conftest.err conftest.i conftest.$ac_ext
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2382 $as_echo "$ac_header_preproc" >&6; }
2383 
2384 # So?  What about this header?
2385 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2386   yes:no: )
2387     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2388 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2389     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2390 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2391     ;;
2392   no:yes:* )
2393     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2394 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2395     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2396 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2397     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2398 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2399     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2400 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2401     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2402 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2403 ( $as_echo "## ----------------------------------------- ##
2404 ## Report this to build-dev@openjdk.java.net ##
2405 ## ----------------------------------------- ##"
2406      ) | sed "s/^/$as_me: WARNING:     /" >&2
2407     ;;
2408 esac
2409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2410 $as_echo_n "checking for $2... " >&6; }
2411 if eval \${$3+:} false; then :
2412   $as_echo_n "(cached) " >&6
2413 else
2414   eval "$3=\$ac_header_compiler"
2415 fi
2416 eval ac_res=\$$3
2417                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2418 $as_echo "$ac_res" >&6; }
2419 fi
2420   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2421 
2422 } # ac_fn_cxx_check_header_mongrel
2423 
2424 # ac_fn_cxx_try_run LINENO
2425 # ------------------------
2426 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2427 # that executables *can* be run.
2428 ac_fn_cxx_try_run ()
2429 {
2430   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2431   if { { ac_try="$ac_link"
2432 case "(($ac_try" in
2433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434   *) ac_try_echo=$ac_try;;
2435 esac
2436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2437 $as_echo "$ac_try_echo"; } >&5
2438   (eval "$ac_link") 2>&5
2439   ac_status=$?
2440   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2441   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
2449   ac_status=$?
2450   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2451   test $ac_status = 0; }; }; then :
2452   ac_retval=0
2453 else
2454   $as_echo "$as_me: program exited with status $ac_status" >&5
2455        $as_echo "$as_me: failed program was:" >&5
2456 sed 's/^/| /' conftest.$ac_ext >&5
2457 
2458        ac_retval=$ac_status
2459 fi
2460   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2461   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2462   as_fn_set_status $ac_retval
2463 
2464 } # ac_fn_cxx_try_run
2465 
2466 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2467 # ---------------------------------------------------------
2468 # Tests whether HEADER exists and can be compiled using the include files in
2469 # INCLUDES, setting the cache variable VAR accordingly.
2470 ac_fn_cxx_check_header_compile ()
2471 {
2472   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2474 $as_echo_n "checking for $2... " >&6; }
2475 if eval \${$3+:} false; then :
2476   $as_echo_n "(cached) " >&6
2477 else
2478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2479 /* end confdefs.h.  */
2480 $4
2481 #include <$2>
2482 _ACEOF
2483 if ac_fn_cxx_try_compile "$LINENO"; then :
2484   eval "$3=yes"
2485 else
2486   eval "$3=no"
2487 fi
2488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2489 fi
2490 eval ac_res=\$$3
2491                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2492 $as_echo "$ac_res" >&6; }
2493   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2494 
2495 } # ac_fn_cxx_check_header_compile
2496 
2497 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2498 # ----------------------------------------------
2499 # Tries to find the compile-time value of EXPR in a program that includes
2500 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2501 # computed
2502 ac_fn_cxx_compute_int ()
2503 {
2504   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2505   if test "$cross_compiling" = yes; then
2506     # Depending upon the size, compute the lo and hi bounds.
2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508 /* end confdefs.h.  */
2509 $4
2510 int
2511 main ()
2512 {
2513 static int test_array [1 - 2 * !(($2) >= 0)];
2514 test_array [0] = 0;
2515 return test_array [0];
2516 
2517   ;
2518   return 0;
2519 }
2520 _ACEOF
2521 if ac_fn_cxx_try_compile "$LINENO"; then :
2522   ac_lo=0 ac_mid=0
2523   while :; do
2524     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2525 /* end confdefs.h.  */
2526 $4
2527 int
2528 main ()
2529 {
2530 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2531 test_array [0] = 0;
2532 return test_array [0];
2533 
2534   ;
2535   return 0;
2536 }
2537 _ACEOF
2538 if ac_fn_cxx_try_compile "$LINENO"; then :
2539   ac_hi=$ac_mid; break
2540 else
2541   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2542                         if test $ac_lo -le $ac_mid; then
2543                           ac_lo= ac_hi=
2544                           break
2545                         fi
2546                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2547 fi
2548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2549   done
2550 else
2551   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2552 /* end confdefs.h.  */
2553 $4
2554 int
2555 main ()
2556 {
2557 static int test_array [1 - 2 * !(($2) < 0)];
2558 test_array [0] = 0;
2559 return test_array [0];
2560 
2561   ;
2562   return 0;
2563 }
2564 _ACEOF
2565 if ac_fn_cxx_try_compile "$LINENO"; then :
2566   ac_hi=-1 ac_mid=-1
2567   while :; do
2568     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569 /* end confdefs.h.  */
2570 $4
2571 int
2572 main ()
2573 {
2574 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2575 test_array [0] = 0;
2576 return test_array [0];
2577 
2578   ;
2579   return 0;
2580 }
2581 _ACEOF
2582 if ac_fn_cxx_try_compile "$LINENO"; then :
2583   ac_lo=$ac_mid; break
2584 else
2585   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2586                         if test $ac_mid -le $ac_hi; then
2587                           ac_lo= ac_hi=
2588                           break
2589                         fi
2590                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2591 fi
2592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2593   done
2594 else
2595   ac_lo= ac_hi=
2596 fi
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598 fi
2599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600 # Binary search between lo and hi bounds.
2601 while test "x$ac_lo" != "x$ac_hi"; do
2602   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604 /* end confdefs.h.  */
2605 $4
2606 int
2607 main ()
2608 {
2609 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2610 test_array [0] = 0;
2611 return test_array [0];
2612 
2613   ;
2614   return 0;
2615 }
2616 _ACEOF
2617 if ac_fn_cxx_try_compile "$LINENO"; then :
2618   ac_hi=$ac_mid
2619 else
2620   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2621 fi
2622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2623 done
2624 case $ac_lo in #((
2625 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2626 '') ac_retval=1 ;;
2627 esac
2628   else
2629     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2630 /* end confdefs.h.  */
2631 $4
2632 static long int longval () { return $2; }
2633 static unsigned long int ulongval () { return $2; }
2634 #include <stdio.h>
2635 #include <stdlib.h>
2636 int
2637 main ()
2638 {
2639 
2640   FILE *f = fopen ("conftest.val", "w");
2641   if (! f)
2642     return 1;
2643   if (($2) < 0)
2644     {
2645       long int i = longval ();
2646       if (i != ($2))
2647         return 1;
2648       fprintf (f, "%ld", i);
2649     }
2650   else
2651     {
2652       unsigned long int i = ulongval ();
2653       if (i != ($2))
2654         return 1;
2655       fprintf (f, "%lu", i);
2656     }
2657   /* Do not output a trailing newline, as this causes \r\n confusion
2658      on some platforms.  */
2659   return ferror (f) || fclose (f) != 0;
2660 
2661   ;
2662   return 0;
2663 }
2664 _ACEOF
2665 if ac_fn_cxx_try_run "$LINENO"; then :
2666   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2667 else
2668   ac_retval=1
2669 fi
2670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2671   conftest.$ac_objext conftest.beam conftest.$ac_ext
2672 rm -f conftest.val
2673 
2674   fi
2675   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2676   as_fn_set_status $ac_retval
2677 
2678 } # ac_fn_cxx_compute_int
2679 
2680 # ac_fn_cxx_try_link LINENO
2681 # -------------------------
2682 # Try to link conftest.$ac_ext, and return whether this succeeded.
2683 ac_fn_cxx_try_link ()
2684 {
2685   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2686   rm -f conftest.$ac_objext conftest$ac_exeext
2687   if { { ac_try="$ac_link"
2688 case "(($ac_try" in
2689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690   *) ac_try_echo=$ac_try;;
2691 esac
2692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2693 $as_echo "$ac_try_echo"; } >&5
2694   (eval "$ac_link") 2>conftest.err
2695   ac_status=$?
2696   if test -s conftest.err; then
2697     grep -v '^ *+' conftest.err >conftest.er1
2698     cat conftest.er1 >&5
2699     mv -f conftest.er1 conftest.err
2700   fi
2701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2702   test $ac_status = 0; } && {
2703          test -z "$ac_cxx_werror_flag" ||
2704          test ! -s conftest.err
2705        } && test -s conftest$ac_exeext && {
2706          test "$cross_compiling" = yes ||
2707          test -x conftest$ac_exeext
2708        }; then :
2709   ac_retval=0
2710 else
2711   $as_echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2713 
2714         ac_retval=1
2715 fi
2716   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2717   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2718   # interfere with the next link command; also delete a directory that is
2719   # left behind by Apple's compiler.  We do this before executing the actions.
2720   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2721   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2722   as_fn_set_status $ac_retval
2723 
2724 } # ac_fn_cxx_try_link
2725 
2726 # ac_fn_cxx_check_func LINENO FUNC VAR
2727 # ------------------------------------
2728 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2729 ac_fn_cxx_check_func ()
2730 {
2731   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2733 $as_echo_n "checking for $2... " >&6; }
2734 if eval \${$3+:} false; then :
2735   $as_echo_n "(cached) " >&6
2736 else
2737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2738 /* end confdefs.h.  */
2739 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2740    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2741 #define $2 innocuous_$2
2742 
2743 /* System header to define __stub macros and hopefully few prototypes,
2744     which can conflict with char $2 (); below.
2745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2746     <limits.h> exists even on freestanding compilers.  */
2747 
2748 #ifdef __STDC__
2749 # include <limits.h>
2750 #else
2751 # include <assert.h>
2752 #endif
2753 
2754 #undef $2
2755 
2756 /* Override any GCC internal prototype to avoid an error.
2757    Use char because int might match the return type of a GCC
2758    builtin and then its argument prototype would still apply.  */
2759 #ifdef __cplusplus
2760 extern "C"
2761 #endif
2762 char $2 ();
2763 /* The GNU C library defines this for functions which it implements
2764     to always fail with ENOSYS.  Some functions are actually named
2765     something starting with __ and the normal name is an alias.  */
2766 #if defined __stub_$2 || defined __stub___$2
2767 choke me
2768 #endif
2769 
2770 int
2771 main ()
2772 {
2773 return $2 ();
2774   ;
2775   return 0;
2776 }
2777 _ACEOF
2778 if ac_fn_cxx_try_link "$LINENO"; then :
2779   eval "$3=yes"
2780 else
2781   eval "$3=no"
2782 fi
2783 rm -f core conftest.err conftest.$ac_objext \
2784     conftest$ac_exeext conftest.$ac_ext
2785 fi
2786 eval ac_res=\$$3
2787                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2788 $as_echo "$ac_res" >&6; }
2789   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2790 
2791 } # ac_fn_cxx_check_func
2792 
2793 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2794 # -------------------------------------------------------
2795 # Tests whether HEADER exists and can be compiled using the include files in
2796 # INCLUDES, setting the cache variable VAR accordingly.
2797 ac_fn_c_check_header_compile ()
2798 {
2799   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2801 $as_echo_n "checking for $2... " >&6; }
2802 if eval \${$3+:} false; then :
2803   $as_echo_n "(cached) " >&6
2804 else
2805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2806 /* end confdefs.h.  */
2807 $4
2808 #include <$2>
2809 _ACEOF
2810 if ac_fn_c_try_compile "$LINENO"; then :
2811   eval "$3=yes"
2812 else
2813   eval "$3=no"
2814 fi
2815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2816 fi
2817 eval ac_res=\$$3
2818                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2819 $as_echo "$ac_res" >&6; }
2820   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2821 
2822 } # ac_fn_c_check_header_compile
2823 cat >config.log <<_ACEOF
2824 This file contains any messages produced by compilers while
2825 running configure, to aid debugging if configure makes a mistake.
2826 
2827 It was created by OpenJDK $as_me jdk8, which was
2828 generated by GNU Autoconf 2.69.  Invocation command line was
2829 
2830   $ $0 $@
2831 
2832 _ACEOF
2833 exec 5>>config.log
2834 {
2835 cat <<_ASUNAME
2836 ## --------- ##
2837 ## Platform. ##
2838 ## --------- ##
2839 
2840 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2841 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2842 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2843 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2844 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2845 
2846 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2847 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2848 
2849 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2850 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2851 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2852 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2853 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2854 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2855 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2856 
2857 _ASUNAME
2858 
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2861 do
2862   IFS=$as_save_IFS
2863   test -z "$as_dir" && as_dir=.
2864     $as_echo "PATH: $as_dir"
2865   done
2866 IFS=$as_save_IFS
2867 
2868 } >&5
2869 
2870 cat >&5 <<_ACEOF
2871 
2872 
2873 ## ----------- ##
2874 ## Core tests. ##
2875 ## ----------- ##
2876 
2877 _ACEOF
2878 
2879 
2880 # Keep a trace of the command line.
2881 # Strip out --no-create and --no-recursion so they do not pile up.
2882 # Strip out --silent because we don't want to record it for future runs.
2883 # Also quote any args containing shell meta-characters.
2884 # Make two passes to allow for proper duplicate-argument suppression.
2885 ac_configure_args=
2886 ac_configure_args0=
2887 ac_configure_args1=
2888 ac_must_keep_next=false
2889 for ac_pass in 1 2
2890 do
2891   for ac_arg
2892   do
2893     case $ac_arg in
2894     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2895     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2896     | -silent | --silent | --silen | --sile | --sil)
2897       continue ;;
2898     *\'*)
2899       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2900     esac
2901     case $ac_pass in
2902     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2903     2)
2904       as_fn_append ac_configure_args1 " '$ac_arg'"
2905       if test $ac_must_keep_next = true; then
2906         ac_must_keep_next=false # Got value, back to normal.
2907       else
2908         case $ac_arg in
2909           *=* | --config-cache | -C | -disable-* | --disable-* \
2910           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2911           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2912           | -with-* | --with-* | -without-* | --without-* | --x)
2913             case "$ac_configure_args0 " in
2914               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2915             esac
2916             ;;
2917           -* ) ac_must_keep_next=true ;;
2918         esac
2919       fi
2920       as_fn_append ac_configure_args " '$ac_arg'"
2921       ;;
2922     esac
2923   done
2924 done
2925 { ac_configure_args0=; unset ac_configure_args0;}
2926 { ac_configure_args1=; unset ac_configure_args1;}
2927 
2928 # When interrupted or exit'd, cleanup temporary files, and complete
2929 # config.log.  We remove comments because anyway the quotes in there
2930 # would cause problems or look ugly.
2931 # WARNING: Use '\'' to represent an apostrophe within the trap.
2932 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2933 trap 'exit_status=$?
2934   # Save into config.log some information that might help in debugging.
2935   {
2936     echo
2937 
2938     $as_echo "## ---------------- ##
2939 ## Cache variables. ##
2940 ## ---------------- ##"
2941     echo
2942     # The following way of writing the cache mishandles newlines in values,
2943 (
2944   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2945     eval ac_val=\$$ac_var
2946     case $ac_val in #(
2947     *${as_nl}*)
2948       case $ac_var in #(
2949       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2950 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2951       esac
2952       case $ac_var in #(
2953       _ | IFS | as_nl) ;; #(
2954       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2955       *) { eval $ac_var=; unset $ac_var;} ;;
2956       esac ;;
2957     esac
2958   done
2959   (set) 2>&1 |
2960     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2961     *${as_nl}ac_space=\ *)
2962       sed -n \
2963         "s/'\''/'\''\\\\'\'''\''/g;
2964           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2965       ;; #(
2966     *)
2967       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2968       ;;
2969     esac |
2970     sort
2971 )
2972     echo
2973 
2974     $as_echo "## ----------------- ##
2975 ## Output variables. ##
2976 ## ----------------- ##"
2977     echo
2978     for ac_var in $ac_subst_vars
2979     do
2980       eval ac_val=\$$ac_var
2981       case $ac_val in
2982       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2983       esac
2984       $as_echo "$ac_var='\''$ac_val'\''"
2985     done | sort
2986     echo
2987 
2988     if test -n "$ac_subst_files"; then
2989       $as_echo "## ------------------- ##
2990 ## File substitutions. ##
2991 ## ------------------- ##"
2992       echo
2993       for ac_var in $ac_subst_files
2994       do
2995         eval ac_val=\$$ac_var
2996         case $ac_val in
2997         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2998         esac
2999         $as_echo "$ac_var='\''$ac_val'\''"
3000       done | sort
3001       echo
3002     fi
3003 
3004     if test -s confdefs.h; then
3005       $as_echo "## ----------- ##
3006 ## confdefs.h. ##
3007 ## ----------- ##"
3008       echo
3009       cat confdefs.h
3010       echo
3011     fi
3012     test "$ac_signal" != 0 &&
3013       $as_echo "$as_me: caught signal $ac_signal"
3014     $as_echo "$as_me: exit $exit_status"
3015   } >&5
3016   rm -f core *.core core.conftest.* &&
3017     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3018     exit $exit_status
3019 ' 0
3020 for ac_signal in 1 2 13 15; do
3021   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3022 done
3023 ac_signal=0
3024 
3025 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3026 rm -f -r conftest* confdefs.h
3027 
3028 $as_echo "/* confdefs.h */" > confdefs.h
3029 
3030 # Predefined preprocessor variables.
3031 
3032 cat >>confdefs.h <<_ACEOF
3033 #define PACKAGE_NAME "$PACKAGE_NAME"
3034 _ACEOF
3035 
3036 cat >>confdefs.h <<_ACEOF
3037 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3038 _ACEOF
3039 
3040 cat >>confdefs.h <<_ACEOF
3041 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3042 _ACEOF
3043 
3044 cat >>confdefs.h <<_ACEOF
3045 #define PACKAGE_STRING "$PACKAGE_STRING"
3046 _ACEOF
3047 
3048 cat >>confdefs.h <<_ACEOF
3049 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3050 _ACEOF
3051 
3052 cat >>confdefs.h <<_ACEOF
3053 #define PACKAGE_URL "$PACKAGE_URL"
3054 _ACEOF
3055 
3056 
3057 # Let the site file select an alternate cache file if it wants to.
3058 # Prefer an explicitly selected file to automatically selected ones.
3059 ac_site_file1=NONE
3060 ac_site_file2=NONE
3061 if test -n "$CONFIG_SITE"; then
3062   # We do not want a PATH search for config.site.
3063   case $CONFIG_SITE in #((
3064     -*)  ac_site_file1=./$CONFIG_SITE;;
3065     */*) ac_site_file1=$CONFIG_SITE;;
3066     *)   ac_site_file1=./$CONFIG_SITE;;
3067   esac
3068 elif test "x$prefix" != xNONE; then
3069   ac_site_file1=$prefix/share/config.site
3070   ac_site_file2=$prefix/etc/config.site
3071 else
3072   ac_site_file1=$ac_default_prefix/share/config.site
3073   ac_site_file2=$ac_default_prefix/etc/config.site
3074 fi
3075 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3076 do
3077   test "x$ac_site_file" = xNONE && continue
3078   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3079     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3080 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3081     sed 's/^/| /' "$ac_site_file" >&5
3082     . "$ac_site_file" \
3083       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3085 as_fn_error $? "failed to load site script $ac_site_file
3086 See \`config.log' for more details" "$LINENO" 5; }
3087   fi
3088 done
3089 
3090 if test -r "$cache_file"; then
3091   # Some versions of bash will fail to source /dev/null (special files
3092   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3093   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3094     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3095 $as_echo "$as_me: loading cache $cache_file" >&6;}
3096     case $cache_file in
3097       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3098       *)                      . "./$cache_file";;
3099     esac
3100   fi
3101 else
3102   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3103 $as_echo "$as_me: creating cache $cache_file" >&6;}
3104   >$cache_file
3105 fi
3106 
3107 # Check that the precious variables saved in the cache have kept the same
3108 # value.
3109 ac_cache_corrupted=false
3110 for ac_var in $ac_precious_vars; do
3111   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3112   eval ac_new_set=\$ac_env_${ac_var}_set
3113   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3114   eval ac_new_val=\$ac_env_${ac_var}_value
3115   case $ac_old_set,$ac_new_set in
3116     set,)
3117       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3118 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3119       ac_cache_corrupted=: ;;
3120     ,set)
3121       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3122 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3123       ac_cache_corrupted=: ;;
3124     ,);;
3125     *)
3126       if test "x$ac_old_val" != "x$ac_new_val"; then
3127         # differences in whitespace do not lead to failure.
3128         ac_old_val_w=`echo x $ac_old_val`
3129         ac_new_val_w=`echo x $ac_new_val`
3130         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3131           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3132 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3133           ac_cache_corrupted=:
3134         else
3135           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3136 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3137           eval $ac_var=\$ac_old_val
3138         fi
3139         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3140 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3141         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3142 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3143       fi;;
3144   esac
3145   # Pass precious variables to config.status.
3146   if test "$ac_new_set" = set; then
3147     case $ac_new_val in
3148     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3149     *) ac_arg=$ac_var=$ac_new_val ;;
3150     esac
3151     case " $ac_configure_args " in
3152       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3153       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3154     esac
3155   fi
3156 done
3157 if $ac_cache_corrupted; then
3158   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3160   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3161 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3162   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3163 fi
3164 ## -------------------- ##
3165 ## Main body of script. ##
3166 ## -------------------- ##
3167 
3168 ac_ext=c
3169 ac_cpp='$CPP $CPPFLAGS'
3170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3173 
3174 
3175 
3176 ac_aux_dir=
3177 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3178   if test -f "$ac_dir/install-sh"; then
3179     ac_aux_dir=$ac_dir
3180     ac_install_sh="$ac_aux_dir/install-sh -c"
3181     break
3182   elif test -f "$ac_dir/install.sh"; then
3183     ac_aux_dir=$ac_dir
3184     ac_install_sh="$ac_aux_dir/install.sh -c"
3185     break
3186   elif test -f "$ac_dir/shtool"; then
3187     ac_aux_dir=$ac_dir
3188     ac_install_sh="$ac_aux_dir/shtool install -c"
3189     break
3190   fi
3191 done
3192 if test -z "$ac_aux_dir"; then
3193   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
3194 fi
3195 
3196 # These three variables are undocumented and unsupported,
3197 # and are intended to be withdrawn in a future Autoconf release.
3198 # They can cause serious problems if a builder's source tree is in a directory
3199 # whose full name contains unusual characters.
3200 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3201 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3202 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3203 
3204 
3205 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3206 
3207 #
3208 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3209 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3210 #
3211 # This code is free software; you can redistribute it and/or modify it
3212 # under the terms of the GNU General Public License version 2 only, as
3213 # published by the Free Software Foundation.  Oracle designates this
3214 # particular file as subject to the "Classpath" exception as provided
3215 # by Oracle in the LICENSE file that accompanied this code.
3216 #
3217 # This code is distributed in the hope that it will be useful, but WITHOUT
3218 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3219 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3220 # version 2 for more details (a copy is included in the LICENSE file that
3221 # accompanied this code).
3222 #
3223 # You should have received a copy of the GNU General Public License version
3224 # 2 along with this work; if not, write to the Free Software Foundation,
3225 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3226 #
3227 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3228 # or visit www.oracle.com if you need additional information or have any
3229 # questions.
3230 #
3231 
3232 #
3233 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3234 #
3235 # This program is free software; you can redistribute it and/or modify
3236 # it under the terms of the GNU General Public License as published by
3237 # the Free Software Foundation; either version 2 of the License, or
3238 # (at your option) any later version.
3239 #
3240 # This program is distributed in the hope that it will be useful, but
3241 # WITHOUT ANY WARRANTY; without even the implied warranty of
3242 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3243 # General Public License for more details.
3244 #
3245 # You should have received a copy of the GNU General Public License
3246 # along with this program; if not, write to the Free Software
3247 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3248 #
3249 # As a special exception to the GNU General Public License, if you
3250 # distribute this file as part of a program that contains a
3251 # configuration script generated by Autoconf, you may include it under
3252 # the same distribution terms that you use for the rest of that program.
3253 
3254 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3255 # ----------------------------------
3256 # PKG_PROG_PKG_CONFIG
3257 
3258 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3259 #
3260 # Check to see whether a particular set of modules exists.  Similar
3261 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3262 #
3263 #
3264 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3265 # this or PKG_CHECK_MODULES is called, or make sure to call
3266 # PKG_CHECK_EXISTS manually
3267 # --------------------------------------------------------------
3268 
3269 
3270 
3271 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3272 # ---------------------------------------------
3273 # _PKG_CONFIG
3274 
3275 # _PKG_SHORT_ERRORS_SUPPORTED
3276 # -----------------------------
3277 # _PKG_SHORT_ERRORS_SUPPORTED
3278 
3279 
3280 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3281 # [ACTION-IF-NOT-FOUND])
3282 #
3283 #
3284 # Note that if there is a possibility the first call to
3285 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3286 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3287 #
3288 #
3289 # --------------------------------------------------------------
3290 # PKG_CHECK_MODULES
3291 
3292 
3293 # Include these first...
3294 #
3295 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3296 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3297 #
3298 # This code is free software; you can redistribute it and/or modify it
3299 # under the terms of the GNU General Public License version 2 only, as
3300 # published by the Free Software Foundation.  Oracle designates this
3301 # particular file as subject to the "Classpath" exception as provided
3302 # by Oracle in the LICENSE file that accompanied this code.
3303 #
3304 # This code is distributed in the hope that it will be useful, but WITHOUT
3305 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3306 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3307 # version 2 for more details (a copy is included in the LICENSE file that
3308 # accompanied this code).
3309 #
3310 # You should have received a copy of the GNU General Public License version
3311 # 2 along with this work; if not, write to the Free Software Foundation,
3312 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3313 #
3314 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3315 # or visit www.oracle.com if you need additional information or have any
3316 # questions.
3317 #
3318 
3319 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3320 # If so, then append $1 to $2 \
3321 # Also set JVM_ARG_OK to true/false depending on outcome.
3322 
3323 
3324 # Appends a string to a path variable, only adding the : when needed.
3325 
3326 
3327 # Prepends a string to a path variable, only adding the : when needed.
3328 
3329 
3330 # This will make sure the given variable points to a full and proper
3331 # path. This means:
3332 # 1) There will be no spaces in the path. On posix platforms,
3333 #    spaces in the path will result in an error. On Windows,
3334 #    the path will be rewritten using short-style to be space-free.
3335 # 2) The path will be absolute, and it will be in unix-style (on
3336 #     cygwin).
3337 # $1: The name of the variable to fix
3338 
3339 
3340 # This will make sure the given variable points to a executable
3341 # with a full and proper path. This means:
3342 # 1) There will be no spaces in the path. On posix platforms,
3343 #    spaces in the path will result in an error. On Windows,
3344 #    the path will be rewritten using short-style to be space-free.
3345 # 2) The path will be absolute, and it will be in unix-style (on
3346 #     cygwin).
3347 # Any arguments given to the executable is preserved.
3348 # If the input variable does not have a directory specification, then
3349 # it need to be in the PATH.
3350 # $1: The name of the variable to fix
3351 
3352 
3353 
3354 
3355 # Register a --with argument but mark it as deprecated
3356 # $1: The name of the with argument to deprecate, not including --with-
3357 
3358 
3359 # Register a --enable argument but mark it as deprecated
3360 # $1: The name of the with argument to deprecate, not including --enable-
3361 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3362 
3363 
3364 
3365 
3366 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3367 # $1: variable to check
3368 
3369 
3370 # Check that there are no unprocessed overridden variables left.
3371 # If so, they are an incorrect argument and we will exit with an error.
3372 
3373 
3374 # Setup a tool for the given variable. If correctly specified by the user,
3375 # use that value, otherwise search for the tool using the supplied code snippet.
3376 # $1: variable to set
3377 # $2: code snippet to call to look for the tool
3378 
3379 
3380 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3381 # $1: variable to set
3382 # $2: executable name (or list of names) to look for
3383 
3384 
3385 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3386 # $1: variable to set
3387 # $2: executable name (or list of names) to look for
3388 
3389 
3390 # Like BASIC_PATH_PROGS but fails if no tool was found.
3391 # $1: variable to set
3392 # $2: executable name (or list of names) to look for
3393 
3394 
3395 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3396 # $1: variable to set
3397 # $2: autoconf macro to call to look for the special tool
3398 
3399 
3400 # Setup the most fundamental tools that relies on not much else to set up,
3401 # but is used by much of the early bootstrap code.
3402 
3403 
3404 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3405 
3406 
3407 
3408 
3409 
3410 
3411 
3412 
3413 
3414 #%%% Simple tools %%%
3415 
3416 # Check if we have found a usable version of make
3417 # $1: the path to a potential make binary (or empty)
3418 # $2: the description on how we found this
3419 
3420 
3421 # Goes looking for a usable version of GNU make.
3422 
3423 
3424 
3425 
3426 
3427 
3428 # Check if build directory is on local disk. If not possible to determine,
3429 # we prefer to claim it's local.
3430 # Argument 1: directory to test
3431 # Argument 2: what to do if it is on local disk
3432 # Argument 3: what to do otherwise (remote disk or failure)
3433 
3434 
3435 # Check that source files have basic read permissions set. This might
3436 # not be the case in cygwin in certain conditions.
3437 
3438 
3439 
3440 
3441 #
3442 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3443 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3444 #
3445 # This code is free software; you can redistribute it and/or modify it
3446 # under the terms of the GNU General Public License version 2 only, as
3447 # published by the Free Software Foundation.  Oracle designates this
3448 # particular file as subject to the "Classpath" exception as provided
3449 # by Oracle in the LICENSE file that accompanied this code.
3450 #
3451 # This code is distributed in the hope that it will be useful, but WITHOUT
3452 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3453 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3454 # version 2 for more details (a copy is included in the LICENSE file that
3455 # accompanied this code).
3456 #
3457 # You should have received a copy of the GNU General Public License version
3458 # 2 along with this work; if not, write to the Free Software Foundation,
3459 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3460 #
3461 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3462 # or visit www.oracle.com if you need additional information or have any
3463 # questions.
3464 #
3465 
3466 
3467 
3468 
3469 
3470 # Helper function which possibly converts a path using DOS-style short mode.
3471 # If so, the updated path is stored in $new_path.
3472 # $1: The path to check
3473 
3474 
3475 # Helper function which possibly converts a path using DOS-style short mode.
3476 # If so, the updated path is stored in $new_path.
3477 # $1: The path to check
3478 
3479 
3480 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3481 # and could probably be heavily simplified. However, all changes in this
3482 # area tend to need lot of testing in different scenarios, and in lack of
3483 # proper unit testing, cleaning this up has not been deemed worth the effort
3484 # at the moment.
3485 
3486 
3487 
3488 
3489 
3490 
3491 
3492 
3493 
3494 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3495 
3496 
3497 
3498 
3499 #
3500 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3501 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3502 #
3503 # This code is free software; you can redistribute it and/or modify it
3504 # under the terms of the GNU General Public License version 2 only, as
3505 # published by the Free Software Foundation.  Oracle designates this
3506 # particular file as subject to the "Classpath" exception as provided
3507 # by Oracle in the LICENSE file that accompanied this code.
3508 #
3509 # This code is distributed in the hope that it will be useful, but WITHOUT
3510 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3511 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3512 # version 2 for more details (a copy is included in the LICENSE file that
3513 # accompanied this code).
3514 #
3515 # You should have received a copy of the GNU General Public License version
3516 # 2 along with this work; if not, write to the Free Software Foundation,
3517 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3518 #
3519 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3520 # or visit www.oracle.com if you need additional information or have any
3521 # questions.
3522 #
3523 
3524 
3525 
3526 
3527 
3528 
3529 
3530 
3531 
3532 
3533 
3534 # ... then the rest
3535 #
3536 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3537 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3538 #
3539 # This code is free software; you can redistribute it and/or modify it
3540 # under the terms of the GNU General Public License version 2 only, as
3541 # published by the Free Software Foundation.  Oracle designates this
3542 # particular file as subject to the "Classpath" exception as provided
3543 # by Oracle in the LICENSE file that accompanied this code.
3544 #
3545 # This code is distributed in the hope that it will be useful, but WITHOUT
3546 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3547 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3548 # version 2 for more details (a copy is included in the LICENSE file that
3549 # accompanied this code).
3550 #
3551 # You should have received a copy of the GNU General Public License version
3552 # 2 along with this work; if not, write to the Free Software Foundation,
3553 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3554 #
3555 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3556 # or visit www.oracle.com if you need additional information or have any
3557 # questions.
3558 #
3559 
3560 # Execute the check given as argument, and verify the result
3561 # If the Boot JDK was previously found, do nothing
3562 # $1 A command line (typically autoconf macro) to execute
3563 
3564 
3565 # Test: Is bootjdk explicitely set by command line arguments?
3566 
3567 
3568 # Test: Is bootjdk available from builddeps?
3569 
3570 
3571 # Test: Is $JAVA_HOME set?
3572 
3573 
3574 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3575 
3576 
3577 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3578 
3579 
3580 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3581 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3582 # $1 = Path to directory containing jdk installations.
3583 # $2 = String to append to the found JDK directory to get the proper JDK home
3584 
3585 
3586 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3587 # environmental variable as base for where to look.
3588 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3589 
3590 
3591 # Test: Is there a JDK installed in default, well-known locations?
3592 
3593 
3594 # Check that a command-line tool in the Boot JDK is correct
3595 # $1 = name of variable to assign
3596 # $2 = name of binary
3597 
3598 
3599 ###############################################################################
3600 #
3601 # We need a Boot JDK to bootstrap the build.
3602 #
3603 
3604 
3605 
3606 
3607 
3608 #
3609 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3610 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3611 #
3612 # This code is free software; you can redistribute it and/or modify it
3613 # under the terms of the GNU General Public License version 2 only, as
3614 # published by the Free Software Foundation.  Oracle designates this
3615 # particular file as subject to the "Classpath" exception as provided
3616 # by Oracle in the LICENSE file that accompanied this code.
3617 #
3618 # This code is distributed in the hope that it will be useful, but WITHOUT
3619 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3620 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3621 # version 2 for more details (a copy is included in the LICENSE file that
3622 # accompanied this code).
3623 #
3624 # You should have received a copy of the GNU General Public License version
3625 # 2 along with this work; if not, write to the Free Software Foundation,
3626 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3627 #
3628 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3629 # or visit www.oracle.com if you need additional information or have any
3630 # questions.
3631 #
3632 
3633 
3634 
3635 
3636 
3637 
3638 
3639 
3640 
3641 
3642 
3643 
3644 
3645 
3646 
3647 
3648 
3649 
3650 
3651 
3652 #
3653 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3654 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3655 #
3656 # This code is free software; you can redistribute it and/or modify it
3657 # under the terms of the GNU General Public License version 2 only, as
3658 # published by the Free Software Foundation.  Oracle designates this
3659 # particular file as subject to the "Classpath" exception as provided
3660 # by Oracle in the LICENSE file that accompanied this code.
3661 #
3662 # This code is distributed in the hope that it will be useful, but WITHOUT
3663 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3664 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3665 # version 2 for more details (a copy is included in the LICENSE file that
3666 # accompanied this code).
3667 #
3668 # You should have received a copy of the GNU General Public License version
3669 # 2 along with this work; if not, write to the Free Software Foundation,
3670 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3671 #
3672 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3673 # or visit www.oracle.com if you need additional information or have any
3674 # questions.
3675 #
3676 
3677 
3678 
3679 
3680 
3681 # Documentation on common flags used for solstudio in HIGHEST.
3682 #
3683 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
3684 #          done with care, there are some assumptions below that need to
3685 #          be understood about the use of pointers, and IEEE behavior.
3686 #
3687 # -fns: Use non-standard floating point mode (not IEEE 754)
3688 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
3689 # -fsingle: Use single precision floating point with 'float'
3690 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
3691 #   (Source with excessing pointer casting and data access with mixed
3692 #    pointer types are not recommended)
3693 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
3694 #   (If you expect perfect errno behavior, do not use this)
3695 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
3696 # -xrestrict: Pointer parameters to functions do not overlap
3697 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
3698 #    If you pass in multiple pointers to the same data, do not use this)
3699 # -xlibmil: Inline some library routines
3700 #   (If you expect perfect errno behavior, do not use this)
3701 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
3702 #   (If you expect perfect errno behavior, do not use this)
3703 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
3704 
3705     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
3706     # Bug?
3707     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
3708     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
3709     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
3710     #fi
3711 
3712 
3713 
3714 
3715 
3716 
3717 # FLAGS_C_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3718 #                                  [RUN-IF-FALSE])
3719 # ------------------------------------------------------------
3720 # Check that the C compiler supports an argument
3721 
3722 
3723 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3724 #                                    [RUN-IF-FALSE])
3725 # ------------------------------------------------------------
3726 # Check that the C++ compiler supports an argument
3727 
3728 
3729 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3730 #                                [RUN-IF-FALSE])
3731 # ------------------------------------------------------------
3732 # Check that the C and C++ compilers support an argument
3733 
3734 
3735 
3736 
3737 
3738 
3739 
3740 #
3741 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3742 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3743 #
3744 # This code is free software; you can redistribute it and/or modify it
3745 # under the terms of the GNU General Public License version 2 only, as
3746 # published by the Free Software Foundation.  Oracle designates this
3747 # particular file as subject to the "Classpath" exception as provided
3748 # by Oracle in the LICENSE file that accompanied this code.
3749 #
3750 # This code is distributed in the hope that it will be useful, but WITHOUT
3751 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3752 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3753 # version 2 for more details (a copy is included in the LICENSE file that
3754 # accompanied this code).
3755 #
3756 # You should have received a copy of the GNU General Public License version
3757 # 2 along with this work; if not, write to the Free Software Foundation,
3758 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3759 #
3760 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3761 # or visit www.oracle.com if you need additional information or have any
3762 # questions.
3763 #
3764 
3765 
3766 
3767 
3768 
3769 cygwin_help() {
3770   case $1 in
3771     unzip)
3772       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
3773       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3774       ;;
3775     zip)
3776       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
3777       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3778       ;;
3779     make)
3780       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
3781       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3782       ;;
3783     freetype)
3784       HELP_MSG="
3785 The freetype library can now be build during the configure process.
3786 Download the freetype sources and unpack them into an arbitrary directory:
3787 
3788 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
3789 tar -xzf freetype-2.5.3.tar.gz
3790 
3791 Then run configure with '--with-freetype-src=<freetype_src>'. This will
3792 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
3793 builds or into '<freetype_src>/lib32' for 32-bit builds.
3794 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
3795 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds."
3796       ;;
3797   esac
3798 }
3799 
3800 msys_help() {
3801   PKGHANDLER_COMMAND=""
3802 }
3803 
3804 apt_help() {
3805   case $1 in
3806     devkit)
3807       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3808     openjdk)
3809       PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3810     alsa)
3811       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3812     cups)
3813       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3814     freetype)
3815       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3816     pulse)
3817       PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
3818     x11)
3819       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
3820     ccache)
3821       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3822   esac
3823 }
3824 
3825 yum_help() {
3826   case $1 in
3827     devkit)
3828       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3829     openjdk)
3830       PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3831     alsa)
3832       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3833     cups)
3834       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3835     freetype)
3836       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
3837     pulse)
3838       PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;;
3839     x11)
3840       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;;
3841     ccache)
3842       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3843   esac
3844 }
3845 
3846 port_help() {
3847   PKGHANDLER_COMMAND=""
3848 }
3849 
3850 pkgutil_help() {
3851   PKGHANDLER_COMMAND=""
3852 }
3853 
3854 pkgadd_help() {
3855   PKGHANDLER_COMMAND=""
3856 }
3857 
3858 # This function will check if we're called from the "configure" wrapper while
3859 # printing --help. If so, we will print out additional information that can
3860 # only be extracted within the autoconf script, and then exit. This must be
3861 # called at the very beginning in configure.ac.
3862 
3863 
3864 
3865 
3866 #
3867 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3868 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3869 #
3870 # This code is free software; you can redistribute it and/or modify it
3871 # under the terms of the GNU General Public License version 2 only, as
3872 # published by the Free Software Foundation.  Oracle designates this
3873 # particular file as subject to the "Classpath" exception as provided
3874 # by Oracle in the LICENSE file that accompanied this code.
3875 #
3876 # This code is distributed in the hope that it will be useful, but WITHOUT
3877 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3878 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3879 # version 2 for more details (a copy is included in the LICENSE file that
3880 # accompanied this code).
3881 #
3882 # You should have received a copy of the GNU General Public License version
3883 # 2 along with this work; if not, write to the Free Software Foundation,
3884 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3885 #
3886 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3887 # or visit www.oracle.com if you need additional information or have any
3888 # questions.
3889 #
3890 
3891 
3892 
3893 
3894 
3895 
3896 
3897 
3898 
3899 
3900 ###############################################################################
3901 #
3902 # Should we build only OpenJDK even if closed sources are present?
3903 #
3904 
3905 
3906 
3907 
3908 ###############################################################################
3909 #
3910 # Setup version numbers
3911 #
3912 
3913 
3914 
3915 
3916 
3917 
3918 # Support for customization of the build process. Some build files
3919 # will include counterparts from this location, if they exist. This allows
3920 # for a degree of customization of the build targets and the rules/recipes
3921 # to create them
3922 
3923 # Check whether --with-custom-make-dir was given.
3924 if test "${with_custom_make_dir+set}" = set; then :
3925   withval=$with_custom_make_dir; CUSTOM_MAKE_DIR=$with_custom_make_dir
3926 fi
3927 
3928 
3929 
3930 #
3931 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3932 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3933 #
3934 # This code is free software; you can redistribute it and/or modify it
3935 # under the terms of the GNU General Public License version 2 only, as
3936 # published by the Free Software Foundation.  Oracle designates this
3937 # particular file as subject to the "Classpath" exception as provided
3938 # by Oracle in the LICENSE file that accompanied this code.
3939 #
3940 # This code is distributed in the hope that it will be useful, but WITHOUT
3941 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3942 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3943 # version 2 for more details (a copy is included in the LICENSE file that
3944 # accompanied this code).
3945 #
3946 # You should have received a copy of the GNU General Public License version
3947 # 2 along with this work; if not, write to the Free Software Foundation,
3948 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3949 #
3950 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3951 # or visit www.oracle.com if you need additional information or have any
3952 # questions.
3953 #
3954 
3955 
3956 
3957 
3958 
3959 
3960 
3961 
3962 
3963 
3964 
3965 
3966 
3967 
3968 
3969 
3970 
3971 
3972 
3973 
3974 
3975 #
3976 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3977 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3978 #
3979 # This code is free software; you can redistribute it and/or modify it
3980 # under the terms of the GNU General Public License version 2 only, as
3981 # published by the Free Software Foundation.  Oracle designates this
3982 # particular file as subject to the "Classpath" exception as provided
3983 # by Oracle in the LICENSE file that accompanied this code.
3984 #
3985 # This code is distributed in the hope that it will be useful, but WITHOUT
3986 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3987 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3988 # version 2 for more details (a copy is included in the LICENSE file that
3989 # accompanied this code).
3990 #
3991 # You should have received a copy of the GNU General Public License version
3992 # 2 along with this work; if not, write to the Free Software Foundation,
3993 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3994 #
3995 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3996 # or visit www.oracle.com if you need additional information or have any
3997 # questions.
3998 #
3999 
4000 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4001 # Converts autoconf style CPU name to OpenJDK style, into
4002 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4003 
4004 
4005 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4006 # Converts autoconf style OS name to OpenJDK style, into
4007 # VAR_OS and VAR_OS_API.
4008 
4009 
4010 # Expects $host_os $host_cpu $build_os and $build_cpu
4011 # and $with_target_bits to have been setup!
4012 #
4013 # Translate the standard triplet(quadruplet) definition
4014 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4015 # OPENJDK_BUILD_OS, etc.
4016 
4017 
4018 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4019 # accordingly. Must be done after setting up build and target system, but before
4020 # doing anything else with these values.
4021 
4022 
4023 # Setup the legacy variables, for controlling the old makefiles.
4024 #
4025 
4026 
4027 
4028 
4029 #%%% Build and target systems %%%
4030 
4031 
4032 
4033 
4034 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4035 # Add -mX to various FLAGS variables.
4036 
4037 
4038 
4039 
4040 
4041 
4042 #
4043 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4044 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4045 #
4046 # This code is free software; you can redistribute it and/or modify it
4047 # under the terms of the GNU General Public License version 2 only, as
4048 # published by the Free Software Foundation.  Oracle designates this
4049 # particular file as subject to the "Classpath" exception as provided
4050 # by Oracle in the LICENSE file that accompanied this code.
4051 #
4052 # This code is distributed in the hope that it will be useful, but WITHOUT
4053 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4054 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4055 # version 2 for more details (a copy is included in the LICENSE file that
4056 # accompanied this code).
4057 #
4058 # You should have received a copy of the GNU General Public License version
4059 # 2 along with this work; if not, write to the Free Software Foundation,
4060 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4061 #
4062 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4063 # or visit www.oracle.com if you need additional information or have any
4064 # questions.
4065 #
4066 
4067 
4068 
4069 
4070 
4071 
4072 
4073 
4074 #
4075 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
4076 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4077 #
4078 # This code is free software; you can redistribute it and/or modify it
4079 # under the terms of the GNU General Public License version 2 only, as
4080 # published by the Free Software Foundation.  Oracle designates this
4081 # particular file as subject to the "Classpath" exception as provided
4082 # by Oracle in the LICENSE file that accompanied this code.
4083 #
4084 # This code is distributed in the hope that it will be useful, but WITHOUT
4085 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4086 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4087 # version 2 for more details (a copy is included in the LICENSE file that
4088 # accompanied this code).
4089 #
4090 # You should have received a copy of the GNU General Public License version
4091 # 2 along with this work; if not, write to the Free Software Foundation,
4092 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4093 #
4094 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4095 # or visit www.oracle.com if you need additional information or have any
4096 # questions.
4097 #
4098 
4099 ########################################################################
4100 # This file is responsible for detecting, verifying and setting up the
4101 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4102 # proper paths to the binaries, but it will not setup any flags.
4103 #
4104 # The binaries used is determined by the toolchain type, which is the family of
4105 # compilers and related tools that are used.
4106 ########################################################################
4107 
4108 
4109 # All valid toolchains, regardless of platform (used by help.m4)
4110 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4111 
4112 # These toolchains are valid on different platforms
4113 VALID_TOOLCHAINS_linux="gcc clang"
4114 VALID_TOOLCHAINS_solaris="solstudio"
4115 VALID_TOOLCHAINS_macosx="gcc clang"
4116 VALID_TOOLCHAINS_aix="xlc"
4117 VALID_TOOLCHAINS_windows="microsoft"
4118 
4119 # Toolchain descriptions
4120 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4121 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4122 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4123 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4124 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4125 
4126 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called.
4127 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER.
4128 # $1 - optional variable prefix for compiler and version variables (BUILD_)
4129 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_)
4130 
4131 
4132 # Check if the configured compiler (C and C++) is of a specific version or
4133 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before.
4134 #
4135 # Arguments:
4136 #   $1:   The version string to check against the found version
4137 #   $2:   block to run if the compiler is at least this version (>=)
4138 #   $3:   block to run if the compiler is older than this version (<)
4139 
4140 
4141 
4142 # Setup a number of variables describing how native output files are
4143 # named on this platform/toolchain.
4144 
4145 
4146 # Determine which toolchain type to use, and make sure it is valid for this
4147 # platform. Setup various information about the selected toolchain.
4148 
4149 
4150 # Before we start detecting the toolchain executables, we might need some
4151 # special setup, e.g. additional paths etc.
4152 
4153 
4154 # Restore path, etc
4155 
4156 
4157 # Check if a compiler is of the toolchain type we expect, and save the version
4158 # information from it. If the compiler does not match the expected type,
4159 # this function will abort using AC_MSG_ERROR. If it matches, the version will
4160 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4161 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4162 #
4163 # $1 = compiler to test (CC or CXX)
4164 # $2 = human readable name of compiler (C or C++)
4165 
4166 
4167 
4168 # Try to locate the given C or C++ compiler in the path, or otherwise.
4169 #
4170 # $1 = compiler to test (CC or CXX)
4171 # $2 = human readable name of compiler (C or C++)
4172 # $3 = list of compiler names to search for
4173 
4174 
4175 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4176 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4177 # archiver (AR). Verify that the compilers are correct according to the
4178 # toolchain type.
4179 
4180 
4181 # Setup additional tools that is considered a part of the toolchain, but not the
4182 # core part. Many of these are highly platform-specific and do not exist,
4183 # and/or are not needed on all platforms.
4184 
4185 
4186 # Setup the build tools (i.e, the compiler and linker used to build programs
4187 # that should be run on the build platform, not the target platform, as a build
4188 # helper). Since the non-cross-compile case uses the normal, target compilers
4189 # for this, we can only do this after these have been setup.
4190 
4191 
4192 # Setup legacy variables that are still needed as alternative ways to refer to
4193 # parts of the toolchain.
4194 
4195 
4196 # Do some additional checks on the detected tools.
4197 
4198 
4199 # Setup the JTReg Regression Test Harness.
4200 
4201 
4202 
4203 #
4204 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
4205 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4206 #
4207 # This code is free software; you can redistribute it and/or modify it
4208 # under the terms of the GNU General Public License version 2 only, as
4209 # published by the Free Software Foundation.  Oracle designates this
4210 # particular file as subject to the "Classpath" exception as provided
4211 # by Oracle in the LICENSE file that accompanied this code.
4212 #
4213 # This code is distributed in the hope that it will be useful, but WITHOUT
4214 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4215 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4216 # version 2 for more details (a copy is included in the LICENSE file that
4217 # accompanied this code).
4218 #
4219 # You should have received a copy of the GNU General Public License version
4220 # 2 along with this work; if not, write to the Free Software Foundation,
4221 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4222 #
4223 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4224 # or visit www.oracle.com if you need additional information or have any
4225 # questions.
4226 #
4227 
4228 ################################################################################
4229 
4230 VALID_VS_VERSIONS="2010 2012 2013"
4231 
4232 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
4233 VS_VERSION_INTERNAL_2010=100
4234 VS_MSVCR_2010=msvcr100.dll
4235 # We don't use msvcp on Visual Studio 2010
4236 #VS_MSVCP_2010=msvcp100.dll
4237 VS_ENVVAR_2010="VS100COMNTOOLS"
4238 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
4239 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
4240 VS_VS_PLATFORM_NAME_2010="v100"
4241 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
4242 
4243 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
4244 VS_VERSION_INTERNAL_2012=110
4245 VS_MSVCR_2012=msvcr110.dll
4246 VS_MSVCP_2012=msvcp110.dll
4247 VS_ENVVAR_2012="VS110COMNTOOLS"
4248 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
4249 VS_SDK_INSTALLDIR_2012=
4250 VS_VS_PLATFORM_NAME_2012="v110"
4251 VS_SDK_PLATFORM_NAME_2012=
4252 
4253 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
4254 VS_VERSION_INTERNAL_2013=120
4255 VS_MSVCR_2013=msvcr120.dll
4256 VS_MSVCP_2013=msvcp120.dll
4257 VS_ENVVAR_2013="VS120COMNTOOLS"
4258 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
4259 VS_SDK_INSTALLDIR_2013=
4260 VS_VS_PLATFORM_NAME_2013="v120"
4261 VS_SDK_PLATFORM_NAME_2013=
4262 
4263 ################################################################################
4264 
4265 
4266 
4267 ################################################################################
4268 
4269 
4270 
4271 ################################################################################
4272 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
4273 # build environment and assigns it to VS_ENV_CMD
4274 
4275 
4276 ################################################################################
4277 
4278 
4279 
4280 ################################################################################
4281 # Check if the VS env variables were setup prior to running configure.
4282 # If not, then find vcvarsall.bat and run it automatically, and integrate
4283 # the set env variables into the spec file.
4284 
4285 
4286 
4287 
4288 
4289 
4290 
4291 
4292 
4293 
4294 
4295 
4296 
4297 
4298 # This line needs to be here, verbatim, after all includes and the dummy hook
4299 # definitions. It is replaced with custom functionality when building
4300 # custom sources.
4301 #CUSTOM_AUTOCONF_INCLUDE
4302 
4303 # Do not change or remove the following line, it is needed for consistency checks:
4304 DATE_WHEN_GENERATED=1526507291
4305 
4306 ###############################################################################
4307 #
4308 # Initialization / Boot-strapping
4309 #
4310 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4311 # thus it jumps back and forth, each time gaining something needed later on.
4312 #
4313 ###############################################################################
4314 
4315 # If we are requested to print additional help, do that and then exit.
4316 # This must be the very first call.
4317 
4318   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4319     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4320     $PRINTF "Which are valid to use depends on the build platform.\n"
4321     for toolchain in $VALID_TOOLCHAINS_all; do
4322       # Use indirect variable referencing
4323       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4324       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
4325       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
4326     done
4327 
4328     # And now exit directly
4329     exit 0
4330   fi
4331 
4332 
4333 # Basic initialization that must happen first of all in the normal process.
4334 
4335   # Save the original command line. This is passed to us by the wrapper configure script.
4336 
4337   DATE_WHEN_CONFIGURED=`LANG=C date`
4338 
4339   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4340 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4341   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4342 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4343 
4344 
4345   # Start with tools that do not need have cross compilation support
4346   # and can be expected to be found in the default PATH. These tools are
4347   # used by configure. Nor are these tools expected to be found in the
4348   # devkit from the builddeps server either, since they are
4349   # needed to download the devkit.
4350 
4351   # First are all the simple required tools.
4352 
4353 
4354 
4355   # Publish this variable in the help.
4356 
4357 
4358   if test "x$BASENAME" = x; then
4359     # The variable is not set by user, try to locate tool using the code snippet
4360     for ac_prog in basename
4361 do
4362   # Extract the first word of "$ac_prog", so it can be a program name with args.
4363 set dummy $ac_prog; ac_word=$2
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365 $as_echo_n "checking for $ac_word... " >&6; }
4366 if ${ac_cv_path_BASENAME+:} false; then :
4367   $as_echo_n "(cached) " >&6
4368 else
4369   case $BASENAME in
4370   [\\/]* | ?:[\\/]*)
4371   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4372   ;;
4373   *)
4374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH
4376 do
4377   IFS=$as_save_IFS
4378   test -z "$as_dir" && as_dir=.
4379     for ac_exec_ext in '' $ac_executable_extensions; do
4380   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4381     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4383     break 2
4384   fi
4385 done
4386   done
4387 IFS=$as_save_IFS
4388 
4389   ;;
4390 esac
4391 fi
4392 BASENAME=$ac_cv_path_BASENAME
4393 if test -n "$BASENAME"; then
4394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4395 $as_echo "$BASENAME" >&6; }
4396 else
4397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398 $as_echo "no" >&6; }
4399 fi
4400 
4401 
4402   test -n "$BASENAME" && break
4403 done
4404 
4405   else
4406     # The variable is set, but is it from the command line or the environment?
4407 
4408     # Try to remove the string !BASENAME! from our list.
4409     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4410     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4411       # If it failed, the variable was not from the command line. Ignore it,
4412       # but warn the user (except for BASH, which is always set by the calling BASH).
4413       if test "xBASENAME" != xBASH; then
4414         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4415 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4416       fi
4417       # Try to locate tool using the code snippet
4418       for ac_prog in basename
4419 do
4420   # Extract the first word of "$ac_prog", so it can be a program name with args.
4421 set dummy $ac_prog; ac_word=$2
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4423 $as_echo_n "checking for $ac_word... " >&6; }
4424 if ${ac_cv_path_BASENAME+:} false; then :
4425   $as_echo_n "(cached) " >&6
4426 else
4427   case $BASENAME in
4428   [\\/]* | ?:[\\/]*)
4429   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4430   ;;
4431   *)
4432   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 for as_dir in $PATH
4434 do
4435   IFS=$as_save_IFS
4436   test -z "$as_dir" && as_dir=.
4437     for ac_exec_ext in '' $ac_executable_extensions; do
4438   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4439     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4441     break 2
4442   fi
4443 done
4444   done
4445 IFS=$as_save_IFS
4446 
4447   ;;
4448 esac
4449 fi
4450 BASENAME=$ac_cv_path_BASENAME
4451 if test -n "$BASENAME"; then
4452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4453 $as_echo "$BASENAME" >&6; }
4454 else
4455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4456 $as_echo "no" >&6; }
4457 fi
4458 
4459 
4460   test -n "$BASENAME" && break
4461 done
4462 
4463     else
4464       # If it succeeded, then it was overridden by the user. We will use it
4465       # for the tool.
4466 
4467       # First remove it from the list of overridden variables, so we can test
4468       # for unknown variables in the end.
4469       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4470 
4471       # Check if the provided tool contains a complete path.
4472       tool_specified="$BASENAME"
4473       tool_basename="${tool_specified##*/}"
4474       if test "x$tool_basename" = "x$tool_specified"; then
4475         # A command without a complete path is provided, search $PATH.
4476         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4477 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4478         # Extract the first word of "$tool_basename", so it can be a program name with args.
4479 set dummy $tool_basename; ac_word=$2
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4481 $as_echo_n "checking for $ac_word... " >&6; }
4482 if ${ac_cv_path_BASENAME+:} false; then :
4483   $as_echo_n "(cached) " >&6
4484 else
4485   case $BASENAME in
4486   [\\/]* | ?:[\\/]*)
4487   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4488   ;;
4489   *)
4490   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491 for as_dir in $PATH
4492 do
4493   IFS=$as_save_IFS
4494   test -z "$as_dir" && as_dir=.
4495     for ac_exec_ext in '' $ac_executable_extensions; do
4496   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4497     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4499     break 2
4500   fi
4501 done
4502   done
4503 IFS=$as_save_IFS
4504 
4505   ;;
4506 esac
4507 fi
4508 BASENAME=$ac_cv_path_BASENAME
4509 if test -n "$BASENAME"; then
4510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4511 $as_echo "$BASENAME" >&6; }
4512 else
4513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4514 $as_echo "no" >&6; }
4515 fi
4516 
4517 
4518         if test "x$BASENAME" = x; then
4519           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4520         fi
4521       else
4522         # Otherwise we believe it is a complete path. Use it as it is.
4523         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4524 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4525         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4526 $as_echo_n "checking for BASENAME... " >&6; }
4527         if test ! -x "$tool_specified"; then
4528           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4529 $as_echo "not found" >&6; }
4530           as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4531         fi
4532         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4533 $as_echo "$tool_specified" >&6; }
4534       fi
4535     fi
4536   fi
4537 
4538 
4539 
4540   if test "x$BASENAME" = x; then
4541     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4542   fi
4543 
4544 
4545 
4546 
4547 
4548   # Publish this variable in the help.
4549 
4550 
4551   if test "x$BASH" = x; then
4552     # The variable is not set by user, try to locate tool using the code snippet
4553     for ac_prog in bash
4554 do
4555   # Extract the first word of "$ac_prog", so it can be a program name with args.
4556 set dummy $ac_prog; ac_word=$2
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 $as_echo_n "checking for $ac_word... " >&6; }
4559 if ${ac_cv_path_BASH+:} false; then :
4560   $as_echo_n "(cached) " >&6
4561 else
4562   case $BASH in
4563   [\\/]* | ?:[\\/]*)
4564   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4565   ;;
4566   *)
4567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH
4569 do
4570   IFS=$as_save_IFS
4571   test -z "$as_dir" && as_dir=.
4572     for ac_exec_ext in '' $ac_executable_extensions; do
4573   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4574     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4576     break 2
4577   fi
4578 done
4579   done
4580 IFS=$as_save_IFS
4581 
4582   ;;
4583 esac
4584 fi
4585 BASH=$ac_cv_path_BASH
4586 if test -n "$BASH"; then
4587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4588 $as_echo "$BASH" >&6; }
4589 else
4590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591 $as_echo "no" >&6; }
4592 fi
4593 
4594 
4595   test -n "$BASH" && break
4596 done
4597 
4598   else
4599     # The variable is set, but is it from the command line or the environment?
4600 
4601     # Try to remove the string !BASH! from our list.
4602     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
4603     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4604       # If it failed, the variable was not from the command line. Ignore it,
4605       # but warn the user (except for BASH, which is always set by the calling BASH).
4606       if test "xBASH" != xBASH; then
4607         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
4608 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
4609       fi
4610       # Try to locate tool using the code snippet
4611       for ac_prog in bash
4612 do
4613   # Extract the first word of "$ac_prog", so it can be a program name with args.
4614 set dummy $ac_prog; ac_word=$2
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4616 $as_echo_n "checking for $ac_word... " >&6; }
4617 if ${ac_cv_path_BASH+:} false; then :
4618   $as_echo_n "(cached) " >&6
4619 else
4620   case $BASH in
4621   [\\/]* | ?:[\\/]*)
4622   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4623   ;;
4624   *)
4625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 for as_dir in $PATH
4627 do
4628   IFS=$as_save_IFS
4629   test -z "$as_dir" && as_dir=.
4630     for ac_exec_ext in '' $ac_executable_extensions; do
4631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4632     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4634     break 2
4635   fi
4636 done
4637   done
4638 IFS=$as_save_IFS
4639 
4640   ;;
4641 esac
4642 fi
4643 BASH=$ac_cv_path_BASH
4644 if test -n "$BASH"; then
4645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4646 $as_echo "$BASH" >&6; }
4647 else
4648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4649 $as_echo "no" >&6; }
4650 fi
4651 
4652 
4653   test -n "$BASH" && break
4654 done
4655 
4656     else
4657       # If it succeeded, then it was overridden by the user. We will use it
4658       # for the tool.
4659 
4660       # First remove it from the list of overridden variables, so we can test
4661       # for unknown variables in the end.
4662       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4663 
4664       # Check if the provided tool contains a complete path.
4665       tool_specified="$BASH"
4666       tool_basename="${tool_specified##*/}"
4667       if test "x$tool_basename" = "x$tool_specified"; then
4668         # A command without a complete path is provided, search $PATH.
4669         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
4670 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
4671         # Extract the first word of "$tool_basename", so it can be a program name with args.
4672 set dummy $tool_basename; ac_word=$2
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4674 $as_echo_n "checking for $ac_word... " >&6; }
4675 if ${ac_cv_path_BASH+:} false; then :
4676   $as_echo_n "(cached) " >&6
4677 else
4678   case $BASH in
4679   [\\/]* | ?:[\\/]*)
4680   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4681   ;;
4682   *)
4683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 for as_dir in $PATH
4685 do
4686   IFS=$as_save_IFS
4687   test -z "$as_dir" && as_dir=.
4688     for ac_exec_ext in '' $ac_executable_extensions; do
4689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4690     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4692     break 2
4693   fi
4694 done
4695   done
4696 IFS=$as_save_IFS
4697 
4698   ;;
4699 esac
4700 fi
4701 BASH=$ac_cv_path_BASH
4702 if test -n "$BASH"; then
4703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4704 $as_echo "$BASH" >&6; }
4705 else
4706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4707 $as_echo "no" >&6; }
4708 fi
4709 
4710 
4711         if test "x$BASH" = x; then
4712           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4713         fi
4714       else
4715         # Otherwise we believe it is a complete path. Use it as it is.
4716         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
4717 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
4718         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
4719 $as_echo_n "checking for BASH... " >&6; }
4720         if test ! -x "$tool_specified"; then
4721           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4722 $as_echo "not found" >&6; }
4723           as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
4724         fi
4725         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4726 $as_echo "$tool_specified" >&6; }
4727       fi
4728     fi
4729   fi
4730 
4731 
4732 
4733   if test "x$BASH" = x; then
4734     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
4735   fi
4736 
4737 
4738 
4739 
4740 
4741   # Publish this variable in the help.
4742 
4743 
4744   if test "x$CAT" = x; then
4745     # The variable is not set by user, try to locate tool using the code snippet
4746     for ac_prog in cat
4747 do
4748   # Extract the first word of "$ac_prog", so it can be a program name with args.
4749 set dummy $ac_prog; ac_word=$2
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4751 $as_echo_n "checking for $ac_word... " >&6; }
4752 if ${ac_cv_path_CAT+:} false; then :
4753   $as_echo_n "(cached) " >&6
4754 else
4755   case $CAT in
4756   [\\/]* | ?:[\\/]*)
4757   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4758   ;;
4759   *)
4760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH
4762 do
4763   IFS=$as_save_IFS
4764   test -z "$as_dir" && as_dir=.
4765     for ac_exec_ext in '' $ac_executable_extensions; do
4766   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4767     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4769     break 2
4770   fi
4771 done
4772   done
4773 IFS=$as_save_IFS
4774 
4775   ;;
4776 esac
4777 fi
4778 CAT=$ac_cv_path_CAT
4779 if test -n "$CAT"; then
4780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4781 $as_echo "$CAT" >&6; }
4782 else
4783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784 $as_echo "no" >&6; }
4785 fi
4786 
4787 
4788   test -n "$CAT" && break
4789 done
4790 
4791   else
4792     # The variable is set, but is it from the command line or the environment?
4793 
4794     # Try to remove the string !CAT! from our list.
4795     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
4796     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4797       # If it failed, the variable was not from the command line. Ignore it,
4798       # but warn the user (except for BASH, which is always set by the calling BASH).
4799       if test "xCAT" != xBASH; then
4800         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
4801 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
4802       fi
4803       # Try to locate tool using the code snippet
4804       for ac_prog in cat
4805 do
4806   # Extract the first word of "$ac_prog", so it can be a program name with args.
4807 set dummy $ac_prog; ac_word=$2
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4809 $as_echo_n "checking for $ac_word... " >&6; }
4810 if ${ac_cv_path_CAT+:} false; then :
4811   $as_echo_n "(cached) " >&6
4812 else
4813   case $CAT in
4814   [\\/]* | ?:[\\/]*)
4815   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4816   ;;
4817   *)
4818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in $PATH
4820 do
4821   IFS=$as_save_IFS
4822   test -z "$as_dir" && as_dir=.
4823     for ac_exec_ext in '' $ac_executable_extensions; do
4824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4825     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4827     break 2
4828   fi
4829 done
4830   done
4831 IFS=$as_save_IFS
4832 
4833   ;;
4834 esac
4835 fi
4836 CAT=$ac_cv_path_CAT
4837 if test -n "$CAT"; then
4838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4839 $as_echo "$CAT" >&6; }
4840 else
4841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842 $as_echo "no" >&6; }
4843 fi
4844 
4845 
4846   test -n "$CAT" && break
4847 done
4848 
4849     else
4850       # If it succeeded, then it was overridden by the user. We will use it
4851       # for the tool.
4852 
4853       # First remove it from the list of overridden variables, so we can test
4854       # for unknown variables in the end.
4855       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4856 
4857       # Check if the provided tool contains a complete path.
4858       tool_specified="$CAT"
4859       tool_basename="${tool_specified##*/}"
4860       if test "x$tool_basename" = "x$tool_specified"; then
4861         # A command without a complete path is provided, search $PATH.
4862         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
4863 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
4864         # Extract the first word of "$tool_basename", so it can be a program name with args.
4865 set dummy $tool_basename; ac_word=$2
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867 $as_echo_n "checking for $ac_word... " >&6; }
4868 if ${ac_cv_path_CAT+:} false; then :
4869   $as_echo_n "(cached) " >&6
4870 else
4871   case $CAT in
4872   [\\/]* | ?:[\\/]*)
4873   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4874   ;;
4875   *)
4876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4878 do
4879   IFS=$as_save_IFS
4880   test -z "$as_dir" && as_dir=.
4881     for ac_exec_ext in '' $ac_executable_extensions; do
4882   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4883     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4885     break 2
4886   fi
4887 done
4888   done
4889 IFS=$as_save_IFS
4890 
4891   ;;
4892 esac
4893 fi
4894 CAT=$ac_cv_path_CAT
4895 if test -n "$CAT"; then
4896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4897 $as_echo "$CAT" >&6; }
4898 else
4899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900 $as_echo "no" >&6; }
4901 fi
4902 
4903 
4904         if test "x$CAT" = x; then
4905           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4906         fi
4907       else
4908         # Otherwise we believe it is a complete path. Use it as it is.
4909         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
4910 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
4911         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
4912 $as_echo_n "checking for CAT... " >&6; }
4913         if test ! -x "$tool_specified"; then
4914           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4915 $as_echo "not found" >&6; }
4916           as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
4917         fi
4918         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4919 $as_echo "$tool_specified" >&6; }
4920       fi
4921     fi
4922   fi
4923 
4924 
4925 
4926   if test "x$CAT" = x; then
4927     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
4928   fi
4929 
4930 
4931 
4932 
4933 
4934   # Publish this variable in the help.
4935 
4936 
4937   if test "x$CHMOD" = x; then
4938     # The variable is not set by user, try to locate tool using the code snippet
4939     for ac_prog in chmod
4940 do
4941   # Extract the first word of "$ac_prog", so it can be a program name with args.
4942 set dummy $ac_prog; ac_word=$2
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944 $as_echo_n "checking for $ac_word... " >&6; }
4945 if ${ac_cv_path_CHMOD+:} false; then :
4946   $as_echo_n "(cached) " >&6
4947 else
4948   case $CHMOD in
4949   [\\/]* | ?:[\\/]*)
4950   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4951   ;;
4952   *)
4953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954 for as_dir in $PATH
4955 do
4956   IFS=$as_save_IFS
4957   test -z "$as_dir" && as_dir=.
4958     for ac_exec_ext in '' $ac_executable_extensions; do
4959   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4960     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4962     break 2
4963   fi
4964 done
4965   done
4966 IFS=$as_save_IFS
4967 
4968   ;;
4969 esac
4970 fi
4971 CHMOD=$ac_cv_path_CHMOD
4972 if test -n "$CHMOD"; then
4973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4974 $as_echo "$CHMOD" >&6; }
4975 else
4976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4977 $as_echo "no" >&6; }
4978 fi
4979 
4980 
4981   test -n "$CHMOD" && break
4982 done
4983 
4984   else
4985     # The variable is set, but is it from the command line or the environment?
4986 
4987     # Try to remove the string !CHMOD! from our list.
4988     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
4989     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4990       # If it failed, the variable was not from the command line. Ignore it,
4991       # but warn the user (except for BASH, which is always set by the calling BASH).
4992       if test "xCHMOD" != xBASH; then
4993         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
4994 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
4995       fi
4996       # Try to locate tool using the code snippet
4997       for ac_prog in chmod
4998 do
4999   # Extract the first word of "$ac_prog", so it can be a program name with args.
5000 set dummy $ac_prog; ac_word=$2
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5002 $as_echo_n "checking for $ac_word... " >&6; }
5003 if ${ac_cv_path_CHMOD+:} false; then :
5004   $as_echo_n "(cached) " >&6
5005 else
5006   case $CHMOD in
5007   [\\/]* | ?:[\\/]*)
5008   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5009   ;;
5010   *)
5011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH
5013 do
5014   IFS=$as_save_IFS
5015   test -z "$as_dir" && as_dir=.
5016     for ac_exec_ext in '' $ac_executable_extensions; do
5017   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5018     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5020     break 2
5021   fi
5022 done
5023   done
5024 IFS=$as_save_IFS
5025 
5026   ;;
5027 esac
5028 fi
5029 CHMOD=$ac_cv_path_CHMOD
5030 if test -n "$CHMOD"; then
5031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5032 $as_echo "$CHMOD" >&6; }
5033 else
5034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5036 fi
5037 
5038 
5039   test -n "$CHMOD" && break
5040 done
5041 
5042     else
5043       # If it succeeded, then it was overridden by the user. We will use it
5044       # for the tool.
5045 
5046       # First remove it from the list of overridden variables, so we can test
5047       # for unknown variables in the end.
5048       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5049 
5050       # Check if the provided tool contains a complete path.
5051       tool_specified="$CHMOD"
5052       tool_basename="${tool_specified##*/}"
5053       if test "x$tool_basename" = "x$tool_specified"; then
5054         # A command without a complete path is provided, search $PATH.
5055         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5056 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5057         # Extract the first word of "$tool_basename", so it can be a program name with args.
5058 set dummy $tool_basename; ac_word=$2
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5060 $as_echo_n "checking for $ac_word... " >&6; }
5061 if ${ac_cv_path_CHMOD+:} false; then :
5062   $as_echo_n "(cached) " >&6
5063 else
5064   case $CHMOD in
5065   [\\/]* | ?:[\\/]*)
5066   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5067   ;;
5068   *)
5069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 for as_dir in $PATH
5071 do
5072   IFS=$as_save_IFS
5073   test -z "$as_dir" && as_dir=.
5074     for ac_exec_ext in '' $ac_executable_extensions; do
5075   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5076     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5078     break 2
5079   fi
5080 done
5081   done
5082 IFS=$as_save_IFS
5083 
5084   ;;
5085 esac
5086 fi
5087 CHMOD=$ac_cv_path_CHMOD
5088 if test -n "$CHMOD"; then
5089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5090 $as_echo "$CHMOD" >&6; }
5091 else
5092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093 $as_echo "no" >&6; }
5094 fi
5095 
5096 
5097         if test "x$CHMOD" = x; then
5098           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5099         fi
5100       else
5101         # Otherwise we believe it is a complete path. Use it as it is.
5102         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5103 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5104         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5105 $as_echo_n "checking for CHMOD... " >&6; }
5106         if test ! -x "$tool_specified"; then
5107           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5108 $as_echo "not found" >&6; }
5109           as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5110         fi
5111         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5112 $as_echo "$tool_specified" >&6; }
5113       fi
5114     fi
5115   fi
5116 
5117 
5118 
5119   if test "x$CHMOD" = x; then
5120     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5121   fi
5122 
5123 
5124 
5125 
5126 
5127   # Publish this variable in the help.
5128 
5129 
5130   if test "x$CMP" = x; then
5131     # The variable is not set by user, try to locate tool using the code snippet
5132     for ac_prog in cmp
5133 do
5134   # Extract the first word of "$ac_prog", so it can be a program name with args.
5135 set dummy $ac_prog; ac_word=$2
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5137 $as_echo_n "checking for $ac_word... " >&6; }
5138 if ${ac_cv_path_CMP+:} false; then :
5139   $as_echo_n "(cached) " >&6
5140 else
5141   case $CMP in
5142   [\\/]* | ?:[\\/]*)
5143   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5144   ;;
5145   *)
5146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in $PATH
5148 do
5149   IFS=$as_save_IFS
5150   test -z "$as_dir" && as_dir=.
5151     for ac_exec_ext in '' $ac_executable_extensions; do
5152   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5153     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5155     break 2
5156   fi
5157 done
5158   done
5159 IFS=$as_save_IFS
5160 
5161   ;;
5162 esac
5163 fi
5164 CMP=$ac_cv_path_CMP
5165 if test -n "$CMP"; then
5166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5167 $as_echo "$CMP" >&6; }
5168 else
5169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170 $as_echo "no" >&6; }
5171 fi
5172 
5173 
5174   test -n "$CMP" && break
5175 done
5176 
5177   else
5178     # The variable is set, but is it from the command line or the environment?
5179 
5180     # Try to remove the string !CMP! from our list.
5181     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
5182     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5183       # If it failed, the variable was not from the command line. Ignore it,
5184       # but warn the user (except for BASH, which is always set by the calling BASH).
5185       if test "xCMP" != xBASH; then
5186         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
5187 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
5188       fi
5189       # Try to locate tool using the code snippet
5190       for ac_prog in cmp
5191 do
5192   # Extract the first word of "$ac_prog", so it can be a program name with args.
5193 set dummy $ac_prog; ac_word=$2
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5195 $as_echo_n "checking for $ac_word... " >&6; }
5196 if ${ac_cv_path_CMP+:} false; then :
5197   $as_echo_n "(cached) " >&6
5198 else
5199   case $CMP in
5200   [\\/]* | ?:[\\/]*)
5201   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5202   ;;
5203   *)
5204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 for as_dir in $PATH
5206 do
5207   IFS=$as_save_IFS
5208   test -z "$as_dir" && as_dir=.
5209     for ac_exec_ext in '' $ac_executable_extensions; do
5210   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5211     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5213     break 2
5214   fi
5215 done
5216   done
5217 IFS=$as_save_IFS
5218 
5219   ;;
5220 esac
5221 fi
5222 CMP=$ac_cv_path_CMP
5223 if test -n "$CMP"; then
5224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5225 $as_echo "$CMP" >&6; }
5226 else
5227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228 $as_echo "no" >&6; }
5229 fi
5230 
5231 
5232   test -n "$CMP" && break
5233 done
5234 
5235     else
5236       # If it succeeded, then it was overridden by the user. We will use it
5237       # for the tool.
5238 
5239       # First remove it from the list of overridden variables, so we can test
5240       # for unknown variables in the end.
5241       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5242 
5243       # Check if the provided tool contains a complete path.
5244       tool_specified="$CMP"
5245       tool_basename="${tool_specified##*/}"
5246       if test "x$tool_basename" = "x$tool_specified"; then
5247         # A command without a complete path is provided, search $PATH.
5248         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5249 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5250         # Extract the first word of "$tool_basename", so it can be a program name with args.
5251 set dummy $tool_basename; ac_word=$2
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253 $as_echo_n "checking for $ac_word... " >&6; }
5254 if ${ac_cv_path_CMP+:} false; then :
5255   $as_echo_n "(cached) " >&6
5256 else
5257   case $CMP in
5258   [\\/]* | ?:[\\/]*)
5259   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5260   ;;
5261   *)
5262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 for as_dir in $PATH
5264 do
5265   IFS=$as_save_IFS
5266   test -z "$as_dir" && as_dir=.
5267     for ac_exec_ext in '' $ac_executable_extensions; do
5268   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5269     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5271     break 2
5272   fi
5273 done
5274   done
5275 IFS=$as_save_IFS
5276 
5277   ;;
5278 esac
5279 fi
5280 CMP=$ac_cv_path_CMP
5281 if test -n "$CMP"; then
5282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5283 $as_echo "$CMP" >&6; }
5284 else
5285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286 $as_echo "no" >&6; }
5287 fi
5288 
5289 
5290         if test "x$CMP" = x; then
5291           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5292         fi
5293       else
5294         # Otherwise we believe it is a complete path. Use it as it is.
5295         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5296 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5297         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5298 $as_echo_n "checking for CMP... " >&6; }
5299         if test ! -x "$tool_specified"; then
5300           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5301 $as_echo "not found" >&6; }
5302           as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5303         fi
5304         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5305 $as_echo "$tool_specified" >&6; }
5306       fi
5307     fi
5308   fi
5309 
5310 
5311 
5312   if test "x$CMP" = x; then
5313     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5314   fi
5315 
5316 
5317 
5318 
5319 
5320   # Publish this variable in the help.
5321 
5322 
5323   if test "x$COMM" = x; then
5324     # The variable is not set by user, try to locate tool using the code snippet
5325     for ac_prog in comm
5326 do
5327   # Extract the first word of "$ac_prog", so it can be a program name with args.
5328 set dummy $ac_prog; ac_word=$2
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330 $as_echo_n "checking for $ac_word... " >&6; }
5331 if ${ac_cv_path_COMM+:} false; then :
5332   $as_echo_n "(cached) " >&6
5333 else
5334   case $COMM in
5335   [\\/]* | ?:[\\/]*)
5336   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5337   ;;
5338   *)
5339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340 for as_dir in $PATH
5341 do
5342   IFS=$as_save_IFS
5343   test -z "$as_dir" && as_dir=.
5344     for ac_exec_ext in '' $ac_executable_extensions; do
5345   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5346     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5348     break 2
5349   fi
5350 done
5351   done
5352 IFS=$as_save_IFS
5353 
5354   ;;
5355 esac
5356 fi
5357 COMM=$ac_cv_path_COMM
5358 if test -n "$COMM"; then
5359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5360 $as_echo "$COMM" >&6; }
5361 else
5362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5363 $as_echo "no" >&6; }
5364 fi
5365 
5366 
5367   test -n "$COMM" && break
5368 done
5369 
5370   else
5371     # The variable is set, but is it from the command line or the environment?
5372 
5373     # Try to remove the string !COMM! from our list.
5374     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5375     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5376       # If it failed, the variable was not from the command line. Ignore it,
5377       # but warn the user (except for BASH, which is always set by the calling BASH).
5378       if test "xCOMM" != xBASH; then
5379         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5380 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5381       fi
5382       # Try to locate tool using the code snippet
5383       for ac_prog in comm
5384 do
5385   # Extract the first word of "$ac_prog", so it can be a program name with args.
5386 set dummy $ac_prog; ac_word=$2
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5388 $as_echo_n "checking for $ac_word... " >&6; }
5389 if ${ac_cv_path_COMM+:} false; then :
5390   $as_echo_n "(cached) " >&6
5391 else
5392   case $COMM in
5393   [\\/]* | ?:[\\/]*)
5394   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5395   ;;
5396   *)
5397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 for as_dir in $PATH
5399 do
5400   IFS=$as_save_IFS
5401   test -z "$as_dir" && as_dir=.
5402     for ac_exec_ext in '' $ac_executable_extensions; do
5403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5404     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5406     break 2
5407   fi
5408 done
5409   done
5410 IFS=$as_save_IFS
5411 
5412   ;;
5413 esac
5414 fi
5415 COMM=$ac_cv_path_COMM
5416 if test -n "$COMM"; then
5417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5418 $as_echo "$COMM" >&6; }
5419 else
5420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421 $as_echo "no" >&6; }
5422 fi
5423 
5424 
5425   test -n "$COMM" && break
5426 done
5427 
5428     else
5429       # If it succeeded, then it was overridden by the user. We will use it
5430       # for the tool.
5431 
5432       # First remove it from the list of overridden variables, so we can test
5433       # for unknown variables in the end.
5434       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5435 
5436       # Check if the provided tool contains a complete path.
5437       tool_specified="$COMM"
5438       tool_basename="${tool_specified##*/}"
5439       if test "x$tool_basename" = "x$tool_specified"; then
5440         # A command without a complete path is provided, search $PATH.
5441         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5442 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5443         # Extract the first word of "$tool_basename", so it can be a program name with args.
5444 set dummy $tool_basename; ac_word=$2
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5446 $as_echo_n "checking for $ac_word... " >&6; }
5447 if ${ac_cv_path_COMM+:} false; then :
5448   $as_echo_n "(cached) " >&6
5449 else
5450   case $COMM in
5451   [\\/]* | ?:[\\/]*)
5452   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5453   ;;
5454   *)
5455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456 for as_dir in $PATH
5457 do
5458   IFS=$as_save_IFS
5459   test -z "$as_dir" && as_dir=.
5460     for ac_exec_ext in '' $ac_executable_extensions; do
5461   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5462     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464     break 2
5465   fi
5466 done
5467   done
5468 IFS=$as_save_IFS
5469 
5470   ;;
5471 esac
5472 fi
5473 COMM=$ac_cv_path_COMM
5474 if test -n "$COMM"; then
5475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5476 $as_echo "$COMM" >&6; }
5477 else
5478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 $as_echo "no" >&6; }
5480 fi
5481 
5482 
5483         if test "x$COMM" = x; then
5484           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5485         fi
5486       else
5487         # Otherwise we believe it is a complete path. Use it as it is.
5488         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5489 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5490         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5491 $as_echo_n "checking for COMM... " >&6; }
5492         if test ! -x "$tool_specified"; then
5493           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5494 $as_echo "not found" >&6; }
5495           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5496         fi
5497         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5498 $as_echo "$tool_specified" >&6; }
5499       fi
5500     fi
5501   fi
5502 
5503 
5504 
5505   if test "x$COMM" = x; then
5506     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
5507   fi
5508 
5509 
5510 
5511 
5512 
5513   # Publish this variable in the help.
5514 
5515 
5516   if test "x$CP" = x; then
5517     # The variable is not set by user, try to locate tool using the code snippet
5518     for ac_prog in cp
5519 do
5520   # Extract the first word of "$ac_prog", so it can be a program name with args.
5521 set dummy $ac_prog; ac_word=$2
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5523 $as_echo_n "checking for $ac_word... " >&6; }
5524 if ${ac_cv_path_CP+:} false; then :
5525   $as_echo_n "(cached) " >&6
5526 else
5527   case $CP in
5528   [\\/]* | ?:[\\/]*)
5529   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5530   ;;
5531   *)
5532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 for as_dir in $PATH
5534 do
5535   IFS=$as_save_IFS
5536   test -z "$as_dir" && as_dir=.
5537     for ac_exec_ext in '' $ac_executable_extensions; do
5538   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5539     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5541     break 2
5542   fi
5543 done
5544   done
5545 IFS=$as_save_IFS
5546 
5547   ;;
5548 esac
5549 fi
5550 CP=$ac_cv_path_CP
5551 if test -n "$CP"; then
5552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5553 $as_echo "$CP" >&6; }
5554 else
5555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556 $as_echo "no" >&6; }
5557 fi
5558 
5559 
5560   test -n "$CP" && break
5561 done
5562 
5563   else
5564     # The variable is set, but is it from the command line or the environment?
5565 
5566     # Try to remove the string !CP! from our list.
5567     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
5568     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5569       # If it failed, the variable was not from the command line. Ignore it,
5570       # but warn the user (except for BASH, which is always set by the calling BASH).
5571       if test "xCP" != xBASH; then
5572         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
5573 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
5574       fi
5575       # Try to locate tool using the code snippet
5576       for ac_prog in cp
5577 do
5578   # Extract the first word of "$ac_prog", so it can be a program name with args.
5579 set dummy $ac_prog; ac_word=$2
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5581 $as_echo_n "checking for $ac_word... " >&6; }
5582 if ${ac_cv_path_CP+:} false; then :
5583   $as_echo_n "(cached) " >&6
5584 else
5585   case $CP in
5586   [\\/]* | ?:[\\/]*)
5587   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5588   ;;
5589   *)
5590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 for as_dir in $PATH
5592 do
5593   IFS=$as_save_IFS
5594   test -z "$as_dir" && as_dir=.
5595     for ac_exec_ext in '' $ac_executable_extensions; do
5596   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5597     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5599     break 2
5600   fi
5601 done
5602   done
5603 IFS=$as_save_IFS
5604 
5605   ;;
5606 esac
5607 fi
5608 CP=$ac_cv_path_CP
5609 if test -n "$CP"; then
5610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5611 $as_echo "$CP" >&6; }
5612 else
5613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614 $as_echo "no" >&6; }
5615 fi
5616 
5617 
5618   test -n "$CP" && break
5619 done
5620 
5621     else
5622       # If it succeeded, then it was overridden by the user. We will use it
5623       # for the tool.
5624 
5625       # First remove it from the list of overridden variables, so we can test
5626       # for unknown variables in the end.
5627       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5628 
5629       # Check if the provided tool contains a complete path.
5630       tool_specified="$CP"
5631       tool_basename="${tool_specified##*/}"
5632       if test "x$tool_basename" = "x$tool_specified"; then
5633         # A command without a complete path is provided, search $PATH.
5634         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
5635 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
5636         # Extract the first word of "$tool_basename", so it can be a program name with args.
5637 set dummy $tool_basename; ac_word=$2
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5639 $as_echo_n "checking for $ac_word... " >&6; }
5640 if ${ac_cv_path_CP+:} false; then :
5641   $as_echo_n "(cached) " >&6
5642 else
5643   case $CP in
5644   [\\/]* | ?:[\\/]*)
5645   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5646   ;;
5647   *)
5648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 for as_dir in $PATH
5650 do
5651   IFS=$as_save_IFS
5652   test -z "$as_dir" && as_dir=.
5653     for ac_exec_ext in '' $ac_executable_extensions; do
5654   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5655     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5657     break 2
5658   fi
5659 done
5660   done
5661 IFS=$as_save_IFS
5662 
5663   ;;
5664 esac
5665 fi
5666 CP=$ac_cv_path_CP
5667 if test -n "$CP"; then
5668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5669 $as_echo "$CP" >&6; }
5670 else
5671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672 $as_echo "no" >&6; }
5673 fi
5674 
5675 
5676         if test "x$CP" = x; then
5677           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5678         fi
5679       else
5680         # Otherwise we believe it is a complete path. Use it as it is.
5681         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
5682 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
5683         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
5684 $as_echo_n "checking for CP... " >&6; }
5685         if test ! -x "$tool_specified"; then
5686           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5687 $as_echo "not found" >&6; }
5688           as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
5689         fi
5690         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5691 $as_echo "$tool_specified" >&6; }
5692       fi
5693     fi
5694   fi
5695 
5696 
5697 
5698   if test "x$CP" = x; then
5699     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
5700   fi
5701 
5702 
5703 
5704 
5705 
5706   # Publish this variable in the help.
5707 
5708 
5709   if test "x$CUT" = x; then
5710     # The variable is not set by user, try to locate tool using the code snippet
5711     for ac_prog in cut
5712 do
5713   # Extract the first word of "$ac_prog", so it can be a program name with args.
5714 set dummy $ac_prog; ac_word=$2
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5716 $as_echo_n "checking for $ac_word... " >&6; }
5717 if ${ac_cv_path_CUT+:} false; then :
5718   $as_echo_n "(cached) " >&6
5719 else
5720   case $CUT in
5721   [\\/]* | ?:[\\/]*)
5722   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5723   ;;
5724   *)
5725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5727 do
5728   IFS=$as_save_IFS
5729   test -z "$as_dir" && as_dir=.
5730     for ac_exec_ext in '' $ac_executable_extensions; do
5731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734     break 2
5735   fi
5736 done
5737   done
5738 IFS=$as_save_IFS
5739 
5740   ;;
5741 esac
5742 fi
5743 CUT=$ac_cv_path_CUT
5744 if test -n "$CUT"; then
5745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5746 $as_echo "$CUT" >&6; }
5747 else
5748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749 $as_echo "no" >&6; }
5750 fi
5751 
5752 
5753   test -n "$CUT" && break
5754 done
5755 
5756   else
5757     # The variable is set, but is it from the command line or the environment?
5758 
5759     # Try to remove the string !CUT! from our list.
5760     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
5761     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5762       # If it failed, the variable was not from the command line. Ignore it,
5763       # but warn the user (except for BASH, which is always set by the calling BASH).
5764       if test "xCUT" != xBASH; then
5765         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
5766 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
5767       fi
5768       # Try to locate tool using the code snippet
5769       for ac_prog in cut
5770 do
5771   # Extract the first word of "$ac_prog", so it can be a program name with args.
5772 set dummy $ac_prog; ac_word=$2
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5774 $as_echo_n "checking for $ac_word... " >&6; }
5775 if ${ac_cv_path_CUT+:} false; then :
5776   $as_echo_n "(cached) " >&6
5777 else
5778   case $CUT in
5779   [\\/]* | ?:[\\/]*)
5780   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5781   ;;
5782   *)
5783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784 for as_dir in $PATH
5785 do
5786   IFS=$as_save_IFS
5787   test -z "$as_dir" && as_dir=.
5788     for ac_exec_ext in '' $ac_executable_extensions; do
5789   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5790     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5792     break 2
5793   fi
5794 done
5795   done
5796 IFS=$as_save_IFS
5797 
5798   ;;
5799 esac
5800 fi
5801 CUT=$ac_cv_path_CUT
5802 if test -n "$CUT"; then
5803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5804 $as_echo "$CUT" >&6; }
5805 else
5806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807 $as_echo "no" >&6; }
5808 fi
5809 
5810 
5811   test -n "$CUT" && break
5812 done
5813 
5814     else
5815       # If it succeeded, then it was overridden by the user. We will use it
5816       # for the tool.
5817 
5818       # First remove it from the list of overridden variables, so we can test
5819       # for unknown variables in the end.
5820       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5821 
5822       # Check if the provided tool contains a complete path.
5823       tool_specified="$CUT"
5824       tool_basename="${tool_specified##*/}"
5825       if test "x$tool_basename" = "x$tool_specified"; then
5826         # A command without a complete path is provided, search $PATH.
5827         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
5828 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
5829         # Extract the first word of "$tool_basename", so it can be a program name with args.
5830 set dummy $tool_basename; ac_word=$2
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5832 $as_echo_n "checking for $ac_word... " >&6; }
5833 if ${ac_cv_path_CUT+:} false; then :
5834   $as_echo_n "(cached) " >&6
5835 else
5836   case $CUT in
5837   [\\/]* | ?:[\\/]*)
5838   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5839   ;;
5840   *)
5841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842 for as_dir in $PATH
5843 do
5844   IFS=$as_save_IFS
5845   test -z "$as_dir" && as_dir=.
5846     for ac_exec_ext in '' $ac_executable_extensions; do
5847   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5848     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5850     break 2
5851   fi
5852 done
5853   done
5854 IFS=$as_save_IFS
5855 
5856   ;;
5857 esac
5858 fi
5859 CUT=$ac_cv_path_CUT
5860 if test -n "$CUT"; then
5861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5862 $as_echo "$CUT" >&6; }
5863 else
5864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865 $as_echo "no" >&6; }
5866 fi
5867 
5868 
5869         if test "x$CUT" = x; then
5870           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5871         fi
5872       else
5873         # Otherwise we believe it is a complete path. Use it as it is.
5874         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
5875 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
5876         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
5877 $as_echo_n "checking for CUT... " >&6; }
5878         if test ! -x "$tool_specified"; then
5879           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5880 $as_echo "not found" >&6; }
5881           as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
5882         fi
5883         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5884 $as_echo "$tool_specified" >&6; }
5885       fi
5886     fi
5887   fi
5888 
5889 
5890 
5891   if test "x$CUT" = x; then
5892     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
5893   fi
5894 
5895 
5896 
5897 
5898 
5899   # Publish this variable in the help.
5900 
5901 
5902   if test "x$DATE" = x; then
5903     # The variable is not set by user, try to locate tool using the code snippet
5904     for ac_prog in date
5905 do
5906   # Extract the first word of "$ac_prog", so it can be a program name with args.
5907 set dummy $ac_prog; ac_word=$2
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5909 $as_echo_n "checking for $ac_word... " >&6; }
5910 if ${ac_cv_path_DATE+:} false; then :
5911   $as_echo_n "(cached) " >&6
5912 else
5913   case $DATE in
5914   [\\/]* | ?:[\\/]*)
5915   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5916   ;;
5917   *)
5918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 for as_dir in $PATH
5920 do
5921   IFS=$as_save_IFS
5922   test -z "$as_dir" && as_dir=.
5923     for ac_exec_ext in '' $ac_executable_extensions; do
5924   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5925     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5927     break 2
5928   fi
5929 done
5930   done
5931 IFS=$as_save_IFS
5932 
5933   ;;
5934 esac
5935 fi
5936 DATE=$ac_cv_path_DATE
5937 if test -n "$DATE"; then
5938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
5939 $as_echo "$DATE" >&6; }
5940 else
5941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942 $as_echo "no" >&6; }
5943 fi
5944 
5945 
5946   test -n "$DATE" && break
5947 done
5948 
5949   else
5950     # The variable is set, but is it from the command line or the environment?
5951 
5952     # Try to remove the string !DATE! from our list.
5953     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
5954     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5955       # If it failed, the variable was not from the command line. Ignore it,
5956       # but warn the user (except for BASH, which is always set by the calling BASH).
5957       if test "xDATE" != xBASH; then
5958         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
5959 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
5960       fi
5961       # Try to locate tool using the code snippet
5962       for ac_prog in date
5963 do
5964   # Extract the first word of "$ac_prog", so it can be a program name with args.
5965 set dummy $ac_prog; ac_word=$2
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5967 $as_echo_n "checking for $ac_word... " >&6; }
5968 if ${ac_cv_path_DATE+:} false; then :
5969   $as_echo_n "(cached) " >&6
5970 else
5971   case $DATE in
5972   [\\/]* | ?:[\\/]*)
5973   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5974   ;;
5975   *)
5976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977 for as_dir in $PATH
5978 do
5979   IFS=$as_save_IFS
5980   test -z "$as_dir" && as_dir=.
5981     for ac_exec_ext in '' $ac_executable_extensions; do
5982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5983     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5985     break 2
5986   fi
5987 done
5988   done
5989 IFS=$as_save_IFS
5990 
5991   ;;
5992 esac
5993 fi
5994 DATE=$ac_cv_path_DATE
5995 if test -n "$DATE"; then
5996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
5997 $as_echo "$DATE" >&6; }
5998 else
5999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6000 $as_echo "no" >&6; }
6001 fi
6002 
6003 
6004   test -n "$DATE" && break
6005 done
6006 
6007     else
6008       # If it succeeded, then it was overridden by the user. We will use it
6009       # for the tool.
6010 
6011       # First remove it from the list of overridden variables, so we can test
6012       # for unknown variables in the end.
6013       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6014 
6015       # Check if the provided tool contains a complete path.
6016       tool_specified="$DATE"
6017       tool_basename="${tool_specified##*/}"
6018       if test "x$tool_basename" = "x$tool_specified"; then
6019         # A command without a complete path is provided, search $PATH.
6020         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6021 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6022         # Extract the first word of "$tool_basename", so it can be a program name with args.
6023 set dummy $tool_basename; ac_word=$2
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6025 $as_echo_n "checking for $ac_word... " >&6; }
6026 if ${ac_cv_path_DATE+:} false; then :
6027   $as_echo_n "(cached) " >&6
6028 else
6029   case $DATE in
6030   [\\/]* | ?:[\\/]*)
6031   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6032   ;;
6033   *)
6034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035 for as_dir in $PATH
6036 do
6037   IFS=$as_save_IFS
6038   test -z "$as_dir" && as_dir=.
6039     for ac_exec_ext in '' $ac_executable_extensions; do
6040   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6041     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6043     break 2
6044   fi
6045 done
6046   done
6047 IFS=$as_save_IFS
6048 
6049   ;;
6050 esac
6051 fi
6052 DATE=$ac_cv_path_DATE
6053 if test -n "$DATE"; then
6054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6055 $as_echo "$DATE" >&6; }
6056 else
6057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058 $as_echo "no" >&6; }
6059 fi
6060 
6061 
6062         if test "x$DATE" = x; then
6063           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6064         fi
6065       else
6066         # Otherwise we believe it is a complete path. Use it as it is.
6067         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6068 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6069         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6070 $as_echo_n "checking for DATE... " >&6; }
6071         if test ! -x "$tool_specified"; then
6072           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6073 $as_echo "not found" >&6; }
6074           as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6075         fi
6076         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6077 $as_echo "$tool_specified" >&6; }
6078       fi
6079     fi
6080   fi
6081 
6082 
6083 
6084   if test "x$DATE" = x; then
6085     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6086   fi
6087 
6088 
6089 
6090 
6091 
6092   # Publish this variable in the help.
6093 
6094 
6095   if test "x$DIFF" = x; then
6096     # The variable is not set by user, try to locate tool using the code snippet
6097     for ac_prog in gdiff diff
6098 do
6099   # Extract the first word of "$ac_prog", so it can be a program name with args.
6100 set dummy $ac_prog; ac_word=$2
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6102 $as_echo_n "checking for $ac_word... " >&6; }
6103 if ${ac_cv_path_DIFF+:} false; then :
6104   $as_echo_n "(cached) " >&6
6105 else
6106   case $DIFF in
6107   [\\/]* | ?:[\\/]*)
6108   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6109   ;;
6110   *)
6111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 for as_dir in $PATH
6113 do
6114   IFS=$as_save_IFS
6115   test -z "$as_dir" && as_dir=.
6116     for ac_exec_ext in '' $ac_executable_extensions; do
6117   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6118     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6120     break 2
6121   fi
6122 done
6123   done
6124 IFS=$as_save_IFS
6125 
6126   ;;
6127 esac
6128 fi
6129 DIFF=$ac_cv_path_DIFF
6130 if test -n "$DIFF"; then
6131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6132 $as_echo "$DIFF" >&6; }
6133 else
6134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6135 $as_echo "no" >&6; }
6136 fi
6137 
6138 
6139   test -n "$DIFF" && break
6140 done
6141 
6142   else
6143     # The variable is set, but is it from the command line or the environment?
6144 
6145     # Try to remove the string !DIFF! from our list.
6146     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6147     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6148       # If it failed, the variable was not from the command line. Ignore it,
6149       # but warn the user (except for BASH, which is always set by the calling BASH).
6150       if test "xDIFF" != xBASH; then
6151         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6152 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6153       fi
6154       # Try to locate tool using the code snippet
6155       for ac_prog in gdiff diff
6156 do
6157   # Extract the first word of "$ac_prog", so it can be a program name with args.
6158 set dummy $ac_prog; ac_word=$2
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6160 $as_echo_n "checking for $ac_word... " >&6; }
6161 if ${ac_cv_path_DIFF+:} false; then :
6162   $as_echo_n "(cached) " >&6
6163 else
6164   case $DIFF in
6165   [\\/]* | ?:[\\/]*)
6166   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6167   ;;
6168   *)
6169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170 for as_dir in $PATH
6171 do
6172   IFS=$as_save_IFS
6173   test -z "$as_dir" && as_dir=.
6174     for ac_exec_ext in '' $ac_executable_extensions; do
6175   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6176     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6178     break 2
6179   fi
6180 done
6181   done
6182 IFS=$as_save_IFS
6183 
6184   ;;
6185 esac
6186 fi
6187 DIFF=$ac_cv_path_DIFF
6188 if test -n "$DIFF"; then
6189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6190 $as_echo "$DIFF" >&6; }
6191 else
6192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6193 $as_echo "no" >&6; }
6194 fi
6195 
6196 
6197   test -n "$DIFF" && break
6198 done
6199 
6200     else
6201       # If it succeeded, then it was overridden by the user. We will use it
6202       # for the tool.
6203 
6204       # First remove it from the list of overridden variables, so we can test
6205       # for unknown variables in the end.
6206       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6207 
6208       # Check if the provided tool contains a complete path.
6209       tool_specified="$DIFF"
6210       tool_basename="${tool_specified##*/}"
6211       if test "x$tool_basename" = "x$tool_specified"; then
6212         # A command without a complete path is provided, search $PATH.
6213         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6214 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6215         # Extract the first word of "$tool_basename", so it can be a program name with args.
6216 set dummy $tool_basename; ac_word=$2
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6218 $as_echo_n "checking for $ac_word... " >&6; }
6219 if ${ac_cv_path_DIFF+:} false; then :
6220   $as_echo_n "(cached) " >&6
6221 else
6222   case $DIFF in
6223   [\\/]* | ?:[\\/]*)
6224   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6225   ;;
6226   *)
6227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228 for as_dir in $PATH
6229 do
6230   IFS=$as_save_IFS
6231   test -z "$as_dir" && as_dir=.
6232     for ac_exec_ext in '' $ac_executable_extensions; do
6233   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6234     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6236     break 2
6237   fi
6238 done
6239   done
6240 IFS=$as_save_IFS
6241 
6242   ;;
6243 esac
6244 fi
6245 DIFF=$ac_cv_path_DIFF
6246 if test -n "$DIFF"; then
6247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6248 $as_echo "$DIFF" >&6; }
6249 else
6250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6251 $as_echo "no" >&6; }
6252 fi
6253 
6254 
6255         if test "x$DIFF" = x; then
6256           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6257         fi
6258       else
6259         # Otherwise we believe it is a complete path. Use it as it is.
6260         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6261 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6262         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6263 $as_echo_n "checking for DIFF... " >&6; }
6264         if test ! -x "$tool_specified"; then
6265           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6266 $as_echo "not found" >&6; }
6267           as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6268         fi
6269         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6270 $as_echo "$tool_specified" >&6; }
6271       fi
6272     fi
6273   fi
6274 
6275 
6276 
6277   if test "x$DIFF" = x; then
6278     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6279   fi
6280 
6281 
6282 
6283 
6284 
6285   # Publish this variable in the help.
6286 
6287 
6288   if test "x$DIRNAME" = x; then
6289     # The variable is not set by user, try to locate tool using the code snippet
6290     for ac_prog in dirname
6291 do
6292   # Extract the first word of "$ac_prog", so it can be a program name with args.
6293 set dummy $ac_prog; ac_word=$2
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6295 $as_echo_n "checking for $ac_word... " >&6; }
6296 if ${ac_cv_path_DIRNAME+:} false; then :
6297   $as_echo_n "(cached) " >&6
6298 else
6299   case $DIRNAME in
6300   [\\/]* | ?:[\\/]*)
6301   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6302   ;;
6303   *)
6304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 for as_dir in $PATH
6306 do
6307   IFS=$as_save_IFS
6308   test -z "$as_dir" && as_dir=.
6309     for ac_exec_ext in '' $ac_executable_extensions; do
6310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6311     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6313     break 2
6314   fi
6315 done
6316   done
6317 IFS=$as_save_IFS
6318 
6319   ;;
6320 esac
6321 fi
6322 DIRNAME=$ac_cv_path_DIRNAME
6323 if test -n "$DIRNAME"; then
6324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6325 $as_echo "$DIRNAME" >&6; }
6326 else
6327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6328 $as_echo "no" >&6; }
6329 fi
6330 
6331 
6332   test -n "$DIRNAME" && break
6333 done
6334 
6335   else
6336     # The variable is set, but is it from the command line or the environment?
6337 
6338     # Try to remove the string !DIRNAME! from our list.
6339     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6340     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6341       # If it failed, the variable was not from the command line. Ignore it,
6342       # but warn the user (except for BASH, which is always set by the calling BASH).
6343       if test "xDIRNAME" != xBASH; then
6344         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6345 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6346       fi
6347       # Try to locate tool using the code snippet
6348       for ac_prog in dirname
6349 do
6350   # Extract the first word of "$ac_prog", so it can be a program name with args.
6351 set dummy $ac_prog; ac_word=$2
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6353 $as_echo_n "checking for $ac_word... " >&6; }
6354 if ${ac_cv_path_DIRNAME+:} false; then :
6355   $as_echo_n "(cached) " >&6
6356 else
6357   case $DIRNAME in
6358   [\\/]* | ?:[\\/]*)
6359   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6360   ;;
6361   *)
6362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 for as_dir in $PATH
6364 do
6365   IFS=$as_save_IFS
6366   test -z "$as_dir" && as_dir=.
6367     for ac_exec_ext in '' $ac_executable_extensions; do
6368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6369     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6371     break 2
6372   fi
6373 done
6374   done
6375 IFS=$as_save_IFS
6376 
6377   ;;
6378 esac
6379 fi
6380 DIRNAME=$ac_cv_path_DIRNAME
6381 if test -n "$DIRNAME"; then
6382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6383 $as_echo "$DIRNAME" >&6; }
6384 else
6385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386 $as_echo "no" >&6; }
6387 fi
6388 
6389 
6390   test -n "$DIRNAME" && break
6391 done
6392 
6393     else
6394       # If it succeeded, then it was overridden by the user. We will use it
6395       # for the tool.
6396 
6397       # First remove it from the list of overridden variables, so we can test
6398       # for unknown variables in the end.
6399       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6400 
6401       # Check if the provided tool contains a complete path.
6402       tool_specified="$DIRNAME"
6403       tool_basename="${tool_specified##*/}"
6404       if test "x$tool_basename" = "x$tool_specified"; then
6405         # A command without a complete path is provided, search $PATH.
6406         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6407 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6408         # Extract the first word of "$tool_basename", so it can be a program name with args.
6409 set dummy $tool_basename; ac_word=$2
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6411 $as_echo_n "checking for $ac_word... " >&6; }
6412 if ${ac_cv_path_DIRNAME+:} false; then :
6413   $as_echo_n "(cached) " >&6
6414 else
6415   case $DIRNAME in
6416   [\\/]* | ?:[\\/]*)
6417   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6418   ;;
6419   *)
6420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421 for as_dir in $PATH
6422 do
6423   IFS=$as_save_IFS
6424   test -z "$as_dir" && as_dir=.
6425     for ac_exec_ext in '' $ac_executable_extensions; do
6426   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6427     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6429     break 2
6430   fi
6431 done
6432   done
6433 IFS=$as_save_IFS
6434 
6435   ;;
6436 esac
6437 fi
6438 DIRNAME=$ac_cv_path_DIRNAME
6439 if test -n "$DIRNAME"; then
6440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6441 $as_echo "$DIRNAME" >&6; }
6442 else
6443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6444 $as_echo "no" >&6; }
6445 fi
6446 
6447 
6448         if test "x$DIRNAME" = x; then
6449           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6450         fi
6451       else
6452         # Otherwise we believe it is a complete path. Use it as it is.
6453         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
6454 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
6455         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6456 $as_echo_n "checking for DIRNAME... " >&6; }
6457         if test ! -x "$tool_specified"; then
6458           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6459 $as_echo "not found" >&6; }
6460           as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
6461         fi
6462         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6463 $as_echo "$tool_specified" >&6; }
6464       fi
6465     fi
6466   fi
6467 
6468 
6469 
6470   if test "x$DIRNAME" = x; then
6471     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
6472   fi
6473 
6474 
6475 
6476 
6477 
6478   # Publish this variable in the help.
6479 
6480 
6481   if test "x$ECHO" = x; then
6482     # The variable is not set by user, try to locate tool using the code snippet
6483     for ac_prog in echo
6484 do
6485   # Extract the first word of "$ac_prog", so it can be a program name with args.
6486 set dummy $ac_prog; ac_word=$2
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6488 $as_echo_n "checking for $ac_word... " >&6; }
6489 if ${ac_cv_path_ECHO+:} false; then :
6490   $as_echo_n "(cached) " >&6
6491 else
6492   case $ECHO in
6493   [\\/]* | ?:[\\/]*)
6494   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6495   ;;
6496   *)
6497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498 for as_dir in $PATH
6499 do
6500   IFS=$as_save_IFS
6501   test -z "$as_dir" && as_dir=.
6502     for ac_exec_ext in '' $ac_executable_extensions; do
6503   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6504     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6506     break 2
6507   fi
6508 done
6509   done
6510 IFS=$as_save_IFS
6511 
6512   ;;
6513 esac
6514 fi
6515 ECHO=$ac_cv_path_ECHO
6516 if test -n "$ECHO"; then
6517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6518 $as_echo "$ECHO" >&6; }
6519 else
6520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521 $as_echo "no" >&6; }
6522 fi
6523 
6524 
6525   test -n "$ECHO" && break
6526 done
6527 
6528   else
6529     # The variable is set, but is it from the command line or the environment?
6530 
6531     # Try to remove the string !ECHO! from our list.
6532     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
6533     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6534       # If it failed, the variable was not from the command line. Ignore it,
6535       # but warn the user (except for BASH, which is always set by the calling BASH).
6536       if test "xECHO" != xBASH; then
6537         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
6538 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
6539       fi
6540       # Try to locate tool using the code snippet
6541       for ac_prog in echo
6542 do
6543   # Extract the first word of "$ac_prog", so it can be a program name with args.
6544 set dummy $ac_prog; ac_word=$2
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546 $as_echo_n "checking for $ac_word... " >&6; }
6547 if ${ac_cv_path_ECHO+:} false; then :
6548   $as_echo_n "(cached) " >&6
6549 else
6550   case $ECHO in
6551   [\\/]* | ?:[\\/]*)
6552   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6553   ;;
6554   *)
6555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 for as_dir in $PATH
6557 do
6558   IFS=$as_save_IFS
6559   test -z "$as_dir" && as_dir=.
6560     for ac_exec_ext in '' $ac_executable_extensions; do
6561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6562     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6564     break 2
6565   fi
6566 done
6567   done
6568 IFS=$as_save_IFS
6569 
6570   ;;
6571 esac
6572 fi
6573 ECHO=$ac_cv_path_ECHO
6574 if test -n "$ECHO"; then
6575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6576 $as_echo "$ECHO" >&6; }
6577 else
6578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579 $as_echo "no" >&6; }
6580 fi
6581 
6582 
6583   test -n "$ECHO" && break
6584 done
6585 
6586     else
6587       # If it succeeded, then it was overridden by the user. We will use it
6588       # for the tool.
6589 
6590       # First remove it from the list of overridden variables, so we can test
6591       # for unknown variables in the end.
6592       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6593 
6594       # Check if the provided tool contains a complete path.
6595       tool_specified="$ECHO"
6596       tool_basename="${tool_specified##*/}"
6597       if test "x$tool_basename" = "x$tool_specified"; then
6598         # A command without a complete path is provided, search $PATH.
6599         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
6600 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
6601         # Extract the first word of "$tool_basename", so it can be a program name with args.
6602 set dummy $tool_basename; ac_word=$2
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604 $as_echo_n "checking for $ac_word... " >&6; }
6605 if ${ac_cv_path_ECHO+:} false; then :
6606   $as_echo_n "(cached) " >&6
6607 else
6608   case $ECHO in
6609   [\\/]* | ?:[\\/]*)
6610   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6611   ;;
6612   *)
6613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614 for as_dir in $PATH
6615 do
6616   IFS=$as_save_IFS
6617   test -z "$as_dir" && as_dir=.
6618     for ac_exec_ext in '' $ac_executable_extensions; do
6619   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6620     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6622     break 2
6623   fi
6624 done
6625   done
6626 IFS=$as_save_IFS
6627 
6628   ;;
6629 esac
6630 fi
6631 ECHO=$ac_cv_path_ECHO
6632 if test -n "$ECHO"; then
6633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6634 $as_echo "$ECHO" >&6; }
6635 else
6636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6637 $as_echo "no" >&6; }
6638 fi
6639 
6640 
6641         if test "x$ECHO" = x; then
6642           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6643         fi
6644       else
6645         # Otherwise we believe it is a complete path. Use it as it is.
6646         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
6647 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
6648         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
6649 $as_echo_n "checking for ECHO... " >&6; }
6650         if test ! -x "$tool_specified"; then
6651           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6652 $as_echo "not found" >&6; }
6653           as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
6654         fi
6655         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6656 $as_echo "$tool_specified" >&6; }
6657       fi
6658     fi
6659   fi
6660 
6661 
6662 
6663   if test "x$ECHO" = x; then
6664     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
6665   fi
6666 
6667 
6668 
6669 
6670 
6671   # Publish this variable in the help.
6672 
6673 
6674   if test "x$EXPR" = x; then
6675     # The variable is not set by user, try to locate tool using the code snippet
6676     for ac_prog in expr
6677 do
6678   # Extract the first word of "$ac_prog", so it can be a program name with args.
6679 set dummy $ac_prog; ac_word=$2
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6681 $as_echo_n "checking for $ac_word... " >&6; }
6682 if ${ac_cv_path_EXPR+:} false; then :
6683   $as_echo_n "(cached) " >&6
6684 else
6685   case $EXPR in
6686   [\\/]* | ?:[\\/]*)
6687   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6688   ;;
6689   *)
6690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 for as_dir in $PATH
6692 do
6693   IFS=$as_save_IFS
6694   test -z "$as_dir" && as_dir=.
6695     for ac_exec_ext in '' $ac_executable_extensions; do
6696   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6697     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6699     break 2
6700   fi
6701 done
6702   done
6703 IFS=$as_save_IFS
6704 
6705   ;;
6706 esac
6707 fi
6708 EXPR=$ac_cv_path_EXPR
6709 if test -n "$EXPR"; then
6710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6711 $as_echo "$EXPR" >&6; }
6712 else
6713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6714 $as_echo "no" >&6; }
6715 fi
6716 
6717 
6718   test -n "$EXPR" && break
6719 done
6720 
6721   else
6722     # The variable is set, but is it from the command line or the environment?
6723 
6724     # Try to remove the string !EXPR! from our list.
6725     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
6726     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6727       # If it failed, the variable was not from the command line. Ignore it,
6728       # but warn the user (except for BASH, which is always set by the calling BASH).
6729       if test "xEXPR" != xBASH; then
6730         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
6731 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
6732       fi
6733       # Try to locate tool using the code snippet
6734       for ac_prog in expr
6735 do
6736   # Extract the first word of "$ac_prog", so it can be a program name with args.
6737 set dummy $ac_prog; ac_word=$2
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6739 $as_echo_n "checking for $ac_word... " >&6; }
6740 if ${ac_cv_path_EXPR+:} false; then :
6741   $as_echo_n "(cached) " >&6
6742 else
6743   case $EXPR in
6744   [\\/]* | ?:[\\/]*)
6745   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6746   ;;
6747   *)
6748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749 for as_dir in $PATH
6750 do
6751   IFS=$as_save_IFS
6752   test -z "$as_dir" && as_dir=.
6753     for ac_exec_ext in '' $ac_executable_extensions; do
6754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6755     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6757     break 2
6758   fi
6759 done
6760   done
6761 IFS=$as_save_IFS
6762 
6763   ;;
6764 esac
6765 fi
6766 EXPR=$ac_cv_path_EXPR
6767 if test -n "$EXPR"; then
6768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6769 $as_echo "$EXPR" >&6; }
6770 else
6771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772 $as_echo "no" >&6; }
6773 fi
6774 
6775 
6776   test -n "$EXPR" && break
6777 done
6778 
6779     else
6780       # If it succeeded, then it was overridden by the user. We will use it
6781       # for the tool.
6782 
6783       # First remove it from the list of overridden variables, so we can test
6784       # for unknown variables in the end.
6785       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6786 
6787       # Check if the provided tool contains a complete path.
6788       tool_specified="$EXPR"
6789       tool_basename="${tool_specified##*/}"
6790       if test "x$tool_basename" = "x$tool_specified"; then
6791         # A command without a complete path is provided, search $PATH.
6792         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
6793 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
6794         # Extract the first word of "$tool_basename", so it can be a program name with args.
6795 set dummy $tool_basename; ac_word=$2
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6797 $as_echo_n "checking for $ac_word... " >&6; }
6798 if ${ac_cv_path_EXPR+:} false; then :
6799   $as_echo_n "(cached) " >&6
6800 else
6801   case $EXPR in
6802   [\\/]* | ?:[\\/]*)
6803   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6804   ;;
6805   *)
6806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 for as_dir in $PATH
6808 do
6809   IFS=$as_save_IFS
6810   test -z "$as_dir" && as_dir=.
6811     for ac_exec_ext in '' $ac_executable_extensions; do
6812   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6813     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6815     break 2
6816   fi
6817 done
6818   done
6819 IFS=$as_save_IFS
6820 
6821   ;;
6822 esac
6823 fi
6824 EXPR=$ac_cv_path_EXPR
6825 if test -n "$EXPR"; then
6826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6827 $as_echo "$EXPR" >&6; }
6828 else
6829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830 $as_echo "no" >&6; }
6831 fi
6832 
6833 
6834         if test "x$EXPR" = x; then
6835           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6836         fi
6837       else
6838         # Otherwise we believe it is a complete path. Use it as it is.
6839         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
6840 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
6841         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
6842 $as_echo_n "checking for EXPR... " >&6; }
6843         if test ! -x "$tool_specified"; then
6844           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6845 $as_echo "not found" >&6; }
6846           as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
6847         fi
6848         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6849 $as_echo "$tool_specified" >&6; }
6850       fi
6851     fi
6852   fi
6853 
6854 
6855 
6856   if test "x$EXPR" = x; then
6857     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
6858   fi
6859 
6860 
6861 
6862 
6863 
6864   # Publish this variable in the help.
6865 
6866 
6867   if test "x$FILE" = x; then
6868     # The variable is not set by user, try to locate tool using the code snippet
6869     for ac_prog in file
6870 do
6871   # Extract the first word of "$ac_prog", so it can be a program name with args.
6872 set dummy $ac_prog; ac_word=$2
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6874 $as_echo_n "checking for $ac_word... " >&6; }
6875 if ${ac_cv_path_FILE+:} false; then :
6876   $as_echo_n "(cached) " >&6
6877 else
6878   case $FILE in
6879   [\\/]* | ?:[\\/]*)
6880   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
6881   ;;
6882   *)
6883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884 for as_dir in $PATH
6885 do
6886   IFS=$as_save_IFS
6887   test -z "$as_dir" && as_dir=.
6888     for ac_exec_ext in '' $ac_executable_extensions; do
6889   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6890     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
6891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6892     break 2
6893   fi
6894 done
6895   done
6896 IFS=$as_save_IFS
6897 
6898   ;;
6899 esac
6900 fi
6901 FILE=$ac_cv_path_FILE
6902 if test -n "$FILE"; then
6903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
6904 $as_echo "$FILE" >&6; }
6905 else
6906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907 $as_echo "no" >&6; }
6908 fi
6909 
6910 
6911   test -n "$FILE" && break
6912 done
6913 
6914   else
6915     # The variable is set, but is it from the command line or the environment?
6916 
6917     # Try to remove the string !FILE! from our list.
6918     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
6919     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6920       # If it failed, the variable was not from the command line. Ignore it,
6921       # but warn the user (except for BASH, which is always set by the calling BASH).
6922       if test "xFILE" != xBASH; then
6923         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
6924 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
6925       fi
6926       # Try to locate tool using the code snippet
6927       for ac_prog in file
6928 do
6929   # Extract the first word of "$ac_prog", so it can be a program name with args.
6930 set dummy $ac_prog; ac_word=$2
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932 $as_echo_n "checking for $ac_word... " >&6; }
6933 if ${ac_cv_path_FILE+:} false; then :
6934   $as_echo_n "(cached) " >&6
6935 else
6936   case $FILE in
6937   [\\/]* | ?:[\\/]*)
6938   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
6939   ;;
6940   *)
6941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH
6943 do
6944   IFS=$as_save_IFS
6945   test -z "$as_dir" && as_dir=.
6946     for ac_exec_ext in '' $ac_executable_extensions; do
6947   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6948     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
6949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950     break 2
6951   fi
6952 done
6953   done
6954 IFS=$as_save_IFS
6955 
6956   ;;
6957 esac
6958 fi
6959 FILE=$ac_cv_path_FILE
6960 if test -n "$FILE"; then
6961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
6962 $as_echo "$FILE" >&6; }
6963 else
6964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965 $as_echo "no" >&6; }
6966 fi
6967 
6968 
6969   test -n "$FILE" && break
6970 done
6971 
6972     else
6973       # If it succeeded, then it was overridden by the user. We will use it
6974       # for the tool.
6975 
6976       # First remove it from the list of overridden variables, so we can test
6977       # for unknown variables in the end.
6978       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6979 
6980       # Check if the provided tool contains a complete path.
6981       tool_specified="$FILE"
6982       tool_basename="${tool_specified##*/}"
6983       if test "x$tool_basename" = "x$tool_specified"; then
6984         # A command without a complete path is provided, search $PATH.
6985         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
6986 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
6987         # Extract the first word of "$tool_basename", so it can be a program name with args.
6988 set dummy $tool_basename; ac_word=$2
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6990 $as_echo_n "checking for $ac_word... " >&6; }
6991 if ${ac_cv_path_FILE+:} false; then :
6992   $as_echo_n "(cached) " >&6
6993 else
6994   case $FILE in
6995   [\\/]* | ?:[\\/]*)
6996   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
6997   ;;
6998   *)
6999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 for as_dir in $PATH
7001 do
7002   IFS=$as_save_IFS
7003   test -z "$as_dir" && as_dir=.
7004     for ac_exec_ext in '' $ac_executable_extensions; do
7005   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7006     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7008     break 2
7009   fi
7010 done
7011   done
7012 IFS=$as_save_IFS
7013 
7014   ;;
7015 esac
7016 fi
7017 FILE=$ac_cv_path_FILE
7018 if test -n "$FILE"; then
7019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7020 $as_echo "$FILE" >&6; }
7021 else
7022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023 $as_echo "no" >&6; }
7024 fi
7025 
7026 
7027         if test "x$FILE" = x; then
7028           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7029         fi
7030       else
7031         # Otherwise we believe it is a complete path. Use it as it is.
7032         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7033 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7034         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7035 $as_echo_n "checking for FILE... " >&6; }
7036         if test ! -x "$tool_specified"; then
7037           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7038 $as_echo "not found" >&6; }
7039           as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7040         fi
7041         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7042 $as_echo "$tool_specified" >&6; }
7043       fi
7044     fi
7045   fi
7046 
7047 
7048 
7049   if test "x$FILE" = x; then
7050     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7051   fi
7052 
7053 
7054 
7055 
7056 
7057   # Publish this variable in the help.
7058 
7059 
7060   if test "x$FIND" = x; then
7061     # The variable is not set by user, try to locate tool using the code snippet
7062     for ac_prog in find
7063 do
7064   # Extract the first word of "$ac_prog", so it can be a program name with args.
7065 set dummy $ac_prog; ac_word=$2
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067 $as_echo_n "checking for $ac_word... " >&6; }
7068 if ${ac_cv_path_FIND+:} false; then :
7069   $as_echo_n "(cached) " >&6
7070 else
7071   case $FIND in
7072   [\\/]* | ?:[\\/]*)
7073   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7074   ;;
7075   *)
7076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 for as_dir in $PATH
7078 do
7079   IFS=$as_save_IFS
7080   test -z "$as_dir" && as_dir=.
7081     for ac_exec_ext in '' $ac_executable_extensions; do
7082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7085     break 2
7086   fi
7087 done
7088   done
7089 IFS=$as_save_IFS
7090 
7091   ;;
7092 esac
7093 fi
7094 FIND=$ac_cv_path_FIND
7095 if test -n "$FIND"; then
7096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7097 $as_echo "$FIND" >&6; }
7098 else
7099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100 $as_echo "no" >&6; }
7101 fi
7102 
7103 
7104   test -n "$FIND" && break
7105 done
7106 
7107   else
7108     # The variable is set, but is it from the command line or the environment?
7109 
7110     # Try to remove the string !FIND! from our list.
7111     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7112     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7113       # If it failed, the variable was not from the command line. Ignore it,
7114       # but warn the user (except for BASH, which is always set by the calling BASH).
7115       if test "xFIND" != xBASH; then
7116         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7117 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7118       fi
7119       # Try to locate tool using the code snippet
7120       for ac_prog in find
7121 do
7122   # Extract the first word of "$ac_prog", so it can be a program name with args.
7123 set dummy $ac_prog; ac_word=$2
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125 $as_echo_n "checking for $ac_word... " >&6; }
7126 if ${ac_cv_path_FIND+:} false; then :
7127   $as_echo_n "(cached) " >&6
7128 else
7129   case $FIND in
7130   [\\/]* | ?:[\\/]*)
7131   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7132   ;;
7133   *)
7134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 for as_dir in $PATH
7136 do
7137   IFS=$as_save_IFS
7138   test -z "$as_dir" && as_dir=.
7139     for ac_exec_ext in '' $ac_executable_extensions; do
7140   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7141     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7143     break 2
7144   fi
7145 done
7146   done
7147 IFS=$as_save_IFS
7148 
7149   ;;
7150 esac
7151 fi
7152 FIND=$ac_cv_path_FIND
7153 if test -n "$FIND"; then
7154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7155 $as_echo "$FIND" >&6; }
7156 else
7157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158 $as_echo "no" >&6; }
7159 fi
7160 
7161 
7162   test -n "$FIND" && break
7163 done
7164 
7165     else
7166       # If it succeeded, then it was overridden by the user. We will use it
7167       # for the tool.
7168 
7169       # First remove it from the list of overridden variables, so we can test
7170       # for unknown variables in the end.
7171       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7172 
7173       # Check if the provided tool contains a complete path.
7174       tool_specified="$FIND"
7175       tool_basename="${tool_specified##*/}"
7176       if test "x$tool_basename" = "x$tool_specified"; then
7177         # A command without a complete path is provided, search $PATH.
7178         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7179 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7180         # Extract the first word of "$tool_basename", so it can be a program name with args.
7181 set dummy $tool_basename; ac_word=$2
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7183 $as_echo_n "checking for $ac_word... " >&6; }
7184 if ${ac_cv_path_FIND+:} false; then :
7185   $as_echo_n "(cached) " >&6
7186 else
7187   case $FIND in
7188   [\\/]* | ?:[\\/]*)
7189   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7190   ;;
7191   *)
7192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193 for as_dir in $PATH
7194 do
7195   IFS=$as_save_IFS
7196   test -z "$as_dir" && as_dir=.
7197     for ac_exec_ext in '' $ac_executable_extensions; do
7198   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7199     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7201     break 2
7202   fi
7203 done
7204   done
7205 IFS=$as_save_IFS
7206 
7207   ;;
7208 esac
7209 fi
7210 FIND=$ac_cv_path_FIND
7211 if test -n "$FIND"; then
7212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7213 $as_echo "$FIND" >&6; }
7214 else
7215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7216 $as_echo "no" >&6; }
7217 fi
7218 
7219 
7220         if test "x$FIND" = x; then
7221           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7222         fi
7223       else
7224         # Otherwise we believe it is a complete path. Use it as it is.
7225         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7226 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7227         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7228 $as_echo_n "checking for FIND... " >&6; }
7229         if test ! -x "$tool_specified"; then
7230           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7231 $as_echo "not found" >&6; }
7232           as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7233         fi
7234         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7235 $as_echo "$tool_specified" >&6; }
7236       fi
7237     fi
7238   fi
7239 
7240 
7241 
7242   if test "x$FIND" = x; then
7243     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7244   fi
7245 
7246 
7247 
7248 
7249 
7250   # Publish this variable in the help.
7251 
7252 
7253   if test "x$HEAD" = x; then
7254     # The variable is not set by user, try to locate tool using the code snippet
7255     for ac_prog in head
7256 do
7257   # Extract the first word of "$ac_prog", so it can be a program name with args.
7258 set dummy $ac_prog; ac_word=$2
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260 $as_echo_n "checking for $ac_word... " >&6; }
7261 if ${ac_cv_path_HEAD+:} false; then :
7262   $as_echo_n "(cached) " >&6
7263 else
7264   case $HEAD in
7265   [\\/]* | ?:[\\/]*)
7266   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7267   ;;
7268   *)
7269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 for as_dir in $PATH
7271 do
7272   IFS=$as_save_IFS
7273   test -z "$as_dir" && as_dir=.
7274     for ac_exec_ext in '' $ac_executable_extensions; do
7275   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7276     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7278     break 2
7279   fi
7280 done
7281   done
7282 IFS=$as_save_IFS
7283 
7284   ;;
7285 esac
7286 fi
7287 HEAD=$ac_cv_path_HEAD
7288 if test -n "$HEAD"; then
7289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7290 $as_echo "$HEAD" >&6; }
7291 else
7292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293 $as_echo "no" >&6; }
7294 fi
7295 
7296 
7297   test -n "$HEAD" && break
7298 done
7299 
7300   else
7301     # The variable is set, but is it from the command line or the environment?
7302 
7303     # Try to remove the string !HEAD! from our list.
7304     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7305     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7306       # If it failed, the variable was not from the command line. Ignore it,
7307       # but warn the user (except for BASH, which is always set by the calling BASH).
7308       if test "xHEAD" != xBASH; then
7309         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7310 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7311       fi
7312       # Try to locate tool using the code snippet
7313       for ac_prog in head
7314 do
7315   # Extract the first word of "$ac_prog", so it can be a program name with args.
7316 set dummy $ac_prog; ac_word=$2
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7318 $as_echo_n "checking for $ac_word... " >&6; }
7319 if ${ac_cv_path_HEAD+:} false; then :
7320   $as_echo_n "(cached) " >&6
7321 else
7322   case $HEAD in
7323   [\\/]* | ?:[\\/]*)
7324   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7325   ;;
7326   *)
7327   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328 for as_dir in $PATH
7329 do
7330   IFS=$as_save_IFS
7331   test -z "$as_dir" && as_dir=.
7332     for ac_exec_ext in '' $ac_executable_extensions; do
7333   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7334     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7336     break 2
7337   fi
7338 done
7339   done
7340 IFS=$as_save_IFS
7341 
7342   ;;
7343 esac
7344 fi
7345 HEAD=$ac_cv_path_HEAD
7346 if test -n "$HEAD"; then
7347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7348 $as_echo "$HEAD" >&6; }
7349 else
7350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351 $as_echo "no" >&6; }
7352 fi
7353 
7354 
7355   test -n "$HEAD" && break
7356 done
7357 
7358     else
7359       # If it succeeded, then it was overridden by the user. We will use it
7360       # for the tool.
7361 
7362       # First remove it from the list of overridden variables, so we can test
7363       # for unknown variables in the end.
7364       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7365 
7366       # Check if the provided tool contains a complete path.
7367       tool_specified="$HEAD"
7368       tool_basename="${tool_specified##*/}"
7369       if test "x$tool_basename" = "x$tool_specified"; then
7370         # A command without a complete path is provided, search $PATH.
7371         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7372 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7373         # Extract the first word of "$tool_basename", so it can be a program name with args.
7374 set dummy $tool_basename; ac_word=$2
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7376 $as_echo_n "checking for $ac_word... " >&6; }
7377 if ${ac_cv_path_HEAD+:} false; then :
7378   $as_echo_n "(cached) " >&6
7379 else
7380   case $HEAD in
7381   [\\/]* | ?:[\\/]*)
7382   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7383   ;;
7384   *)
7385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386 for as_dir in $PATH
7387 do
7388   IFS=$as_save_IFS
7389   test -z "$as_dir" && as_dir=.
7390     for ac_exec_ext in '' $ac_executable_extensions; do
7391   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7392     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7394     break 2
7395   fi
7396 done
7397   done
7398 IFS=$as_save_IFS
7399 
7400   ;;
7401 esac
7402 fi
7403 HEAD=$ac_cv_path_HEAD
7404 if test -n "$HEAD"; then
7405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7406 $as_echo "$HEAD" >&6; }
7407 else
7408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7409 $as_echo "no" >&6; }
7410 fi
7411 
7412 
7413         if test "x$HEAD" = x; then
7414           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7415         fi
7416       else
7417         # Otherwise we believe it is a complete path. Use it as it is.
7418         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
7419 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
7420         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7421 $as_echo_n "checking for HEAD... " >&6; }
7422         if test ! -x "$tool_specified"; then
7423           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7424 $as_echo "not found" >&6; }
7425           as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
7426         fi
7427         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7428 $as_echo "$tool_specified" >&6; }
7429       fi
7430     fi
7431   fi
7432 
7433 
7434 
7435   if test "x$HEAD" = x; then
7436     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
7437   fi
7438 
7439 
7440 
7441 
7442 
7443   # Publish this variable in the help.
7444 
7445 
7446   if test "x$LN" = x; then
7447     # The variable is not set by user, try to locate tool using the code snippet
7448     for ac_prog in ln
7449 do
7450   # Extract the first word of "$ac_prog", so it can be a program name with args.
7451 set dummy $ac_prog; ac_word=$2
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7453 $as_echo_n "checking for $ac_word... " >&6; }
7454 if ${ac_cv_path_LN+:} false; then :
7455   $as_echo_n "(cached) " >&6
7456 else
7457   case $LN in
7458   [\\/]* | ?:[\\/]*)
7459   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7460   ;;
7461   *)
7462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 for as_dir in $PATH
7464 do
7465   IFS=$as_save_IFS
7466   test -z "$as_dir" && as_dir=.
7467     for ac_exec_ext in '' $ac_executable_extensions; do
7468   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7469     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7471     break 2
7472   fi
7473 done
7474   done
7475 IFS=$as_save_IFS
7476 
7477   ;;
7478 esac
7479 fi
7480 LN=$ac_cv_path_LN
7481 if test -n "$LN"; then
7482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7483 $as_echo "$LN" >&6; }
7484 else
7485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486 $as_echo "no" >&6; }
7487 fi
7488 
7489 
7490   test -n "$LN" && break
7491 done
7492 
7493   else
7494     # The variable is set, but is it from the command line or the environment?
7495 
7496     # Try to remove the string !LN! from our list.
7497     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
7498     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7499       # If it failed, the variable was not from the command line. Ignore it,
7500       # but warn the user (except for BASH, which is always set by the calling BASH).
7501       if test "xLN" != xBASH; then
7502         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
7503 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
7504       fi
7505       # Try to locate tool using the code snippet
7506       for ac_prog in ln
7507 do
7508   # Extract the first word of "$ac_prog", so it can be a program name with args.
7509 set dummy $ac_prog; ac_word=$2
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7511 $as_echo_n "checking for $ac_word... " >&6; }
7512 if ${ac_cv_path_LN+:} false; then :
7513   $as_echo_n "(cached) " >&6
7514 else
7515   case $LN in
7516   [\\/]* | ?:[\\/]*)
7517   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7518   ;;
7519   *)
7520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521 for as_dir in $PATH
7522 do
7523   IFS=$as_save_IFS
7524   test -z "$as_dir" && as_dir=.
7525     for ac_exec_ext in '' $ac_executable_extensions; do
7526   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7527     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7529     break 2
7530   fi
7531 done
7532   done
7533 IFS=$as_save_IFS
7534 
7535   ;;
7536 esac
7537 fi
7538 LN=$ac_cv_path_LN
7539 if test -n "$LN"; then
7540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7541 $as_echo "$LN" >&6; }
7542 else
7543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7544 $as_echo "no" >&6; }
7545 fi
7546 
7547 
7548   test -n "$LN" && break
7549 done
7550 
7551     else
7552       # If it succeeded, then it was overridden by the user. We will use it
7553       # for the tool.
7554 
7555       # First remove it from the list of overridden variables, so we can test
7556       # for unknown variables in the end.
7557       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7558 
7559       # Check if the provided tool contains a complete path.
7560       tool_specified="$LN"
7561       tool_basename="${tool_specified##*/}"
7562       if test "x$tool_basename" = "x$tool_specified"; then
7563         # A command without a complete path is provided, search $PATH.
7564         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
7565 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
7566         # Extract the first word of "$tool_basename", so it can be a program name with args.
7567 set dummy $tool_basename; ac_word=$2
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7569 $as_echo_n "checking for $ac_word... " >&6; }
7570 if ${ac_cv_path_LN+:} false; then :
7571   $as_echo_n "(cached) " >&6
7572 else
7573   case $LN in
7574   [\\/]* | ?:[\\/]*)
7575   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7576   ;;
7577   *)
7578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 for as_dir in $PATH
7580 do
7581   IFS=$as_save_IFS
7582   test -z "$as_dir" && as_dir=.
7583     for ac_exec_ext in '' $ac_executable_extensions; do
7584   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7585     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7587     break 2
7588   fi
7589 done
7590   done
7591 IFS=$as_save_IFS
7592 
7593   ;;
7594 esac
7595 fi
7596 LN=$ac_cv_path_LN
7597 if test -n "$LN"; then
7598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7599 $as_echo "$LN" >&6; }
7600 else
7601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7602 $as_echo "no" >&6; }
7603 fi
7604 
7605 
7606         if test "x$LN" = x; then
7607           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7608         fi
7609       else
7610         # Otherwise we believe it is a complete path. Use it as it is.
7611         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
7612 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
7613         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
7614 $as_echo_n "checking for LN... " >&6; }
7615         if test ! -x "$tool_specified"; then
7616           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7617 $as_echo "not found" >&6; }
7618           as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
7619         fi
7620         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7621 $as_echo "$tool_specified" >&6; }
7622       fi
7623     fi
7624   fi
7625 
7626 
7627 
7628   if test "x$LN" = x; then
7629     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
7630   fi
7631 
7632 
7633 
7634 
7635 
7636   # Publish this variable in the help.
7637 
7638 
7639   if test "x$LS" = x; then
7640     # The variable is not set by user, try to locate tool using the code snippet
7641     for ac_prog in ls
7642 do
7643   # Extract the first word of "$ac_prog", so it can be a program name with args.
7644 set dummy $ac_prog; ac_word=$2
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7646 $as_echo_n "checking for $ac_word... " >&6; }
7647 if ${ac_cv_path_LS+:} false; then :
7648   $as_echo_n "(cached) " >&6
7649 else
7650   case $LS in
7651   [\\/]* | ?:[\\/]*)
7652   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7653   ;;
7654   *)
7655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7656 for as_dir in $PATH
7657 do
7658   IFS=$as_save_IFS
7659   test -z "$as_dir" && as_dir=.
7660     for ac_exec_ext in '' $ac_executable_extensions; do
7661   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7662     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7664     break 2
7665   fi
7666 done
7667   done
7668 IFS=$as_save_IFS
7669 
7670   ;;
7671 esac
7672 fi
7673 LS=$ac_cv_path_LS
7674 if test -n "$LS"; then
7675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7676 $as_echo "$LS" >&6; }
7677 else
7678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679 $as_echo "no" >&6; }
7680 fi
7681 
7682 
7683   test -n "$LS" && break
7684 done
7685 
7686   else
7687     # The variable is set, but is it from the command line or the environment?
7688 
7689     # Try to remove the string !LS! from our list.
7690     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
7691     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7692       # If it failed, the variable was not from the command line. Ignore it,
7693       # but warn the user (except for BASH, which is always set by the calling BASH).
7694       if test "xLS" != xBASH; then
7695         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
7696 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
7697       fi
7698       # Try to locate tool using the code snippet
7699       for ac_prog in ls
7700 do
7701   # Extract the first word of "$ac_prog", so it can be a program name with args.
7702 set dummy $ac_prog; ac_word=$2
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7704 $as_echo_n "checking for $ac_word... " >&6; }
7705 if ${ac_cv_path_LS+:} false; then :
7706   $as_echo_n "(cached) " >&6
7707 else
7708   case $LS in
7709   [\\/]* | ?:[\\/]*)
7710   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7711   ;;
7712   *)
7713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714 for as_dir in $PATH
7715 do
7716   IFS=$as_save_IFS
7717   test -z "$as_dir" && as_dir=.
7718     for ac_exec_ext in '' $ac_executable_extensions; do
7719   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7720     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7722     break 2
7723   fi
7724 done
7725   done
7726 IFS=$as_save_IFS
7727 
7728   ;;
7729 esac
7730 fi
7731 LS=$ac_cv_path_LS
7732 if test -n "$LS"; then
7733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7734 $as_echo "$LS" >&6; }
7735 else
7736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737 $as_echo "no" >&6; }
7738 fi
7739 
7740 
7741   test -n "$LS" && break
7742 done
7743 
7744     else
7745       # If it succeeded, then it was overridden by the user. We will use it
7746       # for the tool.
7747 
7748       # First remove it from the list of overridden variables, so we can test
7749       # for unknown variables in the end.
7750       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7751 
7752       # Check if the provided tool contains a complete path.
7753       tool_specified="$LS"
7754       tool_basename="${tool_specified##*/}"
7755       if test "x$tool_basename" = "x$tool_specified"; then
7756         # A command without a complete path is provided, search $PATH.
7757         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
7758 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
7759         # Extract the first word of "$tool_basename", so it can be a program name with args.
7760 set dummy $tool_basename; ac_word=$2
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762 $as_echo_n "checking for $ac_word... " >&6; }
7763 if ${ac_cv_path_LS+:} false; then :
7764   $as_echo_n "(cached) " >&6
7765 else
7766   case $LS in
7767   [\\/]* | ?:[\\/]*)
7768   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7769   ;;
7770   *)
7771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 for as_dir in $PATH
7773 do
7774   IFS=$as_save_IFS
7775   test -z "$as_dir" && as_dir=.
7776     for ac_exec_ext in '' $ac_executable_extensions; do
7777   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7778     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780     break 2
7781   fi
7782 done
7783   done
7784 IFS=$as_save_IFS
7785 
7786   ;;
7787 esac
7788 fi
7789 LS=$ac_cv_path_LS
7790 if test -n "$LS"; then
7791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7792 $as_echo "$LS" >&6; }
7793 else
7794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795 $as_echo "no" >&6; }
7796 fi
7797 
7798 
7799         if test "x$LS" = x; then
7800           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7801         fi
7802       else
7803         # Otherwise we believe it is a complete path. Use it as it is.
7804         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
7805 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
7806         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
7807 $as_echo_n "checking for LS... " >&6; }
7808         if test ! -x "$tool_specified"; then
7809           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7810 $as_echo "not found" >&6; }
7811           as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
7812         fi
7813         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7814 $as_echo "$tool_specified" >&6; }
7815       fi
7816     fi
7817   fi
7818 
7819 
7820 
7821   if test "x$LS" = x; then
7822     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
7823   fi
7824 
7825 
7826 
7827 
7828 
7829   # Publish this variable in the help.
7830 
7831 
7832   if test "x$MKDIR" = x; then
7833     # The variable is not set by user, try to locate tool using the code snippet
7834     for ac_prog in mkdir
7835 do
7836   # Extract the first word of "$ac_prog", so it can be a program name with args.
7837 set dummy $ac_prog; ac_word=$2
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7839 $as_echo_n "checking for $ac_word... " >&6; }
7840 if ${ac_cv_path_MKDIR+:} false; then :
7841   $as_echo_n "(cached) " >&6
7842 else
7843   case $MKDIR in
7844   [\\/]* | ?:[\\/]*)
7845   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7846   ;;
7847   *)
7848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849 for as_dir in $PATH
7850 do
7851   IFS=$as_save_IFS
7852   test -z "$as_dir" && as_dir=.
7853     for ac_exec_ext in '' $ac_executable_extensions; do
7854   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7855     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7857     break 2
7858   fi
7859 done
7860   done
7861 IFS=$as_save_IFS
7862 
7863   ;;
7864 esac
7865 fi
7866 MKDIR=$ac_cv_path_MKDIR
7867 if test -n "$MKDIR"; then
7868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7869 $as_echo "$MKDIR" >&6; }
7870 else
7871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7872 $as_echo "no" >&6; }
7873 fi
7874 
7875 
7876   test -n "$MKDIR" && break
7877 done
7878 
7879   else
7880     # The variable is set, but is it from the command line or the environment?
7881 
7882     # Try to remove the string !MKDIR! from our list.
7883     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
7884     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7885       # If it failed, the variable was not from the command line. Ignore it,
7886       # but warn the user (except for BASH, which is always set by the calling BASH).
7887       if test "xMKDIR" != xBASH; then
7888         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
7889 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
7890       fi
7891       # Try to locate tool using the code snippet
7892       for ac_prog in mkdir
7893 do
7894   # Extract the first word of "$ac_prog", so it can be a program name with args.
7895 set dummy $ac_prog; ac_word=$2
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7897 $as_echo_n "checking for $ac_word... " >&6; }
7898 if ${ac_cv_path_MKDIR+:} false; then :
7899   $as_echo_n "(cached) " >&6
7900 else
7901   case $MKDIR in
7902   [\\/]* | ?:[\\/]*)
7903   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7904   ;;
7905   *)
7906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907 for as_dir in $PATH
7908 do
7909   IFS=$as_save_IFS
7910   test -z "$as_dir" && as_dir=.
7911     for ac_exec_ext in '' $ac_executable_extensions; do
7912   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7913     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7915     break 2
7916   fi
7917 done
7918   done
7919 IFS=$as_save_IFS
7920 
7921   ;;
7922 esac
7923 fi
7924 MKDIR=$ac_cv_path_MKDIR
7925 if test -n "$MKDIR"; then
7926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7927 $as_echo "$MKDIR" >&6; }
7928 else
7929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7930 $as_echo "no" >&6; }
7931 fi
7932 
7933 
7934   test -n "$MKDIR" && break
7935 done
7936 
7937     else
7938       # If it succeeded, then it was overridden by the user. We will use it
7939       # for the tool.
7940 
7941       # First remove it from the list of overridden variables, so we can test
7942       # for unknown variables in the end.
7943       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7944 
7945       # Check if the provided tool contains a complete path.
7946       tool_specified="$MKDIR"
7947       tool_basename="${tool_specified##*/}"
7948       if test "x$tool_basename" = "x$tool_specified"; then
7949         # A command without a complete path is provided, search $PATH.
7950         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
7951 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
7952         # Extract the first word of "$tool_basename", so it can be a program name with args.
7953 set dummy $tool_basename; ac_word=$2
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7955 $as_echo_n "checking for $ac_word... " >&6; }
7956 if ${ac_cv_path_MKDIR+:} false; then :
7957   $as_echo_n "(cached) " >&6
7958 else
7959   case $MKDIR in
7960   [\\/]* | ?:[\\/]*)
7961   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7962   ;;
7963   *)
7964   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965 for as_dir in $PATH
7966 do
7967   IFS=$as_save_IFS
7968   test -z "$as_dir" && as_dir=.
7969     for ac_exec_ext in '' $ac_executable_extensions; do
7970   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7971     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7973     break 2
7974   fi
7975 done
7976   done
7977 IFS=$as_save_IFS
7978 
7979   ;;
7980 esac
7981 fi
7982 MKDIR=$ac_cv_path_MKDIR
7983 if test -n "$MKDIR"; then
7984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7985 $as_echo "$MKDIR" >&6; }
7986 else
7987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7988 $as_echo "no" >&6; }
7989 fi
7990 
7991 
7992         if test "x$MKDIR" = x; then
7993           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7994         fi
7995       else
7996         # Otherwise we believe it is a complete path. Use it as it is.
7997         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
7998 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
7999         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8000 $as_echo_n "checking for MKDIR... " >&6; }
8001         if test ! -x "$tool_specified"; then
8002           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8003 $as_echo "not found" >&6; }
8004           as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
8005         fi
8006         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8007 $as_echo "$tool_specified" >&6; }
8008       fi
8009     fi
8010   fi
8011 
8012 
8013 
8014   if test "x$MKDIR" = x; then
8015     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
8016   fi
8017 
8018 
8019 
8020 
8021 
8022   # Publish this variable in the help.
8023 
8024 
8025   if test "x$MKTEMP" = x; then
8026     # The variable is not set by user, try to locate tool using the code snippet
8027     for ac_prog in mktemp
8028 do
8029   # Extract the first word of "$ac_prog", so it can be a program name with args.
8030 set dummy $ac_prog; ac_word=$2
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032 $as_echo_n "checking for $ac_word... " >&6; }
8033 if ${ac_cv_path_MKTEMP+:} false; then :
8034   $as_echo_n "(cached) " >&6
8035 else
8036   case $MKTEMP in
8037   [\\/]* | ?:[\\/]*)
8038   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8039   ;;
8040   *)
8041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042 for as_dir in $PATH
8043 do
8044   IFS=$as_save_IFS
8045   test -z "$as_dir" && as_dir=.
8046     for ac_exec_ext in '' $ac_executable_extensions; do
8047   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8048     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8050     break 2
8051   fi
8052 done
8053   done
8054 IFS=$as_save_IFS
8055 
8056   ;;
8057 esac
8058 fi
8059 MKTEMP=$ac_cv_path_MKTEMP
8060 if test -n "$MKTEMP"; then
8061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8062 $as_echo "$MKTEMP" >&6; }
8063 else
8064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065 $as_echo "no" >&6; }
8066 fi
8067 
8068 
8069   test -n "$MKTEMP" && break
8070 done
8071 
8072   else
8073     # The variable is set, but is it from the command line or the environment?
8074 
8075     # Try to remove the string !MKTEMP! from our list.
8076     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8077     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8078       # If it failed, the variable was not from the command line. Ignore it,
8079       # but warn the user (except for BASH, which is always set by the calling BASH).
8080       if test "xMKTEMP" != xBASH; then
8081         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8082 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8083       fi
8084       # Try to locate tool using the code snippet
8085       for ac_prog in mktemp
8086 do
8087   # Extract the first word of "$ac_prog", so it can be a program name with args.
8088 set dummy $ac_prog; ac_word=$2
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8090 $as_echo_n "checking for $ac_word... " >&6; }
8091 if ${ac_cv_path_MKTEMP+:} false; then :
8092   $as_echo_n "(cached) " >&6
8093 else
8094   case $MKTEMP in
8095   [\\/]* | ?:[\\/]*)
8096   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8097   ;;
8098   *)
8099   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100 for as_dir in $PATH
8101 do
8102   IFS=$as_save_IFS
8103   test -z "$as_dir" && as_dir=.
8104     for ac_exec_ext in '' $ac_executable_extensions; do
8105   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8106     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8108     break 2
8109   fi
8110 done
8111   done
8112 IFS=$as_save_IFS
8113 
8114   ;;
8115 esac
8116 fi
8117 MKTEMP=$ac_cv_path_MKTEMP
8118 if test -n "$MKTEMP"; then
8119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8120 $as_echo "$MKTEMP" >&6; }
8121 else
8122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123 $as_echo "no" >&6; }
8124 fi
8125 
8126 
8127   test -n "$MKTEMP" && break
8128 done
8129 
8130     else
8131       # If it succeeded, then it was overridden by the user. We will use it
8132       # for the tool.
8133 
8134       # First remove it from the list of overridden variables, so we can test
8135       # for unknown variables in the end.
8136       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8137 
8138       # Check if the provided tool contains a complete path.
8139       tool_specified="$MKTEMP"
8140       tool_basename="${tool_specified##*/}"
8141       if test "x$tool_basename" = "x$tool_specified"; then
8142         # A command without a complete path is provided, search $PATH.
8143         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8144 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8145         # Extract the first word of "$tool_basename", so it can be a program name with args.
8146 set dummy $tool_basename; ac_word=$2
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8148 $as_echo_n "checking for $ac_word... " >&6; }
8149 if ${ac_cv_path_MKTEMP+:} false; then :
8150   $as_echo_n "(cached) " >&6
8151 else
8152   case $MKTEMP in
8153   [\\/]* | ?:[\\/]*)
8154   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8155   ;;
8156   *)
8157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8158 for as_dir in $PATH
8159 do
8160   IFS=$as_save_IFS
8161   test -z "$as_dir" && as_dir=.
8162     for ac_exec_ext in '' $ac_executable_extensions; do
8163   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8164     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8166     break 2
8167   fi
8168 done
8169   done
8170 IFS=$as_save_IFS
8171 
8172   ;;
8173 esac
8174 fi
8175 MKTEMP=$ac_cv_path_MKTEMP
8176 if test -n "$MKTEMP"; then
8177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8178 $as_echo "$MKTEMP" >&6; }
8179 else
8180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8181 $as_echo "no" >&6; }
8182 fi
8183 
8184 
8185         if test "x$MKTEMP" = x; then
8186           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8187         fi
8188       else
8189         # Otherwise we believe it is a complete path. Use it as it is.
8190         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8191 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8192         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8193 $as_echo_n "checking for MKTEMP... " >&6; }
8194         if test ! -x "$tool_specified"; then
8195           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8196 $as_echo "not found" >&6; }
8197           as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8198         fi
8199         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8200 $as_echo "$tool_specified" >&6; }
8201       fi
8202     fi
8203   fi
8204 
8205 
8206 
8207   if test "x$MKTEMP" = x; then
8208     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8209   fi
8210 
8211 
8212 
8213 
8214 
8215   # Publish this variable in the help.
8216 
8217 
8218   if test "x$MV" = x; then
8219     # The variable is not set by user, try to locate tool using the code snippet
8220     for ac_prog in mv
8221 do
8222   # Extract the first word of "$ac_prog", so it can be a program name with args.
8223 set dummy $ac_prog; ac_word=$2
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8225 $as_echo_n "checking for $ac_word... " >&6; }
8226 if ${ac_cv_path_MV+:} false; then :
8227   $as_echo_n "(cached) " >&6
8228 else
8229   case $MV in
8230   [\\/]* | ?:[\\/]*)
8231   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8232   ;;
8233   *)
8234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235 for as_dir in $PATH
8236 do
8237   IFS=$as_save_IFS
8238   test -z "$as_dir" && as_dir=.
8239     for ac_exec_ext in '' $ac_executable_extensions; do
8240   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8241     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8243     break 2
8244   fi
8245 done
8246   done
8247 IFS=$as_save_IFS
8248 
8249   ;;
8250 esac
8251 fi
8252 MV=$ac_cv_path_MV
8253 if test -n "$MV"; then
8254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8255 $as_echo "$MV" >&6; }
8256 else
8257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258 $as_echo "no" >&6; }
8259 fi
8260 
8261 
8262   test -n "$MV" && break
8263 done
8264 
8265   else
8266     # The variable is set, but is it from the command line or the environment?
8267 
8268     # Try to remove the string !MV! from our list.
8269     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8270     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8271       # If it failed, the variable was not from the command line. Ignore it,
8272       # but warn the user (except for BASH, which is always set by the calling BASH).
8273       if test "xMV" != xBASH; then
8274         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8275 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8276       fi
8277       # Try to locate tool using the code snippet
8278       for ac_prog in mv
8279 do
8280   # Extract the first word of "$ac_prog", so it can be a program name with args.
8281 set dummy $ac_prog; ac_word=$2
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8283 $as_echo_n "checking for $ac_word... " >&6; }
8284 if ${ac_cv_path_MV+:} false; then :
8285   $as_echo_n "(cached) " >&6
8286 else
8287   case $MV in
8288   [\\/]* | ?:[\\/]*)
8289   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8290   ;;
8291   *)
8292   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8293 for as_dir in $PATH
8294 do
8295   IFS=$as_save_IFS
8296   test -z "$as_dir" && as_dir=.
8297     for ac_exec_ext in '' $ac_executable_extensions; do
8298   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8299     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8301     break 2
8302   fi
8303 done
8304   done
8305 IFS=$as_save_IFS
8306 
8307   ;;
8308 esac
8309 fi
8310 MV=$ac_cv_path_MV
8311 if test -n "$MV"; then
8312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8313 $as_echo "$MV" >&6; }
8314 else
8315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8316 $as_echo "no" >&6; }
8317 fi
8318 
8319 
8320   test -n "$MV" && break
8321 done
8322 
8323     else
8324       # If it succeeded, then it was overridden by the user. We will use it
8325       # for the tool.
8326 
8327       # First remove it from the list of overridden variables, so we can test
8328       # for unknown variables in the end.
8329       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8330 
8331       # Check if the provided tool contains a complete path.
8332       tool_specified="$MV"
8333       tool_basename="${tool_specified##*/}"
8334       if test "x$tool_basename" = "x$tool_specified"; then
8335         # A command without a complete path is provided, search $PATH.
8336         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8337 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8338         # Extract the first word of "$tool_basename", so it can be a program name with args.
8339 set dummy $tool_basename; ac_word=$2
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8341 $as_echo_n "checking for $ac_word... " >&6; }
8342 if ${ac_cv_path_MV+:} false; then :
8343   $as_echo_n "(cached) " >&6
8344 else
8345   case $MV in
8346   [\\/]* | ?:[\\/]*)
8347   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8348   ;;
8349   *)
8350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8351 for as_dir in $PATH
8352 do
8353   IFS=$as_save_IFS
8354   test -z "$as_dir" && as_dir=.
8355     for ac_exec_ext in '' $ac_executable_extensions; do
8356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8357     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8359     break 2
8360   fi
8361 done
8362   done
8363 IFS=$as_save_IFS
8364 
8365   ;;
8366 esac
8367 fi
8368 MV=$ac_cv_path_MV
8369 if test -n "$MV"; then
8370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8371 $as_echo "$MV" >&6; }
8372 else
8373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8374 $as_echo "no" >&6; }
8375 fi
8376 
8377 
8378         if test "x$MV" = x; then
8379           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8380         fi
8381       else
8382         # Otherwise we believe it is a complete path. Use it as it is.
8383         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
8384 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
8385         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8386 $as_echo_n "checking for MV... " >&6; }
8387         if test ! -x "$tool_specified"; then
8388           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8389 $as_echo "not found" >&6; }
8390           as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
8391         fi
8392         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8393 $as_echo "$tool_specified" >&6; }
8394       fi
8395     fi
8396   fi
8397 
8398 
8399 
8400   if test "x$MV" = x; then
8401     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
8402   fi
8403 
8404 
8405 
8406 
8407 
8408   # Publish this variable in the help.
8409 
8410 
8411   if test "x$NAWK" = x; then
8412     # The variable is not set by user, try to locate tool using the code snippet
8413     for ac_prog in nawk gawk awk
8414 do
8415   # Extract the first word of "$ac_prog", so it can be a program name with args.
8416 set dummy $ac_prog; ac_word=$2
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8418 $as_echo_n "checking for $ac_word... " >&6; }
8419 if ${ac_cv_path_NAWK+:} false; then :
8420   $as_echo_n "(cached) " >&6
8421 else
8422   case $NAWK in
8423   [\\/]* | ?:[\\/]*)
8424   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8425   ;;
8426   *)
8427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8428 for as_dir in $PATH
8429 do
8430   IFS=$as_save_IFS
8431   test -z "$as_dir" && as_dir=.
8432     for ac_exec_ext in '' $ac_executable_extensions; do
8433   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8434     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8436     break 2
8437   fi
8438 done
8439   done
8440 IFS=$as_save_IFS
8441 
8442   ;;
8443 esac
8444 fi
8445 NAWK=$ac_cv_path_NAWK
8446 if test -n "$NAWK"; then
8447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8448 $as_echo "$NAWK" >&6; }
8449 else
8450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8451 $as_echo "no" >&6; }
8452 fi
8453 
8454 
8455   test -n "$NAWK" && break
8456 done
8457 
8458   else
8459     # The variable is set, but is it from the command line or the environment?
8460 
8461     # Try to remove the string !NAWK! from our list.
8462     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
8463     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8464       # If it failed, the variable was not from the command line. Ignore it,
8465       # but warn the user (except for BASH, which is always set by the calling BASH).
8466       if test "xNAWK" != xBASH; then
8467         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
8468 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
8469       fi
8470       # Try to locate tool using the code snippet
8471       for ac_prog in nawk gawk awk
8472 do
8473   # Extract the first word of "$ac_prog", so it can be a program name with args.
8474 set dummy $ac_prog; ac_word=$2
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8476 $as_echo_n "checking for $ac_word... " >&6; }
8477 if ${ac_cv_path_NAWK+:} false; then :
8478   $as_echo_n "(cached) " >&6
8479 else
8480   case $NAWK in
8481   [\\/]* | ?:[\\/]*)
8482   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8483   ;;
8484   *)
8485   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8486 for as_dir in $PATH
8487 do
8488   IFS=$as_save_IFS
8489   test -z "$as_dir" && as_dir=.
8490     for ac_exec_ext in '' $ac_executable_extensions; do
8491   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8492     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8494     break 2
8495   fi
8496 done
8497   done
8498 IFS=$as_save_IFS
8499 
8500   ;;
8501 esac
8502 fi
8503 NAWK=$ac_cv_path_NAWK
8504 if test -n "$NAWK"; then
8505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8506 $as_echo "$NAWK" >&6; }
8507 else
8508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8509 $as_echo "no" >&6; }
8510 fi
8511 
8512 
8513   test -n "$NAWK" && break
8514 done
8515 
8516     else
8517       # If it succeeded, then it was overridden by the user. We will use it
8518       # for the tool.
8519 
8520       # First remove it from the list of overridden variables, so we can test
8521       # for unknown variables in the end.
8522       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8523 
8524       # Check if the provided tool contains a complete path.
8525       tool_specified="$NAWK"
8526       tool_basename="${tool_specified##*/}"
8527       if test "x$tool_basename" = "x$tool_specified"; then
8528         # A command without a complete path is provided, search $PATH.
8529         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
8530 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
8531         # Extract the first word of "$tool_basename", so it can be a program name with args.
8532 set dummy $tool_basename; ac_word=$2
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8534 $as_echo_n "checking for $ac_word... " >&6; }
8535 if ${ac_cv_path_NAWK+:} false; then :
8536   $as_echo_n "(cached) " >&6
8537 else
8538   case $NAWK in
8539   [\\/]* | ?:[\\/]*)
8540   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8541   ;;
8542   *)
8543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8544 for as_dir in $PATH
8545 do
8546   IFS=$as_save_IFS
8547   test -z "$as_dir" && as_dir=.
8548     for ac_exec_ext in '' $ac_executable_extensions; do
8549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8550     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8552     break 2
8553   fi
8554 done
8555   done
8556 IFS=$as_save_IFS
8557 
8558   ;;
8559 esac
8560 fi
8561 NAWK=$ac_cv_path_NAWK
8562 if test -n "$NAWK"; then
8563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8564 $as_echo "$NAWK" >&6; }
8565 else
8566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8567 $as_echo "no" >&6; }
8568 fi
8569 
8570 
8571         if test "x$NAWK" = x; then
8572           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8573         fi
8574       else
8575         # Otherwise we believe it is a complete path. Use it as it is.
8576         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
8577 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
8578         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
8579 $as_echo_n "checking for NAWK... " >&6; }
8580         if test ! -x "$tool_specified"; then
8581           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8582 $as_echo "not found" >&6; }
8583           as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
8584         fi
8585         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8586 $as_echo "$tool_specified" >&6; }
8587       fi
8588     fi
8589   fi
8590 
8591 
8592 
8593   if test "x$NAWK" = x; then
8594     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
8595   fi
8596 
8597 
8598 
8599 
8600 
8601   # Publish this variable in the help.
8602 
8603 
8604   if test "x$PRINTF" = x; then
8605     # The variable is not set by user, try to locate tool using the code snippet
8606     for ac_prog in printf
8607 do
8608   # Extract the first word of "$ac_prog", so it can be a program name with args.
8609 set dummy $ac_prog; ac_word=$2
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8611 $as_echo_n "checking for $ac_word... " >&6; }
8612 if ${ac_cv_path_PRINTF+:} false; then :
8613   $as_echo_n "(cached) " >&6
8614 else
8615   case $PRINTF in
8616   [\\/]* | ?:[\\/]*)
8617   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8618   ;;
8619   *)
8620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8621 for as_dir in $PATH
8622 do
8623   IFS=$as_save_IFS
8624   test -z "$as_dir" && as_dir=.
8625     for ac_exec_ext in '' $ac_executable_extensions; do
8626   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8627     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8629     break 2
8630   fi
8631 done
8632   done
8633 IFS=$as_save_IFS
8634 
8635   ;;
8636 esac
8637 fi
8638 PRINTF=$ac_cv_path_PRINTF
8639 if test -n "$PRINTF"; then
8640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8641 $as_echo "$PRINTF" >&6; }
8642 else
8643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8644 $as_echo "no" >&6; }
8645 fi
8646 
8647 
8648   test -n "$PRINTF" && break
8649 done
8650 
8651   else
8652     # The variable is set, but is it from the command line or the environment?
8653 
8654     # Try to remove the string !PRINTF! from our list.
8655     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
8656     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8657       # If it failed, the variable was not from the command line. Ignore it,
8658       # but warn the user (except for BASH, which is always set by the calling BASH).
8659       if test "xPRINTF" != xBASH; then
8660         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
8661 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
8662       fi
8663       # Try to locate tool using the code snippet
8664       for ac_prog in printf
8665 do
8666   # Extract the first word of "$ac_prog", so it can be a program name with args.
8667 set dummy $ac_prog; ac_word=$2
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8669 $as_echo_n "checking for $ac_word... " >&6; }
8670 if ${ac_cv_path_PRINTF+:} false; then :
8671   $as_echo_n "(cached) " >&6
8672 else
8673   case $PRINTF in
8674   [\\/]* | ?:[\\/]*)
8675   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8676   ;;
8677   *)
8678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8679 for as_dir in $PATH
8680 do
8681   IFS=$as_save_IFS
8682   test -z "$as_dir" && as_dir=.
8683     for ac_exec_ext in '' $ac_executable_extensions; do
8684   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8685     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8687     break 2
8688   fi
8689 done
8690   done
8691 IFS=$as_save_IFS
8692 
8693   ;;
8694 esac
8695 fi
8696 PRINTF=$ac_cv_path_PRINTF
8697 if test -n "$PRINTF"; then
8698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8699 $as_echo "$PRINTF" >&6; }
8700 else
8701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8702 $as_echo "no" >&6; }
8703 fi
8704 
8705 
8706   test -n "$PRINTF" && break
8707 done
8708 
8709     else
8710       # If it succeeded, then it was overridden by the user. We will use it
8711       # for the tool.
8712 
8713       # First remove it from the list of overridden variables, so we can test
8714       # for unknown variables in the end.
8715       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8716 
8717       # Check if the provided tool contains a complete path.
8718       tool_specified="$PRINTF"
8719       tool_basename="${tool_specified##*/}"
8720       if test "x$tool_basename" = "x$tool_specified"; then
8721         # A command without a complete path is provided, search $PATH.
8722         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
8723 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
8724         # Extract the first word of "$tool_basename", so it can be a program name with args.
8725 set dummy $tool_basename; ac_word=$2
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8727 $as_echo_n "checking for $ac_word... " >&6; }
8728 if ${ac_cv_path_PRINTF+:} false; then :
8729   $as_echo_n "(cached) " >&6
8730 else
8731   case $PRINTF in
8732   [\\/]* | ?:[\\/]*)
8733   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8734   ;;
8735   *)
8736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737 for as_dir in $PATH
8738 do
8739   IFS=$as_save_IFS
8740   test -z "$as_dir" && as_dir=.
8741     for ac_exec_ext in '' $ac_executable_extensions; do
8742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8743     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8745     break 2
8746   fi
8747 done
8748   done
8749 IFS=$as_save_IFS
8750 
8751   ;;
8752 esac
8753 fi
8754 PRINTF=$ac_cv_path_PRINTF
8755 if test -n "$PRINTF"; then
8756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8757 $as_echo "$PRINTF" >&6; }
8758 else
8759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8760 $as_echo "no" >&6; }
8761 fi
8762 
8763 
8764         if test "x$PRINTF" = x; then
8765           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8766         fi
8767       else
8768         # Otherwise we believe it is a complete path. Use it as it is.
8769         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
8770 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
8771         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
8772 $as_echo_n "checking for PRINTF... " >&6; }
8773         if test ! -x "$tool_specified"; then
8774           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8775 $as_echo "not found" >&6; }
8776           as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
8777         fi
8778         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8779 $as_echo "$tool_specified" >&6; }
8780       fi
8781     fi
8782   fi
8783 
8784 
8785 
8786   if test "x$PRINTF" = x; then
8787     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
8788   fi
8789 
8790 
8791 
8792 
8793 
8794   # Publish this variable in the help.
8795 
8796 
8797   if test "x$RM" = x; then
8798     # The variable is not set by user, try to locate tool using the code snippet
8799     for ac_prog in rm
8800 do
8801   # Extract the first word of "$ac_prog", so it can be a program name with args.
8802 set dummy $ac_prog; ac_word=$2
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8804 $as_echo_n "checking for $ac_word... " >&6; }
8805 if ${ac_cv_path_RM+:} false; then :
8806   $as_echo_n "(cached) " >&6
8807 else
8808   case $RM in
8809   [\\/]* | ?:[\\/]*)
8810   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8811   ;;
8812   *)
8813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8814 for as_dir in $PATH
8815 do
8816   IFS=$as_save_IFS
8817   test -z "$as_dir" && as_dir=.
8818     for ac_exec_ext in '' $ac_executable_extensions; do
8819   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8820     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8822     break 2
8823   fi
8824 done
8825   done
8826 IFS=$as_save_IFS
8827 
8828   ;;
8829 esac
8830 fi
8831 RM=$ac_cv_path_RM
8832 if test -n "$RM"; then
8833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8834 $as_echo "$RM" >&6; }
8835 else
8836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8837 $as_echo "no" >&6; }
8838 fi
8839 
8840 
8841   test -n "$RM" && break
8842 done
8843 
8844   else
8845     # The variable is set, but is it from the command line or the environment?
8846 
8847     # Try to remove the string !RM! from our list.
8848     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
8849     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8850       # If it failed, the variable was not from the command line. Ignore it,
8851       # but warn the user (except for BASH, which is always set by the calling BASH).
8852       if test "xRM" != xBASH; then
8853         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
8854 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
8855       fi
8856       # Try to locate tool using the code snippet
8857       for ac_prog in rm
8858 do
8859   # Extract the first word of "$ac_prog", so it can be a program name with args.
8860 set dummy $ac_prog; ac_word=$2
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8862 $as_echo_n "checking for $ac_word... " >&6; }
8863 if ${ac_cv_path_RM+:} false; then :
8864   $as_echo_n "(cached) " >&6
8865 else
8866   case $RM in
8867   [\\/]* | ?:[\\/]*)
8868   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8869   ;;
8870   *)
8871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8872 for as_dir in $PATH
8873 do
8874   IFS=$as_save_IFS
8875   test -z "$as_dir" && as_dir=.
8876     for ac_exec_ext in '' $ac_executable_extensions; do
8877   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8878     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8880     break 2
8881   fi
8882 done
8883   done
8884 IFS=$as_save_IFS
8885 
8886   ;;
8887 esac
8888 fi
8889 RM=$ac_cv_path_RM
8890 if test -n "$RM"; then
8891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8892 $as_echo "$RM" >&6; }
8893 else
8894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895 $as_echo "no" >&6; }
8896 fi
8897 
8898 
8899   test -n "$RM" && break
8900 done
8901 
8902     else
8903       # If it succeeded, then it was overridden by the user. We will use it
8904       # for the tool.
8905 
8906       # First remove it from the list of overridden variables, so we can test
8907       # for unknown variables in the end.
8908       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8909 
8910       # Check if the provided tool contains a complete path.
8911       tool_specified="$RM"
8912       tool_basename="${tool_specified##*/}"
8913       if test "x$tool_basename" = "x$tool_specified"; then
8914         # A command without a complete path is provided, search $PATH.
8915         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
8916 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
8917         # Extract the first word of "$tool_basename", so it can be a program name with args.
8918 set dummy $tool_basename; ac_word=$2
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8920 $as_echo_n "checking for $ac_word... " >&6; }
8921 if ${ac_cv_path_RM+:} false; then :
8922   $as_echo_n "(cached) " >&6
8923 else
8924   case $RM in
8925   [\\/]* | ?:[\\/]*)
8926   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8927   ;;
8928   *)
8929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8930 for as_dir in $PATH
8931 do
8932   IFS=$as_save_IFS
8933   test -z "$as_dir" && as_dir=.
8934     for ac_exec_ext in '' $ac_executable_extensions; do
8935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8936     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8938     break 2
8939   fi
8940 done
8941   done
8942 IFS=$as_save_IFS
8943 
8944   ;;
8945 esac
8946 fi
8947 RM=$ac_cv_path_RM
8948 if test -n "$RM"; then
8949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8950 $as_echo "$RM" >&6; }
8951 else
8952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953 $as_echo "no" >&6; }
8954 fi
8955 
8956 
8957         if test "x$RM" = x; then
8958           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8959         fi
8960       else
8961         # Otherwise we believe it is a complete path. Use it as it is.
8962         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
8963 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
8964         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
8965 $as_echo_n "checking for RM... " >&6; }
8966         if test ! -x "$tool_specified"; then
8967           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8968 $as_echo "not found" >&6; }
8969           as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
8970         fi
8971         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8972 $as_echo "$tool_specified" >&6; }
8973       fi
8974     fi
8975   fi
8976 
8977 
8978 
8979   if test "x$RM" = x; then
8980     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
8981   fi
8982 
8983 
8984 
8985 
8986 
8987   # Publish this variable in the help.
8988 
8989 
8990   if test "x$SH" = x; then
8991     # The variable is not set by user, try to locate tool using the code snippet
8992     for ac_prog in sh
8993 do
8994   # Extract the first word of "$ac_prog", so it can be a program name with args.
8995 set dummy $ac_prog; ac_word=$2
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8997 $as_echo_n "checking for $ac_word... " >&6; }
8998 if ${ac_cv_path_SH+:} false; then :
8999   $as_echo_n "(cached) " >&6
9000 else
9001   case $SH in
9002   [\\/]* | ?:[\\/]*)
9003   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9004   ;;
9005   *)
9006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9007 for as_dir in $PATH
9008 do
9009   IFS=$as_save_IFS
9010   test -z "$as_dir" && as_dir=.
9011     for ac_exec_ext in '' $ac_executable_extensions; do
9012   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9013     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9015     break 2
9016   fi
9017 done
9018   done
9019 IFS=$as_save_IFS
9020 
9021   ;;
9022 esac
9023 fi
9024 SH=$ac_cv_path_SH
9025 if test -n "$SH"; then
9026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9027 $as_echo "$SH" >&6; }
9028 else
9029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9030 $as_echo "no" >&6; }
9031 fi
9032 
9033 
9034   test -n "$SH" && break
9035 done
9036 
9037   else
9038     # The variable is set, but is it from the command line or the environment?
9039 
9040     # Try to remove the string !SH! from our list.
9041     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
9042     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9043       # If it failed, the variable was not from the command line. Ignore it,
9044       # but warn the user (except for BASH, which is always set by the calling BASH).
9045       if test "xSH" != xBASH; then
9046         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
9047 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
9048       fi
9049       # Try to locate tool using the code snippet
9050       for ac_prog in sh
9051 do
9052   # Extract the first word of "$ac_prog", so it can be a program name with args.
9053 set dummy $ac_prog; ac_word=$2
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9055 $as_echo_n "checking for $ac_word... " >&6; }
9056 if ${ac_cv_path_SH+:} false; then :
9057   $as_echo_n "(cached) " >&6
9058 else
9059   case $SH in
9060   [\\/]* | ?:[\\/]*)
9061   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9062   ;;
9063   *)
9064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9065 for as_dir in $PATH
9066 do
9067   IFS=$as_save_IFS
9068   test -z "$as_dir" && as_dir=.
9069     for ac_exec_ext in '' $ac_executable_extensions; do
9070   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9071     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9073     break 2
9074   fi
9075 done
9076   done
9077 IFS=$as_save_IFS
9078 
9079   ;;
9080 esac
9081 fi
9082 SH=$ac_cv_path_SH
9083 if test -n "$SH"; then
9084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9085 $as_echo "$SH" >&6; }
9086 else
9087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9088 $as_echo "no" >&6; }
9089 fi
9090 
9091 
9092   test -n "$SH" && break
9093 done
9094 
9095     else
9096       # If it succeeded, then it was overridden by the user. We will use it
9097       # for the tool.
9098 
9099       # First remove it from the list of overridden variables, so we can test
9100       # for unknown variables in the end.
9101       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9102 
9103       # Check if the provided tool contains a complete path.
9104       tool_specified="$SH"
9105       tool_basename="${tool_specified##*/}"
9106       if test "x$tool_basename" = "x$tool_specified"; then
9107         # A command without a complete path is provided, search $PATH.
9108         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
9109 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
9110         # Extract the first word of "$tool_basename", so it can be a program name with args.
9111 set dummy $tool_basename; ac_word=$2
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9113 $as_echo_n "checking for $ac_word... " >&6; }
9114 if ${ac_cv_path_SH+:} false; then :
9115   $as_echo_n "(cached) " >&6
9116 else
9117   case $SH in
9118   [\\/]* | ?:[\\/]*)
9119   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9120   ;;
9121   *)
9122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9123 for as_dir in $PATH
9124 do
9125   IFS=$as_save_IFS
9126   test -z "$as_dir" && as_dir=.
9127     for ac_exec_ext in '' $ac_executable_extensions; do
9128   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9129     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9131     break 2
9132   fi
9133 done
9134   done
9135 IFS=$as_save_IFS
9136 
9137   ;;
9138 esac
9139 fi
9140 SH=$ac_cv_path_SH
9141 if test -n "$SH"; then
9142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9143 $as_echo "$SH" >&6; }
9144 else
9145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9146 $as_echo "no" >&6; }
9147 fi
9148 
9149 
9150         if test "x$SH" = x; then
9151           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9152         fi
9153       else
9154         # Otherwise we believe it is a complete path. Use it as it is.
9155         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
9156 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
9157         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9158 $as_echo_n "checking for SH... " >&6; }
9159         if test ! -x "$tool_specified"; then
9160           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9161 $as_echo "not found" >&6; }
9162           as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
9163         fi
9164         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9165 $as_echo "$tool_specified" >&6; }
9166       fi
9167     fi
9168   fi
9169 
9170 
9171 
9172   if test "x$SH" = x; then
9173     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
9174   fi
9175 
9176 
9177 
9178 
9179 
9180   # Publish this variable in the help.
9181 
9182 
9183   if test "x$SORT" = x; then
9184     # The variable is not set by user, try to locate tool using the code snippet
9185     for ac_prog in sort
9186 do
9187   # Extract the first word of "$ac_prog", so it can be a program name with args.
9188 set dummy $ac_prog; ac_word=$2
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9190 $as_echo_n "checking for $ac_word... " >&6; }
9191 if ${ac_cv_path_SORT+:} false; then :
9192   $as_echo_n "(cached) " >&6
9193 else
9194   case $SORT in
9195   [\\/]* | ?:[\\/]*)
9196   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9197   ;;
9198   *)
9199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9200 for as_dir in $PATH
9201 do
9202   IFS=$as_save_IFS
9203   test -z "$as_dir" && as_dir=.
9204     for ac_exec_ext in '' $ac_executable_extensions; do
9205   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9206     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9208     break 2
9209   fi
9210 done
9211   done
9212 IFS=$as_save_IFS
9213 
9214   ;;
9215 esac
9216 fi
9217 SORT=$ac_cv_path_SORT
9218 if test -n "$SORT"; then
9219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9220 $as_echo "$SORT" >&6; }
9221 else
9222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9223 $as_echo "no" >&6; }
9224 fi
9225 
9226 
9227   test -n "$SORT" && break
9228 done
9229 
9230   else
9231     # The variable is set, but is it from the command line or the environment?
9232 
9233     # Try to remove the string !SORT! from our list.
9234     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
9235     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9236       # If it failed, the variable was not from the command line. Ignore it,
9237       # but warn the user (except for BASH, which is always set by the calling BASH).
9238       if test "xSORT" != xBASH; then
9239         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
9240 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
9241       fi
9242       # Try to locate tool using the code snippet
9243       for ac_prog in sort
9244 do
9245   # Extract the first word of "$ac_prog", so it can be a program name with args.
9246 set dummy $ac_prog; ac_word=$2
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9248 $as_echo_n "checking for $ac_word... " >&6; }
9249 if ${ac_cv_path_SORT+:} false; then :
9250   $as_echo_n "(cached) " >&6
9251 else
9252   case $SORT in
9253   [\\/]* | ?:[\\/]*)
9254   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9255   ;;
9256   *)
9257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9258 for as_dir in $PATH
9259 do
9260   IFS=$as_save_IFS
9261   test -z "$as_dir" && as_dir=.
9262     for ac_exec_ext in '' $ac_executable_extensions; do
9263   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9264     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9266     break 2
9267   fi
9268 done
9269   done
9270 IFS=$as_save_IFS
9271 
9272   ;;
9273 esac
9274 fi
9275 SORT=$ac_cv_path_SORT
9276 if test -n "$SORT"; then
9277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9278 $as_echo "$SORT" >&6; }
9279 else
9280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9281 $as_echo "no" >&6; }
9282 fi
9283 
9284 
9285   test -n "$SORT" && break
9286 done
9287 
9288     else
9289       # If it succeeded, then it was overridden by the user. We will use it
9290       # for the tool.
9291 
9292       # First remove it from the list of overridden variables, so we can test
9293       # for unknown variables in the end.
9294       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9295 
9296       # Check if the provided tool contains a complete path.
9297       tool_specified="$SORT"
9298       tool_basename="${tool_specified##*/}"
9299       if test "x$tool_basename" = "x$tool_specified"; then
9300         # A command without a complete path is provided, search $PATH.
9301         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
9302 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
9303         # Extract the first word of "$tool_basename", so it can be a program name with args.
9304 set dummy $tool_basename; ac_word=$2
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9306 $as_echo_n "checking for $ac_word... " >&6; }
9307 if ${ac_cv_path_SORT+:} false; then :
9308   $as_echo_n "(cached) " >&6
9309 else
9310   case $SORT in
9311   [\\/]* | ?:[\\/]*)
9312   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9313   ;;
9314   *)
9315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9316 for as_dir in $PATH
9317 do
9318   IFS=$as_save_IFS
9319   test -z "$as_dir" && as_dir=.
9320     for ac_exec_ext in '' $ac_executable_extensions; do
9321   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9322     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9324     break 2
9325   fi
9326 done
9327   done
9328 IFS=$as_save_IFS
9329 
9330   ;;
9331 esac
9332 fi
9333 SORT=$ac_cv_path_SORT
9334 if test -n "$SORT"; then
9335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9336 $as_echo "$SORT" >&6; }
9337 else
9338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9339 $as_echo "no" >&6; }
9340 fi
9341 
9342 
9343         if test "x$SORT" = x; then
9344           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9345         fi
9346       else
9347         # Otherwise we believe it is a complete path. Use it as it is.
9348         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
9349 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
9350         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
9351 $as_echo_n "checking for SORT... " >&6; }
9352         if test ! -x "$tool_specified"; then
9353           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9354 $as_echo "not found" >&6; }
9355           as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
9356         fi
9357         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9358 $as_echo "$tool_specified" >&6; }
9359       fi
9360     fi
9361   fi
9362 
9363 
9364 
9365   if test "x$SORT" = x; then
9366     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
9367   fi
9368 
9369 
9370 
9371 
9372 
9373   # Publish this variable in the help.
9374 
9375 
9376   if test "x$TAIL" = x; then
9377     # The variable is not set by user, try to locate tool using the code snippet
9378     for ac_prog in tail
9379 do
9380   # Extract the first word of "$ac_prog", so it can be a program name with args.
9381 set dummy $ac_prog; ac_word=$2
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9383 $as_echo_n "checking for $ac_word... " >&6; }
9384 if ${ac_cv_path_TAIL+:} false; then :
9385   $as_echo_n "(cached) " >&6
9386 else
9387   case $TAIL in
9388   [\\/]* | ?:[\\/]*)
9389   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9390   ;;
9391   *)
9392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9393 for as_dir in $PATH
9394 do
9395   IFS=$as_save_IFS
9396   test -z "$as_dir" && as_dir=.
9397     for ac_exec_ext in '' $ac_executable_extensions; do
9398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9399     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9401     break 2
9402   fi
9403 done
9404   done
9405 IFS=$as_save_IFS
9406 
9407   ;;
9408 esac
9409 fi
9410 TAIL=$ac_cv_path_TAIL
9411 if test -n "$TAIL"; then
9412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9413 $as_echo "$TAIL" >&6; }
9414 else
9415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9416 $as_echo "no" >&6; }
9417 fi
9418 
9419 
9420   test -n "$TAIL" && break
9421 done
9422 
9423   else
9424     # The variable is set, but is it from the command line or the environment?
9425 
9426     # Try to remove the string !TAIL! from our list.
9427     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
9428     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9429       # If it failed, the variable was not from the command line. Ignore it,
9430       # but warn the user (except for BASH, which is always set by the calling BASH).
9431       if test "xTAIL" != xBASH; then
9432         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
9433 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
9434       fi
9435       # Try to locate tool using the code snippet
9436       for ac_prog in tail
9437 do
9438   # Extract the first word of "$ac_prog", so it can be a program name with args.
9439 set dummy $ac_prog; ac_word=$2
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9441 $as_echo_n "checking for $ac_word... " >&6; }
9442 if ${ac_cv_path_TAIL+:} false; then :
9443   $as_echo_n "(cached) " >&6
9444 else
9445   case $TAIL in
9446   [\\/]* | ?:[\\/]*)
9447   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9448   ;;
9449   *)
9450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9451 for as_dir in $PATH
9452 do
9453   IFS=$as_save_IFS
9454   test -z "$as_dir" && as_dir=.
9455     for ac_exec_ext in '' $ac_executable_extensions; do
9456   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9457     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9459     break 2
9460   fi
9461 done
9462   done
9463 IFS=$as_save_IFS
9464 
9465   ;;
9466 esac
9467 fi
9468 TAIL=$ac_cv_path_TAIL
9469 if test -n "$TAIL"; then
9470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9471 $as_echo "$TAIL" >&6; }
9472 else
9473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9474 $as_echo "no" >&6; }
9475 fi
9476 
9477 
9478   test -n "$TAIL" && break
9479 done
9480 
9481     else
9482       # If it succeeded, then it was overridden by the user. We will use it
9483       # for the tool.
9484 
9485       # First remove it from the list of overridden variables, so we can test
9486       # for unknown variables in the end.
9487       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9488 
9489       # Check if the provided tool contains a complete path.
9490       tool_specified="$TAIL"
9491       tool_basename="${tool_specified##*/}"
9492       if test "x$tool_basename" = "x$tool_specified"; then
9493         # A command without a complete path is provided, search $PATH.
9494         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
9495 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
9496         # Extract the first word of "$tool_basename", so it can be a program name with args.
9497 set dummy $tool_basename; ac_word=$2
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9499 $as_echo_n "checking for $ac_word... " >&6; }
9500 if ${ac_cv_path_TAIL+:} false; then :
9501   $as_echo_n "(cached) " >&6
9502 else
9503   case $TAIL in
9504   [\\/]* | ?:[\\/]*)
9505   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9506   ;;
9507   *)
9508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9509 for as_dir in $PATH
9510 do
9511   IFS=$as_save_IFS
9512   test -z "$as_dir" && as_dir=.
9513     for ac_exec_ext in '' $ac_executable_extensions; do
9514   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9515     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9517     break 2
9518   fi
9519 done
9520   done
9521 IFS=$as_save_IFS
9522 
9523   ;;
9524 esac
9525 fi
9526 TAIL=$ac_cv_path_TAIL
9527 if test -n "$TAIL"; then
9528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9529 $as_echo "$TAIL" >&6; }
9530 else
9531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9532 $as_echo "no" >&6; }
9533 fi
9534 
9535 
9536         if test "x$TAIL" = x; then
9537           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9538         fi
9539       else
9540         # Otherwise we believe it is a complete path. Use it as it is.
9541         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
9542 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
9543         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
9544 $as_echo_n "checking for TAIL... " >&6; }
9545         if test ! -x "$tool_specified"; then
9546           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9547 $as_echo "not found" >&6; }
9548           as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
9549         fi
9550         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9551 $as_echo "$tool_specified" >&6; }
9552       fi
9553     fi
9554   fi
9555 
9556 
9557 
9558   if test "x$TAIL" = x; then
9559     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
9560   fi
9561 
9562 
9563 
9564 
9565 
9566   # Publish this variable in the help.
9567 
9568 
9569   if test "x$TAR" = x; then
9570     # The variable is not set by user, try to locate tool using the code snippet
9571     for ac_prog in tar
9572 do
9573   # Extract the first word of "$ac_prog", so it can be a program name with args.
9574 set dummy $ac_prog; ac_word=$2
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9576 $as_echo_n "checking for $ac_word... " >&6; }
9577 if ${ac_cv_path_TAR+:} false; then :
9578   $as_echo_n "(cached) " >&6
9579 else
9580   case $TAR in
9581   [\\/]* | ?:[\\/]*)
9582   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9583   ;;
9584   *)
9585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9586 for as_dir in $PATH
9587 do
9588   IFS=$as_save_IFS
9589   test -z "$as_dir" && as_dir=.
9590     for ac_exec_ext in '' $ac_executable_extensions; do
9591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9592     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9594     break 2
9595   fi
9596 done
9597   done
9598 IFS=$as_save_IFS
9599 
9600   ;;
9601 esac
9602 fi
9603 TAR=$ac_cv_path_TAR
9604 if test -n "$TAR"; then
9605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9606 $as_echo "$TAR" >&6; }
9607 else
9608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9609 $as_echo "no" >&6; }
9610 fi
9611 
9612 
9613   test -n "$TAR" && break
9614 done
9615 
9616   else
9617     # The variable is set, but is it from the command line or the environment?
9618 
9619     # Try to remove the string !TAR! from our list.
9620     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
9621     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9622       # If it failed, the variable was not from the command line. Ignore it,
9623       # but warn the user (except for BASH, which is always set by the calling BASH).
9624       if test "xTAR" != xBASH; then
9625         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
9626 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
9627       fi
9628       # Try to locate tool using the code snippet
9629       for ac_prog in tar
9630 do
9631   # Extract the first word of "$ac_prog", so it can be a program name with args.
9632 set dummy $ac_prog; ac_word=$2
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9634 $as_echo_n "checking for $ac_word... " >&6; }
9635 if ${ac_cv_path_TAR+:} false; then :
9636   $as_echo_n "(cached) " >&6
9637 else
9638   case $TAR in
9639   [\\/]* | ?:[\\/]*)
9640   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9641   ;;
9642   *)
9643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9644 for as_dir in $PATH
9645 do
9646   IFS=$as_save_IFS
9647   test -z "$as_dir" && as_dir=.
9648     for ac_exec_ext in '' $ac_executable_extensions; do
9649   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9650     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9652     break 2
9653   fi
9654 done
9655   done
9656 IFS=$as_save_IFS
9657 
9658   ;;
9659 esac
9660 fi
9661 TAR=$ac_cv_path_TAR
9662 if test -n "$TAR"; then
9663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9664 $as_echo "$TAR" >&6; }
9665 else
9666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9667 $as_echo "no" >&6; }
9668 fi
9669 
9670 
9671   test -n "$TAR" && break
9672 done
9673 
9674     else
9675       # If it succeeded, then it was overridden by the user. We will use it
9676       # for the tool.
9677 
9678       # First remove it from the list of overridden variables, so we can test
9679       # for unknown variables in the end.
9680       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9681 
9682       # Check if the provided tool contains a complete path.
9683       tool_specified="$TAR"
9684       tool_basename="${tool_specified##*/}"
9685       if test "x$tool_basename" = "x$tool_specified"; then
9686         # A command without a complete path is provided, search $PATH.
9687         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
9688 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
9689         # Extract the first word of "$tool_basename", so it can be a program name with args.
9690 set dummy $tool_basename; ac_word=$2
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9692 $as_echo_n "checking for $ac_word... " >&6; }
9693 if ${ac_cv_path_TAR+:} false; then :
9694   $as_echo_n "(cached) " >&6
9695 else
9696   case $TAR in
9697   [\\/]* | ?:[\\/]*)
9698   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9699   ;;
9700   *)
9701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9702 for as_dir in $PATH
9703 do
9704   IFS=$as_save_IFS
9705   test -z "$as_dir" && as_dir=.
9706     for ac_exec_ext in '' $ac_executable_extensions; do
9707   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9708     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9710     break 2
9711   fi
9712 done
9713   done
9714 IFS=$as_save_IFS
9715 
9716   ;;
9717 esac
9718 fi
9719 TAR=$ac_cv_path_TAR
9720 if test -n "$TAR"; then
9721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9722 $as_echo "$TAR" >&6; }
9723 else
9724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9725 $as_echo "no" >&6; }
9726 fi
9727 
9728 
9729         if test "x$TAR" = x; then
9730           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9731         fi
9732       else
9733         # Otherwise we believe it is a complete path. Use it as it is.
9734         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
9735 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
9736         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
9737 $as_echo_n "checking for TAR... " >&6; }
9738         if test ! -x "$tool_specified"; then
9739           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9740 $as_echo "not found" >&6; }
9741           as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
9742         fi
9743         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9744 $as_echo "$tool_specified" >&6; }
9745       fi
9746     fi
9747   fi
9748 
9749 
9750 
9751   if test "x$TAR" = x; then
9752     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
9753   fi
9754 
9755 
9756 
9757 
9758 
9759   # Publish this variable in the help.
9760 
9761 
9762   if test "x$TEE" = x; then
9763     # The variable is not set by user, try to locate tool using the code snippet
9764     for ac_prog in tee
9765 do
9766   # Extract the first word of "$ac_prog", so it can be a program name with args.
9767 set dummy $ac_prog; ac_word=$2
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9769 $as_echo_n "checking for $ac_word... " >&6; }
9770 if ${ac_cv_path_TEE+:} false; then :
9771   $as_echo_n "(cached) " >&6
9772 else
9773   case $TEE in
9774   [\\/]* | ?:[\\/]*)
9775   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9776   ;;
9777   *)
9778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9779 for as_dir in $PATH
9780 do
9781   IFS=$as_save_IFS
9782   test -z "$as_dir" && as_dir=.
9783     for ac_exec_ext in '' $ac_executable_extensions; do
9784   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9785     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9787     break 2
9788   fi
9789 done
9790   done
9791 IFS=$as_save_IFS
9792 
9793   ;;
9794 esac
9795 fi
9796 TEE=$ac_cv_path_TEE
9797 if test -n "$TEE"; then
9798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9799 $as_echo "$TEE" >&6; }
9800 else
9801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9802 $as_echo "no" >&6; }
9803 fi
9804 
9805 
9806   test -n "$TEE" && break
9807 done
9808 
9809   else
9810     # The variable is set, but is it from the command line or the environment?
9811 
9812     # Try to remove the string !TEE! from our list.
9813     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
9814     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9815       # If it failed, the variable was not from the command line. Ignore it,
9816       # but warn the user (except for BASH, which is always set by the calling BASH).
9817       if test "xTEE" != xBASH; then
9818         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
9819 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
9820       fi
9821       # Try to locate tool using the code snippet
9822       for ac_prog in tee
9823 do
9824   # Extract the first word of "$ac_prog", so it can be a program name with args.
9825 set dummy $ac_prog; ac_word=$2
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9827 $as_echo_n "checking for $ac_word... " >&6; }
9828 if ${ac_cv_path_TEE+:} false; then :
9829   $as_echo_n "(cached) " >&6
9830 else
9831   case $TEE in
9832   [\\/]* | ?:[\\/]*)
9833   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9834   ;;
9835   *)
9836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9837 for as_dir in $PATH
9838 do
9839   IFS=$as_save_IFS
9840   test -z "$as_dir" && as_dir=.
9841     for ac_exec_ext in '' $ac_executable_extensions; do
9842   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9843     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9845     break 2
9846   fi
9847 done
9848   done
9849 IFS=$as_save_IFS
9850 
9851   ;;
9852 esac
9853 fi
9854 TEE=$ac_cv_path_TEE
9855 if test -n "$TEE"; then
9856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9857 $as_echo "$TEE" >&6; }
9858 else
9859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9860 $as_echo "no" >&6; }
9861 fi
9862 
9863 
9864   test -n "$TEE" && break
9865 done
9866 
9867     else
9868       # If it succeeded, then it was overridden by the user. We will use it
9869       # for the tool.
9870 
9871       # First remove it from the list of overridden variables, so we can test
9872       # for unknown variables in the end.
9873       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9874 
9875       # Check if the provided tool contains a complete path.
9876       tool_specified="$TEE"
9877       tool_basename="${tool_specified##*/}"
9878       if test "x$tool_basename" = "x$tool_specified"; then
9879         # A command without a complete path is provided, search $PATH.
9880         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
9881 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
9882         # Extract the first word of "$tool_basename", so it can be a program name with args.
9883 set dummy $tool_basename; ac_word=$2
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9885 $as_echo_n "checking for $ac_word... " >&6; }
9886 if ${ac_cv_path_TEE+:} false; then :
9887   $as_echo_n "(cached) " >&6
9888 else
9889   case $TEE in
9890   [\\/]* | ?:[\\/]*)
9891   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9892   ;;
9893   *)
9894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9895 for as_dir in $PATH
9896 do
9897   IFS=$as_save_IFS
9898   test -z "$as_dir" && as_dir=.
9899     for ac_exec_ext in '' $ac_executable_extensions; do
9900   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9901     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9903     break 2
9904   fi
9905 done
9906   done
9907 IFS=$as_save_IFS
9908 
9909   ;;
9910 esac
9911 fi
9912 TEE=$ac_cv_path_TEE
9913 if test -n "$TEE"; then
9914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9915 $as_echo "$TEE" >&6; }
9916 else
9917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9918 $as_echo "no" >&6; }
9919 fi
9920 
9921 
9922         if test "x$TEE" = x; then
9923           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9924         fi
9925       else
9926         # Otherwise we believe it is a complete path. Use it as it is.
9927         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
9928 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
9929         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
9930 $as_echo_n "checking for TEE... " >&6; }
9931         if test ! -x "$tool_specified"; then
9932           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9933 $as_echo "not found" >&6; }
9934           as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
9935         fi
9936         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9937 $as_echo "$tool_specified" >&6; }
9938       fi
9939     fi
9940   fi
9941 
9942 
9943 
9944   if test "x$TEE" = x; then
9945     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
9946   fi
9947 
9948 
9949 
9950 
9951 
9952   # Publish this variable in the help.
9953 
9954 
9955   if test "x$TOUCH" = x; then
9956     # The variable is not set by user, try to locate tool using the code snippet
9957     for ac_prog in touch
9958 do
9959   # Extract the first word of "$ac_prog", so it can be a program name with args.
9960 set dummy $ac_prog; ac_word=$2
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9962 $as_echo_n "checking for $ac_word... " >&6; }
9963 if ${ac_cv_path_TOUCH+:} false; then :
9964   $as_echo_n "(cached) " >&6
9965 else
9966   case $TOUCH in
9967   [\\/]* | ?:[\\/]*)
9968   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
9969   ;;
9970   *)
9971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9972 for as_dir in $PATH
9973 do
9974   IFS=$as_save_IFS
9975   test -z "$as_dir" && as_dir=.
9976     for ac_exec_ext in '' $ac_executable_extensions; do
9977   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9978     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
9979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9980     break 2
9981   fi
9982 done
9983   done
9984 IFS=$as_save_IFS
9985 
9986   ;;
9987 esac
9988 fi
9989 TOUCH=$ac_cv_path_TOUCH
9990 if test -n "$TOUCH"; then
9991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
9992 $as_echo "$TOUCH" >&6; }
9993 else
9994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9995 $as_echo "no" >&6; }
9996 fi
9997 
9998 
9999   test -n "$TOUCH" && break
10000 done
10001 
10002   else
10003     # The variable is set, but is it from the command line or the environment?
10004 
10005     # Try to remove the string !TOUCH! from our list.
10006     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
10007     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10008       # If it failed, the variable was not from the command line. Ignore it,
10009       # but warn the user (except for BASH, which is always set by the calling BASH).
10010       if test "xTOUCH" != xBASH; then
10011         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
10012 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
10013       fi
10014       # Try to locate tool using the code snippet
10015       for ac_prog in touch
10016 do
10017   # Extract the first word of "$ac_prog", so it can be a program name with args.
10018 set dummy $ac_prog; ac_word=$2
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10020 $as_echo_n "checking for $ac_word... " >&6; }
10021 if ${ac_cv_path_TOUCH+:} false; then :
10022   $as_echo_n "(cached) " >&6
10023 else
10024   case $TOUCH in
10025   [\\/]* | ?:[\\/]*)
10026   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10027   ;;
10028   *)
10029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10030 for as_dir in $PATH
10031 do
10032   IFS=$as_save_IFS
10033   test -z "$as_dir" && as_dir=.
10034     for ac_exec_ext in '' $ac_executable_extensions; do
10035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10036     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10038     break 2
10039   fi
10040 done
10041   done
10042 IFS=$as_save_IFS
10043 
10044   ;;
10045 esac
10046 fi
10047 TOUCH=$ac_cv_path_TOUCH
10048 if test -n "$TOUCH"; then
10049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10050 $as_echo "$TOUCH" >&6; }
10051 else
10052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10053 $as_echo "no" >&6; }
10054 fi
10055 
10056 
10057   test -n "$TOUCH" && break
10058 done
10059 
10060     else
10061       # If it succeeded, then it was overridden by the user. We will use it
10062       # for the tool.
10063 
10064       # First remove it from the list of overridden variables, so we can test
10065       # for unknown variables in the end.
10066       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10067 
10068       # Check if the provided tool contains a complete path.
10069       tool_specified="$TOUCH"
10070       tool_basename="${tool_specified##*/}"
10071       if test "x$tool_basename" = "x$tool_specified"; then
10072         # A command without a complete path is provided, search $PATH.
10073         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
10074 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
10075         # Extract the first word of "$tool_basename", so it can be a program name with args.
10076 set dummy $tool_basename; ac_word=$2
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10078 $as_echo_n "checking for $ac_word... " >&6; }
10079 if ${ac_cv_path_TOUCH+:} false; then :
10080   $as_echo_n "(cached) " >&6
10081 else
10082   case $TOUCH in
10083   [\\/]* | ?:[\\/]*)
10084   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10085   ;;
10086   *)
10087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10088 for as_dir in $PATH
10089 do
10090   IFS=$as_save_IFS
10091   test -z "$as_dir" && as_dir=.
10092     for ac_exec_ext in '' $ac_executable_extensions; do
10093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10094     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10096     break 2
10097   fi
10098 done
10099   done
10100 IFS=$as_save_IFS
10101 
10102   ;;
10103 esac
10104 fi
10105 TOUCH=$ac_cv_path_TOUCH
10106 if test -n "$TOUCH"; then
10107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10108 $as_echo "$TOUCH" >&6; }
10109 else
10110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111 $as_echo "no" >&6; }
10112 fi
10113 
10114 
10115         if test "x$TOUCH" = x; then
10116           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10117         fi
10118       else
10119         # Otherwise we believe it is a complete path. Use it as it is.
10120         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
10121 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
10122         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10123 $as_echo_n "checking for TOUCH... " >&6; }
10124         if test ! -x "$tool_specified"; then
10125           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10126 $as_echo "not found" >&6; }
10127           as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
10128         fi
10129         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10130 $as_echo "$tool_specified" >&6; }
10131       fi
10132     fi
10133   fi
10134 
10135 
10136 
10137   if test "x$TOUCH" = x; then
10138     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
10139   fi
10140 
10141 
10142 
10143 
10144 
10145   # Publish this variable in the help.
10146 
10147 
10148   if test "x$TR" = x; then
10149     # The variable is not set by user, try to locate tool using the code snippet
10150     for ac_prog in tr
10151 do
10152   # Extract the first word of "$ac_prog", so it can be a program name with args.
10153 set dummy $ac_prog; ac_word=$2
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10155 $as_echo_n "checking for $ac_word... " >&6; }
10156 if ${ac_cv_path_TR+:} false; then :
10157   $as_echo_n "(cached) " >&6
10158 else
10159   case $TR in
10160   [\\/]* | ?:[\\/]*)
10161   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10162   ;;
10163   *)
10164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10165 for as_dir in $PATH
10166 do
10167   IFS=$as_save_IFS
10168   test -z "$as_dir" && as_dir=.
10169     for ac_exec_ext in '' $ac_executable_extensions; do
10170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10171     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10173     break 2
10174   fi
10175 done
10176   done
10177 IFS=$as_save_IFS
10178 
10179   ;;
10180 esac
10181 fi
10182 TR=$ac_cv_path_TR
10183 if test -n "$TR"; then
10184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10185 $as_echo "$TR" >&6; }
10186 else
10187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10188 $as_echo "no" >&6; }
10189 fi
10190 
10191 
10192   test -n "$TR" && break
10193 done
10194 
10195   else
10196     # The variable is set, but is it from the command line or the environment?
10197 
10198     # Try to remove the string !TR! from our list.
10199     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
10200     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10201       # If it failed, the variable was not from the command line. Ignore it,
10202       # but warn the user (except for BASH, which is always set by the calling BASH).
10203       if test "xTR" != xBASH; then
10204         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
10205 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
10206       fi
10207       # Try to locate tool using the code snippet
10208       for ac_prog in tr
10209 do
10210   # Extract the first word of "$ac_prog", so it can be a program name with args.
10211 set dummy $ac_prog; ac_word=$2
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10213 $as_echo_n "checking for $ac_word... " >&6; }
10214 if ${ac_cv_path_TR+:} false; then :
10215   $as_echo_n "(cached) " >&6
10216 else
10217   case $TR in
10218   [\\/]* | ?:[\\/]*)
10219   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10220   ;;
10221   *)
10222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10223 for as_dir in $PATH
10224 do
10225   IFS=$as_save_IFS
10226   test -z "$as_dir" && as_dir=.
10227     for ac_exec_ext in '' $ac_executable_extensions; do
10228   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10229     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10231     break 2
10232   fi
10233 done
10234   done
10235 IFS=$as_save_IFS
10236 
10237   ;;
10238 esac
10239 fi
10240 TR=$ac_cv_path_TR
10241 if test -n "$TR"; then
10242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10243 $as_echo "$TR" >&6; }
10244 else
10245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10246 $as_echo "no" >&6; }
10247 fi
10248 
10249 
10250   test -n "$TR" && break
10251 done
10252 
10253     else
10254       # If it succeeded, then it was overridden by the user. We will use it
10255       # for the tool.
10256 
10257       # First remove it from the list of overridden variables, so we can test
10258       # for unknown variables in the end.
10259       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10260 
10261       # Check if the provided tool contains a complete path.
10262       tool_specified="$TR"
10263       tool_basename="${tool_specified##*/}"
10264       if test "x$tool_basename" = "x$tool_specified"; then
10265         # A command without a complete path is provided, search $PATH.
10266         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
10267 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
10268         # Extract the first word of "$tool_basename", so it can be a program name with args.
10269 set dummy $tool_basename; ac_word=$2
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10271 $as_echo_n "checking for $ac_word... " >&6; }
10272 if ${ac_cv_path_TR+:} false; then :
10273   $as_echo_n "(cached) " >&6
10274 else
10275   case $TR in
10276   [\\/]* | ?:[\\/]*)
10277   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10278   ;;
10279   *)
10280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10281 for as_dir in $PATH
10282 do
10283   IFS=$as_save_IFS
10284   test -z "$as_dir" && as_dir=.
10285     for ac_exec_ext in '' $ac_executable_extensions; do
10286   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10287     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10289     break 2
10290   fi
10291 done
10292   done
10293 IFS=$as_save_IFS
10294 
10295   ;;
10296 esac
10297 fi
10298 TR=$ac_cv_path_TR
10299 if test -n "$TR"; then
10300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10301 $as_echo "$TR" >&6; }
10302 else
10303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10304 $as_echo "no" >&6; }
10305 fi
10306 
10307 
10308         if test "x$TR" = x; then
10309           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10310         fi
10311       else
10312         # Otherwise we believe it is a complete path. Use it as it is.
10313         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
10314 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
10315         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
10316 $as_echo_n "checking for TR... " >&6; }
10317         if test ! -x "$tool_specified"; then
10318           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10319 $as_echo "not found" >&6; }
10320           as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
10321         fi
10322         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10323 $as_echo "$tool_specified" >&6; }
10324       fi
10325     fi
10326   fi
10327 
10328 
10329 
10330   if test "x$TR" = x; then
10331     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
10332   fi
10333 
10334 
10335 
10336 
10337 
10338   # Publish this variable in the help.
10339 
10340 
10341   if test "x$UNAME" = x; then
10342     # The variable is not set by user, try to locate tool using the code snippet
10343     for ac_prog in uname
10344 do
10345   # Extract the first word of "$ac_prog", so it can be a program name with args.
10346 set dummy $ac_prog; ac_word=$2
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10348 $as_echo_n "checking for $ac_word... " >&6; }
10349 if ${ac_cv_path_UNAME+:} false; then :
10350   $as_echo_n "(cached) " >&6
10351 else
10352   case $UNAME in
10353   [\\/]* | ?:[\\/]*)
10354   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10355   ;;
10356   *)
10357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10358 for as_dir in $PATH
10359 do
10360   IFS=$as_save_IFS
10361   test -z "$as_dir" && as_dir=.
10362     for ac_exec_ext in '' $ac_executable_extensions; do
10363   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10364     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10366     break 2
10367   fi
10368 done
10369   done
10370 IFS=$as_save_IFS
10371 
10372   ;;
10373 esac
10374 fi
10375 UNAME=$ac_cv_path_UNAME
10376 if test -n "$UNAME"; then
10377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10378 $as_echo "$UNAME" >&6; }
10379 else
10380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10381 $as_echo "no" >&6; }
10382 fi
10383 
10384 
10385   test -n "$UNAME" && break
10386 done
10387 
10388   else
10389     # The variable is set, but is it from the command line or the environment?
10390 
10391     # Try to remove the string !UNAME! from our list.
10392     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
10393     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10394       # If it failed, the variable was not from the command line. Ignore it,
10395       # but warn the user (except for BASH, which is always set by the calling BASH).
10396       if test "xUNAME" != xBASH; then
10397         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
10398 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
10399       fi
10400       # Try to locate tool using the code snippet
10401       for ac_prog in uname
10402 do
10403   # Extract the first word of "$ac_prog", so it can be a program name with args.
10404 set dummy $ac_prog; ac_word=$2
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10406 $as_echo_n "checking for $ac_word... " >&6; }
10407 if ${ac_cv_path_UNAME+:} false; then :
10408   $as_echo_n "(cached) " >&6
10409 else
10410   case $UNAME in
10411   [\\/]* | ?:[\\/]*)
10412   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10413   ;;
10414   *)
10415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10416 for as_dir in $PATH
10417 do
10418   IFS=$as_save_IFS
10419   test -z "$as_dir" && as_dir=.
10420     for ac_exec_ext in '' $ac_executable_extensions; do
10421   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10422     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10424     break 2
10425   fi
10426 done
10427   done
10428 IFS=$as_save_IFS
10429 
10430   ;;
10431 esac
10432 fi
10433 UNAME=$ac_cv_path_UNAME
10434 if test -n "$UNAME"; then
10435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10436 $as_echo "$UNAME" >&6; }
10437 else
10438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10439 $as_echo "no" >&6; }
10440 fi
10441 
10442 
10443   test -n "$UNAME" && break
10444 done
10445 
10446     else
10447       # If it succeeded, then it was overridden by the user. We will use it
10448       # for the tool.
10449 
10450       # First remove it from the list of overridden variables, so we can test
10451       # for unknown variables in the end.
10452       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10453 
10454       # Check if the provided tool contains a complete path.
10455       tool_specified="$UNAME"
10456       tool_basename="${tool_specified##*/}"
10457       if test "x$tool_basename" = "x$tool_specified"; then
10458         # A command without a complete path is provided, search $PATH.
10459         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
10460 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
10461         # Extract the first word of "$tool_basename", so it can be a program name with args.
10462 set dummy $tool_basename; ac_word=$2
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10464 $as_echo_n "checking for $ac_word... " >&6; }
10465 if ${ac_cv_path_UNAME+:} false; then :
10466   $as_echo_n "(cached) " >&6
10467 else
10468   case $UNAME in
10469   [\\/]* | ?:[\\/]*)
10470   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10471   ;;
10472   *)
10473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10474 for as_dir in $PATH
10475 do
10476   IFS=$as_save_IFS
10477   test -z "$as_dir" && as_dir=.
10478     for ac_exec_ext in '' $ac_executable_extensions; do
10479   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10480     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10482     break 2
10483   fi
10484 done
10485   done
10486 IFS=$as_save_IFS
10487 
10488   ;;
10489 esac
10490 fi
10491 UNAME=$ac_cv_path_UNAME
10492 if test -n "$UNAME"; then
10493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10494 $as_echo "$UNAME" >&6; }
10495 else
10496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10497 $as_echo "no" >&6; }
10498 fi
10499 
10500 
10501         if test "x$UNAME" = x; then
10502           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10503         fi
10504       else
10505         # Otherwise we believe it is a complete path. Use it as it is.
10506         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
10507 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
10508         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
10509 $as_echo_n "checking for UNAME... " >&6; }
10510         if test ! -x "$tool_specified"; then
10511           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10512 $as_echo "not found" >&6; }
10513           as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
10514         fi
10515         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10516 $as_echo "$tool_specified" >&6; }
10517       fi
10518     fi
10519   fi
10520 
10521 
10522 
10523   if test "x$UNAME" = x; then
10524     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
10525   fi
10526 
10527 
10528 
10529 
10530 
10531   # Publish this variable in the help.
10532 
10533 
10534   if test "x$UNIQ" = x; then
10535     # The variable is not set by user, try to locate tool using the code snippet
10536     for ac_prog in uniq
10537 do
10538   # Extract the first word of "$ac_prog", so it can be a program name with args.
10539 set dummy $ac_prog; ac_word=$2
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10541 $as_echo_n "checking for $ac_word... " >&6; }
10542 if ${ac_cv_path_UNIQ+:} false; then :
10543   $as_echo_n "(cached) " >&6
10544 else
10545   case $UNIQ in
10546   [\\/]* | ?:[\\/]*)
10547   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10548   ;;
10549   *)
10550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10551 for as_dir in $PATH
10552 do
10553   IFS=$as_save_IFS
10554   test -z "$as_dir" && as_dir=.
10555     for ac_exec_ext in '' $ac_executable_extensions; do
10556   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10557     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10559     break 2
10560   fi
10561 done
10562   done
10563 IFS=$as_save_IFS
10564 
10565   ;;
10566 esac
10567 fi
10568 UNIQ=$ac_cv_path_UNIQ
10569 if test -n "$UNIQ"; then
10570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10571 $as_echo "$UNIQ" >&6; }
10572 else
10573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10574 $as_echo "no" >&6; }
10575 fi
10576 
10577 
10578   test -n "$UNIQ" && break
10579 done
10580 
10581   else
10582     # The variable is set, but is it from the command line or the environment?
10583 
10584     # Try to remove the string !UNIQ! from our list.
10585     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
10586     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10587       # If it failed, the variable was not from the command line. Ignore it,
10588       # but warn the user (except for BASH, which is always set by the calling BASH).
10589       if test "xUNIQ" != xBASH; then
10590         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
10591 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
10592       fi
10593       # Try to locate tool using the code snippet
10594       for ac_prog in uniq
10595 do
10596   # Extract the first word of "$ac_prog", so it can be a program name with args.
10597 set dummy $ac_prog; ac_word=$2
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10599 $as_echo_n "checking for $ac_word... " >&6; }
10600 if ${ac_cv_path_UNIQ+:} false; then :
10601   $as_echo_n "(cached) " >&6
10602 else
10603   case $UNIQ in
10604   [\\/]* | ?:[\\/]*)
10605   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10606   ;;
10607   *)
10608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10609 for as_dir in $PATH
10610 do
10611   IFS=$as_save_IFS
10612   test -z "$as_dir" && as_dir=.
10613     for ac_exec_ext in '' $ac_executable_extensions; do
10614   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10615     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10617     break 2
10618   fi
10619 done
10620   done
10621 IFS=$as_save_IFS
10622 
10623   ;;
10624 esac
10625 fi
10626 UNIQ=$ac_cv_path_UNIQ
10627 if test -n "$UNIQ"; then
10628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10629 $as_echo "$UNIQ" >&6; }
10630 else
10631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10632 $as_echo "no" >&6; }
10633 fi
10634 
10635 
10636   test -n "$UNIQ" && break
10637 done
10638 
10639     else
10640       # If it succeeded, then it was overridden by the user. We will use it
10641       # for the tool.
10642 
10643       # First remove it from the list of overridden variables, so we can test
10644       # for unknown variables in the end.
10645       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10646 
10647       # Check if the provided tool contains a complete path.
10648       tool_specified="$UNIQ"
10649       tool_basename="${tool_specified##*/}"
10650       if test "x$tool_basename" = "x$tool_specified"; then
10651         # A command without a complete path is provided, search $PATH.
10652         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
10653 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
10654         # Extract the first word of "$tool_basename", so it can be a program name with args.
10655 set dummy $tool_basename; ac_word=$2
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10657 $as_echo_n "checking for $ac_word... " >&6; }
10658 if ${ac_cv_path_UNIQ+:} false; then :
10659   $as_echo_n "(cached) " >&6
10660 else
10661   case $UNIQ in
10662   [\\/]* | ?:[\\/]*)
10663   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10664   ;;
10665   *)
10666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10667 for as_dir in $PATH
10668 do
10669   IFS=$as_save_IFS
10670   test -z "$as_dir" && as_dir=.
10671     for ac_exec_ext in '' $ac_executable_extensions; do
10672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10673     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10675     break 2
10676   fi
10677 done
10678   done
10679 IFS=$as_save_IFS
10680 
10681   ;;
10682 esac
10683 fi
10684 UNIQ=$ac_cv_path_UNIQ
10685 if test -n "$UNIQ"; then
10686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10687 $as_echo "$UNIQ" >&6; }
10688 else
10689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10690 $as_echo "no" >&6; }
10691 fi
10692 
10693 
10694         if test "x$UNIQ" = x; then
10695           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10696         fi
10697       else
10698         # Otherwise we believe it is a complete path. Use it as it is.
10699         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
10700 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
10701         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
10702 $as_echo_n "checking for UNIQ... " >&6; }
10703         if test ! -x "$tool_specified"; then
10704           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10705 $as_echo "not found" >&6; }
10706           as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
10707         fi
10708         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10709 $as_echo "$tool_specified" >&6; }
10710       fi
10711     fi
10712   fi
10713 
10714 
10715 
10716   if test "x$UNIQ" = x; then
10717     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
10718   fi
10719 
10720 
10721 
10722 
10723 
10724   # Publish this variable in the help.
10725 
10726 
10727   if test "x$WC" = x; then
10728     # The variable is not set by user, try to locate tool using the code snippet
10729     for ac_prog in wc
10730 do
10731   # Extract the first word of "$ac_prog", so it can be a program name with args.
10732 set dummy $ac_prog; ac_word=$2
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10734 $as_echo_n "checking for $ac_word... " >&6; }
10735 if ${ac_cv_path_WC+:} false; then :
10736   $as_echo_n "(cached) " >&6
10737 else
10738   case $WC in
10739   [\\/]* | ?:[\\/]*)
10740   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10741   ;;
10742   *)
10743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10744 for as_dir in $PATH
10745 do
10746   IFS=$as_save_IFS
10747   test -z "$as_dir" && as_dir=.
10748     for ac_exec_ext in '' $ac_executable_extensions; do
10749   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10750     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10752     break 2
10753   fi
10754 done
10755   done
10756 IFS=$as_save_IFS
10757 
10758   ;;
10759 esac
10760 fi
10761 WC=$ac_cv_path_WC
10762 if test -n "$WC"; then
10763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10764 $as_echo "$WC" >&6; }
10765 else
10766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10767 $as_echo "no" >&6; }
10768 fi
10769 
10770 
10771   test -n "$WC" && break
10772 done
10773 
10774   else
10775     # The variable is set, but is it from the command line or the environment?
10776 
10777     # Try to remove the string !WC! from our list.
10778     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
10779     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10780       # If it failed, the variable was not from the command line. Ignore it,
10781       # but warn the user (except for BASH, which is always set by the calling BASH).
10782       if test "xWC" != xBASH; then
10783         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
10784 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
10785       fi
10786       # Try to locate tool using the code snippet
10787       for ac_prog in wc
10788 do
10789   # Extract the first word of "$ac_prog", so it can be a program name with args.
10790 set dummy $ac_prog; ac_word=$2
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10792 $as_echo_n "checking for $ac_word... " >&6; }
10793 if ${ac_cv_path_WC+:} false; then :
10794   $as_echo_n "(cached) " >&6
10795 else
10796   case $WC in
10797   [\\/]* | ?:[\\/]*)
10798   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10799   ;;
10800   *)
10801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10802 for as_dir in $PATH
10803 do
10804   IFS=$as_save_IFS
10805   test -z "$as_dir" && as_dir=.
10806     for ac_exec_ext in '' $ac_executable_extensions; do
10807   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10808     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10810     break 2
10811   fi
10812 done
10813   done
10814 IFS=$as_save_IFS
10815 
10816   ;;
10817 esac
10818 fi
10819 WC=$ac_cv_path_WC
10820 if test -n "$WC"; then
10821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10822 $as_echo "$WC" >&6; }
10823 else
10824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10825 $as_echo "no" >&6; }
10826 fi
10827 
10828 
10829   test -n "$WC" && break
10830 done
10831 
10832     else
10833       # If it succeeded, then it was overridden by the user. We will use it
10834       # for the tool.
10835 
10836       # First remove it from the list of overridden variables, so we can test
10837       # for unknown variables in the end.
10838       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10839 
10840       # Check if the provided tool contains a complete path.
10841       tool_specified="$WC"
10842       tool_basename="${tool_specified##*/}"
10843       if test "x$tool_basename" = "x$tool_specified"; then
10844         # A command without a complete path is provided, search $PATH.
10845         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
10846 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
10847         # Extract the first word of "$tool_basename", so it can be a program name with args.
10848 set dummy $tool_basename; ac_word=$2
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10850 $as_echo_n "checking for $ac_word... " >&6; }
10851 if ${ac_cv_path_WC+:} false; then :
10852   $as_echo_n "(cached) " >&6
10853 else
10854   case $WC in
10855   [\\/]* | ?:[\\/]*)
10856   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10857   ;;
10858   *)
10859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10860 for as_dir in $PATH
10861 do
10862   IFS=$as_save_IFS
10863   test -z "$as_dir" && as_dir=.
10864     for ac_exec_ext in '' $ac_executable_extensions; do
10865   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10866     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10868     break 2
10869   fi
10870 done
10871   done
10872 IFS=$as_save_IFS
10873 
10874   ;;
10875 esac
10876 fi
10877 WC=$ac_cv_path_WC
10878 if test -n "$WC"; then
10879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10880 $as_echo "$WC" >&6; }
10881 else
10882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10883 $as_echo "no" >&6; }
10884 fi
10885 
10886 
10887         if test "x$WC" = x; then
10888           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10889         fi
10890       else
10891         # Otherwise we believe it is a complete path. Use it as it is.
10892         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
10893 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
10894         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
10895 $as_echo_n "checking for WC... " >&6; }
10896         if test ! -x "$tool_specified"; then
10897           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10898 $as_echo "not found" >&6; }
10899           as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
10900         fi
10901         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10902 $as_echo "$tool_specified" >&6; }
10903       fi
10904     fi
10905   fi
10906 
10907 
10908 
10909   if test "x$WC" = x; then
10910     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
10911   fi
10912 
10913 
10914 
10915 
10916 
10917   # Publish this variable in the help.
10918 
10919 
10920   if test "x$WHICH" = x; then
10921     # The variable is not set by user, try to locate tool using the code snippet
10922     for ac_prog in which
10923 do
10924   # Extract the first word of "$ac_prog", so it can be a program name with args.
10925 set dummy $ac_prog; ac_word=$2
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10927 $as_echo_n "checking for $ac_word... " >&6; }
10928 if ${ac_cv_path_WHICH+:} false; then :
10929   $as_echo_n "(cached) " >&6
10930 else
10931   case $WHICH in
10932   [\\/]* | ?:[\\/]*)
10933   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
10934   ;;
10935   *)
10936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10937 for as_dir in $PATH
10938 do
10939   IFS=$as_save_IFS
10940   test -z "$as_dir" && as_dir=.
10941     for ac_exec_ext in '' $ac_executable_extensions; do
10942   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10943     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
10944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10945     break 2
10946   fi
10947 done
10948   done
10949 IFS=$as_save_IFS
10950 
10951   ;;
10952 esac
10953 fi
10954 WHICH=$ac_cv_path_WHICH
10955 if test -n "$WHICH"; then
10956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
10957 $as_echo "$WHICH" >&6; }
10958 else
10959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10960 $as_echo "no" >&6; }
10961 fi
10962 
10963 
10964   test -n "$WHICH" && break
10965 done
10966 
10967   else
10968     # The variable is set, but is it from the command line or the environment?
10969 
10970     # Try to remove the string !WHICH! from our list.
10971     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
10972     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10973       # If it failed, the variable was not from the command line. Ignore it,
10974       # but warn the user (except for BASH, which is always set by the calling BASH).
10975       if test "xWHICH" != xBASH; then
10976         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
10977 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
10978       fi
10979       # Try to locate tool using the code snippet
10980       for ac_prog in which
10981 do
10982   # Extract the first word of "$ac_prog", so it can be a program name with args.
10983 set dummy $ac_prog; ac_word=$2
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10985 $as_echo_n "checking for $ac_word... " >&6; }
10986 if ${ac_cv_path_WHICH+:} false; then :
10987   $as_echo_n "(cached) " >&6
10988 else
10989   case $WHICH in
10990   [\\/]* | ?:[\\/]*)
10991   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
10992   ;;
10993   *)
10994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10995 for as_dir in $PATH
10996 do
10997   IFS=$as_save_IFS
10998   test -z "$as_dir" && as_dir=.
10999     for ac_exec_ext in '' $ac_executable_extensions; do
11000   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11001     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11003     break 2
11004   fi
11005 done
11006   done
11007 IFS=$as_save_IFS
11008 
11009   ;;
11010 esac
11011 fi
11012 WHICH=$ac_cv_path_WHICH
11013 if test -n "$WHICH"; then
11014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11015 $as_echo "$WHICH" >&6; }
11016 else
11017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11018 $as_echo "no" >&6; }
11019 fi
11020 
11021 
11022   test -n "$WHICH" && break
11023 done
11024 
11025     else
11026       # If it succeeded, then it was overridden by the user. We will use it
11027       # for the tool.
11028 
11029       # First remove it from the list of overridden variables, so we can test
11030       # for unknown variables in the end.
11031       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11032 
11033       # Check if the provided tool contains a complete path.
11034       tool_specified="$WHICH"
11035       tool_basename="${tool_specified##*/}"
11036       if test "x$tool_basename" = "x$tool_specified"; then
11037         # A command without a complete path is provided, search $PATH.
11038         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
11039 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
11040         # Extract the first word of "$tool_basename", so it can be a program name with args.
11041 set dummy $tool_basename; ac_word=$2
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11043 $as_echo_n "checking for $ac_word... " >&6; }
11044 if ${ac_cv_path_WHICH+:} false; then :
11045   $as_echo_n "(cached) " >&6
11046 else
11047   case $WHICH in
11048   [\\/]* | ?:[\\/]*)
11049   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11050   ;;
11051   *)
11052   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11053 for as_dir in $PATH
11054 do
11055   IFS=$as_save_IFS
11056   test -z "$as_dir" && as_dir=.
11057     for ac_exec_ext in '' $ac_executable_extensions; do
11058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11059     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11061     break 2
11062   fi
11063 done
11064   done
11065 IFS=$as_save_IFS
11066 
11067   ;;
11068 esac
11069 fi
11070 WHICH=$ac_cv_path_WHICH
11071 if test -n "$WHICH"; then
11072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11073 $as_echo "$WHICH" >&6; }
11074 else
11075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11076 $as_echo "no" >&6; }
11077 fi
11078 
11079 
11080         if test "x$WHICH" = x; then
11081           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11082         fi
11083       else
11084         # Otherwise we believe it is a complete path. Use it as it is.
11085         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
11086 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
11087         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11088 $as_echo_n "checking for WHICH... " >&6; }
11089         if test ! -x "$tool_specified"; then
11090           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11091 $as_echo "not found" >&6; }
11092           as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
11093         fi
11094         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11095 $as_echo "$tool_specified" >&6; }
11096       fi
11097     fi
11098   fi
11099 
11100 
11101 
11102   if test "x$WHICH" = x; then
11103     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
11104   fi
11105 
11106 
11107 
11108 
11109 
11110   # Publish this variable in the help.
11111 
11112 
11113   if test "x$XARGS" = x; then
11114     # The variable is not set by user, try to locate tool using the code snippet
11115     for ac_prog in xargs
11116 do
11117   # Extract the first word of "$ac_prog", so it can be a program name with args.
11118 set dummy $ac_prog; ac_word=$2
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11120 $as_echo_n "checking for $ac_word... " >&6; }
11121 if ${ac_cv_path_XARGS+:} false; then :
11122   $as_echo_n "(cached) " >&6
11123 else
11124   case $XARGS in
11125   [\\/]* | ?:[\\/]*)
11126   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11127   ;;
11128   *)
11129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11130 for as_dir in $PATH
11131 do
11132   IFS=$as_save_IFS
11133   test -z "$as_dir" && as_dir=.
11134     for ac_exec_ext in '' $ac_executable_extensions; do
11135   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11136     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11138     break 2
11139   fi
11140 done
11141   done
11142 IFS=$as_save_IFS
11143 
11144   ;;
11145 esac
11146 fi
11147 XARGS=$ac_cv_path_XARGS
11148 if test -n "$XARGS"; then
11149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11150 $as_echo "$XARGS" >&6; }
11151 else
11152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11153 $as_echo "no" >&6; }
11154 fi
11155 
11156 
11157   test -n "$XARGS" && break
11158 done
11159 
11160   else
11161     # The variable is set, but is it from the command line or the environment?
11162 
11163     # Try to remove the string !XARGS! from our list.
11164     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
11165     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11166       # If it failed, the variable was not from the command line. Ignore it,
11167       # but warn the user (except for BASH, which is always set by the calling BASH).
11168       if test "xXARGS" != xBASH; then
11169         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
11170 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
11171       fi
11172       # Try to locate tool using the code snippet
11173       for ac_prog in xargs
11174 do
11175   # Extract the first word of "$ac_prog", so it can be a program name with args.
11176 set dummy $ac_prog; ac_word=$2
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11178 $as_echo_n "checking for $ac_word... " >&6; }
11179 if ${ac_cv_path_XARGS+:} false; then :
11180   $as_echo_n "(cached) " >&6
11181 else
11182   case $XARGS in
11183   [\\/]* | ?:[\\/]*)
11184   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11185   ;;
11186   *)
11187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11188 for as_dir in $PATH
11189 do
11190   IFS=$as_save_IFS
11191   test -z "$as_dir" && as_dir=.
11192     for ac_exec_ext in '' $ac_executable_extensions; do
11193   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11194     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11196     break 2
11197   fi
11198 done
11199   done
11200 IFS=$as_save_IFS
11201 
11202   ;;
11203 esac
11204 fi
11205 XARGS=$ac_cv_path_XARGS
11206 if test -n "$XARGS"; then
11207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11208 $as_echo "$XARGS" >&6; }
11209 else
11210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11211 $as_echo "no" >&6; }
11212 fi
11213 
11214 
11215   test -n "$XARGS" && break
11216 done
11217 
11218     else
11219       # If it succeeded, then it was overridden by the user. We will use it
11220       # for the tool.
11221 
11222       # First remove it from the list of overridden variables, so we can test
11223       # for unknown variables in the end.
11224       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11225 
11226       # Check if the provided tool contains a complete path.
11227       tool_specified="$XARGS"
11228       tool_basename="${tool_specified##*/}"
11229       if test "x$tool_basename" = "x$tool_specified"; then
11230         # A command without a complete path is provided, search $PATH.
11231         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
11232 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
11233         # Extract the first word of "$tool_basename", so it can be a program name with args.
11234 set dummy $tool_basename; ac_word=$2
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11236 $as_echo_n "checking for $ac_word... " >&6; }
11237 if ${ac_cv_path_XARGS+:} false; then :
11238   $as_echo_n "(cached) " >&6
11239 else
11240   case $XARGS in
11241   [\\/]* | ?:[\\/]*)
11242   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11243   ;;
11244   *)
11245   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11246 for as_dir in $PATH
11247 do
11248   IFS=$as_save_IFS
11249   test -z "$as_dir" && as_dir=.
11250     for ac_exec_ext in '' $ac_executable_extensions; do
11251   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11252     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11254     break 2
11255   fi
11256 done
11257   done
11258 IFS=$as_save_IFS
11259 
11260   ;;
11261 esac
11262 fi
11263 XARGS=$ac_cv_path_XARGS
11264 if test -n "$XARGS"; then
11265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11266 $as_echo "$XARGS" >&6; }
11267 else
11268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11269 $as_echo "no" >&6; }
11270 fi
11271 
11272 
11273         if test "x$XARGS" = x; then
11274           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11275         fi
11276       else
11277         # Otherwise we believe it is a complete path. Use it as it is.
11278         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
11279 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
11280         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
11281 $as_echo_n "checking for XARGS... " >&6; }
11282         if test ! -x "$tool_specified"; then
11283           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11284 $as_echo "not found" >&6; }
11285           as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
11286         fi
11287         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11288 $as_echo "$tool_specified" >&6; }
11289       fi
11290     fi
11291   fi
11292 
11293 
11294 
11295   if test "x$XARGS" = x; then
11296     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
11297   fi
11298 
11299 
11300 
11301   # Then required tools that require some special treatment.
11302 
11303 
11304   # Publish this variable in the help.
11305 
11306 
11307   if test "x$AWK" = x; then
11308     # The variable is not set by user, try to locate tool using the code snippet
11309     for ac_prog in gawk mawk nawk awk
11310 do
11311   # Extract the first word of "$ac_prog", so it can be a program name with args.
11312 set dummy $ac_prog; ac_word=$2
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11314 $as_echo_n "checking for $ac_word... " >&6; }
11315 if ${ac_cv_prog_AWK+:} false; then :
11316   $as_echo_n "(cached) " >&6
11317 else
11318   if test -n "$AWK"; then
11319   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11320 else
11321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11322 for as_dir in $PATH
11323 do
11324   IFS=$as_save_IFS
11325   test -z "$as_dir" && as_dir=.
11326     for ac_exec_ext in '' $ac_executable_extensions; do
11327   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11328     ac_cv_prog_AWK="$ac_prog"
11329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11330     break 2
11331   fi
11332 done
11333   done
11334 IFS=$as_save_IFS
11335 
11336 fi
11337 fi
11338 AWK=$ac_cv_prog_AWK
11339 if test -n "$AWK"; then
11340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11341 $as_echo "$AWK" >&6; }
11342 else
11343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11344 $as_echo "no" >&6; }
11345 fi
11346 
11347 
11348   test -n "$AWK" && break
11349 done
11350 
11351   else
11352     # The variable is set, but is it from the command line or the environment?
11353 
11354     # Try to remove the string !AWK! from our list.
11355     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
11356     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11357       # If it failed, the variable was not from the command line. Ignore it,
11358       # but warn the user (except for BASH, which is always set by the calling BASH).
11359       if test "xAWK" != xBASH; then
11360         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
11361 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
11362       fi
11363       # Try to locate tool using the code snippet
11364       for ac_prog in gawk mawk nawk awk
11365 do
11366   # Extract the first word of "$ac_prog", so it can be a program name with args.
11367 set dummy $ac_prog; ac_word=$2
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11369 $as_echo_n "checking for $ac_word... " >&6; }
11370 if ${ac_cv_prog_AWK+:} false; then :
11371   $as_echo_n "(cached) " >&6
11372 else
11373   if test -n "$AWK"; then
11374   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11375 else
11376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11377 for as_dir in $PATH
11378 do
11379   IFS=$as_save_IFS
11380   test -z "$as_dir" && as_dir=.
11381     for ac_exec_ext in '' $ac_executable_extensions; do
11382   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11383     ac_cv_prog_AWK="$ac_prog"
11384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11385     break 2
11386   fi
11387 done
11388   done
11389 IFS=$as_save_IFS
11390 
11391 fi
11392 fi
11393 AWK=$ac_cv_prog_AWK
11394 if test -n "$AWK"; then
11395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11396 $as_echo "$AWK" >&6; }
11397 else
11398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11399 $as_echo "no" >&6; }
11400 fi
11401 
11402 
11403   test -n "$AWK" && break
11404 done
11405 
11406     else
11407       # If it succeeded, then it was overridden by the user. We will use it
11408       # for the tool.
11409 
11410       # First remove it from the list of overridden variables, so we can test
11411       # for unknown variables in the end.
11412       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11413 
11414       # Check if the provided tool contains a complete path.
11415       tool_specified="$AWK"
11416       tool_basename="${tool_specified##*/}"
11417       if test "x$tool_basename" = "x$tool_specified"; then
11418         # A command without a complete path is provided, search $PATH.
11419         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
11420 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
11421         # Extract the first word of "$tool_basename", so it can be a program name with args.
11422 set dummy $tool_basename; ac_word=$2
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11424 $as_echo_n "checking for $ac_word... " >&6; }
11425 if ${ac_cv_path_AWK+:} false; then :
11426   $as_echo_n "(cached) " >&6
11427 else
11428   case $AWK in
11429   [\\/]* | ?:[\\/]*)
11430   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
11431   ;;
11432   *)
11433   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11434 for as_dir in $PATH
11435 do
11436   IFS=$as_save_IFS
11437   test -z "$as_dir" && as_dir=.
11438     for ac_exec_ext in '' $ac_executable_extensions; do
11439   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11440     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
11441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11442     break 2
11443   fi
11444 done
11445   done
11446 IFS=$as_save_IFS
11447 
11448   ;;
11449 esac
11450 fi
11451 AWK=$ac_cv_path_AWK
11452 if test -n "$AWK"; then
11453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11454 $as_echo "$AWK" >&6; }
11455 else
11456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11457 $as_echo "no" >&6; }
11458 fi
11459 
11460 
11461         if test "x$AWK" = x; then
11462           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11463         fi
11464       else
11465         # Otherwise we believe it is a complete path. Use it as it is.
11466         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
11467 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
11468         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
11469 $as_echo_n "checking for AWK... " >&6; }
11470         if test ! -x "$tool_specified"; then
11471           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11472 $as_echo "not found" >&6; }
11473           as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
11474         fi
11475         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11476 $as_echo "$tool_specified" >&6; }
11477       fi
11478     fi
11479   fi
11480 
11481 
11482   if test "x$AWK" = x; then
11483     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
11484   fi
11485 
11486 
11487 
11488 
11489   # Publish this variable in the help.
11490 
11491 
11492   if test "x$GREP" = x; then
11493     # The variable is not set by user, try to locate tool using the code snippet
11494     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11495 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11496 if ${ac_cv_path_GREP+:} false; then :
11497   $as_echo_n "(cached) " >&6
11498 else
11499   if test -z "$GREP"; then
11500   ac_path_GREP_found=false
11501   # Loop through the user's path and test for each of PROGNAME-LIST
11502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11503 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11504 do
11505   IFS=$as_save_IFS
11506   test -z "$as_dir" && as_dir=.
11507     for ac_prog in grep ggrep; do
11508     for ac_exec_ext in '' $ac_executable_extensions; do
11509       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11510       as_fn_executable_p "$ac_path_GREP" || continue
11511 # Check for GNU ac_path_GREP and select it if it is found.
11512   # Check for GNU $ac_path_GREP
11513 case `"$ac_path_GREP" --version 2>&1` in
11514 *GNU*)
11515   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11516 *)
11517   ac_count=0
11518   $as_echo_n 0123456789 >"conftest.in"
11519   while :
11520   do
11521     cat "conftest.in" "conftest.in" >"conftest.tmp"
11522     mv "conftest.tmp" "conftest.in"
11523     cp "conftest.in" "conftest.nl"
11524     $as_echo 'GREP' >> "conftest.nl"
11525     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11526     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11527     as_fn_arith $ac_count + 1 && ac_count=$as_val
11528     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11529       # Best one so far, save it but keep looking for a better one
11530       ac_cv_path_GREP="$ac_path_GREP"
11531       ac_path_GREP_max=$ac_count
11532     fi
11533     # 10*(2^10) chars as input seems more than enough
11534     test $ac_count -gt 10 && break
11535   done
11536   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11537 esac
11538 
11539       $ac_path_GREP_found && break 3
11540     done
11541   done
11542   done
11543 IFS=$as_save_IFS
11544   if test -z "$ac_cv_path_GREP"; then
11545     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11546   fi
11547 else
11548   ac_cv_path_GREP=$GREP
11549 fi
11550 
11551 fi
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11553 $as_echo "$ac_cv_path_GREP" >&6; }
11554  GREP="$ac_cv_path_GREP"
11555 
11556 
11557   else
11558     # The variable is set, but is it from the command line or the environment?
11559 
11560     # Try to remove the string !GREP! from our list.
11561     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
11562     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11563       # If it failed, the variable was not from the command line. Ignore it,
11564       # but warn the user (except for BASH, which is always set by the calling BASH).
11565       if test "xGREP" != xBASH; then
11566         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
11567 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
11568       fi
11569       # Try to locate tool using the code snippet
11570       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11571 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11572 if ${ac_cv_path_GREP+:} false; then :
11573   $as_echo_n "(cached) " >&6
11574 else
11575   if test -z "$GREP"; then
11576   ac_path_GREP_found=false
11577   # Loop through the user's path and test for each of PROGNAME-LIST
11578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11579 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11580 do
11581   IFS=$as_save_IFS
11582   test -z "$as_dir" && as_dir=.
11583     for ac_prog in grep ggrep; do
11584     for ac_exec_ext in '' $ac_executable_extensions; do
11585       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11586       as_fn_executable_p "$ac_path_GREP" || continue
11587 # Check for GNU ac_path_GREP and select it if it is found.
11588   # Check for GNU $ac_path_GREP
11589 case `"$ac_path_GREP" --version 2>&1` in
11590 *GNU*)
11591   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11592 *)
11593   ac_count=0
11594   $as_echo_n 0123456789 >"conftest.in"
11595   while :
11596   do
11597     cat "conftest.in" "conftest.in" >"conftest.tmp"
11598     mv "conftest.tmp" "conftest.in"
11599     cp "conftest.in" "conftest.nl"
11600     $as_echo 'GREP' >> "conftest.nl"
11601     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11602     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11603     as_fn_arith $ac_count + 1 && ac_count=$as_val
11604     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11605       # Best one so far, save it but keep looking for a better one
11606       ac_cv_path_GREP="$ac_path_GREP"
11607       ac_path_GREP_max=$ac_count
11608     fi
11609     # 10*(2^10) chars as input seems more than enough
11610     test $ac_count -gt 10 && break
11611   done
11612   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11613 esac
11614 
11615       $ac_path_GREP_found && break 3
11616     done
11617   done
11618   done
11619 IFS=$as_save_IFS
11620   if test -z "$ac_cv_path_GREP"; then
11621     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11622   fi
11623 else
11624   ac_cv_path_GREP=$GREP
11625 fi
11626 
11627 fi
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11629 $as_echo "$ac_cv_path_GREP" >&6; }
11630  GREP="$ac_cv_path_GREP"
11631 
11632 
11633     else
11634       # If it succeeded, then it was overridden by the user. We will use it
11635       # for the tool.
11636 
11637       # First remove it from the list of overridden variables, so we can test
11638       # for unknown variables in the end.
11639       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11640 
11641       # Check if the provided tool contains a complete path.
11642       tool_specified="$GREP"
11643       tool_basename="${tool_specified##*/}"
11644       if test "x$tool_basename" = "x$tool_specified"; then
11645         # A command without a complete path is provided, search $PATH.
11646         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
11647 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
11648         # Extract the first word of "$tool_basename", so it can be a program name with args.
11649 set dummy $tool_basename; ac_word=$2
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11651 $as_echo_n "checking for $ac_word... " >&6; }
11652 if ${ac_cv_path_GREP+:} false; then :
11653   $as_echo_n "(cached) " >&6
11654 else
11655   case $GREP in
11656   [\\/]* | ?:[\\/]*)
11657   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
11658   ;;
11659   *)
11660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11661 for as_dir in $PATH
11662 do
11663   IFS=$as_save_IFS
11664   test -z "$as_dir" && as_dir=.
11665     for ac_exec_ext in '' $ac_executable_extensions; do
11666   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11667     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
11668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11669     break 2
11670   fi
11671 done
11672   done
11673 IFS=$as_save_IFS
11674 
11675   ;;
11676 esac
11677 fi
11678 GREP=$ac_cv_path_GREP
11679 if test -n "$GREP"; then
11680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
11681 $as_echo "$GREP" >&6; }
11682 else
11683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11684 $as_echo "no" >&6; }
11685 fi
11686 
11687 
11688         if test "x$GREP" = x; then
11689           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11690         fi
11691       else
11692         # Otherwise we believe it is a complete path. Use it as it is.
11693         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
11694 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
11695         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
11696 $as_echo_n "checking for GREP... " >&6; }
11697         if test ! -x "$tool_specified"; then
11698           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11699 $as_echo "not found" >&6; }
11700           as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
11701         fi
11702         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11703 $as_echo "$tool_specified" >&6; }
11704       fi
11705     fi
11706   fi
11707 
11708 
11709   if test "x$GREP" = x; then
11710     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
11711   fi
11712 
11713 
11714 
11715 
11716   # Publish this variable in the help.
11717 
11718 
11719   if test "x$EGREP" = x; then
11720     # The variable is not set by user, try to locate tool using the code snippet
11721     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11722 $as_echo_n "checking for egrep... " >&6; }
11723 if ${ac_cv_path_EGREP+:} false; then :
11724   $as_echo_n "(cached) " >&6
11725 else
11726   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11727    then ac_cv_path_EGREP="$GREP -E"
11728    else
11729      if test -z "$EGREP"; then
11730   ac_path_EGREP_found=false
11731   # Loop through the user's path and test for each of PROGNAME-LIST
11732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11733 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11734 do
11735   IFS=$as_save_IFS
11736   test -z "$as_dir" && as_dir=.
11737     for ac_prog in egrep; do
11738     for ac_exec_ext in '' $ac_executable_extensions; do
11739       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11740       as_fn_executable_p "$ac_path_EGREP" || continue
11741 # Check for GNU ac_path_EGREP and select it if it is found.
11742   # Check for GNU $ac_path_EGREP
11743 case `"$ac_path_EGREP" --version 2>&1` in
11744 *GNU*)
11745   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11746 *)
11747   ac_count=0
11748   $as_echo_n 0123456789 >"conftest.in"
11749   while :
11750   do
11751     cat "conftest.in" "conftest.in" >"conftest.tmp"
11752     mv "conftest.tmp" "conftest.in"
11753     cp "conftest.in" "conftest.nl"
11754     $as_echo 'EGREP' >> "conftest.nl"
11755     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11756     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11757     as_fn_arith $ac_count + 1 && ac_count=$as_val
11758     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11759       # Best one so far, save it but keep looking for a better one
11760       ac_cv_path_EGREP="$ac_path_EGREP"
11761       ac_path_EGREP_max=$ac_count
11762     fi
11763     # 10*(2^10) chars as input seems more than enough
11764     test $ac_count -gt 10 && break
11765   done
11766   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11767 esac
11768 
11769       $ac_path_EGREP_found && break 3
11770     done
11771   done
11772   done
11773 IFS=$as_save_IFS
11774   if test -z "$ac_cv_path_EGREP"; then
11775     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11776   fi
11777 else
11778   ac_cv_path_EGREP=$EGREP
11779 fi
11780 
11781    fi
11782 fi
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11784 $as_echo "$ac_cv_path_EGREP" >&6; }
11785  EGREP="$ac_cv_path_EGREP"
11786 
11787 
11788   else
11789     # The variable is set, but is it from the command line or the environment?
11790 
11791     # Try to remove the string !EGREP! from our list.
11792     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
11793     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11794       # If it failed, the variable was not from the command line. Ignore it,
11795       # but warn the user (except for BASH, which is always set by the calling BASH).
11796       if test "xEGREP" != xBASH; then
11797         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
11798 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
11799       fi
11800       # Try to locate tool using the code snippet
11801       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11802 $as_echo_n "checking for egrep... " >&6; }
11803 if ${ac_cv_path_EGREP+:} false; then :
11804   $as_echo_n "(cached) " >&6
11805 else
11806   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11807    then ac_cv_path_EGREP="$GREP -E"
11808    else
11809      if test -z "$EGREP"; then
11810   ac_path_EGREP_found=false
11811   # Loop through the user's path and test for each of PROGNAME-LIST
11812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11813 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11814 do
11815   IFS=$as_save_IFS
11816   test -z "$as_dir" && as_dir=.
11817     for ac_prog in egrep; do
11818     for ac_exec_ext in '' $ac_executable_extensions; do
11819       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11820       as_fn_executable_p "$ac_path_EGREP" || continue
11821 # Check for GNU ac_path_EGREP and select it if it is found.
11822   # Check for GNU $ac_path_EGREP
11823 case `"$ac_path_EGREP" --version 2>&1` in
11824 *GNU*)
11825   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11826 *)
11827   ac_count=0
11828   $as_echo_n 0123456789 >"conftest.in"
11829   while :
11830   do
11831     cat "conftest.in" "conftest.in" >"conftest.tmp"
11832     mv "conftest.tmp" "conftest.in"
11833     cp "conftest.in" "conftest.nl"
11834     $as_echo 'EGREP' >> "conftest.nl"
11835     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11836     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11837     as_fn_arith $ac_count + 1 && ac_count=$as_val
11838     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11839       # Best one so far, save it but keep looking for a better one
11840       ac_cv_path_EGREP="$ac_path_EGREP"
11841       ac_path_EGREP_max=$ac_count
11842     fi
11843     # 10*(2^10) chars as input seems more than enough
11844     test $ac_count -gt 10 && break
11845   done
11846   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11847 esac
11848 
11849       $ac_path_EGREP_found && break 3
11850     done
11851   done
11852   done
11853 IFS=$as_save_IFS
11854   if test -z "$ac_cv_path_EGREP"; then
11855     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11856   fi
11857 else
11858   ac_cv_path_EGREP=$EGREP
11859 fi
11860 
11861    fi
11862 fi
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11864 $as_echo "$ac_cv_path_EGREP" >&6; }
11865  EGREP="$ac_cv_path_EGREP"
11866 
11867 
11868     else
11869       # If it succeeded, then it was overridden by the user. We will use it
11870       # for the tool.
11871 
11872       # First remove it from the list of overridden variables, so we can test
11873       # for unknown variables in the end.
11874       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11875 
11876       # Check if the provided tool contains a complete path.
11877       tool_specified="$EGREP"
11878       tool_basename="${tool_specified##*/}"
11879       if test "x$tool_basename" = "x$tool_specified"; then
11880         # A command without a complete path is provided, search $PATH.
11881         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
11882 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
11883         # Extract the first word of "$tool_basename", so it can be a program name with args.
11884 set dummy $tool_basename; ac_word=$2
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11886 $as_echo_n "checking for $ac_word... " >&6; }
11887 if ${ac_cv_path_EGREP+:} false; then :
11888   $as_echo_n "(cached) " >&6
11889 else
11890   case $EGREP in
11891   [\\/]* | ?:[\\/]*)
11892   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
11893   ;;
11894   *)
11895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11896 for as_dir in $PATH
11897 do
11898   IFS=$as_save_IFS
11899   test -z "$as_dir" && as_dir=.
11900     for ac_exec_ext in '' $ac_executable_extensions; do
11901   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11902     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
11903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11904     break 2
11905   fi
11906 done
11907   done
11908 IFS=$as_save_IFS
11909 
11910   ;;
11911 esac
11912 fi
11913 EGREP=$ac_cv_path_EGREP
11914 if test -n "$EGREP"; then
11915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
11916 $as_echo "$EGREP" >&6; }
11917 else
11918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11919 $as_echo "no" >&6; }
11920 fi
11921 
11922 
11923         if test "x$EGREP" = x; then
11924           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11925         fi
11926       else
11927         # Otherwise we believe it is a complete path. Use it as it is.
11928         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
11929 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
11930         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
11931 $as_echo_n "checking for EGREP... " >&6; }
11932         if test ! -x "$tool_specified"; then
11933           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11934 $as_echo "not found" >&6; }
11935           as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
11936         fi
11937         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11938 $as_echo "$tool_specified" >&6; }
11939       fi
11940     fi
11941   fi
11942 
11943 
11944   if test "x$EGREP" = x; then
11945     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
11946   fi
11947 
11948 
11949 
11950 
11951   # Publish this variable in the help.
11952 
11953 
11954   if test "x$FGREP" = x; then
11955     # The variable is not set by user, try to locate tool using the code snippet
11956     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11957 $as_echo_n "checking for fgrep... " >&6; }
11958 if ${ac_cv_path_FGREP+:} false; then :
11959   $as_echo_n "(cached) " >&6
11960 else
11961   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11962    then ac_cv_path_FGREP="$GREP -F"
11963    else
11964      if test -z "$FGREP"; then
11965   ac_path_FGREP_found=false
11966   # Loop through the user's path and test for each of PROGNAME-LIST
11967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11968 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11969 do
11970   IFS=$as_save_IFS
11971   test -z "$as_dir" && as_dir=.
11972     for ac_prog in fgrep; do
11973     for ac_exec_ext in '' $ac_executable_extensions; do
11974       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11975       as_fn_executable_p "$ac_path_FGREP" || continue
11976 # Check for GNU ac_path_FGREP and select it if it is found.
11977   # Check for GNU $ac_path_FGREP
11978 case `"$ac_path_FGREP" --version 2>&1` in
11979 *GNU*)
11980   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11981 *)
11982   ac_count=0
11983   $as_echo_n 0123456789 >"conftest.in"
11984   while :
11985   do
11986     cat "conftest.in" "conftest.in" >"conftest.tmp"
11987     mv "conftest.tmp" "conftest.in"
11988     cp "conftest.in" "conftest.nl"
11989     $as_echo 'FGREP' >> "conftest.nl"
11990     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11991     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11992     as_fn_arith $ac_count + 1 && ac_count=$as_val
11993     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11994       # Best one so far, save it but keep looking for a better one
11995       ac_cv_path_FGREP="$ac_path_FGREP"
11996       ac_path_FGREP_max=$ac_count
11997     fi
11998     # 10*(2^10) chars as input seems more than enough
11999     test $ac_count -gt 10 && break
12000   done
12001   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12002 esac
12003 
12004       $ac_path_FGREP_found && break 3
12005     done
12006   done
12007   done
12008 IFS=$as_save_IFS
12009   if test -z "$ac_cv_path_FGREP"; then
12010     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12011   fi
12012 else
12013   ac_cv_path_FGREP=$FGREP
12014 fi
12015 
12016    fi
12017 fi
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12019 $as_echo "$ac_cv_path_FGREP" >&6; }
12020  FGREP="$ac_cv_path_FGREP"
12021 
12022 
12023   else
12024     # The variable is set, but is it from the command line or the environment?
12025 
12026     # Try to remove the string !FGREP! from our list.
12027     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
12028     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12029       # If it failed, the variable was not from the command line. Ignore it,
12030       # but warn the user (except for BASH, which is always set by the calling BASH).
12031       if test "xFGREP" != xBASH; then
12032         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
12033 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
12034       fi
12035       # Try to locate tool using the code snippet
12036       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12037 $as_echo_n "checking for fgrep... " >&6; }
12038 if ${ac_cv_path_FGREP+:} false; then :
12039   $as_echo_n "(cached) " >&6
12040 else
12041   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12042    then ac_cv_path_FGREP="$GREP -F"
12043    else
12044      if test -z "$FGREP"; then
12045   ac_path_FGREP_found=false
12046   # Loop through the user's path and test for each of PROGNAME-LIST
12047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12048 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12049 do
12050   IFS=$as_save_IFS
12051   test -z "$as_dir" && as_dir=.
12052     for ac_prog in fgrep; do
12053     for ac_exec_ext in '' $ac_executable_extensions; do
12054       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12055       as_fn_executable_p "$ac_path_FGREP" || continue
12056 # Check for GNU ac_path_FGREP and select it if it is found.
12057   # Check for GNU $ac_path_FGREP
12058 case `"$ac_path_FGREP" --version 2>&1` in
12059 *GNU*)
12060   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12061 *)
12062   ac_count=0
12063   $as_echo_n 0123456789 >"conftest.in"
12064   while :
12065   do
12066     cat "conftest.in" "conftest.in" >"conftest.tmp"
12067     mv "conftest.tmp" "conftest.in"
12068     cp "conftest.in" "conftest.nl"
12069     $as_echo 'FGREP' >> "conftest.nl"
12070     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12071     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12072     as_fn_arith $ac_count + 1 && ac_count=$as_val
12073     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12074       # Best one so far, save it but keep looking for a better one
12075       ac_cv_path_FGREP="$ac_path_FGREP"
12076       ac_path_FGREP_max=$ac_count
12077     fi
12078     # 10*(2^10) chars as input seems more than enough
12079     test $ac_count -gt 10 && break
12080   done
12081   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12082 esac
12083 
12084       $ac_path_FGREP_found && break 3
12085     done
12086   done
12087   done
12088 IFS=$as_save_IFS
12089   if test -z "$ac_cv_path_FGREP"; then
12090     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12091   fi
12092 else
12093   ac_cv_path_FGREP=$FGREP
12094 fi
12095 
12096    fi
12097 fi
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12099 $as_echo "$ac_cv_path_FGREP" >&6; }
12100  FGREP="$ac_cv_path_FGREP"
12101 
12102 
12103     else
12104       # If it succeeded, then it was overridden by the user. We will use it
12105       # for the tool.
12106 
12107       # First remove it from the list of overridden variables, so we can test
12108       # for unknown variables in the end.
12109       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12110 
12111       # Check if the provided tool contains a complete path.
12112       tool_specified="$FGREP"
12113       tool_basename="${tool_specified##*/}"
12114       if test "x$tool_basename" = "x$tool_specified"; then
12115         # A command without a complete path is provided, search $PATH.
12116         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
12117 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
12118         # Extract the first word of "$tool_basename", so it can be a program name with args.
12119 set dummy $tool_basename; ac_word=$2
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12121 $as_echo_n "checking for $ac_word... " >&6; }
12122 if ${ac_cv_path_FGREP+:} false; then :
12123   $as_echo_n "(cached) " >&6
12124 else
12125   case $FGREP in
12126   [\\/]* | ?:[\\/]*)
12127   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
12128   ;;
12129   *)
12130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12131 for as_dir in $PATH
12132 do
12133   IFS=$as_save_IFS
12134   test -z "$as_dir" && as_dir=.
12135     for ac_exec_ext in '' $ac_executable_extensions; do
12136   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12137     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
12138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12139     break 2
12140   fi
12141 done
12142   done
12143 IFS=$as_save_IFS
12144 
12145   ;;
12146 esac
12147 fi
12148 FGREP=$ac_cv_path_FGREP
12149 if test -n "$FGREP"; then
12150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
12151 $as_echo "$FGREP" >&6; }
12152 else
12153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12154 $as_echo "no" >&6; }
12155 fi
12156 
12157 
12158         if test "x$FGREP" = x; then
12159           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12160         fi
12161       else
12162         # Otherwise we believe it is a complete path. Use it as it is.
12163         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
12164 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
12165         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
12166 $as_echo_n "checking for FGREP... " >&6; }
12167         if test ! -x "$tool_specified"; then
12168           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12169 $as_echo "not found" >&6; }
12170           as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12171         fi
12172         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12173 $as_echo "$tool_specified" >&6; }
12174       fi
12175     fi
12176   fi
12177 
12178 
12179   if test "x$FGREP" = x; then
12180     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
12181   fi
12182 
12183 
12184 
12185 
12186   # Publish this variable in the help.
12187 
12188 
12189   if test "x$SED" = x; then
12190     # The variable is not set by user, try to locate tool using the code snippet
12191     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12192 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12193 if ${ac_cv_path_SED+:} false; then :
12194   $as_echo_n "(cached) " >&6
12195 else
12196             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12197      for ac_i in 1 2 3 4 5 6 7; do
12198        ac_script="$ac_script$as_nl$ac_script"
12199      done
12200      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12201      { ac_script=; unset ac_script;}
12202      if test -z "$SED"; then
12203   ac_path_SED_found=false
12204   # Loop through the user's path and test for each of PROGNAME-LIST
12205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12206 for as_dir in $PATH
12207 do
12208   IFS=$as_save_IFS
12209   test -z "$as_dir" && as_dir=.
12210     for ac_prog in sed gsed; do
12211     for ac_exec_ext in '' $ac_executable_extensions; do
12212       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12213       as_fn_executable_p "$ac_path_SED" || continue
12214 # Check for GNU ac_path_SED and select it if it is found.
12215   # Check for GNU $ac_path_SED
12216 case `"$ac_path_SED" --version 2>&1` in
12217 *GNU*)
12218   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12219 *)
12220   ac_count=0
12221   $as_echo_n 0123456789 >"conftest.in"
12222   while :
12223   do
12224     cat "conftest.in" "conftest.in" >"conftest.tmp"
12225     mv "conftest.tmp" "conftest.in"
12226     cp "conftest.in" "conftest.nl"
12227     $as_echo '' >> "conftest.nl"
12228     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12229     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12230     as_fn_arith $ac_count + 1 && ac_count=$as_val
12231     if test $ac_count -gt ${ac_path_SED_max-0}; then
12232       # Best one so far, save it but keep looking for a better one
12233       ac_cv_path_SED="$ac_path_SED"
12234       ac_path_SED_max=$ac_count
12235     fi
12236     # 10*(2^10) chars as input seems more than enough
12237     test $ac_count -gt 10 && break
12238   done
12239   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12240 esac
12241 
12242       $ac_path_SED_found && break 3
12243     done
12244   done
12245   done
12246 IFS=$as_save_IFS
12247   if test -z "$ac_cv_path_SED"; then
12248     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12249   fi
12250 else
12251   ac_cv_path_SED=$SED
12252 fi
12253 
12254 fi
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12256 $as_echo "$ac_cv_path_SED" >&6; }
12257  SED="$ac_cv_path_SED"
12258   rm -f conftest.sed
12259 
12260   else
12261     # The variable is set, but is it from the command line or the environment?
12262 
12263     # Try to remove the string !SED! from our list.
12264     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
12265     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12266       # If it failed, the variable was not from the command line. Ignore it,
12267       # but warn the user (except for BASH, which is always set by the calling BASH).
12268       if test "xSED" != xBASH; then
12269         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
12270 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
12271       fi
12272       # Try to locate tool using the code snippet
12273       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12274 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12275 if ${ac_cv_path_SED+:} false; then :
12276   $as_echo_n "(cached) " >&6
12277 else
12278             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12279      for ac_i in 1 2 3 4 5 6 7; do
12280        ac_script="$ac_script$as_nl$ac_script"
12281      done
12282      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12283      { ac_script=; unset ac_script;}
12284      if test -z "$SED"; then
12285   ac_path_SED_found=false
12286   # Loop through the user's path and test for each of PROGNAME-LIST
12287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12288 for as_dir in $PATH
12289 do
12290   IFS=$as_save_IFS
12291   test -z "$as_dir" && as_dir=.
12292     for ac_prog in sed gsed; do
12293     for ac_exec_ext in '' $ac_executable_extensions; do
12294       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12295       as_fn_executable_p "$ac_path_SED" || continue
12296 # Check for GNU ac_path_SED and select it if it is found.
12297   # Check for GNU $ac_path_SED
12298 case `"$ac_path_SED" --version 2>&1` in
12299 *GNU*)
12300   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12301 *)
12302   ac_count=0
12303   $as_echo_n 0123456789 >"conftest.in"
12304   while :
12305   do
12306     cat "conftest.in" "conftest.in" >"conftest.tmp"
12307     mv "conftest.tmp" "conftest.in"
12308     cp "conftest.in" "conftest.nl"
12309     $as_echo '' >> "conftest.nl"
12310     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12311     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12312     as_fn_arith $ac_count + 1 && ac_count=$as_val
12313     if test $ac_count -gt ${ac_path_SED_max-0}; then
12314       # Best one so far, save it but keep looking for a better one
12315       ac_cv_path_SED="$ac_path_SED"
12316       ac_path_SED_max=$ac_count
12317     fi
12318     # 10*(2^10) chars as input seems more than enough
12319     test $ac_count -gt 10 && break
12320   done
12321   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12322 esac
12323 
12324       $ac_path_SED_found && break 3
12325     done
12326   done
12327   done
12328 IFS=$as_save_IFS
12329   if test -z "$ac_cv_path_SED"; then
12330     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12331   fi
12332 else
12333   ac_cv_path_SED=$SED
12334 fi
12335 
12336 fi
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12338 $as_echo "$ac_cv_path_SED" >&6; }
12339  SED="$ac_cv_path_SED"
12340   rm -f conftest.sed
12341 
12342     else
12343       # If it succeeded, then it was overridden by the user. We will use it
12344       # for the tool.
12345 
12346       # First remove it from the list of overridden variables, so we can test
12347       # for unknown variables in the end.
12348       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12349 
12350       # Check if the provided tool contains a complete path.
12351       tool_specified="$SED"
12352       tool_basename="${tool_specified##*/}"
12353       if test "x$tool_basename" = "x$tool_specified"; then
12354         # A command without a complete path is provided, search $PATH.
12355         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
12356 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
12357         # Extract the first word of "$tool_basename", so it can be a program name with args.
12358 set dummy $tool_basename; ac_word=$2
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12360 $as_echo_n "checking for $ac_word... " >&6; }
12361 if ${ac_cv_path_SED+:} false; then :
12362   $as_echo_n "(cached) " >&6
12363 else
12364   case $SED in
12365   [\\/]* | ?:[\\/]*)
12366   ac_cv_path_SED="$SED" # Let the user override the test with a path.
12367   ;;
12368   *)
12369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12370 for as_dir in $PATH
12371 do
12372   IFS=$as_save_IFS
12373   test -z "$as_dir" && as_dir=.
12374     for ac_exec_ext in '' $ac_executable_extensions; do
12375   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12376     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12378     break 2
12379   fi
12380 done
12381   done
12382 IFS=$as_save_IFS
12383 
12384   ;;
12385 esac
12386 fi
12387 SED=$ac_cv_path_SED
12388 if test -n "$SED"; then
12389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12390 $as_echo "$SED" >&6; }
12391 else
12392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12393 $as_echo "no" >&6; }
12394 fi
12395 
12396 
12397         if test "x$SED" = x; then
12398           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12399         fi
12400       else
12401         # Otherwise we believe it is a complete path. Use it as it is.
12402         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
12403 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
12404         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
12405 $as_echo_n "checking for SED... " >&6; }
12406         if test ! -x "$tool_specified"; then
12407           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12408 $as_echo "not found" >&6; }
12409           as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
12410         fi
12411         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12412 $as_echo "$tool_specified" >&6; }
12413       fi
12414     fi
12415   fi
12416 
12417 
12418   if test "x$SED" = x; then
12419     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
12420   fi
12421 
12422 
12423 
12424   # Always force rm.
12425   RM="$RM -f"
12426 
12427   # pwd behaves differently on various platforms and some don't support the -L flag.
12428   # Always use the bash builtin pwd to get uniform behavior.
12429   THEPWDCMD=pwd
12430 
12431   # These are not required on all platforms
12432 
12433 
12434   # Publish this variable in the help.
12435 
12436 
12437   if test "x$CYGPATH" = x; then
12438     # The variable is not set by user, try to locate tool using the code snippet
12439     for ac_prog in cygpath
12440 do
12441   # Extract the first word of "$ac_prog", so it can be a program name with args.
12442 set dummy $ac_prog; ac_word=$2
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12444 $as_echo_n "checking for $ac_word... " >&6; }
12445 if ${ac_cv_path_CYGPATH+:} false; then :
12446   $as_echo_n "(cached) " >&6
12447 else
12448   case $CYGPATH in
12449   [\\/]* | ?:[\\/]*)
12450   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12451   ;;
12452   *)
12453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12454 for as_dir in $PATH
12455 do
12456   IFS=$as_save_IFS
12457   test -z "$as_dir" && as_dir=.
12458     for ac_exec_ext in '' $ac_executable_extensions; do
12459   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12460     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12462     break 2
12463   fi
12464 done
12465   done
12466 IFS=$as_save_IFS
12467 
12468   ;;
12469 esac
12470 fi
12471 CYGPATH=$ac_cv_path_CYGPATH
12472 if test -n "$CYGPATH"; then
12473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12474 $as_echo "$CYGPATH" >&6; }
12475 else
12476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12477 $as_echo "no" >&6; }
12478 fi
12479 
12480 
12481   test -n "$CYGPATH" && break
12482 done
12483 
12484   else
12485     # The variable is set, but is it from the command line or the environment?
12486 
12487     # Try to remove the string !CYGPATH! from our list.
12488     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
12489     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12490       # If it failed, the variable was not from the command line. Ignore it,
12491       # but warn the user (except for BASH, which is always set by the calling BASH).
12492       if test "xCYGPATH" != xBASH; then
12493         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
12494 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
12495       fi
12496       # Try to locate tool using the code snippet
12497       for ac_prog in cygpath
12498 do
12499   # Extract the first word of "$ac_prog", so it can be a program name with args.
12500 set dummy $ac_prog; ac_word=$2
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12502 $as_echo_n "checking for $ac_word... " >&6; }
12503 if ${ac_cv_path_CYGPATH+:} false; then :
12504   $as_echo_n "(cached) " >&6
12505 else
12506   case $CYGPATH in
12507   [\\/]* | ?:[\\/]*)
12508   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12509   ;;
12510   *)
12511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12512 for as_dir in $PATH
12513 do
12514   IFS=$as_save_IFS
12515   test -z "$as_dir" && as_dir=.
12516     for ac_exec_ext in '' $ac_executable_extensions; do
12517   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12518     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12520     break 2
12521   fi
12522 done
12523   done
12524 IFS=$as_save_IFS
12525 
12526   ;;
12527 esac
12528 fi
12529 CYGPATH=$ac_cv_path_CYGPATH
12530 if test -n "$CYGPATH"; then
12531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12532 $as_echo "$CYGPATH" >&6; }
12533 else
12534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12535 $as_echo "no" >&6; }
12536 fi
12537 
12538 
12539   test -n "$CYGPATH" && break
12540 done
12541 
12542     else
12543       # If it succeeded, then it was overridden by the user. We will use it
12544       # for the tool.
12545 
12546       # First remove it from the list of overridden variables, so we can test
12547       # for unknown variables in the end.
12548       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12549 
12550       # Check if the provided tool contains a complete path.
12551       tool_specified="$CYGPATH"
12552       tool_basename="${tool_specified##*/}"
12553       if test "x$tool_basename" = "x$tool_specified"; then
12554         # A command without a complete path is provided, search $PATH.
12555         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
12556 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
12557         # Extract the first word of "$tool_basename", so it can be a program name with args.
12558 set dummy $tool_basename; ac_word=$2
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12560 $as_echo_n "checking for $ac_word... " >&6; }
12561 if ${ac_cv_path_CYGPATH+:} false; then :
12562   $as_echo_n "(cached) " >&6
12563 else
12564   case $CYGPATH in
12565   [\\/]* | ?:[\\/]*)
12566   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12567   ;;
12568   *)
12569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12570 for as_dir in $PATH
12571 do
12572   IFS=$as_save_IFS
12573   test -z "$as_dir" && as_dir=.
12574     for ac_exec_ext in '' $ac_executable_extensions; do
12575   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12576     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12578     break 2
12579   fi
12580 done
12581   done
12582 IFS=$as_save_IFS
12583 
12584   ;;
12585 esac
12586 fi
12587 CYGPATH=$ac_cv_path_CYGPATH
12588 if test -n "$CYGPATH"; then
12589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12590 $as_echo "$CYGPATH" >&6; }
12591 else
12592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12593 $as_echo "no" >&6; }
12594 fi
12595 
12596 
12597         if test "x$CYGPATH" = x; then
12598           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12599         fi
12600       else
12601         # Otherwise we believe it is a complete path. Use it as it is.
12602         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
12603 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
12604         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
12605 $as_echo_n "checking for CYGPATH... " >&6; }
12606         if test ! -x "$tool_specified"; then
12607           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12608 $as_echo "not found" >&6; }
12609           as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
12610         fi
12611         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12612 $as_echo "$tool_specified" >&6; }
12613       fi
12614     fi
12615   fi
12616 
12617 
12618 
12619 
12620   # Publish this variable in the help.
12621 
12622 
12623   if test "x$READLINK" = x; then
12624     # The variable is not set by user, try to locate tool using the code snippet
12625     for ac_prog in greadlink readlink
12626 do
12627   # Extract the first word of "$ac_prog", so it can be a program name with args.
12628 set dummy $ac_prog; ac_word=$2
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12630 $as_echo_n "checking for $ac_word... " >&6; }
12631 if ${ac_cv_path_READLINK+:} false; then :
12632   $as_echo_n "(cached) " >&6
12633 else
12634   case $READLINK in
12635   [\\/]* | ?:[\\/]*)
12636   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12637   ;;
12638   *)
12639   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12640 for as_dir in $PATH
12641 do
12642   IFS=$as_save_IFS
12643   test -z "$as_dir" && as_dir=.
12644     for ac_exec_ext in '' $ac_executable_extensions; do
12645   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12646     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12648     break 2
12649   fi
12650 done
12651   done
12652 IFS=$as_save_IFS
12653 
12654   ;;
12655 esac
12656 fi
12657 READLINK=$ac_cv_path_READLINK
12658 if test -n "$READLINK"; then
12659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12660 $as_echo "$READLINK" >&6; }
12661 else
12662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12663 $as_echo "no" >&6; }
12664 fi
12665 
12666 
12667   test -n "$READLINK" && break
12668 done
12669 
12670   else
12671     # The variable is set, but is it from the command line or the environment?
12672 
12673     # Try to remove the string !READLINK! from our list.
12674     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
12675     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12676       # If it failed, the variable was not from the command line. Ignore it,
12677       # but warn the user (except for BASH, which is always set by the calling BASH).
12678       if test "xREADLINK" != xBASH; then
12679         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
12680 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
12681       fi
12682       # Try to locate tool using the code snippet
12683       for ac_prog in greadlink readlink
12684 do
12685   # Extract the first word of "$ac_prog", so it can be a program name with args.
12686 set dummy $ac_prog; ac_word=$2
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12688 $as_echo_n "checking for $ac_word... " >&6; }
12689 if ${ac_cv_path_READLINK+:} false; then :
12690   $as_echo_n "(cached) " >&6
12691 else
12692   case $READLINK in
12693   [\\/]* | ?:[\\/]*)
12694   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12695   ;;
12696   *)
12697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12698 for as_dir in $PATH
12699 do
12700   IFS=$as_save_IFS
12701   test -z "$as_dir" && as_dir=.
12702     for ac_exec_ext in '' $ac_executable_extensions; do
12703   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12704     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12706     break 2
12707   fi
12708 done
12709   done
12710 IFS=$as_save_IFS
12711 
12712   ;;
12713 esac
12714 fi
12715 READLINK=$ac_cv_path_READLINK
12716 if test -n "$READLINK"; then
12717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12718 $as_echo "$READLINK" >&6; }
12719 else
12720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12721 $as_echo "no" >&6; }
12722 fi
12723 
12724 
12725   test -n "$READLINK" && break
12726 done
12727 
12728     else
12729       # If it succeeded, then it was overridden by the user. We will use it
12730       # for the tool.
12731 
12732       # First remove it from the list of overridden variables, so we can test
12733       # for unknown variables in the end.
12734       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12735 
12736       # Check if the provided tool contains a complete path.
12737       tool_specified="$READLINK"
12738       tool_basename="${tool_specified##*/}"
12739       if test "x$tool_basename" = "x$tool_specified"; then
12740         # A command without a complete path is provided, search $PATH.
12741         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
12742 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
12743         # Extract the first word of "$tool_basename", so it can be a program name with args.
12744 set dummy $tool_basename; ac_word=$2
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12746 $as_echo_n "checking for $ac_word... " >&6; }
12747 if ${ac_cv_path_READLINK+:} false; then :
12748   $as_echo_n "(cached) " >&6
12749 else
12750   case $READLINK in
12751   [\\/]* | ?:[\\/]*)
12752   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12753   ;;
12754   *)
12755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12756 for as_dir in $PATH
12757 do
12758   IFS=$as_save_IFS
12759   test -z "$as_dir" && as_dir=.
12760     for ac_exec_ext in '' $ac_executable_extensions; do
12761   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12762     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12764     break 2
12765   fi
12766 done
12767   done
12768 IFS=$as_save_IFS
12769 
12770   ;;
12771 esac
12772 fi
12773 READLINK=$ac_cv_path_READLINK
12774 if test -n "$READLINK"; then
12775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12776 $as_echo "$READLINK" >&6; }
12777 else
12778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12779 $as_echo "no" >&6; }
12780 fi
12781 
12782 
12783         if test "x$READLINK" = x; then
12784           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12785         fi
12786       else
12787         # Otherwise we believe it is a complete path. Use it as it is.
12788         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
12789 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
12790         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
12791 $as_echo_n "checking for READLINK... " >&6; }
12792         if test ! -x "$tool_specified"; then
12793           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12794 $as_echo "not found" >&6; }
12795           as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
12796         fi
12797         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12798 $as_echo "$tool_specified" >&6; }
12799       fi
12800     fi
12801   fi
12802 
12803 
12804 
12805 
12806   # Publish this variable in the help.
12807 
12808 
12809   if test "x$DF" = x; then
12810     # The variable is not set by user, try to locate tool using the code snippet
12811     for ac_prog in df
12812 do
12813   # Extract the first word of "$ac_prog", so it can be a program name with args.
12814 set dummy $ac_prog; ac_word=$2
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12816 $as_echo_n "checking for $ac_word... " >&6; }
12817 if ${ac_cv_path_DF+:} false; then :
12818   $as_echo_n "(cached) " >&6
12819 else
12820   case $DF in
12821   [\\/]* | ?:[\\/]*)
12822   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12823   ;;
12824   *)
12825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12826 for as_dir in $PATH
12827 do
12828   IFS=$as_save_IFS
12829   test -z "$as_dir" && as_dir=.
12830     for ac_exec_ext in '' $ac_executable_extensions; do
12831   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12832     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12834     break 2
12835   fi
12836 done
12837   done
12838 IFS=$as_save_IFS
12839 
12840   ;;
12841 esac
12842 fi
12843 DF=$ac_cv_path_DF
12844 if test -n "$DF"; then
12845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12846 $as_echo "$DF" >&6; }
12847 else
12848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12849 $as_echo "no" >&6; }
12850 fi
12851 
12852 
12853   test -n "$DF" && break
12854 done
12855 
12856   else
12857     # The variable is set, but is it from the command line or the environment?
12858 
12859     # Try to remove the string !DF! from our list.
12860     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
12861     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12862       # If it failed, the variable was not from the command line. Ignore it,
12863       # but warn the user (except for BASH, which is always set by the calling BASH).
12864       if test "xDF" != xBASH; then
12865         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
12866 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
12867       fi
12868       # Try to locate tool using the code snippet
12869       for ac_prog in df
12870 do
12871   # Extract the first word of "$ac_prog", so it can be a program name with args.
12872 set dummy $ac_prog; ac_word=$2
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12874 $as_echo_n "checking for $ac_word... " >&6; }
12875 if ${ac_cv_path_DF+:} false; then :
12876   $as_echo_n "(cached) " >&6
12877 else
12878   case $DF in
12879   [\\/]* | ?:[\\/]*)
12880   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12881   ;;
12882   *)
12883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12884 for as_dir in $PATH
12885 do
12886   IFS=$as_save_IFS
12887   test -z "$as_dir" && as_dir=.
12888     for ac_exec_ext in '' $ac_executable_extensions; do
12889   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12890     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12892     break 2
12893   fi
12894 done
12895   done
12896 IFS=$as_save_IFS
12897 
12898   ;;
12899 esac
12900 fi
12901 DF=$ac_cv_path_DF
12902 if test -n "$DF"; then
12903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12904 $as_echo "$DF" >&6; }
12905 else
12906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12907 $as_echo "no" >&6; }
12908 fi
12909 
12910 
12911   test -n "$DF" && break
12912 done
12913 
12914     else
12915       # If it succeeded, then it was overridden by the user. We will use it
12916       # for the tool.
12917 
12918       # First remove it from the list of overridden variables, so we can test
12919       # for unknown variables in the end.
12920       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12921 
12922       # Check if the provided tool contains a complete path.
12923       tool_specified="$DF"
12924       tool_basename="${tool_specified##*/}"
12925       if test "x$tool_basename" = "x$tool_specified"; then
12926         # A command without a complete path is provided, search $PATH.
12927         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
12928 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
12929         # Extract the first word of "$tool_basename", so it can be a program name with args.
12930 set dummy $tool_basename; ac_word=$2
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12932 $as_echo_n "checking for $ac_word... " >&6; }
12933 if ${ac_cv_path_DF+:} false; then :
12934   $as_echo_n "(cached) " >&6
12935 else
12936   case $DF in
12937   [\\/]* | ?:[\\/]*)
12938   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12939   ;;
12940   *)
12941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12942 for as_dir in $PATH
12943 do
12944   IFS=$as_save_IFS
12945   test -z "$as_dir" && as_dir=.
12946     for ac_exec_ext in '' $ac_executable_extensions; do
12947   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12948     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12950     break 2
12951   fi
12952 done
12953   done
12954 IFS=$as_save_IFS
12955 
12956   ;;
12957 esac
12958 fi
12959 DF=$ac_cv_path_DF
12960 if test -n "$DF"; then
12961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12962 $as_echo "$DF" >&6; }
12963 else
12964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12965 $as_echo "no" >&6; }
12966 fi
12967 
12968 
12969         if test "x$DF" = x; then
12970           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12971         fi
12972       else
12973         # Otherwise we believe it is a complete path. Use it as it is.
12974         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
12975 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
12976         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
12977 $as_echo_n "checking for DF... " >&6; }
12978         if test ! -x "$tool_specified"; then
12979           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12980 $as_echo "not found" >&6; }
12981           as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
12982         fi
12983         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12984 $as_echo "$tool_specified" >&6; }
12985       fi
12986     fi
12987   fi
12988 
12989 
12990 
12991 
12992   # Publish this variable in the help.
12993 
12994 
12995   if test "x$SETFILE" = x; then
12996     # The variable is not set by user, try to locate tool using the code snippet
12997     for ac_prog in SetFile
12998 do
12999   # Extract the first word of "$ac_prog", so it can be a program name with args.
13000 set dummy $ac_prog; ac_word=$2
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13002 $as_echo_n "checking for $ac_word... " >&6; }
13003 if ${ac_cv_path_SETFILE+:} false; then :
13004   $as_echo_n "(cached) " >&6
13005 else
13006   case $SETFILE in
13007   [\\/]* | ?:[\\/]*)
13008   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13009   ;;
13010   *)
13011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13012 for as_dir in $PATH
13013 do
13014   IFS=$as_save_IFS
13015   test -z "$as_dir" && as_dir=.
13016     for ac_exec_ext in '' $ac_executable_extensions; do
13017   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13018     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13020     break 2
13021   fi
13022 done
13023   done
13024 IFS=$as_save_IFS
13025 
13026   ;;
13027 esac
13028 fi
13029 SETFILE=$ac_cv_path_SETFILE
13030 if test -n "$SETFILE"; then
13031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13032 $as_echo "$SETFILE" >&6; }
13033 else
13034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13035 $as_echo "no" >&6; }
13036 fi
13037 
13038 
13039   test -n "$SETFILE" && break
13040 done
13041 
13042   else
13043     # The variable is set, but is it from the command line or the environment?
13044 
13045     # Try to remove the string !SETFILE! from our list.
13046     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
13047     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13048       # If it failed, the variable was not from the command line. Ignore it,
13049       # but warn the user (except for BASH, which is always set by the calling BASH).
13050       if test "xSETFILE" != xBASH; then
13051         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
13052 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
13053       fi
13054       # Try to locate tool using the code snippet
13055       for ac_prog in SetFile
13056 do
13057   # Extract the first word of "$ac_prog", so it can be a program name with args.
13058 set dummy $ac_prog; ac_word=$2
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13060 $as_echo_n "checking for $ac_word... " >&6; }
13061 if ${ac_cv_path_SETFILE+:} false; then :
13062   $as_echo_n "(cached) " >&6
13063 else
13064   case $SETFILE in
13065   [\\/]* | ?:[\\/]*)
13066   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13067   ;;
13068   *)
13069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13070 for as_dir in $PATH
13071 do
13072   IFS=$as_save_IFS
13073   test -z "$as_dir" && as_dir=.
13074     for ac_exec_ext in '' $ac_executable_extensions; do
13075   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13076     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13078     break 2
13079   fi
13080 done
13081   done
13082 IFS=$as_save_IFS
13083 
13084   ;;
13085 esac
13086 fi
13087 SETFILE=$ac_cv_path_SETFILE
13088 if test -n "$SETFILE"; then
13089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13090 $as_echo "$SETFILE" >&6; }
13091 else
13092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13093 $as_echo "no" >&6; }
13094 fi
13095 
13096 
13097   test -n "$SETFILE" && break
13098 done
13099 
13100     else
13101       # If it succeeded, then it was overridden by the user. We will use it
13102       # for the tool.
13103 
13104       # First remove it from the list of overridden variables, so we can test
13105       # for unknown variables in the end.
13106       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13107 
13108       # Check if the provided tool contains a complete path.
13109       tool_specified="$SETFILE"
13110       tool_basename="${tool_specified##*/}"
13111       if test "x$tool_basename" = "x$tool_specified"; then
13112         # A command without a complete path is provided, search $PATH.
13113         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
13114 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
13115         # Extract the first word of "$tool_basename", so it can be a program name with args.
13116 set dummy $tool_basename; ac_word=$2
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13118 $as_echo_n "checking for $ac_word... " >&6; }
13119 if ${ac_cv_path_SETFILE+:} false; then :
13120   $as_echo_n "(cached) " >&6
13121 else
13122   case $SETFILE in
13123   [\\/]* | ?:[\\/]*)
13124   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13125   ;;
13126   *)
13127   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13128 for as_dir in $PATH
13129 do
13130   IFS=$as_save_IFS
13131   test -z "$as_dir" && as_dir=.
13132     for ac_exec_ext in '' $ac_executable_extensions; do
13133   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13134     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13136     break 2
13137   fi
13138 done
13139   done
13140 IFS=$as_save_IFS
13141 
13142   ;;
13143 esac
13144 fi
13145 SETFILE=$ac_cv_path_SETFILE
13146 if test -n "$SETFILE"; then
13147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13148 $as_echo "$SETFILE" >&6; }
13149 else
13150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13151 $as_echo "no" >&6; }
13152 fi
13153 
13154 
13155         if test "x$SETFILE" = x; then
13156           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13157         fi
13158       else
13159         # Otherwise we believe it is a complete path. Use it as it is.
13160         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
13161 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
13162         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
13163 $as_echo_n "checking for SETFILE... " >&6; }
13164         if test ! -x "$tool_specified"; then
13165           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13166 $as_echo "not found" >&6; }
13167           as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
13168         fi
13169         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13170 $as_echo "$tool_specified" >&6; }
13171       fi
13172     fi
13173   fi
13174 
13175 
13176 
13177 
13178   # Publish this variable in the help.
13179 
13180 
13181   if test "x$CPIO" = x; then
13182     # The variable is not set by user, try to locate tool using the code snippet
13183     for ac_prog in cpio bsdcpio
13184 do
13185   # Extract the first word of "$ac_prog", so it can be a program name with args.
13186 set dummy $ac_prog; ac_word=$2
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13188 $as_echo_n "checking for $ac_word... " >&6; }
13189 if ${ac_cv_path_CPIO+:} false; then :
13190   $as_echo_n "(cached) " >&6
13191 else
13192   case $CPIO in
13193   [\\/]* | ?:[\\/]*)
13194   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13195   ;;
13196   *)
13197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13198 for as_dir in $PATH
13199 do
13200   IFS=$as_save_IFS
13201   test -z "$as_dir" && as_dir=.
13202     for ac_exec_ext in '' $ac_executable_extensions; do
13203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13204     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13206     break 2
13207   fi
13208 done
13209   done
13210 IFS=$as_save_IFS
13211 
13212   ;;
13213 esac
13214 fi
13215 CPIO=$ac_cv_path_CPIO
13216 if test -n "$CPIO"; then
13217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13218 $as_echo "$CPIO" >&6; }
13219 else
13220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13221 $as_echo "no" >&6; }
13222 fi
13223 
13224 
13225   test -n "$CPIO" && break
13226 done
13227 
13228   else
13229     # The variable is set, but is it from the command line or the environment?
13230 
13231     # Try to remove the string !CPIO! from our list.
13232     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
13233     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13234       # If it failed, the variable was not from the command line. Ignore it,
13235       # but warn the user (except for BASH, which is always set by the calling BASH).
13236       if test "xCPIO" != xBASH; then
13237         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
13238 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
13239       fi
13240       # Try to locate tool using the code snippet
13241       for ac_prog in cpio bsdcpio
13242 do
13243   # Extract the first word of "$ac_prog", so it can be a program name with args.
13244 set dummy $ac_prog; ac_word=$2
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13246 $as_echo_n "checking for $ac_word... " >&6; }
13247 if ${ac_cv_path_CPIO+:} false; then :
13248   $as_echo_n "(cached) " >&6
13249 else
13250   case $CPIO in
13251   [\\/]* | ?:[\\/]*)
13252   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13253   ;;
13254   *)
13255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13256 for as_dir in $PATH
13257 do
13258   IFS=$as_save_IFS
13259   test -z "$as_dir" && as_dir=.
13260     for ac_exec_ext in '' $ac_executable_extensions; do
13261   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13262     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13264     break 2
13265   fi
13266 done
13267   done
13268 IFS=$as_save_IFS
13269 
13270   ;;
13271 esac
13272 fi
13273 CPIO=$ac_cv_path_CPIO
13274 if test -n "$CPIO"; then
13275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13276 $as_echo "$CPIO" >&6; }
13277 else
13278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13279 $as_echo "no" >&6; }
13280 fi
13281 
13282 
13283   test -n "$CPIO" && break
13284 done
13285 
13286     else
13287       # If it succeeded, then it was overridden by the user. We will use it
13288       # for the tool.
13289 
13290       # First remove it from the list of overridden variables, so we can test
13291       # for unknown variables in the end.
13292       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13293 
13294       # Check if the provided tool contains a complete path.
13295       tool_specified="$CPIO"
13296       tool_basename="${tool_specified##*/}"
13297       if test "x$tool_basename" = "x$tool_specified"; then
13298         # A command without a complete path is provided, search $PATH.
13299         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
13300 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
13301         # Extract the first word of "$tool_basename", so it can be a program name with args.
13302 set dummy $tool_basename; ac_word=$2
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13304 $as_echo_n "checking for $ac_word... " >&6; }
13305 if ${ac_cv_path_CPIO+:} false; then :
13306   $as_echo_n "(cached) " >&6
13307 else
13308   case $CPIO in
13309   [\\/]* | ?:[\\/]*)
13310   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13311   ;;
13312   *)
13313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13314 for as_dir in $PATH
13315 do
13316   IFS=$as_save_IFS
13317   test -z "$as_dir" && as_dir=.
13318     for ac_exec_ext in '' $ac_executable_extensions; do
13319   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13320     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13322     break 2
13323   fi
13324 done
13325   done
13326 IFS=$as_save_IFS
13327 
13328   ;;
13329 esac
13330 fi
13331 CPIO=$ac_cv_path_CPIO
13332 if test -n "$CPIO"; then
13333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13334 $as_echo "$CPIO" >&6; }
13335 else
13336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13337 $as_echo "no" >&6; }
13338 fi
13339 
13340 
13341         if test "x$CPIO" = x; then
13342           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13343         fi
13344       else
13345         # Otherwise we believe it is a complete path. Use it as it is.
13346         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
13347 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
13348         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
13349 $as_echo_n "checking for CPIO... " >&6; }
13350         if test ! -x "$tool_specified"; then
13351           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13352 $as_echo "not found" >&6; }
13353           as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
13354         fi
13355         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13356 $as_echo "$tool_specified" >&6; }
13357       fi
13358     fi
13359   fi
13360 
13361 
13362 
13363 
13364 # Now we can determine OpenJDK build and target platforms. This is required to
13365 # have early on.
13366 # Make sure we can run config.sub.
13367 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
13368   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
13369 
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
13371 $as_echo_n "checking build system type... " >&6; }
13372 if ${ac_cv_build+:} false; then :
13373   $as_echo_n "(cached) " >&6
13374 else
13375   ac_build_alias=$build_alias
13376 test "x$ac_build_alias" = x &&
13377   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
13378 test "x$ac_build_alias" = x &&
13379   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
13380 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
13381   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
13382 
13383 fi
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
13385 $as_echo "$ac_cv_build" >&6; }
13386 case $ac_cv_build in
13387 *-*-*) ;;
13388 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
13389 esac
13390 build=$ac_cv_build
13391 ac_save_IFS=$IFS; IFS='-'
13392 set x $ac_cv_build
13393 shift
13394 build_cpu=$1
13395 build_vendor=$2
13396 shift; shift
13397 # Remember, the first character of IFS is used to create $*,
13398 # except with old shells:
13399 build_os=$*
13400 IFS=$ac_save_IFS
13401 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13402 
13403 
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
13405 $as_echo_n "checking host system type... " >&6; }
13406 if ${ac_cv_host+:} false; then :
13407   $as_echo_n "(cached) " >&6
13408 else
13409   if test "x$host_alias" = x; then
13410   ac_cv_host=$ac_cv_build
13411 else
13412   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
13413     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
13414 fi
13415 
13416 fi
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
13418 $as_echo "$ac_cv_host" >&6; }
13419 case $ac_cv_host in
13420 *-*-*) ;;
13421 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
13422 esac
13423 host=$ac_cv_host
13424 ac_save_IFS=$IFS; IFS='-'
13425 set x $ac_cv_host
13426 shift
13427 host_cpu=$1
13428 host_vendor=$2
13429 shift; shift
13430 # Remember, the first character of IFS is used to create $*,
13431 # except with old shells:
13432 host_os=$*
13433 IFS=$ac_save_IFS
13434 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13435 
13436 
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
13438 $as_echo_n "checking target system type... " >&6; }
13439 if ${ac_cv_target+:} false; then :
13440   $as_echo_n "(cached) " >&6
13441 else
13442   if test "x$target_alias" = x; then
13443   ac_cv_target=$ac_cv_host
13444 else
13445   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
13446     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
13447 fi
13448 
13449 fi
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
13451 $as_echo "$ac_cv_target" >&6; }
13452 case $ac_cv_target in
13453 *-*-*) ;;
13454 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
13455 esac
13456 target=$ac_cv_target
13457 ac_save_IFS=$IFS; IFS='-'
13458 set x $ac_cv_target
13459 shift
13460 target_cpu=$1
13461 target_vendor=$2
13462 shift; shift
13463 # Remember, the first character of IFS is used to create $*,
13464 # except with old shells:
13465 target_os=$*
13466 IFS=$ac_save_IFS
13467 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13468 
13469 
13470 # The aliases save the names the user supplied, while $host etc.
13471 # will get canonicalized.
13472 test -n "$target_alias" &&
13473   test "$program_prefix$program_suffix$program_transform_name" = \
13474     NONENONEs,x,x, &&
13475   program_prefix=${target_alias}-
13476 
13477   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
13478   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
13479   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
13480   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
13481   # to use the configure naming style.
13482 
13483 
13484 
13485 
13486 
13487   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
13488   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
13489   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
13490   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
13491   OPENJDK_TARGET_AUTOCONF_NAME="$host"
13492   OPENJDK_BUILD_AUTOCONF_NAME="$build"
13493 
13494 
13495 
13496   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13497 
13498   case "$build_os" in
13499     *linux*)
13500       VAR_OS=linux
13501       VAR_OS_API=posix
13502       VAR_OS_ENV=linux
13503       ;;
13504     *solaris*)
13505       VAR_OS=solaris
13506       VAR_OS_API=posix
13507       VAR_OS_ENV=solaris
13508       ;;
13509     *darwin*)
13510       VAR_OS=macosx
13511       VAR_OS_API=posix
13512       VAR_OS_ENV=macosx
13513       ;;
13514     *bsd*)
13515       VAR_OS=bsd
13516       VAR_OS_API=posix
13517       VAR_OS_ENV=bsd
13518       ;;
13519     *cygwin*)
13520       VAR_OS=windows
13521       VAR_OS_API=winapi
13522       VAR_OS_ENV=windows.cygwin
13523       ;;
13524     *mingw*)
13525       VAR_OS=windows
13526       VAR_OS_API=winapi
13527       VAR_OS_ENV=windows.msys
13528       ;;
13529     *aix*)
13530       VAR_OS=aix
13531       VAR_OS_API=posix
13532       VAR_OS_ENV=aix
13533       ;;
13534     *)
13535       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
13536       ;;
13537   esac
13538 
13539 
13540   # First argument is the cpu name from the trip/quad
13541   case "$build_cpu" in
13542     x86_64)
13543       VAR_CPU=x86_64
13544       VAR_CPU_ARCH=x86
13545       VAR_CPU_BITS=64
13546       VAR_CPU_ENDIAN=little
13547       ;;
13548     i?86)
13549       VAR_CPU=x86
13550       VAR_CPU_ARCH=x86
13551       VAR_CPU_BITS=32
13552       VAR_CPU_ENDIAN=little
13553       ;;
13554     arm*)
13555       VAR_CPU=arm
13556       VAR_CPU_ARCH=arm
13557       VAR_CPU_BITS=32
13558       VAR_CPU_ENDIAN=little
13559       ;;
13560     aarch64)
13561       VAR_CPU=aarch64
13562       VAR_CPU_ARCH=aarch64
13563       VAR_CPU_BITS=64
13564       VAR_CPU_ENDIAN=little
13565       ;;
13566     powerpc)
13567       VAR_CPU=ppc
13568       VAR_CPU_ARCH=ppc
13569       VAR_CPU_BITS=32
13570       VAR_CPU_ENDIAN=big
13571       ;;
13572     powerpc64)
13573       VAR_CPU=ppc64
13574       VAR_CPU_ARCH=ppc
13575       VAR_CPU_BITS=64
13576       VAR_CPU_ENDIAN=big
13577       ;;
13578     powerpc64le)
13579       VAR_CPU=ppc64
13580       VAR_CPU_ARCH=ppc
13581       VAR_CPU_BITS=64
13582       VAR_CPU_ENDIAN=little
13583       ;;
13584     s390)
13585       VAR_CPU=s390
13586       VAR_CPU_ARCH=s390
13587       VAR_CPU_BITS=32
13588       VAR_CPU_ENDIAN=big
13589       ;;
13590     s390x)
13591       VAR_CPU=s390x
13592       VAR_CPU_ARCH=s390
13593       VAR_CPU_BITS=64
13594       VAR_CPU_ENDIAN=big
13595       ;;
13596     sparc)
13597       VAR_CPU=sparc
13598       VAR_CPU_ARCH=sparc
13599       VAR_CPU_BITS=32
13600       VAR_CPU_ENDIAN=big
13601       ;;
13602     sparcv9|sparc64)
13603       VAR_CPU=sparcv9
13604       VAR_CPU_ARCH=sparc
13605       VAR_CPU_BITS=64
13606       VAR_CPU_ENDIAN=big
13607       ;;
13608     *)
13609       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
13610       ;;
13611   esac
13612 
13613   # ..and setup our own variables. (Do this explicitely to facilitate searching)
13614   OPENJDK_BUILD_OS="$VAR_OS"
13615   OPENJDK_BUILD_OS_API="$VAR_OS_API"
13616   OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
13617   OPENJDK_BUILD_CPU="$VAR_CPU"
13618   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
13619   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
13620   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13621 
13622 
13623 
13624 
13625 
13626 
13627 
13628 
13629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
13630 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
13631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
13632 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
13633 
13634   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13635 
13636   case "$host_os" in
13637     *linux*)
13638       VAR_OS=linux
13639       VAR_OS_API=posix
13640       VAR_OS_ENV=linux
13641       ;;
13642     *solaris*)
13643       VAR_OS=solaris
13644       VAR_OS_API=posix
13645       VAR_OS_ENV=solaris
13646       ;;
13647     *darwin*)
13648       VAR_OS=macosx
13649       VAR_OS_API=posix
13650       VAR_OS_ENV=macosx
13651       ;;
13652     *bsd*)
13653       VAR_OS=bsd
13654       VAR_OS_API=posix
13655       VAR_OS_ENV=bsd
13656       ;;
13657     *cygwin*)
13658       VAR_OS=windows
13659       VAR_OS_API=winapi
13660       VAR_OS_ENV=windows.cygwin
13661       ;;
13662     *mingw*)
13663       VAR_OS=windows
13664       VAR_OS_API=winapi
13665       VAR_OS_ENV=windows.msys
13666       ;;
13667     *aix*)
13668       VAR_OS=aix
13669       VAR_OS_API=posix
13670       VAR_OS_ENV=aix
13671       ;;
13672     *)
13673       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
13674       ;;
13675   esac
13676 
13677 
13678   # First argument is the cpu name from the trip/quad
13679   case "$host_cpu" in
13680     x86_64)
13681       VAR_CPU=x86_64
13682       VAR_CPU_ARCH=x86
13683       VAR_CPU_BITS=64
13684       VAR_CPU_ENDIAN=little
13685       ;;
13686     i?86)
13687       VAR_CPU=x86
13688       VAR_CPU_ARCH=x86
13689       VAR_CPU_BITS=32
13690       VAR_CPU_ENDIAN=little
13691       ;;
13692     arm*)
13693       VAR_CPU=arm
13694       VAR_CPU_ARCH=arm
13695       VAR_CPU_BITS=32
13696       VAR_CPU_ENDIAN=little
13697       ;;
13698     aarch64)
13699       VAR_CPU=aarch64
13700       VAR_CPU_ARCH=aarch64
13701       VAR_CPU_BITS=64
13702       VAR_CPU_ENDIAN=little
13703       ;;
13704     powerpc)
13705       VAR_CPU=ppc
13706       VAR_CPU_ARCH=ppc
13707       VAR_CPU_BITS=32
13708       VAR_CPU_ENDIAN=big
13709       ;;
13710     powerpc64)
13711       VAR_CPU=ppc64
13712       VAR_CPU_ARCH=ppc
13713       VAR_CPU_BITS=64
13714       VAR_CPU_ENDIAN=big
13715       ;;
13716     powerpc64le)
13717       VAR_CPU=ppc64
13718       VAR_CPU_ARCH=ppc
13719       VAR_CPU_BITS=64
13720       VAR_CPU_ENDIAN=little
13721       ;;
13722     s390)
13723       VAR_CPU=s390
13724       VAR_CPU_ARCH=s390
13725       VAR_CPU_BITS=32
13726       VAR_CPU_ENDIAN=big
13727       ;;
13728     s390x)
13729       VAR_CPU=s390x
13730       VAR_CPU_ARCH=s390
13731       VAR_CPU_BITS=64
13732       VAR_CPU_ENDIAN=big
13733       ;;
13734     sparc)
13735       VAR_CPU=sparc
13736       VAR_CPU_ARCH=sparc
13737       VAR_CPU_BITS=32
13738       VAR_CPU_ENDIAN=big
13739       ;;
13740     sparcv9|sparc64)
13741       VAR_CPU=sparcv9
13742       VAR_CPU_ARCH=sparc
13743       VAR_CPU_BITS=64
13744       VAR_CPU_ENDIAN=big
13745       ;;
13746     *)
13747       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
13748       ;;
13749   esac
13750 
13751   # ... and setup our own variables. (Do this explicitely to facilitate searching)
13752   OPENJDK_TARGET_OS="$VAR_OS"
13753   OPENJDK_TARGET_OS_API="$VAR_OS_API"
13754   OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
13755   OPENJDK_TARGET_CPU="$VAR_CPU"
13756   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
13757   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
13758   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13759 
13760 
13761 
13762 
13763 
13764 
13765 
13766 
13767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
13768 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
13769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
13770 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
13771 
13772 
13773 
13774 # Check whether --with-target-bits was given.
13775 if test "${with_target_bits+set}" = set; then :
13776   withval=$with_target_bits;
13777 fi
13778 
13779 
13780   # We have three types of compiles:
13781   # native  == normal compilation, target system == build system
13782   # cross   == traditional cross compilation, target system != build system; special toolchain needed
13783   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
13784   #
13785   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
13786     # We're doing a proper cross-compilation
13787     COMPILE_TYPE="cross"
13788   else
13789     COMPILE_TYPE="native"
13790   fi
13791 
13792   if test "x$with_target_bits" != x; then
13793     if test "x$COMPILE_TYPE" = "xcross"; then
13794       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
13795     fi
13796 
13797     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13798       # A reduced build is requested
13799       COMPILE_TYPE="reduced"
13800       OPENJDK_TARGET_CPU_BITS=32
13801       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
13802         OPENJDK_TARGET_CPU=x86
13803       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
13804         OPENJDK_TARGET_CPU=sparc
13805       else
13806         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
13807       fi
13808     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
13809       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
13810     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
13811       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
13812 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
13813     else
13814       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
13815     fi
13816   fi
13817 
13818 
13819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
13820 $as_echo_n "checking compilation type... " >&6; }
13821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
13822 $as_echo "$COMPILE_TYPE" >&6; }
13823 
13824 
13825   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
13826     REQUIRED_OS_NAME=SunOS
13827     REQUIRED_OS_VERSION=5.10
13828   fi
13829   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
13830     REQUIRED_OS_NAME=Linux
13831     REQUIRED_OS_VERSION=2.6
13832   fi
13833   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13834     REQUIRED_OS_NAME=Windows
13835     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
13836       REQUIRED_OS_VERSION=5.2
13837     else
13838       REQUIRED_OS_VERSION=5.1
13839     fi
13840   fi
13841   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
13842     REQUIRED_OS_NAME=Darwin
13843     REQUIRED_OS_VERSION=11.2
13844   fi
13845 
13846 
13847 
13848 
13849 
13850   # Also store the legacy naming of the cpu.
13851   # Ie i586 and amd64 instead of x86 and x86_64
13852   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
13853   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13854     OPENJDK_TARGET_CPU_LEGACY="i586"
13855   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13856     # On all platforms except MacOSX replace x86_64 with amd64.
13857     OPENJDK_TARGET_CPU_LEGACY="amd64"
13858   fi
13859 
13860 
13861   # And the second legacy naming of the cpu.
13862   # Ie i386 and amd64 instead of x86 and x86_64.
13863   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
13864   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13865     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
13866   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13867     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
13868   fi
13869 
13870 
13871   # This is the name of the cpu (but using i386 and amd64 instead of
13872   # x86 and x86_64, respectively), preceeded by a /, to be used when
13873   # locating libraries. On macosx, it's empty, though.
13874   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
13875   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13876     OPENJDK_TARGET_CPU_LIBDIR=""
13877   fi
13878 
13879 
13880   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
13881   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
13882   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
13883   OPENJDK_TARGET_CPU_ISADIR=""
13884   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13885     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13886       OPENJDK_TARGET_CPU_ISADIR="/amd64"
13887     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
13888       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
13889     fi
13890   fi
13891 
13892 
13893   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
13894   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
13895   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
13896     # On linux only, we replace x86 with i386.
13897     OPENJDK_TARGET_CPU_OSARCH="i386"
13898   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13899     # On all platforms except macosx, we replace x86_64 with amd64.
13900     OPENJDK_TARGET_CPU_OSARCH="amd64"
13901   fi
13902 
13903 
13904   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
13905   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13906     OPENJDK_TARGET_CPU_JLI="i386"
13907   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13908     # On all platforms except macosx, we replace x86_64 with amd64.
13909     OPENJDK_TARGET_CPU_JLI="amd64"
13910   fi
13911   # Now setup the -D flags for building libjli.
13912   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
13913   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13914     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
13915       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
13916     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
13917       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
13918     fi
13919   fi
13920 
13921 
13922   # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths.
13923   if test "x$OPENJDK_TARGET_OS_API" = xposix; then
13924     OPENJDK_TARGET_OS_API_DIR="solaris"
13925   fi
13926   if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then
13927     OPENJDK_TARGET_OS_API_DIR="windows"
13928   fi
13929 
13930 
13931   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13932       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
13933   else
13934       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR}
13935   fi
13936 
13937 
13938   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13939     A_LP64="LP64:="
13940     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
13941     # unpack200.exe
13942     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
13943       ADD_LP64="-D_LP64=1"
13944     fi
13945   fi
13946   LP64=$A_LP64
13947 
13948 
13949   if test "x$COMPILE_TYPE" = "xcross"; then
13950     # FIXME: ... or should this include reduced builds..?
13951     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
13952   else
13953     DEFINE_CROSS_COMPILE_ARCH=""
13954   fi
13955 
13956 
13957   # ZERO_ARCHDEF is used to enable architecture-specific code
13958   case "${OPENJDK_TARGET_CPU}" in
13959     ppc)     ZERO_ARCHDEF=PPC32 ;;
13960     ppc64)   ZERO_ARCHDEF=PPC64 ;;
13961     s390*)   ZERO_ARCHDEF=S390  ;;
13962     sparc*)  ZERO_ARCHDEF=SPARC ;;
13963     x86_64*) ZERO_ARCHDEF=AMD64 ;;
13964     x86)     ZERO_ARCHDEF=IA32  ;;
13965     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
13966   esac
13967 
13968 
13969 
13970 
13971 # Continue setting up basic stuff. Most remaining code require fundamental tools.
13972 
13973   # Save the current directory this script was started from
13974   CURDIR="$PWD"
13975 
13976   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13977     PATH_SEP=";"
13978 
13979   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
13980   if test $SRC_ROOT_LENGTH -gt 100; then
13981     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
13982   fi
13983 
13984   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13985     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
13986 $as_echo_n "checking cygwin release... " >&6; }
13987     CYGWIN_VERSION=`$UNAME -r`
13988     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
13989 $as_echo "$CYGWIN_VERSION" >&6; }
13990     WINDOWS_ENV_VENDOR='cygwin'
13991     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
13992 
13993     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
13994     if test "x$CYGWIN_VERSION_OLD" != x; then
13995       { $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
13996 $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;}
13997       as_fn_error $? "Cannot continue" "$LINENO" 5
13998     fi
13999     if test "x$CYGPATH" = x; then
14000       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
14001     fi
14002     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
14003 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
14004     # The cmd output ends with Windows line endings (CR/LF)
14005     cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'`
14006     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
14007     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
14008     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
14009 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
14010     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
14011     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
14012     if test "x$test_cygdrive_prefix" = x; then
14013       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
14014     fi
14015   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14016     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
14017 $as_echo_n "checking msys release... " >&6; }
14018     MSYS_VERSION=`$UNAME -r`
14019     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
14020 $as_echo "$MSYS_VERSION" >&6; }
14021 
14022     WINDOWS_ENV_VENDOR='msys'
14023     WINDOWS_ENV_VERSION="$MSYS_VERSION"
14024 
14025     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
14026 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
14027     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
14028     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
14029 
14030   windows_path="$MSYS_ROOT_PATH"
14031   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14032     unix_path=`$CYGPATH -u "$windows_path"`
14033     MSYS_ROOT_PATH="$unix_path"
14034   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14035     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14036     MSYS_ROOT_PATH="$unix_path"
14037   fi
14038 
14039     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
14040 $as_echo "$MSYS_ROOT_PATH" >&6; }
14041     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
14042   else
14043     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
14044   fi
14045 
14046   # Test if windows or unix (cygwin/msys) find is first in path.
14047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
14048 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
14049   FIND_BINARY_OUTPUT=`find --version 2>&1`
14050   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
14051     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
14052 $as_echo "unix style" >&6; }
14053   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
14054     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
14055 $as_echo "Windows" >&6; }
14056     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
14057 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
14058     { $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
14059 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
14060     as_fn_error $? "Cannot continue" "$LINENO" 5
14061   else
14062     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
14063 $as_echo "unknown" >&6; }
14064     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
14065 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
14066   fi
14067 
14068   else
14069     PATH_SEP=":"
14070   fi
14071 
14072 
14073   # We get the top-level directory from the supporting wrappers.
14074   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
14075 $as_echo_n "checking for top-level directory... " >&6; }
14076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
14077 $as_echo "$TOPDIR" >&6; }
14078 
14079 
14080   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
14081 
14082   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14083 
14084   # Input might be given as Windows format, start by converting to
14085   # unix format.
14086   path="$CURDIR"
14087   new_path=`$CYGPATH -u "$path"`
14088 
14089   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14090   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14091   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14092   # "foo.exe" is OK but "foo" is an error.
14093   #
14094   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14095   # It is also a way to make sure we got the proper file name for the real test later on.
14096   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14097   if test "x$test_shortpath" = x; then
14098     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14099 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14100     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
14101   fi
14102 
14103   # Call helper function which possibly converts this using DOS-style short mode.
14104   # If so, the updated path is stored in $new_path.
14105 
14106   input_path="$new_path"
14107   # Check if we need to convert this using DOS-style short mode. If the path
14108   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14109   # take no chances and rewrite it.
14110   # Note: m4 eats our [], so we need to use [ and ] instead.
14111   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14112   if test "x$has_forbidden_chars" != x; then
14113     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14114     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14115     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14116     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14117       # Going to short mode and back again did indeed matter. Since short mode is
14118       # case insensitive, let's make it lowercase to improve readability.
14119       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14120       # Now convert it back to Unix-stile (cygpath)
14121       input_path=`$CYGPATH -u "$shortmode_path"`
14122       new_path="$input_path"
14123     fi
14124   fi
14125 
14126   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14127   if test "x$test_cygdrive_prefix" = x; then
14128     # As a simple fix, exclude /usr/bin since it's not a real path.
14129     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14130       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14131       # a path prefixed by /cygdrive for fixpath to work.
14132       new_path="$CYGWIN_ROOT_PATH$input_path"
14133     fi
14134   fi
14135 
14136 
14137   if test "x$path" != "x$new_path"; then
14138     CURDIR="$new_path"
14139     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14140 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14141   fi
14142 
14143   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14144 
14145   path="$CURDIR"
14146   has_colon=`$ECHO $path | $GREP ^.:`
14147   new_path="$path"
14148   if test "x$has_colon" = x; then
14149     # Not in mixed or Windows style, start by that.
14150     new_path=`cmd //c echo $path`
14151   fi
14152 
14153 
14154   input_path="$new_path"
14155   # Check if we need to convert this using DOS-style short mode. If the path
14156   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14157   # take no chances and rewrite it.
14158   # Note: m4 eats our [], so we need to use [ and ] instead.
14159   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14160   if test "x$has_forbidden_chars" != x; then
14161     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14162     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14163   fi
14164 
14165 
14166   windows_path="$new_path"
14167   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14168     unix_path=`$CYGPATH -u "$windows_path"`
14169     new_path="$unix_path"
14170   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14171     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14172     new_path="$unix_path"
14173   fi
14174 
14175   if test "x$path" != "x$new_path"; then
14176     CURDIR="$new_path"
14177     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14178 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14179   fi
14180 
14181   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14182   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14183 
14184   else
14185     # We're on a posix platform. Hooray! :)
14186     path="$CURDIR"
14187     has_space=`$ECHO "$path" | $GREP " "`
14188     if test "x$has_space" != x; then
14189       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14190 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14191       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14192     fi
14193 
14194     # Use eval to expand a potential ~
14195     eval path="$path"
14196     if test ! -f "$path" && test ! -d "$path"; then
14197       as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14198     fi
14199 
14200     CURDIR="`cd "$path"; $THEPWDCMD -L`"
14201   fi
14202 
14203 
14204   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14205 
14206   # Input might be given as Windows format, start by converting to
14207   # unix format.
14208   path="$TOPDIR"
14209   new_path=`$CYGPATH -u "$path"`
14210 
14211   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14212   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14213   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14214   # "foo.exe" is OK but "foo" is an error.
14215   #
14216   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14217   # It is also a way to make sure we got the proper file name for the real test later on.
14218   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14219   if test "x$test_shortpath" = x; then
14220     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14221 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14222     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
14223   fi
14224 
14225   # Call helper function which possibly converts this using DOS-style short mode.
14226   # If so, the updated path is stored in $new_path.
14227 
14228   input_path="$new_path"
14229   # Check if we need to convert this using DOS-style short mode. If the path
14230   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14231   # take no chances and rewrite it.
14232   # Note: m4 eats our [], so we need to use [ and ] instead.
14233   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14234   if test "x$has_forbidden_chars" != x; then
14235     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14236     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14237     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14238     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14239       # Going to short mode and back again did indeed matter. Since short mode is
14240       # case insensitive, let's make it lowercase to improve readability.
14241       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14242       # Now convert it back to Unix-stile (cygpath)
14243       input_path=`$CYGPATH -u "$shortmode_path"`
14244       new_path="$input_path"
14245     fi
14246   fi
14247 
14248   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14249   if test "x$test_cygdrive_prefix" = x; then
14250     # As a simple fix, exclude /usr/bin since it's not a real path.
14251     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14252       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14253       # a path prefixed by /cygdrive for fixpath to work.
14254       new_path="$CYGWIN_ROOT_PATH$input_path"
14255     fi
14256   fi
14257 
14258 
14259   if test "x$path" != "x$new_path"; then
14260     TOPDIR="$new_path"
14261     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14262 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14263   fi
14264 
14265   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14266 
14267   path="$TOPDIR"
14268   has_colon=`$ECHO $path | $GREP ^.:`
14269   new_path="$path"
14270   if test "x$has_colon" = x; then
14271     # Not in mixed or Windows style, start by that.
14272     new_path=`cmd //c echo $path`
14273   fi
14274 
14275 
14276   input_path="$new_path"
14277   # Check if we need to convert this using DOS-style short mode. If the path
14278   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14279   # take no chances and rewrite it.
14280   # Note: m4 eats our [], so we need to use [ and ] instead.
14281   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14282   if test "x$has_forbidden_chars" != x; then
14283     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14284     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14285   fi
14286 
14287 
14288   windows_path="$new_path"
14289   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14290     unix_path=`$CYGPATH -u "$windows_path"`
14291     new_path="$unix_path"
14292   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14293     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14294     new_path="$unix_path"
14295   fi
14296 
14297   if test "x$path" != "x$new_path"; then
14298     TOPDIR="$new_path"
14299     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14300 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14301   fi
14302 
14303   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14304   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14305 
14306   else
14307     # We're on a posix platform. Hooray! :)
14308     path="$TOPDIR"
14309     has_space=`$ECHO "$path" | $GREP " "`
14310     if test "x$has_space" != x; then
14311       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14312 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14313       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14314     fi
14315 
14316     # Use eval to expand a potential ~
14317     eval path="$path"
14318     if test ! -f "$path" && test ! -d "$path"; then
14319       as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14320     fi
14321 
14322     TOPDIR="`cd "$path"; $THEPWDCMD -L`"
14323   fi
14324 
14325   # SRC_ROOT is a traditional alias for TOPDIR.
14326   SRC_ROOT=$TOPDIR
14327 
14328   # Locate the directory of this script.
14329   AUTOCONF_DIR=$TOPDIR/common/autoconf
14330 
14331 
14332   # Setup default logging of stdout and stderr to build.log in the output root.
14333   BUILD_LOG='$(OUTPUT_ROOT)/build.log'
14334   BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old'
14335   BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
14336 
14337 
14338 
14339 
14340 
14341 # Check if it's a pure open build or if custom sources are to be used.
14342 
14343   # Check whether --enable-openjdk-only was given.
14344 if test "${enable_openjdk_only+set}" = set; then :
14345   enableval=$enable_openjdk_only;
14346 else
14347   enable_openjdk_only="no"
14348 fi
14349 
14350 
14351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
14352 $as_echo_n "checking for presence of closed sources... " >&6; }
14353   if test -d "$SRC_ROOT/jdk/src/closed"; then
14354     CLOSED_SOURCE_PRESENT=yes
14355   else
14356     CLOSED_SOURCE_PRESENT=no
14357   fi
14358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
14359 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
14360 
14361   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
14362 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
14363   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
14364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
14365 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
14366 
14367   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
14368     OPENJDK=true
14369     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14370       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
14371 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
14372     fi
14373   else
14374     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14375       OPENJDK=true
14376     else
14377       OPENJDK=false
14378     fi
14379   fi
14380 
14381   if test "x$OPENJDK" = "xtrue"; then
14382     SET_OPENJDK="OPENJDK=true"
14383   fi
14384 
14385 
14386 
14387 
14388 # These are needed to be able to create a configuration name (and thus the output directory)
14389 
14390   ###############################################################################
14391   #
14392   # Check which variant of the JDK that we want to build.
14393   # Currently we have:
14394   #    normal:   standard edition
14395   # but the custom make system may add other variants
14396   #
14397   # Effectively the JDK variant gives a name to a specific set of
14398   # modules to compile into the JDK. In the future, these modules
14399   # might even be Jigsaw modules.
14400   #
14401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
14402 $as_echo_n "checking which variant of the JDK to build... " >&6; }
14403 
14404 # Check whether --with-jdk-variant was given.
14405 if test "${with_jdk_variant+set}" = set; then :
14406   withval=$with_jdk_variant;
14407 fi
14408 
14409 
14410   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
14411     JDK_VARIANT="normal"
14412   else
14413     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
14414   fi
14415 
14416 
14417 
14418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
14419 $as_echo "$JDK_VARIANT" >&6; }
14420 
14421 
14422 ###############################################################################
14423 #
14424 # Check which interpreter of the JVM we want to build.
14425 # Currently we have:
14426 #    template: Template interpreter (the default)
14427 #    cpp     : C++ interpreter
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
14429 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
14430 
14431 # Check whether --with-jvm-interpreter was given.
14432 if test "${with_jvm_interpreter+set}" = set; then :
14433   withval=$with_jvm_interpreter;
14434 fi
14435 
14436 
14437 if test "x$with_jvm_interpreter" = x; then
14438      with_jvm_interpreter="template"
14439 fi
14440 
14441 JVM_INTERPRETER="$with_jvm_interpreter"
14442 
14443 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
14444    as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
14445 fi
14446 
14447 
14448 
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
14450 $as_echo "$with_jvm_interpreter" >&6; }
14451 
14452 
14453 
14454   ###############################################################################
14455   #
14456   # Check which variants of the JVM that we want to build.
14457   # Currently we have:
14458   #    server: normal interpreter and a tiered C1/C2 compiler
14459   #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
14460   #    minimal1: reduced form of client with optional VM services and features stripped out
14461   #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
14462   #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
14463   #    zero: no machine code interpreter, no compiler
14464   #    zeroshark: zero interpreter and shark/llvm compiler backend
14465 #    core: interpreter only, no compiler (only works on some platforms)
14466   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
14467 $as_echo_n "checking which variants of the JVM to build... " >&6; }
14468 
14469 # Check whether --with-jvm-variants was given.
14470 if test "${with_jvm_variants+set}" = set; then :
14471   withval=$with_jvm_variants;
14472 fi
14473 
14474 
14475   if test "x$with_jvm_variants" = x; then
14476     with_jvm_variants="server"
14477   fi
14478 
14479   JVM_VARIANTS=",$with_jvm_variants,"
14480   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,//'`
14481 
14482   if test "x$TEST_VARIANTS" != "x,"; then
14483      as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
14484   fi
14485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
14486 $as_echo "$with_jvm_variants" >&6; }
14487 
14488   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
14489   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
14490   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
14491   JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
14492   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
14493   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
14494   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
14495 
14496   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14497     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14498       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
14499     fi
14500   fi
14501   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14502     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14503       as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
14504     fi
14505   fi
14506   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14507     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14508       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
14509     fi
14510   fi
14511 
14512   # Replace the commas with AND for use in the build directory name.
14513   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
14514   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/'`
14515   if test "x$COUNT_VARIANTS" != "x,1"; then
14516     BUILDING_MULTIPLE_JVM_VARIANTS=yes
14517   else
14518     BUILDING_MULTIPLE_JVM_VARIANTS=no
14519   fi
14520 
14521 
14522 
14523 
14524 
14525 
14526 
14527 
14528 
14529 
14530   INCLUDE_SA=true
14531   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
14532     INCLUDE_SA=false
14533   fi
14534   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
14535     INCLUDE_SA=false
14536   fi
14537   if test "x$VAR_CPU" = xppc64 ; then
14538     INCLUDE_SA=false
14539   fi
14540   if test "x$OPENJDK_TARGET_CPU" = xaarch64; then
14541     INCLUDE_SA=false
14542   fi
14543 
14544 
14545   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14546     MACOSX_UNIVERSAL="false"
14547   fi
14548 
14549 
14550 
14551 
14552   ###############################################################################
14553   #
14554   # Set the debug level
14555   #    release: no debug information, all optimizations, no asserts.
14556   #    fastdebug: debug information (-g), all optimizations, all asserts
14557   #    slowdebug: debug information (-g), no optimizations, all asserts
14558   #
14559   DEBUG_LEVEL="release"
14560   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
14561 $as_echo_n "checking which debug level to use... " >&6; }
14562   # Check whether --enable-debug was given.
14563 if test "${enable_debug+set}" = set; then :
14564   enableval=$enable_debug;
14565         ENABLE_DEBUG="${enableval}"
14566         DEBUG_LEVEL="fastdebug"
14567 
14568 else
14569   ENABLE_DEBUG="no"
14570 fi
14571 
14572 
14573 
14574 # Check whether --with-debug-level was given.
14575 if test "${with_debug_level+set}" = set; then :
14576   withval=$with_debug_level;
14577         DEBUG_LEVEL="${withval}"
14578         if test "x$ENABLE_DEBUG" = xyes; then
14579           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
14580         fi
14581 
14582 fi
14583 
14584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
14585 $as_echo "$DEBUG_LEVEL" >&6; }
14586 
14587   if test "x$DEBUG_LEVEL" != xrelease && \
14588       test "x$DEBUG_LEVEL" != xfastdebug && \
14589       test "x$DEBUG_LEVEL" != xslowdebug; then
14590     as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
14591   fi
14592 
14593 
14594   ###############################################################################
14595   #
14596   # Setup legacy vars/targets and new vars to deal with different debug levels.
14597   #
14598 
14599   case $DEBUG_LEVEL in
14600     release )
14601       VARIANT="OPT"
14602       FASTDEBUG="false"
14603       DEBUG_CLASSFILES="false"
14604       BUILD_VARIANT_RELEASE=""
14605       HOTSPOT_DEBUG_LEVEL="product"
14606       HOTSPOT_EXPORT="product"
14607       ;;
14608     fastdebug )
14609       VARIANT="DBG"
14610       FASTDEBUG="true"
14611       DEBUG_CLASSFILES="true"
14612       BUILD_VARIANT_RELEASE="-fastdebug"
14613       HOTSPOT_DEBUG_LEVEL="fastdebug"
14614       HOTSPOT_EXPORT="fastdebug"
14615       ;;
14616     slowdebug )
14617       VARIANT="DBG"
14618       FASTDEBUG="false"
14619       DEBUG_CLASSFILES="true"
14620       BUILD_VARIANT_RELEASE="-debug"
14621       HOTSPOT_DEBUG_LEVEL="jvmg"
14622       HOTSPOT_EXPORT="debug"
14623       ;;
14624   esac
14625 
14626   #####
14627   # Generate the legacy makefile targets for hotspot.
14628   # The hotspot api for selecting the build artifacts, really, needs to be improved.
14629   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
14630   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
14631   # But until then ...
14632   HOTSPOT_TARGET=""
14633 
14634   if test "x$JVM_VARIANT_SERVER" = xtrue; then
14635     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
14636   fi
14637 
14638   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14639     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
14640   fi
14641 
14642   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14643     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
14644   fi
14645 
14646   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14647     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
14648   fi
14649 
14650   if test "x$JVM_VARIANT_ZERO" = xtrue; then
14651     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
14652   fi
14653 
14654   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
14655     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
14656   fi
14657 
14658   if test "x$JVM_VARIANT_CORE" = xtrue; then
14659     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
14660   fi
14661 
14662   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
14663 
14664   # On Macosx universal binaries are produced, but they only contain
14665   # 64 bit intel. This invalidates control of which jvms are built
14666   # from configure, but only server is valid anyway. Fix this
14667   # when hotspot makefiles are rewritten.
14668   if test "x$MACOSX_UNIVERSAL" = xtrue; then
14669     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
14670   fi
14671 
14672   #####
14673 
14674 
14675 
14676 
14677 
14678 
14679 
14680 
14681 # With basic setup done, call the custom early hook.
14682 
14683 
14684 # Check if we have devkits, extra paths or sysroot set.
14685 
14686 
14687 # Check whether --with-devkit was given.
14688 if test "${with_devkit+set}" = set; then :
14689   withval=$with_devkit;
14690 
14691   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14692 
14693   # Input might be given as Windows format, start by converting to
14694   # unix format.
14695   path="$with_devkit"
14696   new_path=`$CYGPATH -u "$path"`
14697 
14698   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14699   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14700   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14701   # "foo.exe" is OK but "foo" is an error.
14702   #
14703   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14704   # It is also a way to make sure we got the proper file name for the real test later on.
14705   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14706   if test "x$test_shortpath" = x; then
14707     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14708 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14709     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
14710   fi
14711 
14712   # Call helper function which possibly converts this using DOS-style short mode.
14713   # If so, the updated path is stored in $new_path.
14714 
14715   input_path="$new_path"
14716   # Check if we need to convert this using DOS-style short mode. If the path
14717   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14718   # take no chances and rewrite it.
14719   # Note: m4 eats our [], so we need to use [ and ] instead.
14720   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14721   if test "x$has_forbidden_chars" != x; then
14722     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14723     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14724     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14725     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14726       # Going to short mode and back again did indeed matter. Since short mode is
14727       # case insensitive, let's make it lowercase to improve readability.
14728       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14729       # Now convert it back to Unix-stile (cygpath)
14730       input_path=`$CYGPATH -u "$shortmode_path"`
14731       new_path="$input_path"
14732     fi
14733   fi
14734 
14735   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14736   if test "x$test_cygdrive_prefix" = x; then
14737     # As a simple fix, exclude /usr/bin since it's not a real path.
14738     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14739       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14740       # a path prefixed by /cygdrive for fixpath to work.
14741       new_path="$CYGWIN_ROOT_PATH$input_path"
14742     fi
14743   fi
14744 
14745 
14746   if test "x$path" != "x$new_path"; then
14747     with_devkit="$new_path"
14748     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14749 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14750   fi
14751 
14752   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14753 
14754   path="$with_devkit"
14755   has_colon=`$ECHO $path | $GREP ^.:`
14756   new_path="$path"
14757   if test "x$has_colon" = x; then
14758     # Not in mixed or Windows style, start by that.
14759     new_path=`cmd //c echo $path`
14760   fi
14761 
14762 
14763   input_path="$new_path"
14764   # Check if we need to convert this using DOS-style short mode. If the path
14765   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14766   # take no chances and rewrite it.
14767   # Note: m4 eats our [], so we need to use [ and ] instead.
14768   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14769   if test "x$has_forbidden_chars" != x; then
14770     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14771     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14772   fi
14773 
14774 
14775   windows_path="$new_path"
14776   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14777     unix_path=`$CYGPATH -u "$windows_path"`
14778     new_path="$unix_path"
14779   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14780     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14781     new_path="$unix_path"
14782   fi
14783 
14784   if test "x$path" != "x$new_path"; then
14785     with_devkit="$new_path"
14786     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14787 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14788   fi
14789 
14790   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14791   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14792 
14793   else
14794     # We're on a posix platform. Hooray! :)
14795     path="$with_devkit"
14796     has_space=`$ECHO "$path" | $GREP " "`
14797     if test "x$has_space" != x; then
14798       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14799 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14800       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14801     fi
14802 
14803     # Use eval to expand a potential ~
14804     eval path="$path"
14805     if test ! -f "$path" && test ! -d "$path"; then
14806       as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
14807     fi
14808 
14809     with_devkit="`cd "$path"; $THEPWDCMD -L`"
14810   fi
14811 
14812         DEVKIT_ROOT="$with_devkit"
14813         # Check for a meta data info file in the root of the devkit
14814         if test -f "$DEVKIT_ROOT/devkit.info"; then
14815           # This potentially sets the following:
14816           # DEVKIT_NAME: A descriptive name of the devkit
14817           # DEVKIT_TOOLCHAIN_PATH: Corresponds to --with-toolchain-path
14818           # DEVKIT_EXTRA_PATH: Corresponds to --with-extra-path
14819           # DEVKIT_SYSROOT: Corresponds to --with-sysroot
14820           . $DEVKIT_ROOT/devkit.info
14821         fi
14822 
14823         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
14824 $as_echo_n "checking for devkit... " >&6; }
14825         if test "x$DEVKIT_NAME" != x; then
14826           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
14827 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
14828         else
14829           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
14830 $as_echo "$DEVKIT_ROOT" >&6; }
14831         fi
14832 
14833         if test "x$DEVKIT_EXTRA_PATH" != x; then
14834 
14835   if test "x$DEVKIT_EXTRA_PATH" != x; then
14836     if test "x$EXTRA_PATH" = x; then
14837       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
14838     else
14839       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
14840     fi
14841   fi
14842 
14843         fi
14844 
14845         # Fallback default of just /bin if DEVKIT_PATH is not defined
14846         if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
14847           DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
14848         fi
14849 
14850   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
14851     if test "x$TOOLCHAIN_PATH" = x; then
14852       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
14853     else
14854       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
14855     fi
14856   fi
14857 
14858 
14859         # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
14860         # places for backwards compatiblity.
14861         if test "x$DEVKIT_SYSROOT" != x; then
14862           SYSROOT="$DEVKIT_SYSROOT"
14863         elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
14864           SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
14865         elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
14866           SYSROOT="$DEVKIT_ROOT/$host/sys-root"
14867         fi
14868 
14869 
14870 fi
14871 
14872 
14873   # You can force the sysroot if the sysroot encoded into the compiler tools
14874   # is not correct.
14875 
14876 # Check whether --with-sys-root was given.
14877 if test "${with_sys_root+set}" = set; then :
14878   withval=$with_sys_root; SYSROOT=$with_sys_root
14879 
14880 fi
14881 
14882 
14883 
14884 # Check whether --with-sysroot was given.
14885 if test "${with_sysroot+set}" = set; then :
14886   withval=$with_sysroot; SYSROOT=$with_sysroot
14887 
14888 fi
14889 
14890 
14891 
14892 # Check whether --with-tools-dir was given.
14893 if test "${with_tools_dir+set}" = set; then :
14894   withval=$with_tools_dir;
14895   if test "x$with_tools_dir" != x; then
14896     if test "x$TOOLCHAIN_PATH" = x; then
14897       TOOLCHAIN_PATH="$with_tools_dir"
14898     else
14899       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
14900     fi
14901   fi
14902 
14903 
14904 fi
14905 
14906 
14907 
14908 # Check whether --with-toolchain-path was given.
14909 if test "${with_toolchain_path+set}" = set; then :
14910   withval=$with_toolchain_path;
14911   if test "x$with_toolchain_path" != x; then
14912     if test "x$TOOLCHAIN_PATH" = x; then
14913       TOOLCHAIN_PATH="$with_toolchain_path"
14914     else
14915       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
14916     fi
14917   fi
14918 
14919 
14920 fi
14921 
14922 
14923 
14924 # Check whether --with-extra-path was given.
14925 if test "${with_extra_path+set}" = set; then :
14926   withval=$with_extra_path;
14927   if test "x$with_extra_path" != x; then
14928     if test "x$EXTRA_PATH" = x; then
14929       EXTRA_PATH="$with_extra_path"
14930     else
14931       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
14932     fi
14933   fi
14934 
14935 
14936 fi
14937 
14938 
14939   # Prepend the extra path to the global path
14940 
14941   if test "x$EXTRA_PATH" != x; then
14942     if test "x$PATH" = x; then
14943       PATH="$EXTRA_PATH"
14944     else
14945       PATH="$EXTRA_PATH:$PATH"
14946     fi
14947   fi
14948 
14949 
14950   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
14951     # Add extra search paths on solaris for utilities like ar and as etc...
14952     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
14953   fi
14954 
14955   # Xcode version will be validated later
14956 
14957 # Check whether --with-xcode-path was given.
14958 if test "${with_xcode_path+set}" = set; then :
14959   withval=$with_xcode_path; XCODE_PATH=$with_xcode_path
14960 
14961 fi
14962 
14963 
14964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
14965 $as_echo_n "checking for sysroot... " >&6; }
14966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
14967 $as_echo "$SYSROOT" >&6; }
14968   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
14969 $as_echo_n "checking for toolchain path... " >&6; }
14970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
14971 $as_echo "$TOOLCHAIN_PATH" >&6; }
14972   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
14973 $as_echo_n "checking for extra path... " >&6; }
14974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
14975 $as_echo "$EXTRA_PATH" >&6; }
14976 
14977 
14978 # To properly create a configuration name, we need to have the OpenJDK target
14979 # and options (variants and debug level) parsed.
14980 
14981 
14982 
14983 # Check whether --with-conf-name was given.
14984 if test "${with_conf_name+set}" = set; then :
14985   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
14986 fi
14987 
14988 
14989   # Test from where we are running configure, in or outside of src root.
14990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
14991 $as_echo_n "checking where to store configuration... " >&6; }
14992   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
14993       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
14994       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
14995     # We are running configure from the src root.
14996     # Create a default ./build/target-variant-debuglevel output root.
14997     if test "x${CONF_NAME}" = x; then
14998       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
14999 $as_echo "in default location" >&6; }
15000       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
15001     else
15002       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
15003 $as_echo "in build directory with custom name" >&6; }
15004     fi
15005     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
15006     $MKDIR -p "$OUTPUT_ROOT"
15007     if test ! -d "$OUTPUT_ROOT"; then
15008       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
15009     fi
15010   else
15011     # We are running configure from outside of the src dir.
15012     # Then use the current directory as output dir!
15013     # If configuration is situated in normal build directory, just use the build
15014     # directory name as configuration name, otherwise use the complete path.
15015     if test "x${CONF_NAME}" = x; then
15016       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
15017     fi
15018     OUTPUT_ROOT="$CURDIR"
15019     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
15020 $as_echo "in current directory" >&6; }
15021 
15022     # WARNING: This might be a bad thing to do. You need to be sure you want to
15023     # have a configuration in this directory. Do some sanity checks!
15024 
15025     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
15026       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
15027       # other files
15028       files_present=`$LS $OUTPUT_ROOT`
15029       # Configure has already touched config.log and confdefs.h in the current dir when this check
15030       # is performed.
15031       filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \
15032       | $TR -d '\n'`
15033       if test "x$filtered_files" != x; then
15034         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
15035 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
15036         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
15037 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
15038         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
15039 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
15040         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
15041 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
15042         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
15043 $as_echo "$as_me: seriously mess up just about everything." >&6;}
15044         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
15045 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
15046         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
15047 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
15048         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
15049       fi
15050     fi
15051   fi
15052   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
15053 $as_echo_n "checking what configuration name to use... " >&6; }
15054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
15055 $as_echo "$CONF_NAME" >&6; }
15056 
15057 
15058   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15059 
15060   # Input might be given as Windows format, start by converting to
15061   # unix format.
15062   path="$OUTPUT_ROOT"
15063   new_path=`$CYGPATH -u "$path"`
15064 
15065   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15066   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15067   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15068   # "foo.exe" is OK but "foo" is an error.
15069   #
15070   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15071   # It is also a way to make sure we got the proper file name for the real test later on.
15072   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15073   if test "x$test_shortpath" = x; then
15074     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
15075 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
15076     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
15077   fi
15078 
15079   # Call helper function which possibly converts this using DOS-style short mode.
15080   # If so, the updated path is stored in $new_path.
15081 
15082   input_path="$new_path"
15083   # Check if we need to convert this using DOS-style short mode. If the path
15084   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15085   # take no chances and rewrite it.
15086   # Note: m4 eats our [], so we need to use [ and ] instead.
15087   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15088   if test "x$has_forbidden_chars" != x; then
15089     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15090     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15091     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15092     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15093       # Going to short mode and back again did indeed matter. Since short mode is
15094       # case insensitive, let's make it lowercase to improve readability.
15095       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15096       # Now convert it back to Unix-stile (cygpath)
15097       input_path=`$CYGPATH -u "$shortmode_path"`
15098       new_path="$input_path"
15099     fi
15100   fi
15101 
15102   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15103   if test "x$test_cygdrive_prefix" = x; then
15104     # As a simple fix, exclude /usr/bin since it's not a real path.
15105     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15106       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15107       # a path prefixed by /cygdrive for fixpath to work.
15108       new_path="$CYGWIN_ROOT_PATH$input_path"
15109     fi
15110   fi
15111 
15112 
15113   if test "x$path" != "x$new_path"; then
15114     OUTPUT_ROOT="$new_path"
15115     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
15116 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
15117   fi
15118 
15119   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15120 
15121   path="$OUTPUT_ROOT"
15122   has_colon=`$ECHO $path | $GREP ^.:`
15123   new_path="$path"
15124   if test "x$has_colon" = x; then
15125     # Not in mixed or Windows style, start by that.
15126     new_path=`cmd //c echo $path`
15127   fi
15128 
15129 
15130   input_path="$new_path"
15131   # Check if we need to convert this using DOS-style short mode. If the path
15132   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15133   # take no chances and rewrite it.
15134   # Note: m4 eats our [], so we need to use [ and ] instead.
15135   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15136   if test "x$has_forbidden_chars" != x; then
15137     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15138     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15139   fi
15140 
15141 
15142   windows_path="$new_path"
15143   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15144     unix_path=`$CYGPATH -u "$windows_path"`
15145     new_path="$unix_path"
15146   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15147     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15148     new_path="$unix_path"
15149   fi
15150 
15151   if test "x$path" != "x$new_path"; then
15152     OUTPUT_ROOT="$new_path"
15153     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
15154 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
15155   fi
15156 
15157   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15158   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15159 
15160   else
15161     # We're on a posix platform. Hooray! :)
15162     path="$OUTPUT_ROOT"
15163     has_space=`$ECHO "$path" | $GREP " "`
15164     if test "x$has_space" != x; then
15165       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
15166 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
15167       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15168     fi
15169 
15170     # Use eval to expand a potential ~
15171     eval path="$path"
15172     if test ! -f "$path" && test ! -d "$path"; then
15173       as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
15174     fi
15175 
15176     OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
15177   fi
15178 
15179 
15180   SPEC=$OUTPUT_ROOT/spec.gmk
15181 
15182   CONF_NAME=$CONF_NAME
15183 
15184   OUTPUT_ROOT=$OUTPUT_ROOT
15185 
15186 
15187   # Most of the probed defines are put into config.h
15188   ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in"
15189 
15190   # The spec.gmk file contains all variables for the make system.
15191   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
15192 
15193   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
15194   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
15195 
15196   # The bootcycle-spec.gmk file contains support for boot cycle builds.
15197   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
15198 
15199   # The compare.sh is used to compare the build output to other builds.
15200   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
15201 
15202   # Spec.sh is currently used by compare-objects.sh
15203   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
15204 
15205   # The generated Makefile knows where the spec.gmk is and where the source is.
15206   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
15207   # which will look for generated configurations
15208   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
15209 
15210 
15211 
15212 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
15213 
15214   for ac_prog in apt-get yum port pkgutil pkgadd
15215 do
15216   # Extract the first word of "$ac_prog", so it can be a program name with args.
15217 set dummy $ac_prog; ac_word=$2
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15219 $as_echo_n "checking for $ac_word... " >&6; }
15220 if ${ac_cv_prog_PKGHANDLER+:} false; then :
15221   $as_echo_n "(cached) " >&6
15222 else
15223   if test -n "$PKGHANDLER"; then
15224   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
15225 else
15226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15227 for as_dir in $PATH
15228 do
15229   IFS=$as_save_IFS
15230   test -z "$as_dir" && as_dir=.
15231     for ac_exec_ext in '' $ac_executable_extensions; do
15232   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15233     ac_cv_prog_PKGHANDLER="$ac_prog"
15234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15235     break 2
15236   fi
15237 done
15238   done
15239 IFS=$as_save_IFS
15240 
15241 fi
15242 fi
15243 PKGHANDLER=$ac_cv_prog_PKGHANDLER
15244 if test -n "$PKGHANDLER"; then
15245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
15246 $as_echo "$PKGHANDLER" >&6; }
15247 else
15248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15249 $as_echo "no" >&6; }
15250 fi
15251 
15252 
15253   test -n "$PKGHANDLER" && break
15254 done
15255 
15256 
15257 
15258 # Setup tools that requires more complex handling, or that is not needed by the configure script.
15259 
15260 
15261   # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky.
15262   if test "x$MAKE" != x; then
15263     # User has supplied a make, test it.
15264     if test ! -f "$MAKE"; then
15265       as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5
15266     fi
15267 
15268   MAKE_CANDIDATE=""$MAKE""
15269   DESCRIPTION="user supplied MAKE=$MAKE"
15270   if test "x$MAKE_CANDIDATE" != x; then
15271     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15272 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15273     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15274     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15275     if test "x$IS_GNU_MAKE" = x; then
15276       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15277 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15278     else
15279       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15280       if test "x$IS_MODERN_MAKE" = x; then
15281         { $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
15282 $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;}
15283       else
15284         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15285           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15286             MAKE_EXPECTED_ENV='cygwin'
15287           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15288             MAKE_EXPECTED_ENV='msys'
15289           else
15290             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15291           fi
15292           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15293           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15294         else
15295           # Not relevant for non-Windows
15296           IS_MAKE_CORRECT_ENV=true
15297         fi
15298         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15299           { $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
15300 $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;}
15301         else
15302           FOUND_MAKE=$MAKE_CANDIDATE
15303 
15304   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15305 
15306   # First separate the path from the arguments. This will split at the first
15307   # space.
15308   complete="$FOUND_MAKE"
15309   path="${complete%% *}"
15310   tmp="$complete EOL"
15311   arguments="${tmp#* }"
15312 
15313   # Input might be given as Windows format, start by converting to
15314   # unix format.
15315   new_path=`$CYGPATH -u "$path"`
15316 
15317   # Now try to locate executable using which
15318   new_path=`$WHICH "$new_path" 2> /dev/null`
15319   # bat and cmd files are not always considered executable in cygwin causing which
15320   # to not find them
15321   if test "x$new_path" = x \
15322       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15323       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15324     new_path=`$CYGPATH -u "$path"`
15325   fi
15326   if test "x$new_path" = x; then
15327     # Oops. Which didn't find the executable.
15328     # The splitting of arguments from the executable at a space might have been incorrect,
15329     # since paths with space are more likely in Windows. Give it another try with the whole
15330     # argument.
15331     path="$complete"
15332     arguments="EOL"
15333     new_path=`$CYGPATH -u "$path"`
15334     new_path=`$WHICH "$new_path" 2> /dev/null`
15335     # bat and cmd files are not always considered executable in cygwin causing which
15336     # to not find them
15337     if test "x$new_path" = x \
15338         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15339         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15340       new_path=`$CYGPATH -u "$path"`
15341     fi
15342     if test "x$new_path" = x; then
15343       # It's still not found. Now this is an unrecoverable error.
15344       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15345 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15346       has_space=`$ECHO "$complete" | $GREP " "`
15347       if test "x$has_space" != x; then
15348         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15349 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15350       fi
15351       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15352     fi
15353   fi
15354 
15355   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15356   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15357   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15358   # "foo.exe" is OK but "foo" is an error.
15359   #
15360   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15361   # It is also a way to make sure we got the proper file name for the real test later on.
15362   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15363   if test "x$test_shortpath" = x; then
15364     # Short path failed, file does not exist as specified.
15365     # Try adding .exe or .cmd
15366     if test -f "${new_path}.exe"; then
15367       input_to_shortpath="${new_path}.exe"
15368     elif test -f "${new_path}.cmd"; then
15369       input_to_shortpath="${new_path}.cmd"
15370     else
15371       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15372 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15373       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15374 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15375       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15376     fi
15377   else
15378     input_to_shortpath="$new_path"
15379   fi
15380 
15381   # Call helper function which possibly converts this using DOS-style short mode.
15382   # If so, the updated path is stored in $new_path.
15383   new_path="$input_to_shortpath"
15384 
15385   input_path="$input_to_shortpath"
15386   # Check if we need to convert this using DOS-style short mode. If the path
15387   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15388   # take no chances and rewrite it.
15389   # Note: m4 eats our [], so we need to use [ and ] instead.
15390   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15391   if test "x$has_forbidden_chars" != x; then
15392     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15393     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15394     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15395     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15396       # Going to short mode and back again did indeed matter. Since short mode is
15397       # case insensitive, let's make it lowercase to improve readability.
15398       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15399       # Now convert it back to Unix-stile (cygpath)
15400       input_path=`$CYGPATH -u "$shortmode_path"`
15401       new_path="$input_path"
15402     fi
15403   fi
15404 
15405   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15406   if test "x$test_cygdrive_prefix" = x; then
15407     # As a simple fix, exclude /usr/bin since it's not a real path.
15408     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15409       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15410       # a path prefixed by /cygdrive for fixpath to work.
15411       new_path="$CYGWIN_ROOT_PATH$input_path"
15412     fi
15413   fi
15414 
15415   # remove trailing .exe if any
15416   new_path="${new_path/%.exe/}"
15417 
15418   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15419 
15420   # First separate the path from the arguments. This will split at the first
15421   # space.
15422   complete="$FOUND_MAKE"
15423   path="${complete%% *}"
15424   tmp="$complete EOL"
15425   arguments="${tmp#* }"
15426 
15427   # Input might be given as Windows format, start by converting to
15428   # unix format.
15429   new_path="$path"
15430 
15431   windows_path="$new_path"
15432   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15433     unix_path=`$CYGPATH -u "$windows_path"`
15434     new_path="$unix_path"
15435   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15436     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15437     new_path="$unix_path"
15438   fi
15439 
15440 
15441   # Now try to locate executable using which
15442   new_path=`$WHICH "$new_path" 2> /dev/null`
15443 
15444   if test "x$new_path" = x; then
15445     # Oops. Which didn't find the executable.
15446     # The splitting of arguments from the executable at a space might have been incorrect,
15447     # since paths with space are more likely in Windows. Give it another try with the whole
15448     # argument.
15449     path="$complete"
15450     arguments="EOL"
15451     new_path="$path"
15452 
15453   windows_path="$new_path"
15454   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15455     unix_path=`$CYGPATH -u "$windows_path"`
15456     new_path="$unix_path"
15457   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15458     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15459     new_path="$unix_path"
15460   fi
15461 
15462 
15463     new_path=`$WHICH "$new_path" 2> /dev/null`
15464     # bat and cmd files are not always considered executable in MSYS causing which
15465     # to not find them
15466     if test "x$new_path" = x \
15467         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15468         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15469       new_path="$path"
15470 
15471   windows_path="$new_path"
15472   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15473     unix_path=`$CYGPATH -u "$windows_path"`
15474     new_path="$unix_path"
15475   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15476     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15477     new_path="$unix_path"
15478   fi
15479 
15480     fi
15481 
15482     if test "x$new_path" = x; then
15483       # It's still not found. Now this is an unrecoverable error.
15484       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15485 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15486       has_space=`$ECHO "$complete" | $GREP " "`
15487       if test "x$has_space" != x; then
15488         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15489 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15490       fi
15491       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15492     fi
15493   fi
15494 
15495   # Now new_path has a complete unix path to the binary
15496   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15497     # Keep paths in /bin as-is, but remove trailing .exe if any
15498     new_path="${new_path/%.exe/}"
15499     # Do not save /bin paths to all_fixpath_prefixes!
15500   else
15501     # Not in mixed or Windows style, start by that.
15502     new_path=`cmd //c echo $new_path`
15503 
15504   input_path="$new_path"
15505   # Check if we need to convert this using DOS-style short mode. If the path
15506   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15507   # take no chances and rewrite it.
15508   # Note: m4 eats our [], so we need to use [ and ] instead.
15509   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15510   if test "x$has_forbidden_chars" != x; then
15511     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15512     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15513   fi
15514 
15515     # Output is in $new_path
15516 
15517   windows_path="$new_path"
15518   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15519     unix_path=`$CYGPATH -u "$windows_path"`
15520     new_path="$unix_path"
15521   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15522     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15523     new_path="$unix_path"
15524   fi
15525 
15526     # remove trailing .exe if any
15527     new_path="${new_path/%.exe/}"
15528 
15529     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15530     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15531   fi
15532 
15533   else
15534     # We're on a posix platform. Hooray! :)
15535     # First separate the path from the arguments. This will split at the first
15536     # space.
15537     complete="$FOUND_MAKE"
15538     path="${complete%% *}"
15539     tmp="$complete EOL"
15540     arguments="${tmp#* }"
15541 
15542     # Cannot rely on the command "which" here since it doesn't always work.
15543     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15544     if test -z "$is_absolute_path"; then
15545       # Path to executable is not absolute. Find it.
15546       IFS_save="$IFS"
15547       IFS=:
15548       for p in $PATH; do
15549         if test -f "$p/$path" && test -x "$p/$path"; then
15550           new_path="$p/$path"
15551           break
15552         fi
15553       done
15554       IFS="$IFS_save"
15555     else
15556       # This is an absolute path, we can use it without further modifications.
15557       new_path="$path"
15558     fi
15559 
15560     if test "x$new_path" = x; then
15561       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15562 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15563       has_space=`$ECHO "$complete" | $GREP " "`
15564       if test "x$has_space" != x; then
15565         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15566 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15567       fi
15568       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15569     fi
15570   fi
15571 
15572   # Now join together the path and the arguments once again
15573   if test "x$arguments" != xEOL; then
15574     new_complete="$new_path ${arguments% *}"
15575   else
15576     new_complete="$new_path"
15577   fi
15578 
15579   if test "x$complete" != "x$new_complete"; then
15580     FOUND_MAKE="$new_complete"
15581     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15582 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15583   fi
15584 
15585         fi
15586       fi
15587     fi
15588   fi
15589 
15590     if test "x$FOUND_MAKE" = x; then
15591       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
15592     fi
15593   else
15594     # Try our hardest to locate a correct version of GNU make
15595     for ac_prog in gmake
15596 do
15597   # Extract the first word of "$ac_prog", so it can be a program name with args.
15598 set dummy $ac_prog; ac_word=$2
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15600 $as_echo_n "checking for $ac_word... " >&6; }
15601 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
15602   $as_echo_n "(cached) " >&6
15603 else
15604   case $CHECK_GMAKE in
15605   [\\/]* | ?:[\\/]*)
15606   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
15607   ;;
15608   *)
15609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15610 for as_dir in $PATH
15611 do
15612   IFS=$as_save_IFS
15613   test -z "$as_dir" && as_dir=.
15614     for ac_exec_ext in '' $ac_executable_extensions; do
15615   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15616     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
15617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15618     break 2
15619   fi
15620 done
15621   done
15622 IFS=$as_save_IFS
15623 
15624   ;;
15625 esac
15626 fi
15627 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
15628 if test -n "$CHECK_GMAKE"; then
15629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
15630 $as_echo "$CHECK_GMAKE" >&6; }
15631 else
15632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15633 $as_echo "no" >&6; }
15634 fi
15635 
15636 
15637   test -n "$CHECK_GMAKE" && break
15638 done
15639 
15640 
15641   MAKE_CANDIDATE=""$CHECK_GMAKE""
15642   DESCRIPTION="gmake in PATH"
15643   if test "x$MAKE_CANDIDATE" != x; then
15644     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15645 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15646     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15647     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15648     if test "x$IS_GNU_MAKE" = x; then
15649       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15650 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15651     else
15652       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15653       if test "x$IS_MODERN_MAKE" = x; then
15654         { $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
15655 $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;}
15656       else
15657         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15658           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15659             MAKE_EXPECTED_ENV='cygwin'
15660           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15661             MAKE_EXPECTED_ENV='msys'
15662           else
15663             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15664           fi
15665           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15666           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15667         else
15668           # Not relevant for non-Windows
15669           IS_MAKE_CORRECT_ENV=true
15670         fi
15671         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15672           { $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
15673 $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;}
15674         else
15675           FOUND_MAKE=$MAKE_CANDIDATE
15676 
15677   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15678 
15679   # First separate the path from the arguments. This will split at the first
15680   # space.
15681   complete="$FOUND_MAKE"
15682   path="${complete%% *}"
15683   tmp="$complete EOL"
15684   arguments="${tmp#* }"
15685 
15686   # Input might be given as Windows format, start by converting to
15687   # unix format.
15688   new_path=`$CYGPATH -u "$path"`
15689 
15690   # Now try to locate executable using which
15691   new_path=`$WHICH "$new_path" 2> /dev/null`
15692   # bat and cmd files are not always considered executable in cygwin causing which
15693   # to not find them
15694   if test "x$new_path" = x \
15695       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15696       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15697     new_path=`$CYGPATH -u "$path"`
15698   fi
15699   if test "x$new_path" = x; then
15700     # Oops. Which didn't find the executable.
15701     # The splitting of arguments from the executable at a space might have been incorrect,
15702     # since paths with space are more likely in Windows. Give it another try with the whole
15703     # argument.
15704     path="$complete"
15705     arguments="EOL"
15706     new_path=`$CYGPATH -u "$path"`
15707     new_path=`$WHICH "$new_path" 2> /dev/null`
15708     # bat and cmd files are not always considered executable in cygwin causing which
15709     # to not find them
15710     if test "x$new_path" = x \
15711         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15712         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15713       new_path=`$CYGPATH -u "$path"`
15714     fi
15715     if test "x$new_path" = x; then
15716       # It's still not found. Now this is an unrecoverable error.
15717       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15718 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15719       has_space=`$ECHO "$complete" | $GREP " "`
15720       if test "x$has_space" != x; then
15721         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15722 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15723       fi
15724       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15725     fi
15726   fi
15727 
15728   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15729   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15730   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15731   # "foo.exe" is OK but "foo" is an error.
15732   #
15733   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15734   # It is also a way to make sure we got the proper file name for the real test later on.
15735   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15736   if test "x$test_shortpath" = x; then
15737     # Short path failed, file does not exist as specified.
15738     # Try adding .exe or .cmd
15739     if test -f "${new_path}.exe"; then
15740       input_to_shortpath="${new_path}.exe"
15741     elif test -f "${new_path}.cmd"; then
15742       input_to_shortpath="${new_path}.cmd"
15743     else
15744       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15745 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15746       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15747 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15748       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15749     fi
15750   else
15751     input_to_shortpath="$new_path"
15752   fi
15753 
15754   # Call helper function which possibly converts this using DOS-style short mode.
15755   # If so, the updated path is stored in $new_path.
15756   new_path="$input_to_shortpath"
15757 
15758   input_path="$input_to_shortpath"
15759   # Check if we need to convert this using DOS-style short mode. If the path
15760   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15761   # take no chances and rewrite it.
15762   # Note: m4 eats our [], so we need to use [ and ] instead.
15763   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15764   if test "x$has_forbidden_chars" != x; then
15765     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15766     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15767     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15768     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15769       # Going to short mode and back again did indeed matter. Since short mode is
15770       # case insensitive, let's make it lowercase to improve readability.
15771       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15772       # Now convert it back to Unix-stile (cygpath)
15773       input_path=`$CYGPATH -u "$shortmode_path"`
15774       new_path="$input_path"
15775     fi
15776   fi
15777 
15778   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15779   if test "x$test_cygdrive_prefix" = x; then
15780     # As a simple fix, exclude /usr/bin since it's not a real path.
15781     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15782       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15783       # a path prefixed by /cygdrive for fixpath to work.
15784       new_path="$CYGWIN_ROOT_PATH$input_path"
15785     fi
15786   fi
15787 
15788   # remove trailing .exe if any
15789   new_path="${new_path/%.exe/}"
15790 
15791   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15792 
15793   # First separate the path from the arguments. This will split at the first
15794   # space.
15795   complete="$FOUND_MAKE"
15796   path="${complete%% *}"
15797   tmp="$complete EOL"
15798   arguments="${tmp#* }"
15799 
15800   # Input might be given as Windows format, start by converting to
15801   # unix format.
15802   new_path="$path"
15803 
15804   windows_path="$new_path"
15805   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15806     unix_path=`$CYGPATH -u "$windows_path"`
15807     new_path="$unix_path"
15808   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15809     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15810     new_path="$unix_path"
15811   fi
15812 
15813 
15814   # Now try to locate executable using which
15815   new_path=`$WHICH "$new_path" 2> /dev/null`
15816 
15817   if test "x$new_path" = x; then
15818     # Oops. Which didn't find the executable.
15819     # The splitting of arguments from the executable at a space might have been incorrect,
15820     # since paths with space are more likely in Windows. Give it another try with the whole
15821     # argument.
15822     path="$complete"
15823     arguments="EOL"
15824     new_path="$path"
15825 
15826   windows_path="$new_path"
15827   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15828     unix_path=`$CYGPATH -u "$windows_path"`
15829     new_path="$unix_path"
15830   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15831     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15832     new_path="$unix_path"
15833   fi
15834 
15835 
15836     new_path=`$WHICH "$new_path" 2> /dev/null`
15837     # bat and cmd files are not always considered executable in MSYS causing which
15838     # to not find them
15839     if test "x$new_path" = x \
15840         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15841         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15842       new_path="$path"
15843 
15844   windows_path="$new_path"
15845   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15846     unix_path=`$CYGPATH -u "$windows_path"`
15847     new_path="$unix_path"
15848   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15849     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15850     new_path="$unix_path"
15851   fi
15852 
15853     fi
15854 
15855     if test "x$new_path" = x; then
15856       # It's still not found. Now this is an unrecoverable error.
15857       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15858 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15859       has_space=`$ECHO "$complete" | $GREP " "`
15860       if test "x$has_space" != x; then
15861         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15862 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15863       fi
15864       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15865     fi
15866   fi
15867 
15868   # Now new_path has a complete unix path to the binary
15869   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15870     # Keep paths in /bin as-is, but remove trailing .exe if any
15871     new_path="${new_path/%.exe/}"
15872     # Do not save /bin paths to all_fixpath_prefixes!
15873   else
15874     # Not in mixed or Windows style, start by that.
15875     new_path=`cmd //c echo $new_path`
15876 
15877   input_path="$new_path"
15878   # Check if we need to convert this using DOS-style short mode. If the path
15879   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15880   # take no chances and rewrite it.
15881   # Note: m4 eats our [], so we need to use [ and ] instead.
15882   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15883   if test "x$has_forbidden_chars" != x; then
15884     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15885     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15886   fi
15887 
15888     # Output is in $new_path
15889 
15890   windows_path="$new_path"
15891   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15892     unix_path=`$CYGPATH -u "$windows_path"`
15893     new_path="$unix_path"
15894   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15895     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15896     new_path="$unix_path"
15897   fi
15898 
15899     # remove trailing .exe if any
15900     new_path="${new_path/%.exe/}"
15901 
15902     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15903     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15904   fi
15905 
15906   else
15907     # We're on a posix platform. Hooray! :)
15908     # First separate the path from the arguments. This will split at the first
15909     # space.
15910     complete="$FOUND_MAKE"
15911     path="${complete%% *}"
15912     tmp="$complete EOL"
15913     arguments="${tmp#* }"
15914 
15915     # Cannot rely on the command "which" here since it doesn't always work.
15916     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15917     if test -z "$is_absolute_path"; then
15918       # Path to executable is not absolute. Find it.
15919       IFS_save="$IFS"
15920       IFS=:
15921       for p in $PATH; do
15922         if test -f "$p/$path" && test -x "$p/$path"; then
15923           new_path="$p/$path"
15924           break
15925         fi
15926       done
15927       IFS="$IFS_save"
15928     else
15929       # This is an absolute path, we can use it without further modifications.
15930       new_path="$path"
15931     fi
15932 
15933     if test "x$new_path" = x; then
15934       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15935 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15936       has_space=`$ECHO "$complete" | $GREP " "`
15937       if test "x$has_space" != x; then
15938         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15939 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15940       fi
15941       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15942     fi
15943   fi
15944 
15945   # Now join together the path and the arguments once again
15946   if test "x$arguments" != xEOL; then
15947     new_complete="$new_path ${arguments% *}"
15948   else
15949     new_complete="$new_path"
15950   fi
15951 
15952   if test "x$complete" != "x$new_complete"; then
15953     FOUND_MAKE="$new_complete"
15954     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15955 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15956   fi
15957 
15958         fi
15959       fi
15960     fi
15961   fi
15962 
15963 
15964     if test "x$FOUND_MAKE" = x; then
15965       for ac_prog in make
15966 do
15967   # Extract the first word of "$ac_prog", so it can be a program name with args.
15968 set dummy $ac_prog; ac_word=$2
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15970 $as_echo_n "checking for $ac_word... " >&6; }
15971 if ${ac_cv_path_CHECK_MAKE+:} false; then :
15972   $as_echo_n "(cached) " >&6
15973 else
15974   case $CHECK_MAKE in
15975   [\\/]* | ?:[\\/]*)
15976   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
15977   ;;
15978   *)
15979   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15980 for as_dir in $PATH
15981 do
15982   IFS=$as_save_IFS
15983   test -z "$as_dir" && as_dir=.
15984     for ac_exec_ext in '' $ac_executable_extensions; do
15985   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15986     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
15987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15988     break 2
15989   fi
15990 done
15991   done
15992 IFS=$as_save_IFS
15993 
15994   ;;
15995 esac
15996 fi
15997 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
15998 if test -n "$CHECK_MAKE"; then
15999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
16000 $as_echo "$CHECK_MAKE" >&6; }
16001 else
16002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16003 $as_echo "no" >&6; }
16004 fi
16005 
16006 
16007   test -n "$CHECK_MAKE" && break
16008 done
16009 
16010 
16011   MAKE_CANDIDATE=""$CHECK_MAKE""
16012   DESCRIPTION="make in PATH"
16013   if test "x$MAKE_CANDIDATE" != x; then
16014     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16015 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16016     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16017     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16018     if test "x$IS_GNU_MAKE" = x; then
16019       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16020 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16021     else
16022       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16023       if test "x$IS_MODERN_MAKE" = x; then
16024         { $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
16025 $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;}
16026       else
16027         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16028           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16029             MAKE_EXPECTED_ENV='cygwin'
16030           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16031             MAKE_EXPECTED_ENV='msys'
16032           else
16033             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16034           fi
16035           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16036           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16037         else
16038           # Not relevant for non-Windows
16039           IS_MAKE_CORRECT_ENV=true
16040         fi
16041         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16042           { $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
16043 $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;}
16044         else
16045           FOUND_MAKE=$MAKE_CANDIDATE
16046 
16047   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16048 
16049   # First separate the path from the arguments. This will split at the first
16050   # space.
16051   complete="$FOUND_MAKE"
16052   path="${complete%% *}"
16053   tmp="$complete EOL"
16054   arguments="${tmp#* }"
16055 
16056   # Input might be given as Windows format, start by converting to
16057   # unix format.
16058   new_path=`$CYGPATH -u "$path"`
16059 
16060   # Now try to locate executable using which
16061   new_path=`$WHICH "$new_path" 2> /dev/null`
16062   # bat and cmd files are not always considered executable in cygwin causing which
16063   # to not find them
16064   if test "x$new_path" = x \
16065       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16066       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16067     new_path=`$CYGPATH -u "$path"`
16068   fi
16069   if test "x$new_path" = x; then
16070     # Oops. Which didn't find the executable.
16071     # The splitting of arguments from the executable at a space might have been incorrect,
16072     # since paths with space are more likely in Windows. Give it another try with the whole
16073     # argument.
16074     path="$complete"
16075     arguments="EOL"
16076     new_path=`$CYGPATH -u "$path"`
16077     new_path=`$WHICH "$new_path" 2> /dev/null`
16078     # bat and cmd files are not always considered executable in cygwin causing which
16079     # to not find them
16080     if test "x$new_path" = x \
16081         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16082         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16083       new_path=`$CYGPATH -u "$path"`
16084     fi
16085     if test "x$new_path" = x; then
16086       # It's still not found. Now this is an unrecoverable error.
16087       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16088 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16089       has_space=`$ECHO "$complete" | $GREP " "`
16090       if test "x$has_space" != x; then
16091         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16092 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16093       fi
16094       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16095     fi
16096   fi
16097 
16098   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16099   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16100   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16101   # "foo.exe" is OK but "foo" is an error.
16102   #
16103   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16104   # It is also a way to make sure we got the proper file name for the real test later on.
16105   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16106   if test "x$test_shortpath" = x; then
16107     # Short path failed, file does not exist as specified.
16108     # Try adding .exe or .cmd
16109     if test -f "${new_path}.exe"; then
16110       input_to_shortpath="${new_path}.exe"
16111     elif test -f "${new_path}.cmd"; then
16112       input_to_shortpath="${new_path}.cmd"
16113     else
16114       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16115 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16116       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16117 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16118       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16119     fi
16120   else
16121     input_to_shortpath="$new_path"
16122   fi
16123 
16124   # Call helper function which possibly converts this using DOS-style short mode.
16125   # If so, the updated path is stored in $new_path.
16126   new_path="$input_to_shortpath"
16127 
16128   input_path="$input_to_shortpath"
16129   # Check if we need to convert this using DOS-style short mode. If the path
16130   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16131   # take no chances and rewrite it.
16132   # Note: m4 eats our [], so we need to use [ and ] instead.
16133   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16134   if test "x$has_forbidden_chars" != x; then
16135     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16136     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16137     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16138     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16139       # Going to short mode and back again did indeed matter. Since short mode is
16140       # case insensitive, let's make it lowercase to improve readability.
16141       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16142       # Now convert it back to Unix-stile (cygpath)
16143       input_path=`$CYGPATH -u "$shortmode_path"`
16144       new_path="$input_path"
16145     fi
16146   fi
16147 
16148   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16149   if test "x$test_cygdrive_prefix" = x; then
16150     # As a simple fix, exclude /usr/bin since it's not a real path.
16151     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16152       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16153       # a path prefixed by /cygdrive for fixpath to work.
16154       new_path="$CYGWIN_ROOT_PATH$input_path"
16155     fi
16156   fi
16157 
16158   # remove trailing .exe if any
16159   new_path="${new_path/%.exe/}"
16160 
16161   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16162 
16163   # First separate the path from the arguments. This will split at the first
16164   # space.
16165   complete="$FOUND_MAKE"
16166   path="${complete%% *}"
16167   tmp="$complete EOL"
16168   arguments="${tmp#* }"
16169 
16170   # Input might be given as Windows format, start by converting to
16171   # unix format.
16172   new_path="$path"
16173 
16174   windows_path="$new_path"
16175   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16176     unix_path=`$CYGPATH -u "$windows_path"`
16177     new_path="$unix_path"
16178   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16179     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16180     new_path="$unix_path"
16181   fi
16182 
16183 
16184   # Now try to locate executable using which
16185   new_path=`$WHICH "$new_path" 2> /dev/null`
16186 
16187   if test "x$new_path" = x; then
16188     # Oops. Which didn't find the executable.
16189     # The splitting of arguments from the executable at a space might have been incorrect,
16190     # since paths with space are more likely in Windows. Give it another try with the whole
16191     # argument.
16192     path="$complete"
16193     arguments="EOL"
16194     new_path="$path"
16195 
16196   windows_path="$new_path"
16197   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16198     unix_path=`$CYGPATH -u "$windows_path"`
16199     new_path="$unix_path"
16200   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16201     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16202     new_path="$unix_path"
16203   fi
16204 
16205 
16206     new_path=`$WHICH "$new_path" 2> /dev/null`
16207     # bat and cmd files are not always considered executable in MSYS 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="$path"
16213 
16214   windows_path="$new_path"
16215   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16216     unix_path=`$CYGPATH -u "$windows_path"`
16217     new_path="$unix_path"
16218   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16219     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16220     new_path="$unix_path"
16221   fi
16222 
16223     fi
16224 
16225     if test "x$new_path" = x; then
16226       # It's still not found. Now this is an unrecoverable error.
16227       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16228 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16229       has_space=`$ECHO "$complete" | $GREP " "`
16230       if test "x$has_space" != x; then
16231         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16232 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16233       fi
16234       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16235     fi
16236   fi
16237 
16238   # Now new_path has a complete unix path to the binary
16239   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16240     # Keep paths in /bin as-is, but remove trailing .exe if any
16241     new_path="${new_path/%.exe/}"
16242     # Do not save /bin paths to all_fixpath_prefixes!
16243   else
16244     # Not in mixed or Windows style, start by that.
16245     new_path=`cmd //c echo $new_path`
16246 
16247   input_path="$new_path"
16248   # Check if we need to convert this using DOS-style short mode. If the path
16249   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16250   # take no chances and rewrite it.
16251   # Note: m4 eats our [], so we need to use [ and ] instead.
16252   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16253   if test "x$has_forbidden_chars" != x; then
16254     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16255     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16256   fi
16257 
16258     # Output is in $new_path
16259 
16260   windows_path="$new_path"
16261   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16262     unix_path=`$CYGPATH -u "$windows_path"`
16263     new_path="$unix_path"
16264   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16265     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16266     new_path="$unix_path"
16267   fi
16268 
16269     # remove trailing .exe if any
16270     new_path="${new_path/%.exe/}"
16271 
16272     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16273     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16274   fi
16275 
16276   else
16277     # We're on a posix platform. Hooray! :)
16278     # First separate the path from the arguments. This will split at the first
16279     # space.
16280     complete="$FOUND_MAKE"
16281     path="${complete%% *}"
16282     tmp="$complete EOL"
16283     arguments="${tmp#* }"
16284 
16285     # Cannot rely on the command "which" here since it doesn't always work.
16286     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16287     if test -z "$is_absolute_path"; then
16288       # Path to executable is not absolute. Find it.
16289       IFS_save="$IFS"
16290       IFS=:
16291       for p in $PATH; do
16292         if test -f "$p/$path" && test -x "$p/$path"; then
16293           new_path="$p/$path"
16294           break
16295         fi
16296       done
16297       IFS="$IFS_save"
16298     else
16299       # This is an absolute path, we can use it without further modifications.
16300       new_path="$path"
16301     fi
16302 
16303     if test "x$new_path" = x; then
16304       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16305 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16306       has_space=`$ECHO "$complete" | $GREP " "`
16307       if test "x$has_space" != x; then
16308         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16309 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16310       fi
16311       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16312     fi
16313   fi
16314 
16315   # Now join together the path and the arguments once again
16316   if test "x$arguments" != xEOL; then
16317     new_complete="$new_path ${arguments% *}"
16318   else
16319     new_complete="$new_path"
16320   fi
16321 
16322   if test "x$complete" != "x$new_complete"; then
16323     FOUND_MAKE="$new_complete"
16324     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16325 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16326   fi
16327 
16328         fi
16329       fi
16330     fi
16331   fi
16332 
16333     fi
16334 
16335     if test "x$FOUND_MAKE" = x; then
16336       if test "x$TOOLCHAIN_PATH" != x; then
16337         # We have a toolchain path, check that as well before giving up.
16338         OLD_PATH=$PATH
16339         PATH=$TOOLCHAIN_PATH:$PATH
16340         for ac_prog in gmake
16341 do
16342   # Extract the first word of "$ac_prog", so it can be a program name with args.
16343 set dummy $ac_prog; ac_word=$2
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16345 $as_echo_n "checking for $ac_word... " >&6; }
16346 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
16347   $as_echo_n "(cached) " >&6
16348 else
16349   case $CHECK_TOOLSDIR_GMAKE in
16350   [\\/]* | ?:[\\/]*)
16351   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
16352   ;;
16353   *)
16354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16355 for as_dir in $PATH
16356 do
16357   IFS=$as_save_IFS
16358   test -z "$as_dir" && as_dir=.
16359     for ac_exec_ext in '' $ac_executable_extensions; do
16360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16361     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
16362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16363     break 2
16364   fi
16365 done
16366   done
16367 IFS=$as_save_IFS
16368 
16369   ;;
16370 esac
16371 fi
16372 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
16373 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
16374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
16375 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
16376 else
16377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16378 $as_echo "no" >&6; }
16379 fi
16380 
16381 
16382   test -n "$CHECK_TOOLSDIR_GMAKE" && break
16383 done
16384 
16385 
16386   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
16387   DESCRIPTION="gmake in tools-dir"
16388   if test "x$MAKE_CANDIDATE" != x; then
16389     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16390 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16391     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16392     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16393     if test "x$IS_GNU_MAKE" = x; then
16394       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16395 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16396     else
16397       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16398       if test "x$IS_MODERN_MAKE" = x; then
16399         { $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
16400 $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;}
16401       else
16402         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16403           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16404             MAKE_EXPECTED_ENV='cygwin'
16405           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16406             MAKE_EXPECTED_ENV='msys'
16407           else
16408             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16409           fi
16410           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16411           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16412         else
16413           # Not relevant for non-Windows
16414           IS_MAKE_CORRECT_ENV=true
16415         fi
16416         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16417           { $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
16418 $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;}
16419         else
16420           FOUND_MAKE=$MAKE_CANDIDATE
16421 
16422   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16423 
16424   # First separate the path from the arguments. This will split at the first
16425   # space.
16426   complete="$FOUND_MAKE"
16427   path="${complete%% *}"
16428   tmp="$complete EOL"
16429   arguments="${tmp#* }"
16430 
16431   # Input might be given as Windows format, start by converting to
16432   # unix format.
16433   new_path=`$CYGPATH -u "$path"`
16434 
16435   # Now try to locate executable using which
16436   new_path=`$WHICH "$new_path" 2> /dev/null`
16437   # bat and cmd files are not always considered executable in cygwin causing which
16438   # to not find them
16439   if test "x$new_path" = x \
16440       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16441       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16442     new_path=`$CYGPATH -u "$path"`
16443   fi
16444   if test "x$new_path" = x; then
16445     # Oops. Which didn't find the executable.
16446     # The splitting of arguments from the executable at a space might have been incorrect,
16447     # since paths with space are more likely in Windows. Give it another try with the whole
16448     # argument.
16449     path="$complete"
16450     arguments="EOL"
16451     new_path=`$CYGPATH -u "$path"`
16452     new_path=`$WHICH "$new_path" 2> /dev/null`
16453     # bat and cmd files are not always considered executable in cygwin causing which
16454     # to not find them
16455     if test "x$new_path" = x \
16456         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16457         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16458       new_path=`$CYGPATH -u "$path"`
16459     fi
16460     if test "x$new_path" = x; then
16461       # It's still not found. Now this is an unrecoverable error.
16462       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16463 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16464       has_space=`$ECHO "$complete" | $GREP " "`
16465       if test "x$has_space" != x; then
16466         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16467 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16468       fi
16469       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16470     fi
16471   fi
16472 
16473   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16474   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16475   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16476   # "foo.exe" is OK but "foo" is an error.
16477   #
16478   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16479   # It is also a way to make sure we got the proper file name for the real test later on.
16480   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16481   if test "x$test_shortpath" = x; then
16482     # Short path failed, file does not exist as specified.
16483     # Try adding .exe or .cmd
16484     if test -f "${new_path}.exe"; then
16485       input_to_shortpath="${new_path}.exe"
16486     elif test -f "${new_path}.cmd"; then
16487       input_to_shortpath="${new_path}.cmd"
16488     else
16489       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16490 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16491       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16492 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16493       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16494     fi
16495   else
16496     input_to_shortpath="$new_path"
16497   fi
16498 
16499   # Call helper function which possibly converts this using DOS-style short mode.
16500   # If so, the updated path is stored in $new_path.
16501   new_path="$input_to_shortpath"
16502 
16503   input_path="$input_to_shortpath"
16504   # Check if we need to convert this using DOS-style short mode. If the path
16505   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16506   # take no chances and rewrite it.
16507   # Note: m4 eats our [], so we need to use [ and ] instead.
16508   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16509   if test "x$has_forbidden_chars" != x; then
16510     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16511     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16512     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16513     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16514       # Going to short mode and back again did indeed matter. Since short mode is
16515       # case insensitive, let's make it lowercase to improve readability.
16516       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16517       # Now convert it back to Unix-stile (cygpath)
16518       input_path=`$CYGPATH -u "$shortmode_path"`
16519       new_path="$input_path"
16520     fi
16521   fi
16522 
16523   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16524   if test "x$test_cygdrive_prefix" = x; then
16525     # As a simple fix, exclude /usr/bin since it's not a real path.
16526     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16527       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16528       # a path prefixed by /cygdrive for fixpath to work.
16529       new_path="$CYGWIN_ROOT_PATH$input_path"
16530     fi
16531   fi
16532 
16533   # remove trailing .exe if any
16534   new_path="${new_path/%.exe/}"
16535 
16536   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16537 
16538   # First separate the path from the arguments. This will split at the first
16539   # space.
16540   complete="$FOUND_MAKE"
16541   path="${complete%% *}"
16542   tmp="$complete EOL"
16543   arguments="${tmp#* }"
16544 
16545   # Input might be given as Windows format, start by converting to
16546   # unix format.
16547   new_path="$path"
16548 
16549   windows_path="$new_path"
16550   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16551     unix_path=`$CYGPATH -u "$windows_path"`
16552     new_path="$unix_path"
16553   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16554     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16555     new_path="$unix_path"
16556   fi
16557 
16558 
16559   # Now try to locate executable using which
16560   new_path=`$WHICH "$new_path" 2> /dev/null`
16561 
16562   if test "x$new_path" = x; then
16563     # Oops. Which didn't find the executable.
16564     # The splitting of arguments from the executable at a space might have been incorrect,
16565     # since paths with space are more likely in Windows. Give it another try with the whole
16566     # argument.
16567     path="$complete"
16568     arguments="EOL"
16569     new_path="$path"
16570 
16571   windows_path="$new_path"
16572   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16573     unix_path=`$CYGPATH -u "$windows_path"`
16574     new_path="$unix_path"
16575   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16576     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16577     new_path="$unix_path"
16578   fi
16579 
16580 
16581     new_path=`$WHICH "$new_path" 2> /dev/null`
16582     # bat and cmd files are not always considered executable in MSYS causing which
16583     # to not find them
16584     if test "x$new_path" = x \
16585         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16586         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16587       new_path="$path"
16588 
16589   windows_path="$new_path"
16590   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16591     unix_path=`$CYGPATH -u "$windows_path"`
16592     new_path="$unix_path"
16593   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16594     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16595     new_path="$unix_path"
16596   fi
16597 
16598     fi
16599 
16600     if test "x$new_path" = x; then
16601       # It's still not found. Now this is an unrecoverable error.
16602       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16603 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16604       has_space=`$ECHO "$complete" | $GREP " "`
16605       if test "x$has_space" != x; then
16606         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16607 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16608       fi
16609       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16610     fi
16611   fi
16612 
16613   # Now new_path has a complete unix path to the binary
16614   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16615     # Keep paths in /bin as-is, but remove trailing .exe if any
16616     new_path="${new_path/%.exe/}"
16617     # Do not save /bin paths to all_fixpath_prefixes!
16618   else
16619     # Not in mixed or Windows style, start by that.
16620     new_path=`cmd //c echo $new_path`
16621 
16622   input_path="$new_path"
16623   # Check if we need to convert this using DOS-style short mode. If the path
16624   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16625   # take no chances and rewrite it.
16626   # Note: m4 eats our [], so we need to use [ and ] instead.
16627   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16628   if test "x$has_forbidden_chars" != x; then
16629     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16630     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16631   fi
16632 
16633     # Output is in $new_path
16634 
16635   windows_path="$new_path"
16636   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16637     unix_path=`$CYGPATH -u "$windows_path"`
16638     new_path="$unix_path"
16639   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16640     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16641     new_path="$unix_path"
16642   fi
16643 
16644     # remove trailing .exe if any
16645     new_path="${new_path/%.exe/}"
16646 
16647     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16648     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16649   fi
16650 
16651   else
16652     # We're on a posix platform. Hooray! :)
16653     # First separate the path from the arguments. This will split at the first
16654     # space.
16655     complete="$FOUND_MAKE"
16656     path="${complete%% *}"
16657     tmp="$complete EOL"
16658     arguments="${tmp#* }"
16659 
16660     # Cannot rely on the command "which" here since it doesn't always work.
16661     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16662     if test -z "$is_absolute_path"; then
16663       # Path to executable is not absolute. Find it.
16664       IFS_save="$IFS"
16665       IFS=:
16666       for p in $PATH; do
16667         if test -f "$p/$path" && test -x "$p/$path"; then
16668           new_path="$p/$path"
16669           break
16670         fi
16671       done
16672       IFS="$IFS_save"
16673     else
16674       # This is an absolute path, we can use it without further modifications.
16675       new_path="$path"
16676     fi
16677 
16678     if test "x$new_path" = x; then
16679       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16680 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16681       has_space=`$ECHO "$complete" | $GREP " "`
16682       if test "x$has_space" != x; then
16683         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16684 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16685       fi
16686       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16687     fi
16688   fi
16689 
16690   # Now join together the path and the arguments once again
16691   if test "x$arguments" != xEOL; then
16692     new_complete="$new_path ${arguments% *}"
16693   else
16694     new_complete="$new_path"
16695   fi
16696 
16697   if test "x$complete" != "x$new_complete"; then
16698     FOUND_MAKE="$new_complete"
16699     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16700 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16701   fi
16702 
16703         fi
16704       fi
16705     fi
16706   fi
16707 
16708         if test "x$FOUND_MAKE" = x; then
16709           for ac_prog in make
16710 do
16711   # Extract the first word of "$ac_prog", so it can be a program name with args.
16712 set dummy $ac_prog; ac_word=$2
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16714 $as_echo_n "checking for $ac_word... " >&6; }
16715 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
16716   $as_echo_n "(cached) " >&6
16717 else
16718   case $CHECK_TOOLSDIR_MAKE in
16719   [\\/]* | ?:[\\/]*)
16720   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
16721   ;;
16722   *)
16723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16724 for as_dir in $PATH
16725 do
16726   IFS=$as_save_IFS
16727   test -z "$as_dir" && as_dir=.
16728     for ac_exec_ext in '' $ac_executable_extensions; do
16729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16730     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
16731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16732     break 2
16733   fi
16734 done
16735   done
16736 IFS=$as_save_IFS
16737 
16738   ;;
16739 esac
16740 fi
16741 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
16742 if test -n "$CHECK_TOOLSDIR_MAKE"; then
16743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
16744 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
16745 else
16746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16747 $as_echo "no" >&6; }
16748 fi
16749 
16750 
16751   test -n "$CHECK_TOOLSDIR_MAKE" && break
16752 done
16753 
16754 
16755   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
16756   DESCRIPTION="make in tools-dir"
16757   if test "x$MAKE_CANDIDATE" != x; then
16758     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16759 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16760     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16761     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16762     if test "x$IS_GNU_MAKE" = x; then
16763       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16764 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16765     else
16766       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16767       if test "x$IS_MODERN_MAKE" = x; then
16768         { $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
16769 $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;}
16770       else
16771         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16772           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16773             MAKE_EXPECTED_ENV='cygwin'
16774           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16775             MAKE_EXPECTED_ENV='msys'
16776           else
16777             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16778           fi
16779           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16780           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16781         else
16782           # Not relevant for non-Windows
16783           IS_MAKE_CORRECT_ENV=true
16784         fi
16785         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16786           { $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
16787 $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;}
16788         else
16789           FOUND_MAKE=$MAKE_CANDIDATE
16790 
16791   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16792 
16793   # First separate the path from the arguments. This will split at the first
16794   # space.
16795   complete="$FOUND_MAKE"
16796   path="${complete%% *}"
16797   tmp="$complete EOL"
16798   arguments="${tmp#* }"
16799 
16800   # Input might be given as Windows format, start by converting to
16801   # unix format.
16802   new_path=`$CYGPATH -u "$path"`
16803 
16804   # Now try to locate executable using which
16805   new_path=`$WHICH "$new_path" 2> /dev/null`
16806   # bat and cmd files are not always considered executable in cygwin causing which
16807   # to not find them
16808   if test "x$new_path" = x \
16809       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16810       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16811     new_path=`$CYGPATH -u "$path"`
16812   fi
16813   if test "x$new_path" = x; then
16814     # Oops. Which didn't find the executable.
16815     # The splitting of arguments from the executable at a space might have been incorrect,
16816     # since paths with space are more likely in Windows. Give it another try with the whole
16817     # argument.
16818     path="$complete"
16819     arguments="EOL"
16820     new_path=`$CYGPATH -u "$path"`
16821     new_path=`$WHICH "$new_path" 2> /dev/null`
16822     # bat and cmd files are not always considered executable in cygwin causing which
16823     # to not find them
16824     if test "x$new_path" = x \
16825         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16826         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16827       new_path=`$CYGPATH -u "$path"`
16828     fi
16829     if test "x$new_path" = x; then
16830       # It's still not found. Now this is an unrecoverable error.
16831       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16832 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16833       has_space=`$ECHO "$complete" | $GREP " "`
16834       if test "x$has_space" != x; then
16835         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16836 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16837       fi
16838       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16839     fi
16840   fi
16841 
16842   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16843   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16844   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16845   # "foo.exe" is OK but "foo" is an error.
16846   #
16847   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16848   # It is also a way to make sure we got the proper file name for the real test later on.
16849   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16850   if test "x$test_shortpath" = x; then
16851     # Short path failed, file does not exist as specified.
16852     # Try adding .exe or .cmd
16853     if test -f "${new_path}.exe"; then
16854       input_to_shortpath="${new_path}.exe"
16855     elif test -f "${new_path}.cmd"; then
16856       input_to_shortpath="${new_path}.cmd"
16857     else
16858       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16859 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16860       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16861 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16862       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16863     fi
16864   else
16865     input_to_shortpath="$new_path"
16866   fi
16867 
16868   # Call helper function which possibly converts this using DOS-style short mode.
16869   # If so, the updated path is stored in $new_path.
16870   new_path="$input_to_shortpath"
16871 
16872   input_path="$input_to_shortpath"
16873   # Check if we need to convert this using DOS-style short mode. If the path
16874   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16875   # take no chances and rewrite it.
16876   # Note: m4 eats our [], so we need to use [ and ] instead.
16877   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16878   if test "x$has_forbidden_chars" != x; then
16879     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16880     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16881     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16882     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16883       # Going to short mode and back again did indeed matter. Since short mode is
16884       # case insensitive, let's make it lowercase to improve readability.
16885       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16886       # Now convert it back to Unix-stile (cygpath)
16887       input_path=`$CYGPATH -u "$shortmode_path"`
16888       new_path="$input_path"
16889     fi
16890   fi
16891 
16892   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16893   if test "x$test_cygdrive_prefix" = x; then
16894     # As a simple fix, exclude /usr/bin since it's not a real path.
16895     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16896       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16897       # a path prefixed by /cygdrive for fixpath to work.
16898       new_path="$CYGWIN_ROOT_PATH$input_path"
16899     fi
16900   fi
16901 
16902   # remove trailing .exe if any
16903   new_path="${new_path/%.exe/}"
16904 
16905   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16906 
16907   # First separate the path from the arguments. This will split at the first
16908   # space.
16909   complete="$FOUND_MAKE"
16910   path="${complete%% *}"
16911   tmp="$complete EOL"
16912   arguments="${tmp#* }"
16913 
16914   # Input might be given as Windows format, start by converting to
16915   # unix format.
16916   new_path="$path"
16917 
16918   windows_path="$new_path"
16919   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16920     unix_path=`$CYGPATH -u "$windows_path"`
16921     new_path="$unix_path"
16922   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16923     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16924     new_path="$unix_path"
16925   fi
16926 
16927 
16928   # Now try to locate executable using which
16929   new_path=`$WHICH "$new_path" 2> /dev/null`
16930 
16931   if test "x$new_path" = x; then
16932     # Oops. Which didn't find the executable.
16933     # The splitting of arguments from the executable at a space might have been incorrect,
16934     # since paths with space are more likely in Windows. Give it another try with the whole
16935     # argument.
16936     path="$complete"
16937     arguments="EOL"
16938     new_path="$path"
16939 
16940   windows_path="$new_path"
16941   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16942     unix_path=`$CYGPATH -u "$windows_path"`
16943     new_path="$unix_path"
16944   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16945     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16946     new_path="$unix_path"
16947   fi
16948 
16949 
16950     new_path=`$WHICH "$new_path" 2> /dev/null`
16951     # bat and cmd files are not always considered executable in MSYS causing which
16952     # to not find them
16953     if test "x$new_path" = x \
16954         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16955         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16956       new_path="$path"
16957 
16958   windows_path="$new_path"
16959   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16960     unix_path=`$CYGPATH -u "$windows_path"`
16961     new_path="$unix_path"
16962   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16963     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16964     new_path="$unix_path"
16965   fi
16966 
16967     fi
16968 
16969     if test "x$new_path" = x; then
16970       # It's still not found. Now this is an unrecoverable error.
16971       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16972 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16973       has_space=`$ECHO "$complete" | $GREP " "`
16974       if test "x$has_space" != x; then
16975         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16976 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16977       fi
16978       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16979     fi
16980   fi
16981 
16982   # Now new_path has a complete unix path to the binary
16983   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16984     # Keep paths in /bin as-is, but remove trailing .exe if any
16985     new_path="${new_path/%.exe/}"
16986     # Do not save /bin paths to all_fixpath_prefixes!
16987   else
16988     # Not in mixed or Windows style, start by that.
16989     new_path=`cmd //c echo $new_path`
16990 
16991   input_path="$new_path"
16992   # Check if we need to convert this using DOS-style short mode. If the path
16993   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16994   # take no chances and rewrite it.
16995   # Note: m4 eats our [], so we need to use [ and ] instead.
16996   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16997   if test "x$has_forbidden_chars" != x; then
16998     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16999     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17000   fi
17001 
17002     # Output is in $new_path
17003 
17004   windows_path="$new_path"
17005   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17006     unix_path=`$CYGPATH -u "$windows_path"`
17007     new_path="$unix_path"
17008   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17009     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17010     new_path="$unix_path"
17011   fi
17012 
17013     # remove trailing .exe if any
17014     new_path="${new_path/%.exe/}"
17015 
17016     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17017     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17018   fi
17019 
17020   else
17021     # We're on a posix platform. Hooray! :)
17022     # First separate the path from the arguments. This will split at the first
17023     # space.
17024     complete="$FOUND_MAKE"
17025     path="${complete%% *}"
17026     tmp="$complete EOL"
17027     arguments="${tmp#* }"
17028 
17029     # Cannot rely on the command "which" here since it doesn't always work.
17030     is_absolute_path=`$ECHO "$path" | $GREP ^/`
17031     if test -z "$is_absolute_path"; then
17032       # Path to executable is not absolute. Find it.
17033       IFS_save="$IFS"
17034       IFS=:
17035       for p in $PATH; do
17036         if test -f "$p/$path" && test -x "$p/$path"; then
17037           new_path="$p/$path"
17038           break
17039         fi
17040       done
17041       IFS="$IFS_save"
17042     else
17043       # This is an absolute path, we can use it without further modifications.
17044       new_path="$path"
17045     fi
17046 
17047     if test "x$new_path" = x; then
17048       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17049 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17050       has_space=`$ECHO "$complete" | $GREP " "`
17051       if test "x$has_space" != x; then
17052         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17053 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17054       fi
17055       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17056     fi
17057   fi
17058 
17059   # Now join together the path and the arguments once again
17060   if test "x$arguments" != xEOL; then
17061     new_complete="$new_path ${arguments% *}"
17062   else
17063     new_complete="$new_path"
17064   fi
17065 
17066   if test "x$complete" != "x$new_complete"; then
17067     FOUND_MAKE="$new_complete"
17068     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17069 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17070   fi
17071 
17072         fi
17073       fi
17074     fi
17075   fi
17076 
17077         fi
17078         PATH=$OLD_PATH
17079       fi
17080     fi
17081 
17082     if test "x$FOUND_MAKE" = x; then
17083       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
17084     fi
17085   fi
17086 
17087   MAKE=$FOUND_MAKE
17088 
17089   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
17090 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
17091 
17092 
17093 
17094   # Test if find supports -delete
17095   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
17096 $as_echo_n "checking if find supports -delete... " >&6; }
17097   FIND_DELETE="-delete"
17098 
17099   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
17100 
17101   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
17102 
17103   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
17104   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
17105     # No, it does not.
17106     rm $DELETEDIR/TestIfFindSupportsDelete
17107     FIND_DELETE="-exec rm \{\} \+"
17108     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17109 $as_echo "no" >&6; }
17110   else
17111     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17112 $as_echo "yes" >&6; }
17113   fi
17114   rmdir $DELETEDIR
17115 
17116 
17117 
17118   # These tools might not be installed by default,
17119   # need hint on how to install them.
17120 
17121 
17122 
17123   # Publish this variable in the help.
17124 
17125 
17126   if test "x$UNZIP" = x; then
17127     # The variable is not set by user, try to locate tool using the code snippet
17128     for ac_prog in unzip
17129 do
17130   # Extract the first word of "$ac_prog", so it can be a program name with args.
17131 set dummy $ac_prog; ac_word=$2
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17133 $as_echo_n "checking for $ac_word... " >&6; }
17134 if ${ac_cv_path_UNZIP+:} false; then :
17135   $as_echo_n "(cached) " >&6
17136 else
17137   case $UNZIP in
17138   [\\/]* | ?:[\\/]*)
17139   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17140   ;;
17141   *)
17142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17143 for as_dir in $PATH
17144 do
17145   IFS=$as_save_IFS
17146   test -z "$as_dir" && as_dir=.
17147     for ac_exec_ext in '' $ac_executable_extensions; do
17148   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17149     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17151     break 2
17152   fi
17153 done
17154   done
17155 IFS=$as_save_IFS
17156 
17157   ;;
17158 esac
17159 fi
17160 UNZIP=$ac_cv_path_UNZIP
17161 if test -n "$UNZIP"; then
17162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17163 $as_echo "$UNZIP" >&6; }
17164 else
17165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17166 $as_echo "no" >&6; }
17167 fi
17168 
17169 
17170   test -n "$UNZIP" && break
17171 done
17172 
17173   else
17174     # The variable is set, but is it from the command line or the environment?
17175 
17176     # Try to remove the string !UNZIP! from our list.
17177     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
17178     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17179       # If it failed, the variable was not from the command line. Ignore it,
17180       # but warn the user (except for BASH, which is always set by the calling BASH).
17181       if test "xUNZIP" != xBASH; then
17182         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
17183 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
17184       fi
17185       # Try to locate tool using the code snippet
17186       for ac_prog in unzip
17187 do
17188   # Extract the first word of "$ac_prog", so it can be a program name with args.
17189 set dummy $ac_prog; ac_word=$2
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17191 $as_echo_n "checking for $ac_word... " >&6; }
17192 if ${ac_cv_path_UNZIP+:} false; then :
17193   $as_echo_n "(cached) " >&6
17194 else
17195   case $UNZIP in
17196   [\\/]* | ?:[\\/]*)
17197   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17198   ;;
17199   *)
17200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17201 for as_dir in $PATH
17202 do
17203   IFS=$as_save_IFS
17204   test -z "$as_dir" && as_dir=.
17205     for ac_exec_ext in '' $ac_executable_extensions; do
17206   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17207     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17209     break 2
17210   fi
17211 done
17212   done
17213 IFS=$as_save_IFS
17214 
17215   ;;
17216 esac
17217 fi
17218 UNZIP=$ac_cv_path_UNZIP
17219 if test -n "$UNZIP"; then
17220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17221 $as_echo "$UNZIP" >&6; }
17222 else
17223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17224 $as_echo "no" >&6; }
17225 fi
17226 
17227 
17228   test -n "$UNZIP" && break
17229 done
17230 
17231     else
17232       # If it succeeded, then it was overridden by the user. We will use it
17233       # for the tool.
17234 
17235       # First remove it from the list of overridden variables, so we can test
17236       # for unknown variables in the end.
17237       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17238 
17239       # Check if the provided tool contains a complete path.
17240       tool_specified="$UNZIP"
17241       tool_basename="${tool_specified##*/}"
17242       if test "x$tool_basename" = "x$tool_specified"; then
17243         # A command without a complete path is provided, search $PATH.
17244         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
17245 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
17246         # Extract the first word of "$tool_basename", so it can be a program name with args.
17247 set dummy $tool_basename; ac_word=$2
17248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17249 $as_echo_n "checking for $ac_word... " >&6; }
17250 if ${ac_cv_path_UNZIP+:} false; then :
17251   $as_echo_n "(cached) " >&6
17252 else
17253   case $UNZIP in
17254   [\\/]* | ?:[\\/]*)
17255   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17256   ;;
17257   *)
17258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17259 for as_dir in $PATH
17260 do
17261   IFS=$as_save_IFS
17262   test -z "$as_dir" && as_dir=.
17263     for ac_exec_ext in '' $ac_executable_extensions; do
17264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17265     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17267     break 2
17268   fi
17269 done
17270   done
17271 IFS=$as_save_IFS
17272 
17273   ;;
17274 esac
17275 fi
17276 UNZIP=$ac_cv_path_UNZIP
17277 if test -n "$UNZIP"; then
17278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17279 $as_echo "$UNZIP" >&6; }
17280 else
17281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17282 $as_echo "no" >&6; }
17283 fi
17284 
17285 
17286         if test "x$UNZIP" = x; then
17287           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17288         fi
17289       else
17290         # Otherwise we believe it is a complete path. Use it as it is.
17291         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
17292 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
17293         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
17294 $as_echo_n "checking for UNZIP... " >&6; }
17295         if test ! -x "$tool_specified"; then
17296           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17297 $as_echo "not found" >&6; }
17298           as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17299         fi
17300         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17301 $as_echo "$tool_specified" >&6; }
17302       fi
17303     fi
17304   fi
17305 
17306 
17307 
17308   if test "x$UNZIP" = x; then
17309     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
17310   fi
17311 
17312 
17313 
17314 
17315 
17316   # Publish this variable in the help.
17317 
17318 
17319   if test "x$ZIP" = x; then
17320     # The variable is not set by user, try to locate tool using the code snippet
17321     for ac_prog in zip
17322 do
17323   # Extract the first word of "$ac_prog", so it can be a program name with args.
17324 set dummy $ac_prog; ac_word=$2
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17326 $as_echo_n "checking for $ac_word... " >&6; }
17327 if ${ac_cv_path_ZIP+:} false; then :
17328   $as_echo_n "(cached) " >&6
17329 else
17330   case $ZIP in
17331   [\\/]* | ?:[\\/]*)
17332   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17333   ;;
17334   *)
17335   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17336 for as_dir in $PATH
17337 do
17338   IFS=$as_save_IFS
17339   test -z "$as_dir" && as_dir=.
17340     for ac_exec_ext in '' $ac_executable_extensions; do
17341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17342     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17344     break 2
17345   fi
17346 done
17347   done
17348 IFS=$as_save_IFS
17349 
17350   ;;
17351 esac
17352 fi
17353 ZIP=$ac_cv_path_ZIP
17354 if test -n "$ZIP"; then
17355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17356 $as_echo "$ZIP" >&6; }
17357 else
17358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17359 $as_echo "no" >&6; }
17360 fi
17361 
17362 
17363   test -n "$ZIP" && break
17364 done
17365 
17366   else
17367     # The variable is set, but is it from the command line or the environment?
17368 
17369     # Try to remove the string !ZIP! from our list.
17370     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
17371     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17372       # If it failed, the variable was not from the command line. Ignore it,
17373       # but warn the user (except for BASH, which is always set by the calling BASH).
17374       if test "xZIP" != xBASH; then
17375         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
17376 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
17377       fi
17378       # Try to locate tool using the code snippet
17379       for ac_prog in zip
17380 do
17381   # Extract the first word of "$ac_prog", so it can be a program name with args.
17382 set dummy $ac_prog; ac_word=$2
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17384 $as_echo_n "checking for $ac_word... " >&6; }
17385 if ${ac_cv_path_ZIP+:} false; then :
17386   $as_echo_n "(cached) " >&6
17387 else
17388   case $ZIP in
17389   [\\/]* | ?:[\\/]*)
17390   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17391   ;;
17392   *)
17393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17394 for as_dir in $PATH
17395 do
17396   IFS=$as_save_IFS
17397   test -z "$as_dir" && as_dir=.
17398     for ac_exec_ext in '' $ac_executable_extensions; do
17399   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17400     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17402     break 2
17403   fi
17404 done
17405   done
17406 IFS=$as_save_IFS
17407 
17408   ;;
17409 esac
17410 fi
17411 ZIP=$ac_cv_path_ZIP
17412 if test -n "$ZIP"; then
17413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17414 $as_echo "$ZIP" >&6; }
17415 else
17416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17417 $as_echo "no" >&6; }
17418 fi
17419 
17420 
17421   test -n "$ZIP" && break
17422 done
17423 
17424     else
17425       # If it succeeded, then it was overridden by the user. We will use it
17426       # for the tool.
17427 
17428       # First remove it from the list of overridden variables, so we can test
17429       # for unknown variables in the end.
17430       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17431 
17432       # Check if the provided tool contains a complete path.
17433       tool_specified="$ZIP"
17434       tool_basename="${tool_specified##*/}"
17435       if test "x$tool_basename" = "x$tool_specified"; then
17436         # A command without a complete path is provided, search $PATH.
17437         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
17438 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
17439         # Extract the first word of "$tool_basename", so it can be a program name with args.
17440 set dummy $tool_basename; ac_word=$2
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17442 $as_echo_n "checking for $ac_word... " >&6; }
17443 if ${ac_cv_path_ZIP+:} false; then :
17444   $as_echo_n "(cached) " >&6
17445 else
17446   case $ZIP in
17447   [\\/]* | ?:[\\/]*)
17448   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17449   ;;
17450   *)
17451   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17452 for as_dir in $PATH
17453 do
17454   IFS=$as_save_IFS
17455   test -z "$as_dir" && as_dir=.
17456     for ac_exec_ext in '' $ac_executable_extensions; do
17457   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17458     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17460     break 2
17461   fi
17462 done
17463   done
17464 IFS=$as_save_IFS
17465 
17466   ;;
17467 esac
17468 fi
17469 ZIP=$ac_cv_path_ZIP
17470 if test -n "$ZIP"; then
17471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17472 $as_echo "$ZIP" >&6; }
17473 else
17474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17475 $as_echo "no" >&6; }
17476 fi
17477 
17478 
17479         if test "x$ZIP" = x; then
17480           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17481         fi
17482       else
17483         # Otherwise we believe it is a complete path. Use it as it is.
17484         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
17485 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
17486         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
17487 $as_echo_n "checking for ZIP... " >&6; }
17488         if test ! -x "$tool_specified"; then
17489           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17490 $as_echo "not found" >&6; }
17491           as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17492         fi
17493         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17494 $as_echo "$tool_specified" >&6; }
17495       fi
17496     fi
17497   fi
17498 
17499 
17500 
17501   if test "x$ZIP" = x; then
17502     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
17503   fi
17504 
17505 
17506 
17507   # Non-required basic tools
17508 
17509 
17510 
17511   # Publish this variable in the help.
17512 
17513 
17514   if test "x$LDD" = x; then
17515     # The variable is not set by user, try to locate tool using the code snippet
17516     for ac_prog in ldd
17517 do
17518   # Extract the first word of "$ac_prog", so it can be a program name with args.
17519 set dummy $ac_prog; ac_word=$2
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17521 $as_echo_n "checking for $ac_word... " >&6; }
17522 if ${ac_cv_path_LDD+:} false; then :
17523   $as_echo_n "(cached) " >&6
17524 else
17525   case $LDD in
17526   [\\/]* | ?:[\\/]*)
17527   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17528   ;;
17529   *)
17530   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17531 for as_dir in $PATH
17532 do
17533   IFS=$as_save_IFS
17534   test -z "$as_dir" && as_dir=.
17535     for ac_exec_ext in '' $ac_executable_extensions; do
17536   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17537     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17539     break 2
17540   fi
17541 done
17542   done
17543 IFS=$as_save_IFS
17544 
17545   ;;
17546 esac
17547 fi
17548 LDD=$ac_cv_path_LDD
17549 if test -n "$LDD"; then
17550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17551 $as_echo "$LDD" >&6; }
17552 else
17553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17554 $as_echo "no" >&6; }
17555 fi
17556 
17557 
17558   test -n "$LDD" && break
17559 done
17560 
17561   else
17562     # The variable is set, but is it from the command line or the environment?
17563 
17564     # Try to remove the string !LDD! from our list.
17565     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
17566     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17567       # If it failed, the variable was not from the command line. Ignore it,
17568       # but warn the user (except for BASH, which is always set by the calling BASH).
17569       if test "xLDD" != xBASH; then
17570         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
17571 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
17572       fi
17573       # Try to locate tool using the code snippet
17574       for ac_prog in ldd
17575 do
17576   # Extract the first word of "$ac_prog", so it can be a program name with args.
17577 set dummy $ac_prog; ac_word=$2
17578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17579 $as_echo_n "checking for $ac_word... " >&6; }
17580 if ${ac_cv_path_LDD+:} false; then :
17581   $as_echo_n "(cached) " >&6
17582 else
17583   case $LDD in
17584   [\\/]* | ?:[\\/]*)
17585   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17586   ;;
17587   *)
17588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17589 for as_dir in $PATH
17590 do
17591   IFS=$as_save_IFS
17592   test -z "$as_dir" && as_dir=.
17593     for ac_exec_ext in '' $ac_executable_extensions; do
17594   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17595     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17597     break 2
17598   fi
17599 done
17600   done
17601 IFS=$as_save_IFS
17602 
17603   ;;
17604 esac
17605 fi
17606 LDD=$ac_cv_path_LDD
17607 if test -n "$LDD"; then
17608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17609 $as_echo "$LDD" >&6; }
17610 else
17611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17612 $as_echo "no" >&6; }
17613 fi
17614 
17615 
17616   test -n "$LDD" && break
17617 done
17618 
17619     else
17620       # If it succeeded, then it was overridden by the user. We will use it
17621       # for the tool.
17622 
17623       # First remove it from the list of overridden variables, so we can test
17624       # for unknown variables in the end.
17625       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17626 
17627       # Check if the provided tool contains a complete path.
17628       tool_specified="$LDD"
17629       tool_basename="${tool_specified##*/}"
17630       if test "x$tool_basename" = "x$tool_specified"; then
17631         # A command without a complete path is provided, search $PATH.
17632         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
17633 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
17634         # Extract the first word of "$tool_basename", so it can be a program name with args.
17635 set dummy $tool_basename; ac_word=$2
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17637 $as_echo_n "checking for $ac_word... " >&6; }
17638 if ${ac_cv_path_LDD+:} false; then :
17639   $as_echo_n "(cached) " >&6
17640 else
17641   case $LDD in
17642   [\\/]* | ?:[\\/]*)
17643   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17644   ;;
17645   *)
17646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17647 for as_dir in $PATH
17648 do
17649   IFS=$as_save_IFS
17650   test -z "$as_dir" && as_dir=.
17651     for ac_exec_ext in '' $ac_executable_extensions; do
17652   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17653     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17654     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17655     break 2
17656   fi
17657 done
17658   done
17659 IFS=$as_save_IFS
17660 
17661   ;;
17662 esac
17663 fi
17664 LDD=$ac_cv_path_LDD
17665 if test -n "$LDD"; then
17666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17667 $as_echo "$LDD" >&6; }
17668 else
17669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17670 $as_echo "no" >&6; }
17671 fi
17672 
17673 
17674         if test "x$LDD" = x; then
17675           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17676         fi
17677       else
17678         # Otherwise we believe it is a complete path. Use it as it is.
17679         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
17680 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
17681         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
17682 $as_echo_n "checking for LDD... " >&6; }
17683         if test ! -x "$tool_specified"; then
17684           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17685 $as_echo "not found" >&6; }
17686           as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
17687         fi
17688         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17689 $as_echo "$tool_specified" >&6; }
17690       fi
17691     fi
17692   fi
17693 
17694 
17695   if test "x$LDD" = "x"; then
17696     # List shared lib dependencies is used for
17697     # debug output and checking for forbidden dependencies.
17698     # We can build without it.
17699     LDD="true"
17700   fi
17701 
17702 
17703   # Publish this variable in the help.
17704 
17705 
17706   if test "x$READELF" = x; then
17707     # The variable is not set by user, try to locate tool using the code snippet
17708     for ac_prog in readelf greadelf
17709 do
17710   # Extract the first word of "$ac_prog", so it can be a program name with args.
17711 set dummy $ac_prog; ac_word=$2
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17713 $as_echo_n "checking for $ac_word... " >&6; }
17714 if ${ac_cv_path_READELF+:} false; then :
17715   $as_echo_n "(cached) " >&6
17716 else
17717   case $READELF in
17718   [\\/]* | ?:[\\/]*)
17719   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17720   ;;
17721   *)
17722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17723 for as_dir in $PATH
17724 do
17725   IFS=$as_save_IFS
17726   test -z "$as_dir" && as_dir=.
17727     for ac_exec_ext in '' $ac_executable_extensions; do
17728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17729     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17731     break 2
17732   fi
17733 done
17734   done
17735 IFS=$as_save_IFS
17736 
17737   ;;
17738 esac
17739 fi
17740 READELF=$ac_cv_path_READELF
17741 if test -n "$READELF"; then
17742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17743 $as_echo "$READELF" >&6; }
17744 else
17745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17746 $as_echo "no" >&6; }
17747 fi
17748 
17749 
17750   test -n "$READELF" && break
17751 done
17752 
17753   else
17754     # The variable is set, but is it from the command line or the environment?
17755 
17756     # Try to remove the string !READELF! from our list.
17757     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
17758     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17759       # If it failed, the variable was not from the command line. Ignore it,
17760       # but warn the user (except for BASH, which is always set by the calling BASH).
17761       if test "xREADELF" != xBASH; then
17762         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
17763 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
17764       fi
17765       # Try to locate tool using the code snippet
17766       for ac_prog in readelf greadelf
17767 do
17768   # Extract the first word of "$ac_prog", so it can be a program name with args.
17769 set dummy $ac_prog; ac_word=$2
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17771 $as_echo_n "checking for $ac_word... " >&6; }
17772 if ${ac_cv_path_READELF+:} false; then :
17773   $as_echo_n "(cached) " >&6
17774 else
17775   case $READELF in
17776   [\\/]* | ?:[\\/]*)
17777   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17778   ;;
17779   *)
17780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17781 for as_dir in $PATH
17782 do
17783   IFS=$as_save_IFS
17784   test -z "$as_dir" && as_dir=.
17785     for ac_exec_ext in '' $ac_executable_extensions; do
17786   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17787     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17789     break 2
17790   fi
17791 done
17792   done
17793 IFS=$as_save_IFS
17794 
17795   ;;
17796 esac
17797 fi
17798 READELF=$ac_cv_path_READELF
17799 if test -n "$READELF"; then
17800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17801 $as_echo "$READELF" >&6; }
17802 else
17803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17804 $as_echo "no" >&6; }
17805 fi
17806 
17807 
17808   test -n "$READELF" && break
17809 done
17810 
17811     else
17812       # If it succeeded, then it was overridden by the user. We will use it
17813       # for the tool.
17814 
17815       # First remove it from the list of overridden variables, so we can test
17816       # for unknown variables in the end.
17817       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17818 
17819       # Check if the provided tool contains a complete path.
17820       tool_specified="$READELF"
17821       tool_basename="${tool_specified##*/}"
17822       if test "x$tool_basename" = "x$tool_specified"; then
17823         # A command without a complete path is provided, search $PATH.
17824         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
17825 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
17826         # Extract the first word of "$tool_basename", so it can be a program name with args.
17827 set dummy $tool_basename; ac_word=$2
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17829 $as_echo_n "checking for $ac_word... " >&6; }
17830 if ${ac_cv_path_READELF+:} false; then :
17831   $as_echo_n "(cached) " >&6
17832 else
17833   case $READELF in
17834   [\\/]* | ?:[\\/]*)
17835   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17836   ;;
17837   *)
17838   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17839 for as_dir in $PATH
17840 do
17841   IFS=$as_save_IFS
17842   test -z "$as_dir" && as_dir=.
17843     for ac_exec_ext in '' $ac_executable_extensions; do
17844   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17845     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17846     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17847     break 2
17848   fi
17849 done
17850   done
17851 IFS=$as_save_IFS
17852 
17853   ;;
17854 esac
17855 fi
17856 READELF=$ac_cv_path_READELF
17857 if test -n "$READELF"; then
17858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17859 $as_echo "$READELF" >&6; }
17860 else
17861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17862 $as_echo "no" >&6; }
17863 fi
17864 
17865 
17866         if test "x$READELF" = x; then
17867           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17868         fi
17869       else
17870         # Otherwise we believe it is a complete path. Use it as it is.
17871         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
17872 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
17873         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
17874 $as_echo_n "checking for READELF... " >&6; }
17875         if test ! -x "$tool_specified"; then
17876           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17877 $as_echo "not found" >&6; }
17878           as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
17879         fi
17880         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17881 $as_echo "$tool_specified" >&6; }
17882       fi
17883     fi
17884   fi
17885 
17886 
17887 
17888 
17889   # Publish this variable in the help.
17890 
17891 
17892   if test "x$HG" = x; then
17893     # The variable is not set by user, try to locate tool using the code snippet
17894     for ac_prog in hg
17895 do
17896   # Extract the first word of "$ac_prog", so it can be a program name with args.
17897 set dummy $ac_prog; ac_word=$2
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17899 $as_echo_n "checking for $ac_word... " >&6; }
17900 if ${ac_cv_path_HG+:} false; then :
17901   $as_echo_n "(cached) " >&6
17902 else
17903   case $HG in
17904   [\\/]* | ?:[\\/]*)
17905   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17906   ;;
17907   *)
17908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17909 for as_dir in $PATH
17910 do
17911   IFS=$as_save_IFS
17912   test -z "$as_dir" && as_dir=.
17913     for ac_exec_ext in '' $ac_executable_extensions; do
17914   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17915     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17917     break 2
17918   fi
17919 done
17920   done
17921 IFS=$as_save_IFS
17922 
17923   ;;
17924 esac
17925 fi
17926 HG=$ac_cv_path_HG
17927 if test -n "$HG"; then
17928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17929 $as_echo "$HG" >&6; }
17930 else
17931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17932 $as_echo "no" >&6; }
17933 fi
17934 
17935 
17936   test -n "$HG" && break
17937 done
17938 
17939   else
17940     # The variable is set, but is it from the command line or the environment?
17941 
17942     # Try to remove the string !HG! from our list.
17943     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
17944     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17945       # If it failed, the variable was not from the command line. Ignore it,
17946       # but warn the user (except for BASH, which is always set by the calling BASH).
17947       if test "xHG" != xBASH; then
17948         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
17949 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
17950       fi
17951       # Try to locate tool using the code snippet
17952       for ac_prog in hg
17953 do
17954   # Extract the first word of "$ac_prog", so it can be a program name with args.
17955 set dummy $ac_prog; ac_word=$2
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17957 $as_echo_n "checking for $ac_word... " >&6; }
17958 if ${ac_cv_path_HG+:} false; then :
17959   $as_echo_n "(cached) " >&6
17960 else
17961   case $HG in
17962   [\\/]* | ?:[\\/]*)
17963   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17964   ;;
17965   *)
17966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17967 for as_dir in $PATH
17968 do
17969   IFS=$as_save_IFS
17970   test -z "$as_dir" && as_dir=.
17971     for ac_exec_ext in '' $ac_executable_extensions; do
17972   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17973     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17975     break 2
17976   fi
17977 done
17978   done
17979 IFS=$as_save_IFS
17980 
17981   ;;
17982 esac
17983 fi
17984 HG=$ac_cv_path_HG
17985 if test -n "$HG"; then
17986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17987 $as_echo "$HG" >&6; }
17988 else
17989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17990 $as_echo "no" >&6; }
17991 fi
17992 
17993 
17994   test -n "$HG" && break
17995 done
17996 
17997     else
17998       # If it succeeded, then it was overridden by the user. We will use it
17999       # for the tool.
18000 
18001       # First remove it from the list of overridden variables, so we can test
18002       # for unknown variables in the end.
18003       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18004 
18005       # Check if the provided tool contains a complete path.
18006       tool_specified="$HG"
18007       tool_basename="${tool_specified##*/}"
18008       if test "x$tool_basename" = "x$tool_specified"; then
18009         # A command without a complete path is provided, search $PATH.
18010         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
18011 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
18012         # Extract the first word of "$tool_basename", so it can be a program name with args.
18013 set dummy $tool_basename; ac_word=$2
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18015 $as_echo_n "checking for $ac_word... " >&6; }
18016 if ${ac_cv_path_HG+:} false; then :
18017   $as_echo_n "(cached) " >&6
18018 else
18019   case $HG in
18020   [\\/]* | ?:[\\/]*)
18021   ac_cv_path_HG="$HG" # Let the user override the test with a path.
18022   ;;
18023   *)
18024   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18025 for as_dir in $PATH
18026 do
18027   IFS=$as_save_IFS
18028   test -z "$as_dir" && as_dir=.
18029     for ac_exec_ext in '' $ac_executable_extensions; do
18030   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18031     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18032     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18033     break 2
18034   fi
18035 done
18036   done
18037 IFS=$as_save_IFS
18038 
18039   ;;
18040 esac
18041 fi
18042 HG=$ac_cv_path_HG
18043 if test -n "$HG"; then
18044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18045 $as_echo "$HG" >&6; }
18046 else
18047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18048 $as_echo "no" >&6; }
18049 fi
18050 
18051 
18052         if test "x$HG" = x; then
18053           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18054         fi
18055       else
18056         # Otherwise we believe it is a complete path. Use it as it is.
18057         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
18058 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
18059         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
18060 $as_echo_n "checking for HG... " >&6; }
18061         if test ! -x "$tool_specified"; then
18062           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18063 $as_echo "not found" >&6; }
18064           as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
18065         fi
18066         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18067 $as_echo "$tool_specified" >&6; }
18068       fi
18069     fi
18070   fi
18071 
18072 
18073 
18074 
18075   # Publish this variable in the help.
18076 
18077 
18078   if test "x$STAT" = x; then
18079     # The variable is not set by user, try to locate tool using the code snippet
18080     for ac_prog in stat
18081 do
18082   # Extract the first word of "$ac_prog", so it can be a program name with args.
18083 set dummy $ac_prog; ac_word=$2
18084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18085 $as_echo_n "checking for $ac_word... " >&6; }
18086 if ${ac_cv_path_STAT+:} false; then :
18087   $as_echo_n "(cached) " >&6
18088 else
18089   case $STAT in
18090   [\\/]* | ?:[\\/]*)
18091   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18092   ;;
18093   *)
18094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18095 for as_dir in $PATH
18096 do
18097   IFS=$as_save_IFS
18098   test -z "$as_dir" && as_dir=.
18099     for ac_exec_ext in '' $ac_executable_extensions; do
18100   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18101     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18103     break 2
18104   fi
18105 done
18106   done
18107 IFS=$as_save_IFS
18108 
18109   ;;
18110 esac
18111 fi
18112 STAT=$ac_cv_path_STAT
18113 if test -n "$STAT"; then
18114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18115 $as_echo "$STAT" >&6; }
18116 else
18117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18118 $as_echo "no" >&6; }
18119 fi
18120 
18121 
18122   test -n "$STAT" && break
18123 done
18124 
18125   else
18126     # The variable is set, but is it from the command line or the environment?
18127 
18128     # Try to remove the string !STAT! from our list.
18129     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
18130     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18131       # If it failed, the variable was not from the command line. Ignore it,
18132       # but warn the user (except for BASH, which is always set by the calling BASH).
18133       if test "xSTAT" != xBASH; then
18134         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
18135 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
18136       fi
18137       # Try to locate tool using the code snippet
18138       for ac_prog in stat
18139 do
18140   # Extract the first word of "$ac_prog", so it can be a program name with args.
18141 set dummy $ac_prog; ac_word=$2
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18143 $as_echo_n "checking for $ac_word... " >&6; }
18144 if ${ac_cv_path_STAT+:} false; then :
18145   $as_echo_n "(cached) " >&6
18146 else
18147   case $STAT in
18148   [\\/]* | ?:[\\/]*)
18149   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18150   ;;
18151   *)
18152   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18153 for as_dir in $PATH
18154 do
18155   IFS=$as_save_IFS
18156   test -z "$as_dir" && as_dir=.
18157     for ac_exec_ext in '' $ac_executable_extensions; do
18158   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18159     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18161     break 2
18162   fi
18163 done
18164   done
18165 IFS=$as_save_IFS
18166 
18167   ;;
18168 esac
18169 fi
18170 STAT=$ac_cv_path_STAT
18171 if test -n "$STAT"; then
18172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18173 $as_echo "$STAT" >&6; }
18174 else
18175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18176 $as_echo "no" >&6; }
18177 fi
18178 
18179 
18180   test -n "$STAT" && break
18181 done
18182 
18183     else
18184       # If it succeeded, then it was overridden by the user. We will use it
18185       # for the tool.
18186 
18187       # First remove it from the list of overridden variables, so we can test
18188       # for unknown variables in the end.
18189       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18190 
18191       # Check if the provided tool contains a complete path.
18192       tool_specified="$STAT"
18193       tool_basename="${tool_specified##*/}"
18194       if test "x$tool_basename" = "x$tool_specified"; then
18195         # A command without a complete path is provided, search $PATH.
18196         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
18197 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
18198         # Extract the first word of "$tool_basename", so it can be a program name with args.
18199 set dummy $tool_basename; ac_word=$2
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18201 $as_echo_n "checking for $ac_word... " >&6; }
18202 if ${ac_cv_path_STAT+:} false; then :
18203   $as_echo_n "(cached) " >&6
18204 else
18205   case $STAT in
18206   [\\/]* | ?:[\\/]*)
18207   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18208   ;;
18209   *)
18210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18211 for as_dir in $PATH
18212 do
18213   IFS=$as_save_IFS
18214   test -z "$as_dir" && as_dir=.
18215     for ac_exec_ext in '' $ac_executable_extensions; do
18216   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18217     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18219     break 2
18220   fi
18221 done
18222   done
18223 IFS=$as_save_IFS
18224 
18225   ;;
18226 esac
18227 fi
18228 STAT=$ac_cv_path_STAT
18229 if test -n "$STAT"; then
18230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18231 $as_echo "$STAT" >&6; }
18232 else
18233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18234 $as_echo "no" >&6; }
18235 fi
18236 
18237 
18238         if test "x$STAT" = x; then
18239           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18240         fi
18241       else
18242         # Otherwise we believe it is a complete path. Use it as it is.
18243         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
18244 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
18245         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
18246 $as_echo_n "checking for STAT... " >&6; }
18247         if test ! -x "$tool_specified"; then
18248           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18249 $as_echo "not found" >&6; }
18250           as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
18251         fi
18252         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18253 $as_echo "$tool_specified" >&6; }
18254       fi
18255     fi
18256   fi
18257 
18258 
18259 
18260 
18261   # Publish this variable in the help.
18262 
18263 
18264   if test "x$TIME" = x; then
18265     # The variable is not set by user, try to locate tool using the code snippet
18266     for ac_prog in time
18267 do
18268   # Extract the first word of "$ac_prog", so it can be a program name with args.
18269 set dummy $ac_prog; ac_word=$2
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18271 $as_echo_n "checking for $ac_word... " >&6; }
18272 if ${ac_cv_path_TIME+:} false; then :
18273   $as_echo_n "(cached) " >&6
18274 else
18275   case $TIME in
18276   [\\/]* | ?:[\\/]*)
18277   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18278   ;;
18279   *)
18280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18281 for as_dir in $PATH
18282 do
18283   IFS=$as_save_IFS
18284   test -z "$as_dir" && as_dir=.
18285     for ac_exec_ext in '' $ac_executable_extensions; do
18286   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18287     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18289     break 2
18290   fi
18291 done
18292   done
18293 IFS=$as_save_IFS
18294 
18295   ;;
18296 esac
18297 fi
18298 TIME=$ac_cv_path_TIME
18299 if test -n "$TIME"; then
18300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18301 $as_echo "$TIME" >&6; }
18302 else
18303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18304 $as_echo "no" >&6; }
18305 fi
18306 
18307 
18308   test -n "$TIME" && break
18309 done
18310 
18311   else
18312     # The variable is set, but is it from the command line or the environment?
18313 
18314     # Try to remove the string !TIME! from our list.
18315     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
18316     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18317       # If it failed, the variable was not from the command line. Ignore it,
18318       # but warn the user (except for BASH, which is always set by the calling BASH).
18319       if test "xTIME" != xBASH; then
18320         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
18321 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
18322       fi
18323       # Try to locate tool using the code snippet
18324       for ac_prog in time
18325 do
18326   # Extract the first word of "$ac_prog", so it can be a program name with args.
18327 set dummy $ac_prog; ac_word=$2
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18329 $as_echo_n "checking for $ac_word... " >&6; }
18330 if ${ac_cv_path_TIME+:} false; then :
18331   $as_echo_n "(cached) " >&6
18332 else
18333   case $TIME in
18334   [\\/]* | ?:[\\/]*)
18335   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18336   ;;
18337   *)
18338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18339 for as_dir in $PATH
18340 do
18341   IFS=$as_save_IFS
18342   test -z "$as_dir" && as_dir=.
18343     for ac_exec_ext in '' $ac_executable_extensions; do
18344   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18345     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18347     break 2
18348   fi
18349 done
18350   done
18351 IFS=$as_save_IFS
18352 
18353   ;;
18354 esac
18355 fi
18356 TIME=$ac_cv_path_TIME
18357 if test -n "$TIME"; then
18358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18359 $as_echo "$TIME" >&6; }
18360 else
18361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18362 $as_echo "no" >&6; }
18363 fi
18364 
18365 
18366   test -n "$TIME" && break
18367 done
18368 
18369     else
18370       # If it succeeded, then it was overridden by the user. We will use it
18371       # for the tool.
18372 
18373       # First remove it from the list of overridden variables, so we can test
18374       # for unknown variables in the end.
18375       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18376 
18377       # Check if the provided tool contains a complete path.
18378       tool_specified="$TIME"
18379       tool_basename="${tool_specified##*/}"
18380       if test "x$tool_basename" = "x$tool_specified"; then
18381         # A command without a complete path is provided, search $PATH.
18382         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
18383 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
18384         # Extract the first word of "$tool_basename", so it can be a program name with args.
18385 set dummy $tool_basename; ac_word=$2
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18387 $as_echo_n "checking for $ac_word... " >&6; }
18388 if ${ac_cv_path_TIME+:} false; then :
18389   $as_echo_n "(cached) " >&6
18390 else
18391   case $TIME in
18392   [\\/]* | ?:[\\/]*)
18393   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18394   ;;
18395   *)
18396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18397 for as_dir in $PATH
18398 do
18399   IFS=$as_save_IFS
18400   test -z "$as_dir" && as_dir=.
18401     for ac_exec_ext in '' $ac_executable_extensions; do
18402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18403     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18405     break 2
18406   fi
18407 done
18408   done
18409 IFS=$as_save_IFS
18410 
18411   ;;
18412 esac
18413 fi
18414 TIME=$ac_cv_path_TIME
18415 if test -n "$TIME"; then
18416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18417 $as_echo "$TIME" >&6; }
18418 else
18419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18420 $as_echo "no" >&6; }
18421 fi
18422 
18423 
18424         if test "x$TIME" = x; then
18425           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18426         fi
18427       else
18428         # Otherwise we believe it is a complete path. Use it as it is.
18429         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
18430 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
18431         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
18432 $as_echo_n "checking for TIME... " >&6; }
18433         if test ! -x "$tool_specified"; then
18434           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18435 $as_echo "not found" >&6; }
18436           as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
18437         fi
18438         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18439 $as_echo "$tool_specified" >&6; }
18440       fi
18441     fi
18442   fi
18443 
18444 
18445   # Check if it's GNU time
18446   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
18447   if test "x$IS_GNU_TIME" != x; then
18448     IS_GNU_TIME=yes
18449   else
18450     IS_GNU_TIME=no
18451   fi
18452 
18453 
18454   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
18455 
18456 
18457 
18458   # Publish this variable in the help.
18459 
18460 
18461   if test "x$COMM" = x; then
18462     # The variable is not set by user, try to locate tool using the code snippet
18463     for ac_prog in comm
18464 do
18465   # Extract the first word of "$ac_prog", so it can be a program name with args.
18466 set dummy $ac_prog; ac_word=$2
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18468 $as_echo_n "checking for $ac_word... " >&6; }
18469 if ${ac_cv_path_COMM+:} false; then :
18470   $as_echo_n "(cached) " >&6
18471 else
18472   case $COMM in
18473   [\\/]* | ?:[\\/]*)
18474   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18475   ;;
18476   *)
18477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18478 for as_dir in $PATH
18479 do
18480   IFS=$as_save_IFS
18481   test -z "$as_dir" && as_dir=.
18482     for ac_exec_ext in '' $ac_executable_extensions; do
18483   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18484     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18486     break 2
18487   fi
18488 done
18489   done
18490 IFS=$as_save_IFS
18491 
18492   ;;
18493 esac
18494 fi
18495 COMM=$ac_cv_path_COMM
18496 if test -n "$COMM"; then
18497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18498 $as_echo "$COMM" >&6; }
18499 else
18500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18501 $as_echo "no" >&6; }
18502 fi
18503 
18504 
18505   test -n "$COMM" && break
18506 done
18507 
18508   else
18509     # The variable is set, but is it from the command line or the environment?
18510 
18511     # Try to remove the string !COMM! from our list.
18512     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
18513     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18514       # If it failed, the variable was not from the command line. Ignore it,
18515       # but warn the user (except for BASH, which is always set by the calling BASH).
18516       if test "xCOMM" != xBASH; then
18517         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
18518 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
18519       fi
18520       # Try to locate tool using the code snippet
18521       for ac_prog in comm
18522 do
18523   # Extract the first word of "$ac_prog", so it can be a program name with args.
18524 set dummy $ac_prog; ac_word=$2
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18526 $as_echo_n "checking for $ac_word... " >&6; }
18527 if ${ac_cv_path_COMM+:} false; then :
18528   $as_echo_n "(cached) " >&6
18529 else
18530   case $COMM in
18531   [\\/]* | ?:[\\/]*)
18532   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18533   ;;
18534   *)
18535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18536 for as_dir in $PATH
18537 do
18538   IFS=$as_save_IFS
18539   test -z "$as_dir" && as_dir=.
18540     for ac_exec_ext in '' $ac_executable_extensions; do
18541   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18542     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18544     break 2
18545   fi
18546 done
18547   done
18548 IFS=$as_save_IFS
18549 
18550   ;;
18551 esac
18552 fi
18553 COMM=$ac_cv_path_COMM
18554 if test -n "$COMM"; then
18555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18556 $as_echo "$COMM" >&6; }
18557 else
18558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18559 $as_echo "no" >&6; }
18560 fi
18561 
18562 
18563   test -n "$COMM" && break
18564 done
18565 
18566     else
18567       # If it succeeded, then it was overridden by the user. We will use it
18568       # for the tool.
18569 
18570       # First remove it from the list of overridden variables, so we can test
18571       # for unknown variables in the end.
18572       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18573 
18574       # Check if the provided tool contains a complete path.
18575       tool_specified="$COMM"
18576       tool_basename="${tool_specified##*/}"
18577       if test "x$tool_basename" = "x$tool_specified"; then
18578         # A command without a complete path is provided, search $PATH.
18579         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
18580 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
18581         # Extract the first word of "$tool_basename", so it can be a program name with args.
18582 set dummy $tool_basename; ac_word=$2
18583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18584 $as_echo_n "checking for $ac_word... " >&6; }
18585 if ${ac_cv_path_COMM+:} false; then :
18586   $as_echo_n "(cached) " >&6
18587 else
18588   case $COMM in
18589   [\\/]* | ?:[\\/]*)
18590   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18591   ;;
18592   *)
18593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18594 for as_dir in $PATH
18595 do
18596   IFS=$as_save_IFS
18597   test -z "$as_dir" && as_dir=.
18598     for ac_exec_ext in '' $ac_executable_extensions; do
18599   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18600     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18602     break 2
18603   fi
18604 done
18605   done
18606 IFS=$as_save_IFS
18607 
18608   ;;
18609 esac
18610 fi
18611 COMM=$ac_cv_path_COMM
18612 if test -n "$COMM"; then
18613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18614 $as_echo "$COMM" >&6; }
18615 else
18616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18617 $as_echo "no" >&6; }
18618 fi
18619 
18620 
18621         if test "x$COMM" = x; then
18622           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18623         fi
18624       else
18625         # Otherwise we believe it is a complete path. Use it as it is.
18626         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
18627 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
18628         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
18629 $as_echo_n "checking for COMM... " >&6; }
18630         if test ! -x "$tool_specified"; then
18631           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18632 $as_echo "not found" >&6; }
18633           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
18634         fi
18635         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18636 $as_echo "$tool_specified" >&6; }
18637       fi
18638     fi
18639   fi
18640 
18641 
18642 
18643   if test "x$COMM" = x; then
18644     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
18645   fi
18646 
18647 
18648   fi
18649 
18650   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
18651 
18652 
18653 
18654   # Publish this variable in the help.
18655 
18656 
18657   if test "x$DSYMUTIL" = x; then
18658     # The variable is not set by user, try to locate tool using the code snippet
18659     for ac_prog in dsymutil
18660 do
18661   # Extract the first word of "$ac_prog", so it can be a program name with args.
18662 set dummy $ac_prog; ac_word=$2
18663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18664 $as_echo_n "checking for $ac_word... " >&6; }
18665 if ${ac_cv_path_DSYMUTIL+:} false; then :
18666   $as_echo_n "(cached) " >&6
18667 else
18668   case $DSYMUTIL in
18669   [\\/]* | ?:[\\/]*)
18670   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18671   ;;
18672   *)
18673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18674 for as_dir in $PATH
18675 do
18676   IFS=$as_save_IFS
18677   test -z "$as_dir" && as_dir=.
18678     for ac_exec_ext in '' $ac_executable_extensions; do
18679   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18680     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18682     break 2
18683   fi
18684 done
18685   done
18686 IFS=$as_save_IFS
18687 
18688   ;;
18689 esac
18690 fi
18691 DSYMUTIL=$ac_cv_path_DSYMUTIL
18692 if test -n "$DSYMUTIL"; then
18693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18694 $as_echo "$DSYMUTIL" >&6; }
18695 else
18696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18697 $as_echo "no" >&6; }
18698 fi
18699 
18700 
18701   test -n "$DSYMUTIL" && break
18702 done
18703 
18704   else
18705     # The variable is set, but is it from the command line or the environment?
18706 
18707     # Try to remove the string !DSYMUTIL! from our list.
18708     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
18709     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18710       # If it failed, the variable was not from the command line. Ignore it,
18711       # but warn the user (except for BASH, which is always set by the calling BASH).
18712       if test "xDSYMUTIL" != xBASH; then
18713         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
18714 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
18715       fi
18716       # Try to locate tool using the code snippet
18717       for ac_prog in dsymutil
18718 do
18719   # Extract the first word of "$ac_prog", so it can be a program name with args.
18720 set dummy $ac_prog; ac_word=$2
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18722 $as_echo_n "checking for $ac_word... " >&6; }
18723 if ${ac_cv_path_DSYMUTIL+:} false; then :
18724   $as_echo_n "(cached) " >&6
18725 else
18726   case $DSYMUTIL in
18727   [\\/]* | ?:[\\/]*)
18728   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18729   ;;
18730   *)
18731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18732 for as_dir in $PATH
18733 do
18734   IFS=$as_save_IFS
18735   test -z "$as_dir" && as_dir=.
18736     for ac_exec_ext in '' $ac_executable_extensions; do
18737   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18738     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18740     break 2
18741   fi
18742 done
18743   done
18744 IFS=$as_save_IFS
18745 
18746   ;;
18747 esac
18748 fi
18749 DSYMUTIL=$ac_cv_path_DSYMUTIL
18750 if test -n "$DSYMUTIL"; then
18751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18752 $as_echo "$DSYMUTIL" >&6; }
18753 else
18754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18755 $as_echo "no" >&6; }
18756 fi
18757 
18758 
18759   test -n "$DSYMUTIL" && break
18760 done
18761 
18762     else
18763       # If it succeeded, then it was overridden by the user. We will use it
18764       # for the tool.
18765 
18766       # First remove it from the list of overridden variables, so we can test
18767       # for unknown variables in the end.
18768       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18769 
18770       # Check if the provided tool contains a complete path.
18771       tool_specified="$DSYMUTIL"
18772       tool_basename="${tool_specified##*/}"
18773       if test "x$tool_basename" = "x$tool_specified"; then
18774         # A command without a complete path is provided, search $PATH.
18775         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
18776 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
18777         # Extract the first word of "$tool_basename", so it can be a program name with args.
18778 set dummy $tool_basename; ac_word=$2
18779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18780 $as_echo_n "checking for $ac_word... " >&6; }
18781 if ${ac_cv_path_DSYMUTIL+:} false; then :
18782   $as_echo_n "(cached) " >&6
18783 else
18784   case $DSYMUTIL in
18785   [\\/]* | ?:[\\/]*)
18786   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18787   ;;
18788   *)
18789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18790 for as_dir in $PATH
18791 do
18792   IFS=$as_save_IFS
18793   test -z "$as_dir" && as_dir=.
18794     for ac_exec_ext in '' $ac_executable_extensions; do
18795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18796     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18798     break 2
18799   fi
18800 done
18801   done
18802 IFS=$as_save_IFS
18803 
18804   ;;
18805 esac
18806 fi
18807 DSYMUTIL=$ac_cv_path_DSYMUTIL
18808 if test -n "$DSYMUTIL"; then
18809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18810 $as_echo "$DSYMUTIL" >&6; }
18811 else
18812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18813 $as_echo "no" >&6; }
18814 fi
18815 
18816 
18817         if test "x$DSYMUTIL" = x; then
18818           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18819         fi
18820       else
18821         # Otherwise we believe it is a complete path. Use it as it is.
18822         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
18823 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
18824         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
18825 $as_echo_n "checking for DSYMUTIL... " >&6; }
18826         if test ! -x "$tool_specified"; then
18827           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18828 $as_echo "not found" >&6; }
18829           as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
18830         fi
18831         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18832 $as_echo "$tool_specified" >&6; }
18833       fi
18834     fi
18835   fi
18836 
18837 
18838 
18839   if test "x$DSYMUTIL" = x; then
18840     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
18841   fi
18842 
18843 
18844 
18845 
18846 
18847   # Publish this variable in the help.
18848 
18849 
18850   if test "x$XATTR" = x; then
18851     # The variable is not set by user, try to locate tool using the code snippet
18852     for ac_prog in xattr
18853 do
18854   # Extract the first word of "$ac_prog", so it can be a program name with args.
18855 set dummy $ac_prog; ac_word=$2
18856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18857 $as_echo_n "checking for $ac_word... " >&6; }
18858 if ${ac_cv_path_XATTR+:} false; then :
18859   $as_echo_n "(cached) " >&6
18860 else
18861   case $XATTR in
18862   [\\/]* | ?:[\\/]*)
18863   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18864   ;;
18865   *)
18866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18867 for as_dir in $PATH
18868 do
18869   IFS=$as_save_IFS
18870   test -z "$as_dir" && as_dir=.
18871     for ac_exec_ext in '' $ac_executable_extensions; do
18872   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18873     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18875     break 2
18876   fi
18877 done
18878   done
18879 IFS=$as_save_IFS
18880 
18881   ;;
18882 esac
18883 fi
18884 XATTR=$ac_cv_path_XATTR
18885 if test -n "$XATTR"; then
18886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18887 $as_echo "$XATTR" >&6; }
18888 else
18889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18890 $as_echo "no" >&6; }
18891 fi
18892 
18893 
18894   test -n "$XATTR" && break
18895 done
18896 
18897   else
18898     # The variable is set, but is it from the command line or the environment?
18899 
18900     # Try to remove the string !XATTR! from our list.
18901     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
18902     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18903       # If it failed, the variable was not from the command line. Ignore it,
18904       # but warn the user (except for BASH, which is always set by the calling BASH).
18905       if test "xXATTR" != xBASH; then
18906         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
18907 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
18908       fi
18909       # Try to locate tool using the code snippet
18910       for ac_prog in xattr
18911 do
18912   # Extract the first word of "$ac_prog", so it can be a program name with args.
18913 set dummy $ac_prog; ac_word=$2
18914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18915 $as_echo_n "checking for $ac_word... " >&6; }
18916 if ${ac_cv_path_XATTR+:} false; then :
18917   $as_echo_n "(cached) " >&6
18918 else
18919   case $XATTR in
18920   [\\/]* | ?:[\\/]*)
18921   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18922   ;;
18923   *)
18924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18925 for as_dir in $PATH
18926 do
18927   IFS=$as_save_IFS
18928   test -z "$as_dir" && as_dir=.
18929     for ac_exec_ext in '' $ac_executable_extensions; do
18930   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18931     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18933     break 2
18934   fi
18935 done
18936   done
18937 IFS=$as_save_IFS
18938 
18939   ;;
18940 esac
18941 fi
18942 XATTR=$ac_cv_path_XATTR
18943 if test -n "$XATTR"; then
18944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18945 $as_echo "$XATTR" >&6; }
18946 else
18947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18948 $as_echo "no" >&6; }
18949 fi
18950 
18951 
18952   test -n "$XATTR" && break
18953 done
18954 
18955     else
18956       # If it succeeded, then it was overridden by the user. We will use it
18957       # for the tool.
18958 
18959       # First remove it from the list of overridden variables, so we can test
18960       # for unknown variables in the end.
18961       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18962 
18963       # Check if the provided tool contains a complete path.
18964       tool_specified="$XATTR"
18965       tool_basename="${tool_specified##*/}"
18966       if test "x$tool_basename" = "x$tool_specified"; then
18967         # A command without a complete path is provided, search $PATH.
18968         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
18969 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
18970         # Extract the first word of "$tool_basename", so it can be a program name with args.
18971 set dummy $tool_basename; ac_word=$2
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18973 $as_echo_n "checking for $ac_word... " >&6; }
18974 if ${ac_cv_path_XATTR+:} false; then :
18975   $as_echo_n "(cached) " >&6
18976 else
18977   case $XATTR in
18978   [\\/]* | ?:[\\/]*)
18979   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18980   ;;
18981   *)
18982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18983 for as_dir in $PATH
18984 do
18985   IFS=$as_save_IFS
18986   test -z "$as_dir" && as_dir=.
18987     for ac_exec_ext in '' $ac_executable_extensions; do
18988   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18989     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18991     break 2
18992   fi
18993 done
18994   done
18995 IFS=$as_save_IFS
18996 
18997   ;;
18998 esac
18999 fi
19000 XATTR=$ac_cv_path_XATTR
19001 if test -n "$XATTR"; then
19002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19003 $as_echo "$XATTR" >&6; }
19004 else
19005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19006 $as_echo "no" >&6; }
19007 fi
19008 
19009 
19010         if test "x$XATTR" = x; then
19011           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19012         fi
19013       else
19014         # Otherwise we believe it is a complete path. Use it as it is.
19015         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
19016 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
19017         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
19018 $as_echo_n "checking for XATTR... " >&6; }
19019         if test ! -x "$tool_specified"; then
19020           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19021 $as_echo "not found" >&6; }
19022           as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
19023         fi
19024         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19025 $as_echo "$tool_specified" >&6; }
19026       fi
19027     fi
19028   fi
19029 
19030 
19031 
19032   if test "x$XATTR" = x; then
19033     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
19034   fi
19035 
19036 
19037 
19038 
19039   # Publish this variable in the help.
19040 
19041 
19042   if test "x$CODESIGN" = x; then
19043     # The variable is not set by user, try to locate tool using the code snippet
19044     for ac_prog in codesign
19045 do
19046   # Extract the first word of "$ac_prog", so it can be a program name with args.
19047 set dummy $ac_prog; ac_word=$2
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19049 $as_echo_n "checking for $ac_word... " >&6; }
19050 if ${ac_cv_path_CODESIGN+:} false; then :
19051   $as_echo_n "(cached) " >&6
19052 else
19053   case $CODESIGN in
19054   [\\/]* | ?:[\\/]*)
19055   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19056   ;;
19057   *)
19058   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19059 for as_dir in $PATH
19060 do
19061   IFS=$as_save_IFS
19062   test -z "$as_dir" && as_dir=.
19063     for ac_exec_ext in '' $ac_executable_extensions; do
19064   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19065     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19067     break 2
19068   fi
19069 done
19070   done
19071 IFS=$as_save_IFS
19072 
19073   ;;
19074 esac
19075 fi
19076 CODESIGN=$ac_cv_path_CODESIGN
19077 if test -n "$CODESIGN"; then
19078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19079 $as_echo "$CODESIGN" >&6; }
19080 else
19081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19082 $as_echo "no" >&6; }
19083 fi
19084 
19085 
19086   test -n "$CODESIGN" && break
19087 done
19088 
19089   else
19090     # The variable is set, but is it from the command line or the environment?
19091 
19092     # Try to remove the string !CODESIGN! from our list.
19093     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
19094     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19095       # If it failed, the variable was not from the command line. Ignore it,
19096       # but warn the user (except for BASH, which is always set by the calling BASH).
19097       if test "xCODESIGN" != xBASH; then
19098         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
19099 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
19100       fi
19101       # Try to locate tool using the code snippet
19102       for ac_prog in codesign
19103 do
19104   # Extract the first word of "$ac_prog", so it can be a program name with args.
19105 set dummy $ac_prog; ac_word=$2
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19107 $as_echo_n "checking for $ac_word... " >&6; }
19108 if ${ac_cv_path_CODESIGN+:} false; then :
19109   $as_echo_n "(cached) " >&6
19110 else
19111   case $CODESIGN in
19112   [\\/]* | ?:[\\/]*)
19113   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19114   ;;
19115   *)
19116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19117 for as_dir in $PATH
19118 do
19119   IFS=$as_save_IFS
19120   test -z "$as_dir" && as_dir=.
19121     for ac_exec_ext in '' $ac_executable_extensions; do
19122   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19123     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19125     break 2
19126   fi
19127 done
19128   done
19129 IFS=$as_save_IFS
19130 
19131   ;;
19132 esac
19133 fi
19134 CODESIGN=$ac_cv_path_CODESIGN
19135 if test -n "$CODESIGN"; then
19136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19137 $as_echo "$CODESIGN" >&6; }
19138 else
19139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19140 $as_echo "no" >&6; }
19141 fi
19142 
19143 
19144   test -n "$CODESIGN" && break
19145 done
19146 
19147     else
19148       # If it succeeded, then it was overridden by the user. We will use it
19149       # for the tool.
19150 
19151       # First remove it from the list of overridden variables, so we can test
19152       # for unknown variables in the end.
19153       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19154 
19155       # Check if the provided tool contains a complete path.
19156       tool_specified="$CODESIGN"
19157       tool_basename="${tool_specified##*/}"
19158       if test "x$tool_basename" = "x$tool_specified"; then
19159         # A command without a complete path is provided, search $PATH.
19160         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
19161 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
19162         # Extract the first word of "$tool_basename", so it can be a program name with args.
19163 set dummy $tool_basename; ac_word=$2
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19165 $as_echo_n "checking for $ac_word... " >&6; }
19166 if ${ac_cv_path_CODESIGN+:} false; then :
19167   $as_echo_n "(cached) " >&6
19168 else
19169   case $CODESIGN in
19170   [\\/]* | ?:[\\/]*)
19171   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19172   ;;
19173   *)
19174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19175 for as_dir in $PATH
19176 do
19177   IFS=$as_save_IFS
19178   test -z "$as_dir" && as_dir=.
19179     for ac_exec_ext in '' $ac_executable_extensions; do
19180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19181     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19183     break 2
19184   fi
19185 done
19186   done
19187 IFS=$as_save_IFS
19188 
19189   ;;
19190 esac
19191 fi
19192 CODESIGN=$ac_cv_path_CODESIGN
19193 if test -n "$CODESIGN"; then
19194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19195 $as_echo "$CODESIGN" >&6; }
19196 else
19197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19198 $as_echo "no" >&6; }
19199 fi
19200 
19201 
19202         if test "x$CODESIGN" = x; then
19203           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19204         fi
19205       else
19206         # Otherwise we believe it is a complete path. Use it as it is.
19207         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
19208 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
19209         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
19210 $as_echo_n "checking for CODESIGN... " >&6; }
19211         if test ! -x "$tool_specified"; then
19212           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19213 $as_echo "not found" >&6; }
19214           as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
19215         fi
19216         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19217 $as_echo "$tool_specified" >&6; }
19218       fi
19219     fi
19220   fi
19221 
19222 
19223     if test "x$CODESIGN" != "x"; then
19224       # Verify that the openjdk_codesign certificate is present
19225       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
19226 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
19227       rm -f codesign-testfile
19228       touch codesign-testfile
19229       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
19230       rm -f codesign-testfile
19231       if test "x$CODESIGN" = x; then
19232         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19233 $as_echo "no" >&6; }
19234       else
19235         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19236 $as_echo "yes" >&6; }
19237       fi
19238     fi
19239   fi
19240 
19241 
19242 # Check if pkg-config is available.
19243 
19244 
19245 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19246         if test -n "$ac_tool_prefix"; then
19247   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19248 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19250 $as_echo_n "checking for $ac_word... " >&6; }
19251 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19252   $as_echo_n "(cached) " >&6
19253 else
19254   case $PKG_CONFIG in
19255   [\\/]* | ?:[\\/]*)
19256   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19257   ;;
19258   *)
19259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19260 for as_dir in $PATH
19261 do
19262   IFS=$as_save_IFS
19263   test -z "$as_dir" && as_dir=.
19264     for ac_exec_ext in '' $ac_executable_extensions; do
19265   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19266     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19268     break 2
19269   fi
19270 done
19271   done
19272 IFS=$as_save_IFS
19273 
19274   ;;
19275 esac
19276 fi
19277 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19278 if test -n "$PKG_CONFIG"; then
19279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19280 $as_echo "$PKG_CONFIG" >&6; }
19281 else
19282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19283 $as_echo "no" >&6; }
19284 fi
19285 
19286 
19287 fi
19288 if test -z "$ac_cv_path_PKG_CONFIG"; then
19289   ac_pt_PKG_CONFIG=$PKG_CONFIG
19290   # Extract the first word of "pkg-config", so it can be a program name with args.
19291 set dummy pkg-config; ac_word=$2
19292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19293 $as_echo_n "checking for $ac_word... " >&6; }
19294 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19295   $as_echo_n "(cached) " >&6
19296 else
19297   case $ac_pt_PKG_CONFIG in
19298   [\\/]* | ?:[\\/]*)
19299   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19300   ;;
19301   *)
19302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19303 for as_dir in $PATH
19304 do
19305   IFS=$as_save_IFS
19306   test -z "$as_dir" && as_dir=.
19307     for ac_exec_ext in '' $ac_executable_extensions; do
19308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19309     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19311     break 2
19312   fi
19313 done
19314   done
19315 IFS=$as_save_IFS
19316 
19317   ;;
19318 esac
19319 fi
19320 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19321 if test -n "$ac_pt_PKG_CONFIG"; then
19322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19323 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19324 else
19325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19326 $as_echo "no" >&6; }
19327 fi
19328 
19329   if test "x$ac_pt_PKG_CONFIG" = x; then
19330     PKG_CONFIG=""
19331   else
19332     case $cross_compiling:$ac_tool_warned in
19333 yes:)
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19336 ac_tool_warned=yes ;;
19337 esac
19338     PKG_CONFIG=$ac_pt_PKG_CONFIG
19339   fi
19340 else
19341   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19342 fi
19343 
19344 fi
19345 if test -n "$PKG_CONFIG"; then
19346         _pkg_min_version=0.9.0
19347         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19348 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19349         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19350                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19351 $as_echo "yes" >&6; }
19352         else
19353                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19354 $as_echo "no" >&6; }
19355                 PKG_CONFIG=""
19356         fi
19357 
19358 fi
19359 
19360 # After basic tools have been setup, we can check build os specific details.
19361 
19362   ###############################################################################
19363 
19364   # Note that this is the build platform OS version!
19365 
19366   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
19367   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
19368   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
19369   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
19370 
19371 
19372 
19373 
19374 
19375 # Setup builddeps, for automatic downloading of tools we need.
19376 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in
19377 # boot-jdk setup, but we need to have basic tools setup first.
19378 
19379 
19380 # Check whether --with-builddeps-conf was given.
19381 if test "${with_builddeps_conf+set}" = set; then :
19382   withval=$with_builddeps_conf;
19383 fi
19384 
19385 
19386 
19387 # Check whether --with-builddeps-server was given.
19388 if test "${with_builddeps_server+set}" = set; then :
19389   withval=$with_builddeps_server;
19390 fi
19391 
19392 
19393 
19394 # Check whether --with-builddeps-dir was given.
19395 if test "${with_builddeps_dir+set}" = set; then :
19396   withval=$with_builddeps_dir;
19397 else
19398   with_builddeps_dir=/localhome/builddeps
19399 fi
19400 
19401 
19402 
19403 # Check whether --with-builddeps-group was given.
19404 if test "${with_builddeps_group+set}" = set; then :
19405   withval=$with_builddeps_group;
19406 fi
19407 
19408 
19409 
19410 
19411   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19412     if test "x$with_builddeps_conf" != x; then
19413       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5
19414 $as_echo_n "checking for supplied builddeps configuration file... " >&6; }
19415       builddepsfile=$with_builddeps_conf
19416       if test -s $builddepsfile; then
19417         . $builddepsfile
19418         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5
19419 $as_echo "loaded!" >&6; }
19420       else
19421         as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5
19422       fi
19423     else
19424       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5
19425 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; }
19426       builddepsfile=`mktemp`
19427       touch $builddepsfile
19428       # Put all found confs into a single file.
19429       find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile
19430       # Source the file to acquire the variables
19431       if test -s $builddepsfile; then
19432         . $builddepsfile
19433         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5
19434 $as_echo "found at least one!" >&6; }
19435       else
19436         as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5
19437       fi
19438     fi
19439     # Create build and target names that use _ instead of "-" and ".".
19440     # This is necessary to use them in variable names.
19441     build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19442     target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19443     # Extract rewrite information for build and target
19444     eval rewritten_build=\${REWRITE_${build_var}}
19445     if test "x$rewritten_build" = x; then
19446       rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME}
19447       echo Build stays the same $rewritten_build
19448     else
19449       echo Rewriting build for builddeps into $rewritten_build
19450     fi
19451     eval rewritten_target=\${REWRITE_${target_var}}
19452     if test "x$rewritten_target" = x; then
19453       rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
19454       echo Target stays the same $rewritten_target
19455     else
19456       echo Rewriting target for builddeps into $rewritten_target
19457     fi
19458     rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
19459     rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
19460   fi
19461   for ac_prog in 7z unzip
19462 do
19463   # Extract the first word of "$ac_prog", so it can be a program name with args.
19464 set dummy $ac_prog; ac_word=$2
19465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19466 $as_echo_n "checking for $ac_word... " >&6; }
19467 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then :
19468   $as_echo_n "(cached) " >&6
19469 else
19470   if test -n "$BDEPS_UNZIP"; then
19471   ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
19472 else
19473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19474 for as_dir in $PATH
19475 do
19476   IFS=$as_save_IFS
19477   test -z "$as_dir" && as_dir=.
19478     for ac_exec_ext in '' $ac_executable_extensions; do
19479   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19480     ac_cv_prog_BDEPS_UNZIP="$ac_prog"
19481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19482     break 2
19483   fi
19484 done
19485   done
19486 IFS=$as_save_IFS
19487 
19488 fi
19489 fi
19490 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
19491 if test -n "$BDEPS_UNZIP"; then
19492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
19493 $as_echo "$BDEPS_UNZIP" >&6; }
19494 else
19495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19496 $as_echo "no" >&6; }
19497 fi
19498 
19499 
19500   test -n "$BDEPS_UNZIP" && break
19501 done
19502 
19503   if test "x$BDEPS_UNZIP" = x7z; then
19504     BDEPS_UNZIP="7z x"
19505   fi
19506 
19507   for ac_prog in wget lftp ftp
19508 do
19509   # Extract the first word of "$ac_prog", so it can be a program name with args.
19510 set dummy $ac_prog; ac_word=$2
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19512 $as_echo_n "checking for $ac_word... " >&6; }
19513 if ${ac_cv_prog_BDEPS_FTP+:} false; then :
19514   $as_echo_n "(cached) " >&6
19515 else
19516   if test -n "$BDEPS_FTP"; then
19517   ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
19518 else
19519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19520 for as_dir in $PATH
19521 do
19522   IFS=$as_save_IFS
19523   test -z "$as_dir" && as_dir=.
19524     for ac_exec_ext in '' $ac_executable_extensions; do
19525   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19526     ac_cv_prog_BDEPS_FTP="$ac_prog"
19527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19528     break 2
19529   fi
19530 done
19531   done
19532 IFS=$as_save_IFS
19533 
19534 fi
19535 fi
19536 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
19537 if test -n "$BDEPS_FTP"; then
19538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
19539 $as_echo "$BDEPS_FTP" >&6; }
19540 else
19541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19542 $as_echo "no" >&6; }
19543 fi
19544 
19545 
19546   test -n "$BDEPS_FTP" && break
19547 done
19548 
19549 
19550 
19551 ###############################################################################
19552 #
19553 # Determine OpenJDK variants, options and version numbers.
19554 #
19555 ###############################################################################
19556 
19557 # We need build & target for this.
19558 
19559 
19560   ###############################################################################
19561   #
19562   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
19563   # We always build headless support.
19564   #
19565   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
19566 $as_echo_n "checking headful support... " >&6; }
19567   # Check whether --enable-headful was given.
19568 if test "${enable_headful+set}" = set; then :
19569   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
19570 else
19571   SUPPORT_HEADFUL=yes
19572 fi
19573 
19574 
19575   SUPPORT_HEADLESS=yes
19576   BUILD_HEADLESS="BUILD_HEADLESS:=true"
19577 
19578   if test "x$SUPPORT_HEADFUL" = xyes; then
19579     # We are building both headful and headless.
19580     headful_msg="include support for both headful and headless"
19581   fi
19582 
19583   if test "x$SUPPORT_HEADFUL" = xno; then
19584     # Thus we are building headless only.
19585     BUILD_HEADLESS="BUILD_HEADLESS:=true"
19586     headful_msg="headless only"
19587   fi
19588 
19589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
19590 $as_echo "$headful_msg" >&6; }
19591 
19592 
19593 
19594 
19595 
19596   # Control wether Hotspot runs Queens test after build.
19597   # Check whether --enable-hotspot-test-in-build was given.
19598 if test "${enable_hotspot_test_in_build+set}" = set; then :
19599   enableval=$enable_hotspot_test_in_build;
19600 else
19601   enable_hotspot_test_in_build=no
19602 fi
19603 
19604   if test "x$enable_hotspot_test_in_build" = "xyes"; then
19605     TEST_IN_BUILD=true
19606   else
19607     TEST_IN_BUILD=false
19608   fi
19609 
19610 
19611   ###############################################################################
19612   #
19613   # Choose cacerts source file
19614   #
19615 
19616 # Check whether --with-cacerts-file was given.
19617 if test "${with_cacerts_file+set}" = set; then :
19618   withval=$with_cacerts_file;
19619 fi
19620 
19621   if test "x$with_cacerts_file" != x; then
19622     CACERTS_FILE=$with_cacerts_file
19623   else
19624     CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts
19625   fi
19626 
19627 
19628   ###############################################################################
19629   #
19630   # Enable or disable unlimited crypto
19631   #
19632   # Check whether --enable-unlimited-crypto was given.
19633 if test "${enable_unlimited_crypto+set}" = set; then :
19634   enableval=$enable_unlimited_crypto;
19635 else
19636   enable_unlimited_crypto=no
19637 fi
19638 
19639   if test "x$enable_unlimited_crypto" = "xyes"; then
19640     UNLIMITED_CRYPTO=true
19641   else
19642     UNLIMITED_CRYPTO=false
19643   fi
19644 
19645 
19646   ###############################################################################
19647   #
19648   # Enable or disable the elliptic curve crypto implementation
19649   #
19650 
19651 
19652   ###############################################################################
19653   #
19654   # Compress jars
19655   #
19656   COMPRESS_JARS=false
19657 
19658 
19659 
19660 
19661   # Source the version numbers
19662   . $AUTOCONF_DIR/version-numbers
19663 
19664   # Get the settings from parameters
19665 
19666 # Check whether --with-milestone was given.
19667 if test "${with_milestone+set}" = set; then :
19668   withval=$with_milestone;
19669 fi
19670 
19671   if test "x$with_milestone" = xyes; then
19672     as_fn_error $? "Milestone must have a value" "$LINENO" 5
19673   elif test "x$with_milestone" != x; then
19674     MILESTONE="$with_milestone"
19675   fi
19676   if test "x$MILESTONE" = x; then
19677     MILESTONE=internal
19678   fi
19679 
19680 
19681 # Check whether --with-update-version was given.
19682 if test "${with_update_version+set}" = set; then :
19683   withval=$with_update_version;
19684 fi
19685 
19686   if test "x$with_update_version" = xyes; then
19687     as_fn_error $? "Update version must have a value" "$LINENO" 5
19688   elif test "x$with_update_version" != x; then
19689     JDK_UPDATE_VERSION="$with_update_version"
19690     # On macosx 10.7, it's not possible to set --with-update-version=0X due
19691     # to a bug in expr (which reduces it to just X). To work around this, we
19692     # always add a 0 to one digit update versions.
19693     if test "${#JDK_UPDATE_VERSION}" = "1"; then
19694       JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
19695     fi
19696   fi
19697 
19698 
19699 # Check whether --with-user-release-suffix was given.
19700 if test "${with_user_release_suffix+set}" = set; then :
19701   withval=$with_user_release_suffix;
19702 fi
19703 
19704   if test "x$with_user_release_suffix" = xyes; then
19705     as_fn_error $? "Release suffix must have a value" "$LINENO" 5
19706   elif test "x$with_user_release_suffix" != x; then
19707     USER_RELEASE_SUFFIX="$with_user_release_suffix"
19708   fi
19709 
19710 
19711 # Check whether --with-build-number was given.
19712 if test "${with_build_number+set}" = set; then :
19713   withval=$with_build_number;
19714 fi
19715 
19716   if test "x$with_build_number" = xyes; then
19717     as_fn_error $? "Build number must have a value" "$LINENO" 5
19718   elif test "x$with_build_number" != x; then
19719     JDK_BUILD_NUMBER="$with_build_number"
19720   fi
19721   # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
19722   if test "x$JDK_BUILD_NUMBER" = x; then
19723     JDK_BUILD_NUMBER=b00
19724     if test "x$USER_RELEASE_SUFFIX" = x; then
19725       BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
19726       # Avoid [:alnum:] since it depends on the locale.
19727       CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
19728       USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19729     fi
19730   fi
19731 
19732   # Now set the JDK version, milestone, build number etc.
19733 
19734 
19735 
19736 
19737 
19738 
19739 
19740 
19741 
19742 
19743 
19744 
19745 
19746 
19747 
19748 
19749 # Check whether --with-copyright-year was given.
19750 if test "${with_copyright_year+set}" = set; then :
19751   withval=$with_copyright_year;
19752 fi
19753 
19754   if test "x$with_copyright_year" = xyes; then
19755     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
19756   elif test "x$with_copyright_year" != x; then
19757     COPYRIGHT_YEAR="$with_copyright_year"
19758   else
19759     COPYRIGHT_YEAR=`date +'%Y'`
19760   fi
19761 
19762 
19763   if test "x$JDK_UPDATE_VERSION" != x; then
19764     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
19765   else
19766     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
19767   fi
19768 
19769 
19770   # The cooked update version used to encode trailing letters in the update
19771   # version into a trailing number. That is no longer needed, but need to
19772   # keep the format in 8u for compatibility.
19773   COOKED_JDK_UPDATE_VERSION="${JDK_UPDATE_VERSION}0"
19774 
19775 
19776   COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
19777 
19778 
19779 
19780 ###############################################################################
19781 #
19782 # Setup BootJDK, used to bootstrap the build.
19783 #
19784 ###############################################################################
19785 
19786 
19787   BOOT_JDK_FOUND=no
19788 
19789 # Check whether --with-boot-jdk was given.
19790 if test "${with_boot_jdk+set}" = set; then :
19791   withval=$with_boot_jdk;
19792 fi
19793 
19794 
19795   # We look for the Boot JDK through various means, going from more certain to
19796   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
19797   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
19798   # must check if this is indeed valid; otherwise we'll continue looking.
19799 
19800   # Test: Is bootjdk explicitely set by command line arguments?
19801 
19802   if test "x$BOOT_JDK_FOUND" = xno; then
19803     # Now execute the test
19804 
19805   if test "x$with_boot_jdk" != x; then
19806     BOOT_JDK=$with_boot_jdk
19807     BOOT_JDK_FOUND=maybe
19808     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
19809 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
19810   fi
19811 
19812 
19813     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
19814     if test "x$BOOT_JDK_FOUND" = xmaybe; then
19815       # Do we have a bin/java?
19816       if test ! -x "$BOOT_JDK/bin/java"; then
19817         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
19818 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
19819         BOOT_JDK_FOUND=no
19820       else
19821         # Do we have a bin/javac?
19822         if test ! -x "$BOOT_JDK/bin/javac"; then
19823           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
19824 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
19825           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
19826 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
19827           BOOT_JDK_FOUND=no
19828         else
19829           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
19830           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
19831             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
19832 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
19833             BOOT_JDK_FOUND=no
19834           else
19835             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
19836             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
19837 
19838             # Extra M4 quote needed to protect [] in grep expression.
19839             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
19840             if test "x$FOUND_VERSION_78" = x; then
19841               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
19842 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
19843               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
19844 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
19845               BOOT_JDK_FOUND=no
19846             else
19847               # We're done! :-)
19848               BOOT_JDK_FOUND=yes
19849 
19850   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19851 
19852   # Input might be given as Windows format, start by converting to
19853   # unix format.
19854   path="$BOOT_JDK"
19855   new_path=`$CYGPATH -u "$path"`
19856 
19857   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19858   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19859   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19860   # "foo.exe" is OK but "foo" is an error.
19861   #
19862   # This test is therefore slightly more accurate than "test -f" to check for file precense.
19863   # It is also a way to make sure we got the proper file name for the real test later on.
19864   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19865   if test "x$test_shortpath" = x; then
19866     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19867 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19868     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
19869   fi
19870 
19871   # Call helper function which possibly converts this using DOS-style short mode.
19872   # If so, the updated path is stored in $new_path.
19873 
19874   input_path="$new_path"
19875   # Check if we need to convert this using DOS-style short mode. If the path
19876   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19877   # take no chances and rewrite it.
19878   # Note: m4 eats our [], so we need to use [ and ] instead.
19879   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19880   if test "x$has_forbidden_chars" != x; then
19881     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19882     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19883     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19884     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19885       # Going to short mode and back again did indeed matter. Since short mode is
19886       # case insensitive, let's make it lowercase to improve readability.
19887       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19888       # Now convert it back to Unix-stile (cygpath)
19889       input_path=`$CYGPATH -u "$shortmode_path"`
19890       new_path="$input_path"
19891     fi
19892   fi
19893 
19894   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19895   if test "x$test_cygdrive_prefix" = x; then
19896     # As a simple fix, exclude /usr/bin since it's not a real path.
19897     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
19898       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19899       # a path prefixed by /cygdrive for fixpath to work.
19900       new_path="$CYGWIN_ROOT_PATH$input_path"
19901     fi
19902   fi
19903 
19904 
19905   if test "x$path" != "x$new_path"; then
19906     BOOT_JDK="$new_path"
19907     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19908 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19909   fi
19910 
19911   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19912 
19913   path="$BOOT_JDK"
19914   has_colon=`$ECHO $path | $GREP ^.:`
19915   new_path="$path"
19916   if test "x$has_colon" = x; then
19917     # Not in mixed or Windows style, start by that.
19918     new_path=`cmd //c echo $path`
19919   fi
19920 
19921 
19922   input_path="$new_path"
19923   # Check if we need to convert this using DOS-style short mode. If the path
19924   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19925   # take no chances and rewrite it.
19926   # Note: m4 eats our [], so we need to use [ and ] instead.
19927   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19928   if test "x$has_forbidden_chars" != x; then
19929     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19930     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19931   fi
19932 
19933 
19934   windows_path="$new_path"
19935   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19936     unix_path=`$CYGPATH -u "$windows_path"`
19937     new_path="$unix_path"
19938   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19939     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19940     new_path="$unix_path"
19941   fi
19942 
19943   if test "x$path" != "x$new_path"; then
19944     BOOT_JDK="$new_path"
19945     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19946 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19947   fi
19948 
19949   # Save the first 10 bytes of this path to the storage, so fixpath can work.
19950   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19951 
19952   else
19953     # We're on a posix platform. Hooray! :)
19954     path="$BOOT_JDK"
19955     has_space=`$ECHO "$path" | $GREP " "`
19956     if test "x$has_space" != x; then
19957       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19958 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19959       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
19960     fi
19961 
19962     # Use eval to expand a potential ~
19963     eval path="$path"
19964     if test ! -f "$path" && test ! -d "$path"; then
19965       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
19966     fi
19967 
19968     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
19969   fi
19970 
19971               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
19972 $as_echo_n "checking for Boot JDK... " >&6; }
19973               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
19974 $as_echo "$BOOT_JDK" >&6; }
19975               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
19976 $as_echo_n "checking Boot JDK version... " >&6; }
19977               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
19978               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
19979 $as_echo "$BOOT_JDK_VERSION" >&6; }
19980             fi # end check jdk version
19981           fi # end check rt.jar
19982         fi # end check javac
19983       fi # end check java
19984     fi # end check boot jdk found
19985   fi
19986 
19987   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
19988     # Having specified an argument which is incorrect will produce an instant failure;
19989     # we should not go on looking
19990     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
19991   fi
19992 
19993   # Test: Is bootjdk available from builddeps?
19994 
19995   if test "x$BOOT_JDK_FOUND" = xno; then
19996     # Now execute the test
19997 
19998 
19999 
20000   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
20001     # Source the builddeps file again, to make sure it uses the latest variables!
20002     . $builddepsfile
20003     # Look for a target and build machine specific resource!
20004     eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
20005     if test "x$resource" = x; then
20006       # Ok, lets instead look for a target specific resource
20007       eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}}
20008     fi
20009     if test "x$resource" = x; then
20010       # Ok, lets instead look for a build specific resource
20011       eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}}
20012     fi
20013     if test "x$resource" = x; then
20014       # Ok, lets instead look for a generic resource
20015       # (The bootjdk comes from M4 and not the shell, thus no need for eval here.)
20016       resource=${builddep_bootjdk}
20017     fi
20018     if test "x$resource" != x; then
20019       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5
20020 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;}
20021       # If the resource in the builddeps.conf file is an existing directory,
20022       # for example /java/linux/cups
20023       if test -d ${resource}; then
20024         depdir=${resource}
20025       else
20026 
20027   # bootjdk is for example mymodule
20028   # $resource is for example libs/general/libmymod_1_2_3.zip
20029   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
20030   # $with_builddeps_dir is for example /localhome/builddeps
20031   # depdir is the name of the variable into which we store the depdir, eg MYMOD
20032   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
20033   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
20034   filename=`basename $resource`
20035   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
20036   filebase=${filename%%.*}
20037   extension=${filename#*.}
20038   installdir=$with_builddeps_dir/$filebase
20039   if test ! -f $installdir/$filename.unpacked; then
20040     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5
20041 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;}
20042     if test ! -d $installdir; then
20043       mkdir -p $installdir
20044     fi
20045     if test ! -d $installdir; then
20046       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
20047     fi
20048     tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX`
20049     touch $tmpfile
20050     if test ! -f $tmpfile; then
20051       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
20052     fi
20053 
20054   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
20055   # $tmpfile is the local file name for the downloaded file.
20056   VALID_TOOL=no
20057   if test "x$BDEPS_FTP" = xwget; then
20058     VALID_TOOL=yes
20059     wget -O $tmpfile $with_builddeps_server/$resource
20060   fi
20061   if test "x$BDEPS_FTP" = xlftp; then
20062     VALID_TOOL=yes
20063     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
20064   fi
20065   if test "x$BDEPS_FTP" = xftp; then
20066     VALID_TOOL=yes
20067     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
20068     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
20069     FTPUSERPWD=${FTPSERVER%%@*}
20070     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
20071       FTPUSER=${userpwd%%:*}
20072       FTPPWD=${userpwd#*@}
20073       FTPSERVER=${FTPSERVER#*@}
20074     else
20075       FTPUSER=ftp
20076       FTPPWD=ftp
20077     fi
20078     # the "pass" command does not work on some
20079     # ftp clients (read ftp.exe) but if it works,
20080     # passive mode is better!
20081     ( \
20082         echo "user $FTPUSER $FTPPWD"        ; \
20083         echo "pass"                         ; \
20084         echo "bin"                          ; \
20085         echo "get $FTPPATH $tmpfile"              ; \
20086     ) | ftp -in $FTPSERVER
20087   fi
20088   if test "x$VALID_TOOL" != xyes; then
20089     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
20090   fi
20091 
20092     mv $tmpfile $installdir/$filename
20093     if test ! -s $installdir/$filename; then
20094       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
20095     fi
20096     case "$extension" in
20097       zip)  echo "Unzipping $installdir/$filename..."
20098         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
20099         ;;
20100       tar.gz) echo "Untaring $installdir/$filename..."
20101         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20102         ;;
20103       tgz) echo "Untaring $installdir/$filename..."
20104         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20105         ;;
20106       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
20107         ;;
20108     esac
20109   fi
20110   if test -f $installdir/$filename.unpacked; then
20111     depdir=$installdir
20112   fi
20113 
20114       fi
20115       # Source the builddeps file again, because in the previous command, the depdir
20116       # was updated to point at the current build dependency install directory.
20117       . $builddepsfile
20118       # Now extract variables from the builddeps.conf files.
20119       theroot=${builddep_bootjdk_ROOT}
20120       thecflags=${builddep_bootjdk_CFLAGS}
20121       thelibs=${builddep_bootjdk_LIBS}
20122       if test "x$depdir" = x; then
20123         as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5
20124       fi
20125       BOOT_JDK=$depdir
20126       if test "x$theroot" != x; then
20127         BOOT_JDK="$theroot"
20128       fi
20129       if test "x$thecflags" != x; then
20130         BOOT_JDK_CFLAGS="$thecflags"
20131       fi
20132       if test "x$thelibs" != x; then
20133         BOOT_JDK_LIBS="$thelibs"
20134       fi
20135       BOOT_JDK_FOUND=maybe
20136       else BOOT_JDK_FOUND=no
20137 
20138     fi
20139     else BOOT_JDK_FOUND=no
20140 
20141   fi
20142 
20143 
20144 
20145     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20146     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20147       # Do we have a bin/java?
20148       if test ! -x "$BOOT_JDK/bin/java"; then
20149         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20150 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20151         BOOT_JDK_FOUND=no
20152       else
20153         # Do we have a bin/javac?
20154         if test ! -x "$BOOT_JDK/bin/javac"; then
20155           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20156 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20157           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20158 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20159           BOOT_JDK_FOUND=no
20160         else
20161           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20162           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20163             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20164 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20165             BOOT_JDK_FOUND=no
20166           else
20167             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20168             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20169 
20170             # Extra M4 quote needed to protect [] in grep expression.
20171             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20172             if test "x$FOUND_VERSION_78" = x; then
20173               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20174 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20175               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20176 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20177               BOOT_JDK_FOUND=no
20178             else
20179               # We're done! :-)
20180               BOOT_JDK_FOUND=yes
20181 
20182   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20183 
20184   # Input might be given as Windows format, start by converting to
20185   # unix format.
20186   path="$BOOT_JDK"
20187   new_path=`$CYGPATH -u "$path"`
20188 
20189   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20190   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20191   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20192   # "foo.exe" is OK but "foo" is an error.
20193   #
20194   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20195   # It is also a way to make sure we got the proper file name for the real test later on.
20196   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20197   if test "x$test_shortpath" = x; then
20198     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20199 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20200     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20201   fi
20202 
20203   # Call helper function which possibly converts this using DOS-style short mode.
20204   # If so, the updated path is stored in $new_path.
20205 
20206   input_path="$new_path"
20207   # Check if we need to convert this using DOS-style short mode. If the path
20208   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20209   # take no chances and rewrite it.
20210   # Note: m4 eats our [], so we need to use [ and ] instead.
20211   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20212   if test "x$has_forbidden_chars" != x; then
20213     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20214     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20215     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20216     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20217       # Going to short mode and back again did indeed matter. Since short mode is
20218       # case insensitive, let's make it lowercase to improve readability.
20219       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20220       # Now convert it back to Unix-stile (cygpath)
20221       input_path=`$CYGPATH -u "$shortmode_path"`
20222       new_path="$input_path"
20223     fi
20224   fi
20225 
20226   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20227   if test "x$test_cygdrive_prefix" = x; then
20228     # As a simple fix, exclude /usr/bin since it's not a real path.
20229     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20230       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20231       # a path prefixed by /cygdrive for fixpath to work.
20232       new_path="$CYGWIN_ROOT_PATH$input_path"
20233     fi
20234   fi
20235 
20236 
20237   if test "x$path" != "x$new_path"; then
20238     BOOT_JDK="$new_path"
20239     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20240 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20241   fi
20242 
20243   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20244 
20245   path="$BOOT_JDK"
20246   has_colon=`$ECHO $path | $GREP ^.:`
20247   new_path="$path"
20248   if test "x$has_colon" = x; then
20249     # Not in mixed or Windows style, start by that.
20250     new_path=`cmd //c echo $path`
20251   fi
20252 
20253 
20254   input_path="$new_path"
20255   # Check if we need to convert this using DOS-style short mode. If the path
20256   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20257   # take no chances and rewrite it.
20258   # Note: m4 eats our [], so we need to use [ and ] instead.
20259   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20260   if test "x$has_forbidden_chars" != x; then
20261     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20262     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20263   fi
20264 
20265 
20266   windows_path="$new_path"
20267   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20268     unix_path=`$CYGPATH -u "$windows_path"`
20269     new_path="$unix_path"
20270   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20271     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20272     new_path="$unix_path"
20273   fi
20274 
20275   if test "x$path" != "x$new_path"; then
20276     BOOT_JDK="$new_path"
20277     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20278 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20279   fi
20280 
20281   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20282   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20283 
20284   else
20285     # We're on a posix platform. Hooray! :)
20286     path="$BOOT_JDK"
20287     has_space=`$ECHO "$path" | $GREP " "`
20288     if test "x$has_space" != x; then
20289       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20290 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20291       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20292     fi
20293 
20294     # Use eval to expand a potential ~
20295     eval path="$path"
20296     if test ! -f "$path" && test ! -d "$path"; then
20297       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20298     fi
20299 
20300     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20301   fi
20302 
20303               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20304 $as_echo_n "checking for Boot JDK... " >&6; }
20305               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20306 $as_echo "$BOOT_JDK" >&6; }
20307               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20308 $as_echo_n "checking Boot JDK version... " >&6; }
20309               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20310               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20311 $as_echo "$BOOT_JDK_VERSION" >&6; }
20312             fi # end check jdk version
20313           fi # end check rt.jar
20314         fi # end check javac
20315       fi # end check java
20316     fi # end check boot jdk found
20317   fi
20318 
20319 
20320   # Test: Is $JAVA_HOME set?
20321 
20322   if test "x$BOOT_JDK_FOUND" = xno; then
20323     # Now execute the test
20324 
20325   if test "x$JAVA_HOME" != x; then
20326     JAVA_HOME_PROCESSED="$JAVA_HOME"
20327 
20328   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20329 
20330   # Input might be given as Windows format, start by converting to
20331   # unix format.
20332   path="$JAVA_HOME_PROCESSED"
20333   new_path=`$CYGPATH -u "$path"`
20334 
20335   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20336   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20337   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20338   # "foo.exe" is OK but "foo" is an error.
20339   #
20340   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20341   # It is also a way to make sure we got the proper file name for the real test later on.
20342   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20343   if test "x$test_shortpath" = x; then
20344     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
20345 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
20346     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
20347   fi
20348 
20349   # Call helper function which possibly converts this using DOS-style short mode.
20350   # If so, the updated path is stored in $new_path.
20351 
20352   input_path="$new_path"
20353   # Check if we need to convert this using DOS-style short mode. If the path
20354   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20355   # take no chances and rewrite it.
20356   # Note: m4 eats our [], so we need to use [ and ] instead.
20357   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20358   if test "x$has_forbidden_chars" != x; then
20359     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20360     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20361     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20362     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20363       # Going to short mode and back again did indeed matter. Since short mode is
20364       # case insensitive, let's make it lowercase to improve readability.
20365       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20366       # Now convert it back to Unix-stile (cygpath)
20367       input_path=`$CYGPATH -u "$shortmode_path"`
20368       new_path="$input_path"
20369     fi
20370   fi
20371 
20372   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20373   if test "x$test_cygdrive_prefix" = x; then
20374     # As a simple fix, exclude /usr/bin since it's not a real path.
20375     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20376       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20377       # a path prefixed by /cygdrive for fixpath to work.
20378       new_path="$CYGWIN_ROOT_PATH$input_path"
20379     fi
20380   fi
20381 
20382 
20383   if test "x$path" != "x$new_path"; then
20384     JAVA_HOME_PROCESSED="$new_path"
20385     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
20386 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
20387   fi
20388 
20389   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20390 
20391   path="$JAVA_HOME_PROCESSED"
20392   has_colon=`$ECHO $path | $GREP ^.:`
20393   new_path="$path"
20394   if test "x$has_colon" = x; then
20395     # Not in mixed or Windows style, start by that.
20396     new_path=`cmd //c echo $path`
20397   fi
20398 
20399 
20400   input_path="$new_path"
20401   # Check if we need to convert this using DOS-style short mode. If the path
20402   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20403   # take no chances and rewrite it.
20404   # Note: m4 eats our [], so we need to use [ and ] instead.
20405   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20406   if test "x$has_forbidden_chars" != x; then
20407     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20408     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20409   fi
20410 
20411 
20412   windows_path="$new_path"
20413   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20414     unix_path=`$CYGPATH -u "$windows_path"`
20415     new_path="$unix_path"
20416   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20417     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20418     new_path="$unix_path"
20419   fi
20420 
20421   if test "x$path" != "x$new_path"; then
20422     JAVA_HOME_PROCESSED="$new_path"
20423     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
20424 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
20425   fi
20426 
20427   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20428   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20429 
20430   else
20431     # We're on a posix platform. Hooray! :)
20432     path="$JAVA_HOME_PROCESSED"
20433     has_space=`$ECHO "$path" | $GREP " "`
20434     if test "x$has_space" != x; then
20435       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
20436 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
20437       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20438     fi
20439 
20440     # Use eval to expand a potential ~
20441     eval path="$path"
20442     if test ! -f "$path" && test ! -d "$path"; then
20443       as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
20444     fi
20445 
20446     JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
20447   fi
20448 
20449     if test ! -d "$JAVA_HOME_PROCESSED"; then
20450       { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
20451 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
20452     else
20453       # Aha, the user has set a JAVA_HOME
20454       # let us use that as the Boot JDK.
20455       BOOT_JDK="$JAVA_HOME_PROCESSED"
20456       BOOT_JDK_FOUND=maybe
20457       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
20458 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
20459     fi
20460   fi
20461 
20462 
20463     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20464     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20465       # Do we have a bin/java?
20466       if test ! -x "$BOOT_JDK/bin/java"; then
20467         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20468 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20469         BOOT_JDK_FOUND=no
20470       else
20471         # Do we have a bin/javac?
20472         if test ! -x "$BOOT_JDK/bin/javac"; then
20473           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20474 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20475           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20476 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20477           BOOT_JDK_FOUND=no
20478         else
20479           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20480           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20481             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20482 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20483             BOOT_JDK_FOUND=no
20484           else
20485             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20486             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20487 
20488             # Extra M4 quote needed to protect [] in grep expression.
20489             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20490             if test "x$FOUND_VERSION_78" = x; then
20491               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20492 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20493               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20494 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20495               BOOT_JDK_FOUND=no
20496             else
20497               # We're done! :-)
20498               BOOT_JDK_FOUND=yes
20499 
20500   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20501 
20502   # Input might be given as Windows format, start by converting to
20503   # unix format.
20504   path="$BOOT_JDK"
20505   new_path=`$CYGPATH -u "$path"`
20506 
20507   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20508   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20509   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20510   # "foo.exe" is OK but "foo" is an error.
20511   #
20512   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20513   # It is also a way to make sure we got the proper file name for the real test later on.
20514   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20515   if test "x$test_shortpath" = x; then
20516     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20517 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20518     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20519   fi
20520 
20521   # Call helper function which possibly converts this using DOS-style short mode.
20522   # If so, the updated path is stored in $new_path.
20523 
20524   input_path="$new_path"
20525   # Check if we need to convert this using DOS-style short mode. If the path
20526   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20527   # take no chances and rewrite it.
20528   # Note: m4 eats our [], so we need to use [ and ] instead.
20529   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20530   if test "x$has_forbidden_chars" != x; then
20531     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20532     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20533     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20534     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20535       # Going to short mode and back again did indeed matter. Since short mode is
20536       # case insensitive, let's make it lowercase to improve readability.
20537       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20538       # Now convert it back to Unix-stile (cygpath)
20539       input_path=`$CYGPATH -u "$shortmode_path"`
20540       new_path="$input_path"
20541     fi
20542   fi
20543 
20544   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20545   if test "x$test_cygdrive_prefix" = x; then
20546     # As a simple fix, exclude /usr/bin since it's not a real path.
20547     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20548       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20549       # a path prefixed by /cygdrive for fixpath to work.
20550       new_path="$CYGWIN_ROOT_PATH$input_path"
20551     fi
20552   fi
20553 
20554 
20555   if test "x$path" != "x$new_path"; then
20556     BOOT_JDK="$new_path"
20557     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20558 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20559   fi
20560 
20561   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20562 
20563   path="$BOOT_JDK"
20564   has_colon=`$ECHO $path | $GREP ^.:`
20565   new_path="$path"
20566   if test "x$has_colon" = x; then
20567     # Not in mixed or Windows style, start by that.
20568     new_path=`cmd //c echo $path`
20569   fi
20570 
20571 
20572   input_path="$new_path"
20573   # Check if we need to convert this using DOS-style short mode. If the path
20574   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20575   # take no chances and rewrite it.
20576   # Note: m4 eats our [], so we need to use [ and ] instead.
20577   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20578   if test "x$has_forbidden_chars" != x; then
20579     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20580     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20581   fi
20582 
20583 
20584   windows_path="$new_path"
20585   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20586     unix_path=`$CYGPATH -u "$windows_path"`
20587     new_path="$unix_path"
20588   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20589     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20590     new_path="$unix_path"
20591   fi
20592 
20593   if test "x$path" != "x$new_path"; then
20594     BOOT_JDK="$new_path"
20595     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20596 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20597   fi
20598 
20599   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20600   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20601 
20602   else
20603     # We're on a posix platform. Hooray! :)
20604     path="$BOOT_JDK"
20605     has_space=`$ECHO "$path" | $GREP " "`
20606     if test "x$has_space" != x; then
20607       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20608 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20609       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20610     fi
20611 
20612     # Use eval to expand a potential ~
20613     eval path="$path"
20614     if test ! -f "$path" && test ! -d "$path"; then
20615       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20616     fi
20617 
20618     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20619   fi
20620 
20621               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20622 $as_echo_n "checking for Boot JDK... " >&6; }
20623               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20624 $as_echo "$BOOT_JDK" >&6; }
20625               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20626 $as_echo_n "checking Boot JDK version... " >&6; }
20627               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20628               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20629 $as_echo "$BOOT_JDK_VERSION" >&6; }
20630             fi # end check jdk version
20631           fi # end check rt.jar
20632         fi # end check javac
20633       fi # end check java
20634     fi # end check boot jdk found
20635   fi
20636 
20637 
20638   # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
20639 
20640   if test "x$BOOT_JDK_FOUND" = xno; then
20641     # Now execute the test
20642 
20643   if test -x /usr/libexec/java_home; then
20644     BOOT_JDK=`/usr/libexec/java_home`
20645     BOOT_JDK_FOUND=maybe
20646     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home" >&5
20647 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home" >&6;}
20648   fi
20649 
20650 
20651     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20652     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20653       # Do we have a bin/java?
20654       if test ! -x "$BOOT_JDK/bin/java"; then
20655         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20656 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20657         BOOT_JDK_FOUND=no
20658       else
20659         # Do we have a bin/javac?
20660         if test ! -x "$BOOT_JDK/bin/javac"; then
20661           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20662 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20663           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20664 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20665           BOOT_JDK_FOUND=no
20666         else
20667           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20668           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20669             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20670 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20671             BOOT_JDK_FOUND=no
20672           else
20673             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20674             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20675 
20676             # Extra M4 quote needed to protect [] in grep expression.
20677             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20678             if test "x$FOUND_VERSION_78" = x; then
20679               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20680 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20681               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20682 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20683               BOOT_JDK_FOUND=no
20684             else
20685               # We're done! :-)
20686               BOOT_JDK_FOUND=yes
20687 
20688   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20689 
20690   # Input might be given as Windows format, start by converting to
20691   # unix format.
20692   path="$BOOT_JDK"
20693   new_path=`$CYGPATH -u "$path"`
20694 
20695   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20696   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20697   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20698   # "foo.exe" is OK but "foo" is an error.
20699   #
20700   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20701   # It is also a way to make sure we got the proper file name for the real test later on.
20702   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20703   if test "x$test_shortpath" = x; then
20704     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20705 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20706     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20707   fi
20708 
20709   # Call helper function which possibly converts this using DOS-style short mode.
20710   # If so, the updated path is stored in $new_path.
20711 
20712   input_path="$new_path"
20713   # Check if we need to convert this using DOS-style short mode. If the path
20714   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20715   # take no chances and rewrite it.
20716   # Note: m4 eats our [], so we need to use [ and ] instead.
20717   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20718   if test "x$has_forbidden_chars" != x; then
20719     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20720     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20721     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20722     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20723       # Going to short mode and back again did indeed matter. Since short mode is
20724       # case insensitive, let's make it lowercase to improve readability.
20725       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20726       # Now convert it back to Unix-stile (cygpath)
20727       input_path=`$CYGPATH -u "$shortmode_path"`
20728       new_path="$input_path"
20729     fi
20730   fi
20731 
20732   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20733   if test "x$test_cygdrive_prefix" = x; then
20734     # As a simple fix, exclude /usr/bin since it's not a real path.
20735     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20736       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20737       # a path prefixed by /cygdrive for fixpath to work.
20738       new_path="$CYGWIN_ROOT_PATH$input_path"
20739     fi
20740   fi
20741 
20742 
20743   if test "x$path" != "x$new_path"; then
20744     BOOT_JDK="$new_path"
20745     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20746 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20747   fi
20748 
20749   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20750 
20751   path="$BOOT_JDK"
20752   has_colon=`$ECHO $path | $GREP ^.:`
20753   new_path="$path"
20754   if test "x$has_colon" = x; then
20755     # Not in mixed or Windows style, start by that.
20756     new_path=`cmd //c echo $path`
20757   fi
20758 
20759 
20760   input_path="$new_path"
20761   # Check if we need to convert this using DOS-style short mode. If the path
20762   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20763   # take no chances and rewrite it.
20764   # Note: m4 eats our [], so we need to use [ and ] instead.
20765   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20766   if test "x$has_forbidden_chars" != x; then
20767     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20768     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20769   fi
20770 
20771 
20772   windows_path="$new_path"
20773   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20774     unix_path=`$CYGPATH -u "$windows_path"`
20775     new_path="$unix_path"
20776   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20777     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20778     new_path="$unix_path"
20779   fi
20780 
20781   if test "x$path" != "x$new_path"; then
20782     BOOT_JDK="$new_path"
20783     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20784 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20785   fi
20786 
20787   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20788   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20789 
20790   else
20791     # We're on a posix platform. Hooray! :)
20792     path="$BOOT_JDK"
20793     has_space=`$ECHO "$path" | $GREP " "`
20794     if test "x$has_space" != x; then
20795       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20796 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20797       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20798     fi
20799 
20800     # Use eval to expand a potential ~
20801     eval path="$path"
20802     if test ! -f "$path" && test ! -d "$path"; then
20803       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20804     fi
20805 
20806     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20807   fi
20808 
20809               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20810 $as_echo_n "checking for Boot JDK... " >&6; }
20811               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20812 $as_echo "$BOOT_JDK" >&6; }
20813               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20814 $as_echo_n "checking Boot JDK version... " >&6; }
20815               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20816               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20817 $as_echo "$BOOT_JDK_VERSION" >&6; }
20818             fi # end check jdk version
20819           fi # end check rt.jar
20820         fi # end check javac
20821       fi # end check java
20822     fi # end check boot jdk found
20823   fi
20824 
20825 
20826   # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
20827 
20828   if test "x$BOOT_JDK_FOUND" = xno; then
20829     # Now execute the test
20830 
20831   # Extract the first word of "javac", so it can be a program name with args.
20832 set dummy javac; ac_word=$2
20833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20834 $as_echo_n "checking for $ac_word... " >&6; }
20835 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
20836   $as_echo_n "(cached) " >&6
20837 else
20838   case $JAVAC_CHECK in
20839   [\\/]* | ?:[\\/]*)
20840   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
20841   ;;
20842   *)
20843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20844 for as_dir in $PATH
20845 do
20846   IFS=$as_save_IFS
20847   test -z "$as_dir" && as_dir=.
20848     for ac_exec_ext in '' $ac_executable_extensions; do
20849   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20850     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
20851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20852     break 2
20853   fi
20854 done
20855   done
20856 IFS=$as_save_IFS
20857 
20858   ;;
20859 esac
20860 fi
20861 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
20862 if test -n "$JAVAC_CHECK"; then
20863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
20864 $as_echo "$JAVAC_CHECK" >&6; }
20865 else
20866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20867 $as_echo "no" >&6; }
20868 fi
20869 
20870 
20871   # Extract the first word of "java", so it can be a program name with args.
20872 set dummy java; ac_word=$2
20873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20874 $as_echo_n "checking for $ac_word... " >&6; }
20875 if ${ac_cv_path_JAVA_CHECK+:} false; then :
20876   $as_echo_n "(cached) " >&6
20877 else
20878   case $JAVA_CHECK in
20879   [\\/]* | ?:[\\/]*)
20880   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
20881   ;;
20882   *)
20883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20884 for as_dir in $PATH
20885 do
20886   IFS=$as_save_IFS
20887   test -z "$as_dir" && as_dir=.
20888     for ac_exec_ext in '' $ac_executable_extensions; do
20889   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20890     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
20891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20892     break 2
20893   fi
20894 done
20895   done
20896 IFS=$as_save_IFS
20897 
20898   ;;
20899 esac
20900 fi
20901 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
20902 if test -n "$JAVA_CHECK"; then
20903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
20904 $as_echo "$JAVA_CHECK" >&6; }
20905 else
20906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20907 $as_echo "no" >&6; }
20908 fi
20909 
20910 
20911   BINARY="$JAVAC_CHECK"
20912   if test "x$JAVAC_CHECK" = x; then
20913     BINARY="$JAVA_CHECK"
20914   fi
20915   if test "x$BINARY" != x; then
20916     # So there is a java(c) binary, it might be part of a JDK.
20917     # Lets find the JDK/JRE directory by following symbolic links.
20918     # Linux/GNU systems often have links from /usr/bin/java to
20919     # /etc/alternatives/java to the real JDK binary.
20920 
20921   if test "x$OPENJDK_BUILD_OS" != xwindows; then
20922     # Follow a chain of symbolic links. Use readlink
20923     # where it exists, else fall back to horribly
20924     # complicated shell code.
20925     if test "x$READLINK_TESTED" != yes; then
20926       # On MacOSX there is a readlink tool with a different
20927       # purpose than the GNU readlink tool. Check the found readlink.
20928       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
20929       if test "x$ISGNU" = x; then
20930         # A readlink that we do not know how to use.
20931         # Are there other non-GNU readlinks out there?
20932         READLINK_TESTED=yes
20933         READLINK=
20934       fi
20935     fi
20936 
20937     if test "x$READLINK" != x; then
20938       BINARY=`$READLINK -f $BINARY`
20939     else
20940       # Save the current directory for restoring afterwards
20941       STARTDIR=$PWD
20942       COUNTER=0
20943       sym_link_dir=`$DIRNAME $BINARY`
20944       sym_link_file=`$BASENAME $BINARY`
20945       cd $sym_link_dir
20946       # Use -P flag to resolve symlinks in directories.
20947       cd `$THEPWDCMD -P`
20948       sym_link_dir=`$THEPWDCMD -P`
20949       # Resolve file symlinks
20950       while test $COUNTER -lt 20; do
20951         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
20952         if test "x$ISLINK" == x; then
20953           # This is not a symbolic link! We are done!
20954           break
20955         fi
20956         # Again resolve directory symlinks since the target of the just found
20957         # link could be in a different directory
20958         cd `$DIRNAME $ISLINK`
20959         sym_link_dir=`$THEPWDCMD -P`
20960         sym_link_file=`$BASENAME $ISLINK`
20961         let COUNTER=COUNTER+1
20962       done
20963       cd $STARTDIR
20964       BINARY=$sym_link_dir/$sym_link_file
20965     fi
20966   fi
20967 
20968     BOOT_JDK=`dirname "$BINARY"`
20969     BOOT_JDK=`cd "$BOOT_JDK/.."; pwd`
20970     if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
20971       # Looks like we found ourselves an JDK
20972       BOOT_JDK_FOUND=maybe
20973       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5
20974 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;}
20975     fi
20976   fi
20977 
20978 
20979     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20980     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20981       # Do we have a bin/java?
20982       if test ! -x "$BOOT_JDK/bin/java"; then
20983         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20984 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20985         BOOT_JDK_FOUND=no
20986       else
20987         # Do we have a bin/javac?
20988         if test ! -x "$BOOT_JDK/bin/javac"; then
20989           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20990 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20991           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20992 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20993           BOOT_JDK_FOUND=no
20994         else
20995           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20996           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20997             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20998 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20999             BOOT_JDK_FOUND=no
21000           else
21001             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21002             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21003 
21004             # Extra M4 quote needed to protect [] in grep expression.
21005             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21006             if test "x$FOUND_VERSION_78" = x; then
21007               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21008 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21009               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21010 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21011               BOOT_JDK_FOUND=no
21012             else
21013               # We're done! :-)
21014               BOOT_JDK_FOUND=yes
21015 
21016   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21017 
21018   # Input might be given as Windows format, start by converting to
21019   # unix format.
21020   path="$BOOT_JDK"
21021   new_path=`$CYGPATH -u "$path"`
21022 
21023   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21024   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21025   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21026   # "foo.exe" is OK but "foo" is an error.
21027   #
21028   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21029   # It is also a way to make sure we got the proper file name for the real test later on.
21030   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21031   if test "x$test_shortpath" = x; then
21032     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21033 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21034     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21035   fi
21036 
21037   # Call helper function which possibly converts this using DOS-style short mode.
21038   # If so, the updated path is stored in $new_path.
21039 
21040   input_path="$new_path"
21041   # Check if we need to convert this using DOS-style short mode. If the path
21042   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21043   # take no chances and rewrite it.
21044   # Note: m4 eats our [], so we need to use [ and ] instead.
21045   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21046   if test "x$has_forbidden_chars" != x; then
21047     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21048     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21049     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21050     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21051       # Going to short mode and back again did indeed matter. Since short mode is
21052       # case insensitive, let's make it lowercase to improve readability.
21053       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21054       # Now convert it back to Unix-stile (cygpath)
21055       input_path=`$CYGPATH -u "$shortmode_path"`
21056       new_path="$input_path"
21057     fi
21058   fi
21059 
21060   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21061   if test "x$test_cygdrive_prefix" = x; then
21062     # As a simple fix, exclude /usr/bin since it's not a real path.
21063     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21064       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21065       # a path prefixed by /cygdrive for fixpath to work.
21066       new_path="$CYGWIN_ROOT_PATH$input_path"
21067     fi
21068   fi
21069 
21070 
21071   if test "x$path" != "x$new_path"; then
21072     BOOT_JDK="$new_path"
21073     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21074 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21075   fi
21076 
21077   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21078 
21079   path="$BOOT_JDK"
21080   has_colon=`$ECHO $path | $GREP ^.:`
21081   new_path="$path"
21082   if test "x$has_colon" = x; then
21083     # Not in mixed or Windows style, start by that.
21084     new_path=`cmd //c echo $path`
21085   fi
21086 
21087 
21088   input_path="$new_path"
21089   # Check if we need to convert this using DOS-style short mode. If the path
21090   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21091   # take no chances and rewrite it.
21092   # Note: m4 eats our [], so we need to use [ and ] instead.
21093   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21094   if test "x$has_forbidden_chars" != x; then
21095     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21096     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21097   fi
21098 
21099 
21100   windows_path="$new_path"
21101   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21102     unix_path=`$CYGPATH -u "$windows_path"`
21103     new_path="$unix_path"
21104   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21105     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21106     new_path="$unix_path"
21107   fi
21108 
21109   if test "x$path" != "x$new_path"; then
21110     BOOT_JDK="$new_path"
21111     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21112 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21113   fi
21114 
21115   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21116   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21117 
21118   else
21119     # We're on a posix platform. Hooray! :)
21120     path="$BOOT_JDK"
21121     has_space=`$ECHO "$path" | $GREP " "`
21122     if test "x$has_space" != x; then
21123       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21124 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21125       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21126     fi
21127 
21128     # Use eval to expand a potential ~
21129     eval path="$path"
21130     if test ! -f "$path" && test ! -d "$path"; then
21131       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21132     fi
21133 
21134     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21135   fi
21136 
21137               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21138 $as_echo_n "checking for Boot JDK... " >&6; }
21139               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21140 $as_echo "$BOOT_JDK" >&6; }
21141               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21142 $as_echo_n "checking Boot JDK version... " >&6; }
21143               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21144               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21145 $as_echo "$BOOT_JDK_VERSION" >&6; }
21146             fi # end check jdk version
21147           fi # end check rt.jar
21148         fi # end check javac
21149       fi # end check java
21150     fi # end check boot jdk found
21151   fi
21152 
21153 
21154   # Test: Is there a JDK installed in default, well-known locations?
21155 
21156   if test "x$BOOT_JDK_FOUND" = xno; then
21157     # Now execute the test
21158 
21159   if test "x$OPENJDK_TARGET_OS" = xwindows; then
21160 
21161   if test "x$BOOT_JDK_FOUND" = xno; then
21162     # Now execute the test
21163 
21164   if test "x$ProgramW6432" != x; then
21165     VIRTUAL_DIR="$ProgramW6432/Java"
21166 
21167   windows_path="$VIRTUAL_DIR"
21168   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21169     unix_path=`$CYGPATH -u "$windows_path"`
21170     VIRTUAL_DIR="$unix_path"
21171   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21172     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21173     VIRTUAL_DIR="$unix_path"
21174   fi
21175 
21176 
21177   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21178   BOOT_JDK_SUFFIX=""
21179   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21180   if test "x$ALL_JDKS_FOUND" != x; then
21181     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21182 
21183   if test "x$BOOT_JDK_FOUND" = xno; then
21184     # Now execute the test
21185 
21186         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21187         if test -d "$BOOT_JDK"; then
21188           BOOT_JDK_FOUND=maybe
21189           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21190 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21191         fi
21192 
21193 
21194     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21195     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21196       # Do we have a bin/java?
21197       if test ! -x "$BOOT_JDK/bin/java"; then
21198         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21199 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21200         BOOT_JDK_FOUND=no
21201       else
21202         # Do we have a bin/javac?
21203         if test ! -x "$BOOT_JDK/bin/javac"; then
21204           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21205 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21206           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21207 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21208           BOOT_JDK_FOUND=no
21209         else
21210           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21211           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21212             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21213 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21214             BOOT_JDK_FOUND=no
21215           else
21216             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21217             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21218 
21219             # Extra M4 quote needed to protect [] in grep expression.
21220             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21221             if test "x$FOUND_VERSION_78" = x; then
21222               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21223 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21224               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21225 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21226               BOOT_JDK_FOUND=no
21227             else
21228               # We're done! :-)
21229               BOOT_JDK_FOUND=yes
21230 
21231   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21232 
21233   # Input might be given as Windows format, start by converting to
21234   # unix format.
21235   path="$BOOT_JDK"
21236   new_path=`$CYGPATH -u "$path"`
21237 
21238   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21239   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21240   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21241   # "foo.exe" is OK but "foo" is an error.
21242   #
21243   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21244   # It is also a way to make sure we got the proper file name for the real test later on.
21245   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21246   if test "x$test_shortpath" = x; then
21247     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21248 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21249     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21250   fi
21251 
21252   # Call helper function which possibly converts this using DOS-style short mode.
21253   # If so, the updated path is stored in $new_path.
21254 
21255   input_path="$new_path"
21256   # Check if we need to convert this using DOS-style short mode. If the path
21257   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21258   # take no chances and rewrite it.
21259   # Note: m4 eats our [], so we need to use [ and ] instead.
21260   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21261   if test "x$has_forbidden_chars" != x; then
21262     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21263     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21264     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21265     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21266       # Going to short mode and back again did indeed matter. Since short mode is
21267       # case insensitive, let's make it lowercase to improve readability.
21268       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21269       # Now convert it back to Unix-stile (cygpath)
21270       input_path=`$CYGPATH -u "$shortmode_path"`
21271       new_path="$input_path"
21272     fi
21273   fi
21274 
21275   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21276   if test "x$test_cygdrive_prefix" = x; then
21277     # As a simple fix, exclude /usr/bin since it's not a real path.
21278     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21279       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21280       # a path prefixed by /cygdrive for fixpath to work.
21281       new_path="$CYGWIN_ROOT_PATH$input_path"
21282     fi
21283   fi
21284 
21285 
21286   if test "x$path" != "x$new_path"; then
21287     BOOT_JDK="$new_path"
21288     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21289 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21290   fi
21291 
21292   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21293 
21294   path="$BOOT_JDK"
21295   has_colon=`$ECHO $path | $GREP ^.:`
21296   new_path="$path"
21297   if test "x$has_colon" = x; then
21298     # Not in mixed or Windows style, start by that.
21299     new_path=`cmd //c echo $path`
21300   fi
21301 
21302 
21303   input_path="$new_path"
21304   # Check if we need to convert this using DOS-style short mode. If the path
21305   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21306   # take no chances and rewrite it.
21307   # Note: m4 eats our [], so we need to use [ and ] instead.
21308   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21309   if test "x$has_forbidden_chars" != x; then
21310     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21311     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21312   fi
21313 
21314 
21315   windows_path="$new_path"
21316   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21317     unix_path=`$CYGPATH -u "$windows_path"`
21318     new_path="$unix_path"
21319   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21320     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21321     new_path="$unix_path"
21322   fi
21323 
21324   if test "x$path" != "x$new_path"; then
21325     BOOT_JDK="$new_path"
21326     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21327 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21328   fi
21329 
21330   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21331   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21332 
21333   else
21334     # We're on a posix platform. Hooray! :)
21335     path="$BOOT_JDK"
21336     has_space=`$ECHO "$path" | $GREP " "`
21337     if test "x$has_space" != x; then
21338       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21339 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21340       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21341     fi
21342 
21343     # Use eval to expand a potential ~
21344     eval path="$path"
21345     if test ! -f "$path" && test ! -d "$path"; then
21346       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21347     fi
21348 
21349     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21350   fi
21351 
21352               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21353 $as_echo_n "checking for Boot JDK... " >&6; }
21354               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21355 $as_echo "$BOOT_JDK" >&6; }
21356               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21357 $as_echo_n "checking Boot JDK version... " >&6; }
21358               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21359               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21360 $as_echo "$BOOT_JDK_VERSION" >&6; }
21361             fi # end check jdk version
21362           fi # end check rt.jar
21363         fi # end check javac
21364       fi # end check java
21365     fi # end check boot jdk found
21366   fi
21367 
21368     done
21369   fi
21370 
21371   fi
21372 
21373 
21374     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21375     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21376       # Do we have a bin/java?
21377       if test ! -x "$BOOT_JDK/bin/java"; then
21378         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21379 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21380         BOOT_JDK_FOUND=no
21381       else
21382         # Do we have a bin/javac?
21383         if test ! -x "$BOOT_JDK/bin/javac"; then
21384           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21385 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21386           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21387 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21388           BOOT_JDK_FOUND=no
21389         else
21390           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21391           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21392             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21393 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21394             BOOT_JDK_FOUND=no
21395           else
21396             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21397             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21398 
21399             # Extra M4 quote needed to protect [] in grep expression.
21400             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21401             if test "x$FOUND_VERSION_78" = x; then
21402               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21403 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21404               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21405 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21406               BOOT_JDK_FOUND=no
21407             else
21408               # We're done! :-)
21409               BOOT_JDK_FOUND=yes
21410 
21411   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21412 
21413   # Input might be given as Windows format, start by converting to
21414   # unix format.
21415   path="$BOOT_JDK"
21416   new_path=`$CYGPATH -u "$path"`
21417 
21418   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21419   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21420   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21421   # "foo.exe" is OK but "foo" is an error.
21422   #
21423   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21424   # It is also a way to make sure we got the proper file name for the real test later on.
21425   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21426   if test "x$test_shortpath" = x; then
21427     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21428 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21429     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21430   fi
21431 
21432   # Call helper function which possibly converts this using DOS-style short mode.
21433   # If so, the updated path is stored in $new_path.
21434 
21435   input_path="$new_path"
21436   # Check if we need to convert this using DOS-style short mode. If the path
21437   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21438   # take no chances and rewrite it.
21439   # Note: m4 eats our [], so we need to use [ and ] instead.
21440   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21441   if test "x$has_forbidden_chars" != x; then
21442     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21443     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21444     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21445     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21446       # Going to short mode and back again did indeed matter. Since short mode is
21447       # case insensitive, let's make it lowercase to improve readability.
21448       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21449       # Now convert it back to Unix-stile (cygpath)
21450       input_path=`$CYGPATH -u "$shortmode_path"`
21451       new_path="$input_path"
21452     fi
21453   fi
21454 
21455   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21456   if test "x$test_cygdrive_prefix" = x; then
21457     # As a simple fix, exclude /usr/bin since it's not a real path.
21458     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21459       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21460       # a path prefixed by /cygdrive for fixpath to work.
21461       new_path="$CYGWIN_ROOT_PATH$input_path"
21462     fi
21463   fi
21464 
21465 
21466   if test "x$path" != "x$new_path"; then
21467     BOOT_JDK="$new_path"
21468     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21469 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21470   fi
21471 
21472   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21473 
21474   path="$BOOT_JDK"
21475   has_colon=`$ECHO $path | $GREP ^.:`
21476   new_path="$path"
21477   if test "x$has_colon" = x; then
21478     # Not in mixed or Windows style, start by that.
21479     new_path=`cmd //c echo $path`
21480   fi
21481 
21482 
21483   input_path="$new_path"
21484   # Check if we need to convert this using DOS-style short mode. If the path
21485   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21486   # take no chances and rewrite it.
21487   # Note: m4 eats our [], so we need to use [ and ] instead.
21488   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21489   if test "x$has_forbidden_chars" != x; then
21490     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21491     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21492   fi
21493 
21494 
21495   windows_path="$new_path"
21496   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21497     unix_path=`$CYGPATH -u "$windows_path"`
21498     new_path="$unix_path"
21499   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21500     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21501     new_path="$unix_path"
21502   fi
21503 
21504   if test "x$path" != "x$new_path"; then
21505     BOOT_JDK="$new_path"
21506     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21507 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21508   fi
21509 
21510   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21511   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21512 
21513   else
21514     # We're on a posix platform. Hooray! :)
21515     path="$BOOT_JDK"
21516     has_space=`$ECHO "$path" | $GREP " "`
21517     if test "x$has_space" != x; then
21518       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21519 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21520       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21521     fi
21522 
21523     # Use eval to expand a potential ~
21524     eval path="$path"
21525     if test ! -f "$path" && test ! -d "$path"; then
21526       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21527     fi
21528 
21529     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21530   fi
21531 
21532               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21533 $as_echo_n "checking for Boot JDK... " >&6; }
21534               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21535 $as_echo "$BOOT_JDK" >&6; }
21536               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21537 $as_echo_n "checking Boot JDK version... " >&6; }
21538               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21539               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21540 $as_echo "$BOOT_JDK_VERSION" >&6; }
21541             fi # end check jdk version
21542           fi # end check rt.jar
21543         fi # end check javac
21544       fi # end check java
21545     fi # end check boot jdk found
21546   fi
21547 
21548 
21549   if test "x$BOOT_JDK_FOUND" = xno; then
21550     # Now execute the test
21551 
21552   if test "x$PROGRAMW6432" != x; then
21553     VIRTUAL_DIR="$PROGRAMW6432/Java"
21554 
21555   windows_path="$VIRTUAL_DIR"
21556   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21557     unix_path=`$CYGPATH -u "$windows_path"`
21558     VIRTUAL_DIR="$unix_path"
21559   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21560     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21561     VIRTUAL_DIR="$unix_path"
21562   fi
21563 
21564 
21565   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21566   BOOT_JDK_SUFFIX=""
21567   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21568   if test "x$ALL_JDKS_FOUND" != x; then
21569     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21570 
21571   if test "x$BOOT_JDK_FOUND" = xno; then
21572     # Now execute the test
21573 
21574         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21575         if test -d "$BOOT_JDK"; then
21576           BOOT_JDK_FOUND=maybe
21577           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21578 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21579         fi
21580 
21581 
21582     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21583     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21584       # Do we have a bin/java?
21585       if test ! -x "$BOOT_JDK/bin/java"; then
21586         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21587 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21588         BOOT_JDK_FOUND=no
21589       else
21590         # Do we have a bin/javac?
21591         if test ! -x "$BOOT_JDK/bin/javac"; then
21592           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21593 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21594           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21595 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21596           BOOT_JDK_FOUND=no
21597         else
21598           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21599           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21600             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21601 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21602             BOOT_JDK_FOUND=no
21603           else
21604             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21605             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21606 
21607             # Extra M4 quote needed to protect [] in grep expression.
21608             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21609             if test "x$FOUND_VERSION_78" = x; then
21610               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21611 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21612               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21613 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21614               BOOT_JDK_FOUND=no
21615             else
21616               # We're done! :-)
21617               BOOT_JDK_FOUND=yes
21618 
21619   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21620 
21621   # Input might be given as Windows format, start by converting to
21622   # unix format.
21623   path="$BOOT_JDK"
21624   new_path=`$CYGPATH -u "$path"`
21625 
21626   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21627   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21628   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21629   # "foo.exe" is OK but "foo" is an error.
21630   #
21631   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21632   # It is also a way to make sure we got the proper file name for the real test later on.
21633   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21634   if test "x$test_shortpath" = x; then
21635     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21636 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21637     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21638   fi
21639 
21640   # Call helper function which possibly converts this using DOS-style short mode.
21641   # If so, the updated path is stored in $new_path.
21642 
21643   input_path="$new_path"
21644   # Check if we need to convert this using DOS-style short mode. If the path
21645   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21646   # take no chances and rewrite it.
21647   # Note: m4 eats our [], so we need to use [ and ] instead.
21648   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21649   if test "x$has_forbidden_chars" != x; then
21650     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21651     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21652     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21653     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21654       # Going to short mode and back again did indeed matter. Since short mode is
21655       # case insensitive, let's make it lowercase to improve readability.
21656       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21657       # Now convert it back to Unix-stile (cygpath)
21658       input_path=`$CYGPATH -u "$shortmode_path"`
21659       new_path="$input_path"
21660     fi
21661   fi
21662 
21663   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21664   if test "x$test_cygdrive_prefix" = x; then
21665     # As a simple fix, exclude /usr/bin since it's not a real path.
21666     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21667       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21668       # a path prefixed by /cygdrive for fixpath to work.
21669       new_path="$CYGWIN_ROOT_PATH$input_path"
21670     fi
21671   fi
21672 
21673 
21674   if test "x$path" != "x$new_path"; then
21675     BOOT_JDK="$new_path"
21676     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21677 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21678   fi
21679 
21680   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21681 
21682   path="$BOOT_JDK"
21683   has_colon=`$ECHO $path | $GREP ^.:`
21684   new_path="$path"
21685   if test "x$has_colon" = x; then
21686     # Not in mixed or Windows style, start by that.
21687     new_path=`cmd //c echo $path`
21688   fi
21689 
21690 
21691   input_path="$new_path"
21692   # Check if we need to convert this using DOS-style short mode. If the path
21693   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21694   # take no chances and rewrite it.
21695   # Note: m4 eats our [], so we need to use [ and ] instead.
21696   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21697   if test "x$has_forbidden_chars" != x; then
21698     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21699     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21700   fi
21701 
21702 
21703   windows_path="$new_path"
21704   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21705     unix_path=`$CYGPATH -u "$windows_path"`
21706     new_path="$unix_path"
21707   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21708     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21709     new_path="$unix_path"
21710   fi
21711 
21712   if test "x$path" != "x$new_path"; then
21713     BOOT_JDK="$new_path"
21714     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21715 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21716   fi
21717 
21718   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21719   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21720 
21721   else
21722     # We're on a posix platform. Hooray! :)
21723     path="$BOOT_JDK"
21724     has_space=`$ECHO "$path" | $GREP " "`
21725     if test "x$has_space" != x; then
21726       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21727 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21728       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21729     fi
21730 
21731     # Use eval to expand a potential ~
21732     eval path="$path"
21733     if test ! -f "$path" && test ! -d "$path"; then
21734       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21735     fi
21736 
21737     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21738   fi
21739 
21740               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21741 $as_echo_n "checking for Boot JDK... " >&6; }
21742               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21743 $as_echo "$BOOT_JDK" >&6; }
21744               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21745 $as_echo_n "checking Boot JDK version... " >&6; }
21746               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21747               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21748 $as_echo "$BOOT_JDK_VERSION" >&6; }
21749             fi # end check jdk version
21750           fi # end check rt.jar
21751         fi # end check javac
21752       fi # end check java
21753     fi # end check boot jdk found
21754   fi
21755 
21756     done
21757   fi
21758 
21759   fi
21760 
21761 
21762     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21763     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21764       # Do we have a bin/java?
21765       if test ! -x "$BOOT_JDK/bin/java"; then
21766         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21767 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21768         BOOT_JDK_FOUND=no
21769       else
21770         # Do we have a bin/javac?
21771         if test ! -x "$BOOT_JDK/bin/javac"; then
21772           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21773 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21774           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21775 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21776           BOOT_JDK_FOUND=no
21777         else
21778           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21779           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21780             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21781 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21782             BOOT_JDK_FOUND=no
21783           else
21784             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21785             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21786 
21787             # Extra M4 quote needed to protect [] in grep expression.
21788             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21789             if test "x$FOUND_VERSION_78" = x; then
21790               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21791 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21792               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21793 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21794               BOOT_JDK_FOUND=no
21795             else
21796               # We're done! :-)
21797               BOOT_JDK_FOUND=yes
21798 
21799   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21800 
21801   # Input might be given as Windows format, start by converting to
21802   # unix format.
21803   path="$BOOT_JDK"
21804   new_path=`$CYGPATH -u "$path"`
21805 
21806   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21807   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21808   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21809   # "foo.exe" is OK but "foo" is an error.
21810   #
21811   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21812   # It is also a way to make sure we got the proper file name for the real test later on.
21813   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21814   if test "x$test_shortpath" = x; then
21815     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21816 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21817     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21818   fi
21819 
21820   # Call helper function which possibly converts this using DOS-style short mode.
21821   # If so, the updated path is stored in $new_path.
21822 
21823   input_path="$new_path"
21824   # Check if we need to convert this using DOS-style short mode. If the path
21825   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21826   # take no chances and rewrite it.
21827   # Note: m4 eats our [], so we need to use [ and ] instead.
21828   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21829   if test "x$has_forbidden_chars" != x; then
21830     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21831     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21832     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21833     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21834       # Going to short mode and back again did indeed matter. Since short mode is
21835       # case insensitive, let's make it lowercase to improve readability.
21836       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21837       # Now convert it back to Unix-stile (cygpath)
21838       input_path=`$CYGPATH -u "$shortmode_path"`
21839       new_path="$input_path"
21840     fi
21841   fi
21842 
21843   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21844   if test "x$test_cygdrive_prefix" = x; then
21845     # As a simple fix, exclude /usr/bin since it's not a real path.
21846     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21847       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21848       # a path prefixed by /cygdrive for fixpath to work.
21849       new_path="$CYGWIN_ROOT_PATH$input_path"
21850     fi
21851   fi
21852 
21853 
21854   if test "x$path" != "x$new_path"; then
21855     BOOT_JDK="$new_path"
21856     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21857 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21858   fi
21859 
21860   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21861 
21862   path="$BOOT_JDK"
21863   has_colon=`$ECHO $path | $GREP ^.:`
21864   new_path="$path"
21865   if test "x$has_colon" = x; then
21866     # Not in mixed or Windows style, start by that.
21867     new_path=`cmd //c echo $path`
21868   fi
21869 
21870 
21871   input_path="$new_path"
21872   # Check if we need to convert this using DOS-style short mode. If the path
21873   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21874   # take no chances and rewrite it.
21875   # Note: m4 eats our [], so we need to use [ and ] instead.
21876   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21877   if test "x$has_forbidden_chars" != x; then
21878     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21879     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21880   fi
21881 
21882 
21883   windows_path="$new_path"
21884   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21885     unix_path=`$CYGPATH -u "$windows_path"`
21886     new_path="$unix_path"
21887   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21888     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21889     new_path="$unix_path"
21890   fi
21891 
21892   if test "x$path" != "x$new_path"; then
21893     BOOT_JDK="$new_path"
21894     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21895 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21896   fi
21897 
21898   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21899   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21900 
21901   else
21902     # We're on a posix platform. Hooray! :)
21903     path="$BOOT_JDK"
21904     has_space=`$ECHO "$path" | $GREP " "`
21905     if test "x$has_space" != x; then
21906       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21907 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21908       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21909     fi
21910 
21911     # Use eval to expand a potential ~
21912     eval path="$path"
21913     if test ! -f "$path" && test ! -d "$path"; then
21914       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21915     fi
21916 
21917     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21918   fi
21919 
21920               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21921 $as_echo_n "checking for Boot JDK... " >&6; }
21922               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21923 $as_echo "$BOOT_JDK" >&6; }
21924               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21925 $as_echo_n "checking Boot JDK version... " >&6; }
21926               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21927               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21928 $as_echo "$BOOT_JDK_VERSION" >&6; }
21929             fi # end check jdk version
21930           fi # end check rt.jar
21931         fi # end check javac
21932       fi # end check java
21933     fi # end check boot jdk found
21934   fi
21935 
21936 
21937   if test "x$BOOT_JDK_FOUND" = xno; then
21938     # Now execute the test
21939 
21940   if test "x$PROGRAMFILES" != x; then
21941     VIRTUAL_DIR="$PROGRAMFILES/Java"
21942 
21943   windows_path="$VIRTUAL_DIR"
21944   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21945     unix_path=`$CYGPATH -u "$windows_path"`
21946     VIRTUAL_DIR="$unix_path"
21947   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21948     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21949     VIRTUAL_DIR="$unix_path"
21950   fi
21951 
21952 
21953   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21954   BOOT_JDK_SUFFIX=""
21955   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21956   if test "x$ALL_JDKS_FOUND" != x; then
21957     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21958 
21959   if test "x$BOOT_JDK_FOUND" = xno; then
21960     # Now execute the test
21961 
21962         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21963         if test -d "$BOOT_JDK"; then
21964           BOOT_JDK_FOUND=maybe
21965           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21966 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21967         fi
21968 
21969 
21970     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21971     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21972       # Do we have a bin/java?
21973       if test ! -x "$BOOT_JDK/bin/java"; then
21974         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21975 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21976         BOOT_JDK_FOUND=no
21977       else
21978         # Do we have a bin/javac?
21979         if test ! -x "$BOOT_JDK/bin/javac"; then
21980           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21981 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21982           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21983 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21984           BOOT_JDK_FOUND=no
21985         else
21986           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21987           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21988             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21989 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21990             BOOT_JDK_FOUND=no
21991           else
21992             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21993             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21994 
21995             # Extra M4 quote needed to protect [] in grep expression.
21996             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21997             if test "x$FOUND_VERSION_78" = x; then
21998               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21999 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22000               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22001 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22002               BOOT_JDK_FOUND=no
22003             else
22004               # We're done! :-)
22005               BOOT_JDK_FOUND=yes
22006 
22007   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22008 
22009   # Input might be given as Windows format, start by converting to
22010   # unix format.
22011   path="$BOOT_JDK"
22012   new_path=`$CYGPATH -u "$path"`
22013 
22014   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22015   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22016   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22017   # "foo.exe" is OK but "foo" is an error.
22018   #
22019   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22020   # It is also a way to make sure we got the proper file name for the real test later on.
22021   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22022   if test "x$test_shortpath" = x; then
22023     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22024 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22025     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22026   fi
22027 
22028   # Call helper function which possibly converts this using DOS-style short mode.
22029   # If so, the updated path is stored in $new_path.
22030 
22031   input_path="$new_path"
22032   # Check if we need to convert this using DOS-style short mode. If the path
22033   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22034   # take no chances and rewrite it.
22035   # Note: m4 eats our [], so we need to use [ and ] instead.
22036   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22037   if test "x$has_forbidden_chars" != x; then
22038     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22039     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22040     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22041     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22042       # Going to short mode and back again did indeed matter. Since short mode is
22043       # case insensitive, let's make it lowercase to improve readability.
22044       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22045       # Now convert it back to Unix-stile (cygpath)
22046       input_path=`$CYGPATH -u "$shortmode_path"`
22047       new_path="$input_path"
22048     fi
22049   fi
22050 
22051   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22052   if test "x$test_cygdrive_prefix" = x; then
22053     # As a simple fix, exclude /usr/bin since it's not a real path.
22054     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22055       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22056       # a path prefixed by /cygdrive for fixpath to work.
22057       new_path="$CYGWIN_ROOT_PATH$input_path"
22058     fi
22059   fi
22060 
22061 
22062   if test "x$path" != "x$new_path"; then
22063     BOOT_JDK="$new_path"
22064     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22065 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22066   fi
22067 
22068   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22069 
22070   path="$BOOT_JDK"
22071   has_colon=`$ECHO $path | $GREP ^.:`
22072   new_path="$path"
22073   if test "x$has_colon" = x; then
22074     # Not in mixed or Windows style, start by that.
22075     new_path=`cmd //c echo $path`
22076   fi
22077 
22078 
22079   input_path="$new_path"
22080   # Check if we need to convert this using DOS-style short mode. If the path
22081   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22082   # take no chances and rewrite it.
22083   # Note: m4 eats our [], so we need to use [ and ] instead.
22084   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22085   if test "x$has_forbidden_chars" != x; then
22086     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22087     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22088   fi
22089 
22090 
22091   windows_path="$new_path"
22092   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22093     unix_path=`$CYGPATH -u "$windows_path"`
22094     new_path="$unix_path"
22095   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22096     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22097     new_path="$unix_path"
22098   fi
22099 
22100   if test "x$path" != "x$new_path"; then
22101     BOOT_JDK="$new_path"
22102     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22103 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22104   fi
22105 
22106   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22107   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22108 
22109   else
22110     # We're on a posix platform. Hooray! :)
22111     path="$BOOT_JDK"
22112     has_space=`$ECHO "$path" | $GREP " "`
22113     if test "x$has_space" != x; then
22114       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22115 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22116       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22117     fi
22118 
22119     # Use eval to expand a potential ~
22120     eval path="$path"
22121     if test ! -f "$path" && test ! -d "$path"; then
22122       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22123     fi
22124 
22125     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22126   fi
22127 
22128               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22129 $as_echo_n "checking for Boot JDK... " >&6; }
22130               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22131 $as_echo "$BOOT_JDK" >&6; }
22132               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22133 $as_echo_n "checking Boot JDK version... " >&6; }
22134               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22135               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22136 $as_echo "$BOOT_JDK_VERSION" >&6; }
22137             fi # end check jdk version
22138           fi # end check rt.jar
22139         fi # end check javac
22140       fi # end check java
22141     fi # end check boot jdk found
22142   fi
22143 
22144     done
22145   fi
22146 
22147   fi
22148 
22149 
22150     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22151     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22152       # Do we have a bin/java?
22153       if test ! -x "$BOOT_JDK/bin/java"; then
22154         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22155 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22156         BOOT_JDK_FOUND=no
22157       else
22158         # Do we have a bin/javac?
22159         if test ! -x "$BOOT_JDK/bin/javac"; then
22160           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22161 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22162           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22163 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22164           BOOT_JDK_FOUND=no
22165         else
22166           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22167           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22168             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22169 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22170             BOOT_JDK_FOUND=no
22171           else
22172             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22173             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22174 
22175             # Extra M4 quote needed to protect [] in grep expression.
22176             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22177             if test "x$FOUND_VERSION_78" = x; then
22178               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22179 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22180               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22181 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22182               BOOT_JDK_FOUND=no
22183             else
22184               # We're done! :-)
22185               BOOT_JDK_FOUND=yes
22186 
22187   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22188 
22189   # Input might be given as Windows format, start by converting to
22190   # unix format.
22191   path="$BOOT_JDK"
22192   new_path=`$CYGPATH -u "$path"`
22193 
22194   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22195   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22196   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22197   # "foo.exe" is OK but "foo" is an error.
22198   #
22199   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22200   # It is also a way to make sure we got the proper file name for the real test later on.
22201   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22202   if test "x$test_shortpath" = x; then
22203     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22204 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22205     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22206   fi
22207 
22208   # Call helper function which possibly converts this using DOS-style short mode.
22209   # If so, the updated path is stored in $new_path.
22210 
22211   input_path="$new_path"
22212   # Check if we need to convert this using DOS-style short mode. If the path
22213   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22214   # take no chances and rewrite it.
22215   # Note: m4 eats our [], so we need to use [ and ] instead.
22216   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22217   if test "x$has_forbidden_chars" != x; then
22218     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22219     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22220     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22221     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22222       # Going to short mode and back again did indeed matter. Since short mode is
22223       # case insensitive, let's make it lowercase to improve readability.
22224       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22225       # Now convert it back to Unix-stile (cygpath)
22226       input_path=`$CYGPATH -u "$shortmode_path"`
22227       new_path="$input_path"
22228     fi
22229   fi
22230 
22231   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22232   if test "x$test_cygdrive_prefix" = x; then
22233     # As a simple fix, exclude /usr/bin since it's not a real path.
22234     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22235       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22236       # a path prefixed by /cygdrive for fixpath to work.
22237       new_path="$CYGWIN_ROOT_PATH$input_path"
22238     fi
22239   fi
22240 
22241 
22242   if test "x$path" != "x$new_path"; then
22243     BOOT_JDK="$new_path"
22244     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22245 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22246   fi
22247 
22248   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22249 
22250   path="$BOOT_JDK"
22251   has_colon=`$ECHO $path | $GREP ^.:`
22252   new_path="$path"
22253   if test "x$has_colon" = x; then
22254     # Not in mixed or Windows style, start by that.
22255     new_path=`cmd //c echo $path`
22256   fi
22257 
22258 
22259   input_path="$new_path"
22260   # Check if we need to convert this using DOS-style short mode. If the path
22261   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22262   # take no chances and rewrite it.
22263   # Note: m4 eats our [], so we need to use [ and ] instead.
22264   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22265   if test "x$has_forbidden_chars" != x; then
22266     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22267     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22268   fi
22269 
22270 
22271   windows_path="$new_path"
22272   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22273     unix_path=`$CYGPATH -u "$windows_path"`
22274     new_path="$unix_path"
22275   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22276     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22277     new_path="$unix_path"
22278   fi
22279 
22280   if test "x$path" != "x$new_path"; then
22281     BOOT_JDK="$new_path"
22282     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22283 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22284   fi
22285 
22286   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22287   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22288 
22289   else
22290     # We're on a posix platform. Hooray! :)
22291     path="$BOOT_JDK"
22292     has_space=`$ECHO "$path" | $GREP " "`
22293     if test "x$has_space" != x; then
22294       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22295 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22296       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22297     fi
22298 
22299     # Use eval to expand a potential ~
22300     eval path="$path"
22301     if test ! -f "$path" && test ! -d "$path"; then
22302       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22303     fi
22304 
22305     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22306   fi
22307 
22308               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22309 $as_echo_n "checking for Boot JDK... " >&6; }
22310               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22311 $as_echo "$BOOT_JDK" >&6; }
22312               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22313 $as_echo_n "checking Boot JDK version... " >&6; }
22314               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22315               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22316 $as_echo "$BOOT_JDK_VERSION" >&6; }
22317             fi # end check jdk version
22318           fi # end check rt.jar
22319         fi # end check javac
22320       fi # end check java
22321     fi # end check boot jdk found
22322   fi
22323 
22324 
22325   if test "x$BOOT_JDK_FOUND" = xno; then
22326     # Now execute the test
22327 
22328   if test "x$ProgramFiles" != x; then
22329     VIRTUAL_DIR="$ProgramFiles/Java"
22330 
22331   windows_path="$VIRTUAL_DIR"
22332   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22333     unix_path=`$CYGPATH -u "$windows_path"`
22334     VIRTUAL_DIR="$unix_path"
22335   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22336     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22337     VIRTUAL_DIR="$unix_path"
22338   fi
22339 
22340 
22341   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22342   BOOT_JDK_SUFFIX=""
22343   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22344   if test "x$ALL_JDKS_FOUND" != x; then
22345     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22346 
22347   if test "x$BOOT_JDK_FOUND" = xno; then
22348     # Now execute the test
22349 
22350         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22351         if test -d "$BOOT_JDK"; then
22352           BOOT_JDK_FOUND=maybe
22353           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22354 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22355         fi
22356 
22357 
22358     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22359     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22360       # Do we have a bin/java?
22361       if test ! -x "$BOOT_JDK/bin/java"; then
22362         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22363 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22364         BOOT_JDK_FOUND=no
22365       else
22366         # Do we have a bin/javac?
22367         if test ! -x "$BOOT_JDK/bin/javac"; then
22368           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22369 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22370           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22371 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22372           BOOT_JDK_FOUND=no
22373         else
22374           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22375           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22376             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22377 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22378             BOOT_JDK_FOUND=no
22379           else
22380             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22381             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22382 
22383             # Extra M4 quote needed to protect [] in grep expression.
22384             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22385             if test "x$FOUND_VERSION_78" = x; then
22386               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22387 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22388               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22389 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22390               BOOT_JDK_FOUND=no
22391             else
22392               # We're done! :-)
22393               BOOT_JDK_FOUND=yes
22394 
22395   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22396 
22397   # Input might be given as Windows format, start by converting to
22398   # unix format.
22399   path="$BOOT_JDK"
22400   new_path=`$CYGPATH -u "$path"`
22401 
22402   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22403   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22404   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22405   # "foo.exe" is OK but "foo" is an error.
22406   #
22407   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22408   # It is also a way to make sure we got the proper file name for the real test later on.
22409   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22410   if test "x$test_shortpath" = x; then
22411     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22412 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22413     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22414   fi
22415 
22416   # Call helper function which possibly converts this using DOS-style short mode.
22417   # If so, the updated path is stored in $new_path.
22418 
22419   input_path="$new_path"
22420   # Check if we need to convert this using DOS-style short mode. If the path
22421   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22422   # take no chances and rewrite it.
22423   # Note: m4 eats our [], so we need to use [ and ] instead.
22424   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22425   if test "x$has_forbidden_chars" != x; then
22426     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22427     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22428     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22429     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22430       # Going to short mode and back again did indeed matter. Since short mode is
22431       # case insensitive, let's make it lowercase to improve readability.
22432       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22433       # Now convert it back to Unix-stile (cygpath)
22434       input_path=`$CYGPATH -u "$shortmode_path"`
22435       new_path="$input_path"
22436     fi
22437   fi
22438 
22439   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22440   if test "x$test_cygdrive_prefix" = x; then
22441     # As a simple fix, exclude /usr/bin since it's not a real path.
22442     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22443       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22444       # a path prefixed by /cygdrive for fixpath to work.
22445       new_path="$CYGWIN_ROOT_PATH$input_path"
22446     fi
22447   fi
22448 
22449 
22450   if test "x$path" != "x$new_path"; then
22451     BOOT_JDK="$new_path"
22452     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22453 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22454   fi
22455 
22456   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22457 
22458   path="$BOOT_JDK"
22459   has_colon=`$ECHO $path | $GREP ^.:`
22460   new_path="$path"
22461   if test "x$has_colon" = x; then
22462     # Not in mixed or Windows style, start by that.
22463     new_path=`cmd //c echo $path`
22464   fi
22465 
22466 
22467   input_path="$new_path"
22468   # Check if we need to convert this using DOS-style short mode. If the path
22469   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22470   # take no chances and rewrite it.
22471   # Note: m4 eats our [], so we need to use [ and ] instead.
22472   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22473   if test "x$has_forbidden_chars" != x; then
22474     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22475     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22476   fi
22477 
22478 
22479   windows_path="$new_path"
22480   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22481     unix_path=`$CYGPATH -u "$windows_path"`
22482     new_path="$unix_path"
22483   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22484     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22485     new_path="$unix_path"
22486   fi
22487 
22488   if test "x$path" != "x$new_path"; then
22489     BOOT_JDK="$new_path"
22490     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22491 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22492   fi
22493 
22494   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22495   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22496 
22497   else
22498     # We're on a posix platform. Hooray! :)
22499     path="$BOOT_JDK"
22500     has_space=`$ECHO "$path" | $GREP " "`
22501     if test "x$has_space" != x; then
22502       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22503 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22504       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22505     fi
22506 
22507     # Use eval to expand a potential ~
22508     eval path="$path"
22509     if test ! -f "$path" && test ! -d "$path"; then
22510       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22511     fi
22512 
22513     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22514   fi
22515 
22516               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22517 $as_echo_n "checking for Boot JDK... " >&6; }
22518               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22519 $as_echo "$BOOT_JDK" >&6; }
22520               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22521 $as_echo_n "checking Boot JDK version... " >&6; }
22522               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22523               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22524 $as_echo "$BOOT_JDK_VERSION" >&6; }
22525             fi # end check jdk version
22526           fi # end check rt.jar
22527         fi # end check javac
22528       fi # end check java
22529     fi # end check boot jdk found
22530   fi
22531 
22532     done
22533   fi
22534 
22535   fi
22536 
22537 
22538     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22539     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22540       # Do we have a bin/java?
22541       if test ! -x "$BOOT_JDK/bin/java"; then
22542         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22543 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22544         BOOT_JDK_FOUND=no
22545       else
22546         # Do we have a bin/javac?
22547         if test ! -x "$BOOT_JDK/bin/javac"; then
22548           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22549 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22550           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22551 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22552           BOOT_JDK_FOUND=no
22553         else
22554           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22555           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22556             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22557 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22558             BOOT_JDK_FOUND=no
22559           else
22560             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22561             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22562 
22563             # Extra M4 quote needed to protect [] in grep expression.
22564             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22565             if test "x$FOUND_VERSION_78" = x; then
22566               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22567 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22568               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22569 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22570               BOOT_JDK_FOUND=no
22571             else
22572               # We're done! :-)
22573               BOOT_JDK_FOUND=yes
22574 
22575   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22576 
22577   # Input might be given as Windows format, start by converting to
22578   # unix format.
22579   path="$BOOT_JDK"
22580   new_path=`$CYGPATH -u "$path"`
22581 
22582   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22583   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22584   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22585   # "foo.exe" is OK but "foo" is an error.
22586   #
22587   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22588   # It is also a way to make sure we got the proper file name for the real test later on.
22589   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22590   if test "x$test_shortpath" = x; then
22591     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22592 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22593     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22594   fi
22595 
22596   # Call helper function which possibly converts this using DOS-style short mode.
22597   # If so, the updated path is stored in $new_path.
22598 
22599   input_path="$new_path"
22600   # Check if we need to convert this using DOS-style short mode. If the path
22601   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22602   # take no chances and rewrite it.
22603   # Note: m4 eats our [], so we need to use [ and ] instead.
22604   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22605   if test "x$has_forbidden_chars" != x; then
22606     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22607     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22608     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22609     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22610       # Going to short mode and back again did indeed matter. Since short mode is
22611       # case insensitive, let's make it lowercase to improve readability.
22612       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22613       # Now convert it back to Unix-stile (cygpath)
22614       input_path=`$CYGPATH -u "$shortmode_path"`
22615       new_path="$input_path"
22616     fi
22617   fi
22618 
22619   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22620   if test "x$test_cygdrive_prefix" = x; then
22621     # As a simple fix, exclude /usr/bin since it's not a real path.
22622     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22623       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22624       # a path prefixed by /cygdrive for fixpath to work.
22625       new_path="$CYGWIN_ROOT_PATH$input_path"
22626     fi
22627   fi
22628 
22629 
22630   if test "x$path" != "x$new_path"; then
22631     BOOT_JDK="$new_path"
22632     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22633 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22634   fi
22635 
22636   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22637 
22638   path="$BOOT_JDK"
22639   has_colon=`$ECHO $path | $GREP ^.:`
22640   new_path="$path"
22641   if test "x$has_colon" = x; then
22642     # Not in mixed or Windows style, start by that.
22643     new_path=`cmd //c echo $path`
22644   fi
22645 
22646 
22647   input_path="$new_path"
22648   # Check if we need to convert this using DOS-style short mode. If the path
22649   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22650   # take no chances and rewrite it.
22651   # Note: m4 eats our [], so we need to use [ and ] instead.
22652   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22653   if test "x$has_forbidden_chars" != x; then
22654     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22655     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22656   fi
22657 
22658 
22659   windows_path="$new_path"
22660   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22661     unix_path=`$CYGPATH -u "$windows_path"`
22662     new_path="$unix_path"
22663   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22664     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22665     new_path="$unix_path"
22666   fi
22667 
22668   if test "x$path" != "x$new_path"; then
22669     BOOT_JDK="$new_path"
22670     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22671 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22672   fi
22673 
22674   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22675   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22676 
22677   else
22678     # We're on a posix platform. Hooray! :)
22679     path="$BOOT_JDK"
22680     has_space=`$ECHO "$path" | $GREP " "`
22681     if test "x$has_space" != x; then
22682       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22683 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22684       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22685     fi
22686 
22687     # Use eval to expand a potential ~
22688     eval path="$path"
22689     if test ! -f "$path" && test ! -d "$path"; then
22690       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22691     fi
22692 
22693     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22694   fi
22695 
22696               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22697 $as_echo_n "checking for Boot JDK... " >&6; }
22698               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22699 $as_echo "$BOOT_JDK" >&6; }
22700               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22701 $as_echo_n "checking Boot JDK version... " >&6; }
22702               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22703               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22704 $as_echo "$BOOT_JDK_VERSION" >&6; }
22705             fi # end check jdk version
22706           fi # end check rt.jar
22707         fi # end check javac
22708       fi # end check java
22709     fi # end check boot jdk found
22710   fi
22711 
22712 
22713   if test "x$BOOT_JDK_FOUND" = xno; then
22714     # Now execute the test
22715 
22716   BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java"
22717   BOOT_JDK_SUFFIX=""
22718   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22719   if test "x$ALL_JDKS_FOUND" != x; then
22720     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22721 
22722   if test "x$BOOT_JDK_FOUND" = xno; then
22723     # Now execute the test
22724 
22725         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22726         if test -d "$BOOT_JDK"; then
22727           BOOT_JDK_FOUND=maybe
22728           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22729 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22730         fi
22731 
22732 
22733     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22734     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22735       # Do we have a bin/java?
22736       if test ! -x "$BOOT_JDK/bin/java"; then
22737         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22738 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22739         BOOT_JDK_FOUND=no
22740       else
22741         # Do we have a bin/javac?
22742         if test ! -x "$BOOT_JDK/bin/javac"; then
22743           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22744 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22745           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22746 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22747           BOOT_JDK_FOUND=no
22748         else
22749           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22750           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22751             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22752 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22753             BOOT_JDK_FOUND=no
22754           else
22755             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22756             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22757 
22758             # Extra M4 quote needed to protect [] in grep expression.
22759             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22760             if test "x$FOUND_VERSION_78" = x; then
22761               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22762 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22763               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22764 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22765               BOOT_JDK_FOUND=no
22766             else
22767               # We're done! :-)
22768               BOOT_JDK_FOUND=yes
22769 
22770   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22771 
22772   # Input might be given as Windows format, start by converting to
22773   # unix format.
22774   path="$BOOT_JDK"
22775   new_path=`$CYGPATH -u "$path"`
22776 
22777   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22778   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22779   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22780   # "foo.exe" is OK but "foo" is an error.
22781   #
22782   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22783   # It is also a way to make sure we got the proper file name for the real test later on.
22784   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22785   if test "x$test_shortpath" = x; then
22786     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22787 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22788     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22789   fi
22790 
22791   # Call helper function which possibly converts this using DOS-style short mode.
22792   # If so, the updated path is stored in $new_path.
22793 
22794   input_path="$new_path"
22795   # Check if we need to convert this using DOS-style short mode. If the path
22796   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22797   # take no chances and rewrite it.
22798   # Note: m4 eats our [], so we need to use [ and ] instead.
22799   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22800   if test "x$has_forbidden_chars" != x; then
22801     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22802     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22803     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22804     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22805       # Going to short mode and back again did indeed matter. Since short mode is
22806       # case insensitive, let's make it lowercase to improve readability.
22807       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22808       # Now convert it back to Unix-stile (cygpath)
22809       input_path=`$CYGPATH -u "$shortmode_path"`
22810       new_path="$input_path"
22811     fi
22812   fi
22813 
22814   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22815   if test "x$test_cygdrive_prefix" = x; then
22816     # As a simple fix, exclude /usr/bin since it's not a real path.
22817     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22818       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22819       # a path prefixed by /cygdrive for fixpath to work.
22820       new_path="$CYGWIN_ROOT_PATH$input_path"
22821     fi
22822   fi
22823 
22824 
22825   if test "x$path" != "x$new_path"; then
22826     BOOT_JDK="$new_path"
22827     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22828 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22829   fi
22830 
22831   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22832 
22833   path="$BOOT_JDK"
22834   has_colon=`$ECHO $path | $GREP ^.:`
22835   new_path="$path"
22836   if test "x$has_colon" = x; then
22837     # Not in mixed or Windows style, start by that.
22838     new_path=`cmd //c echo $path`
22839   fi
22840 
22841 
22842   input_path="$new_path"
22843   # Check if we need to convert this using DOS-style short mode. If the path
22844   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22845   # take no chances and rewrite it.
22846   # Note: m4 eats our [], so we need to use [ and ] instead.
22847   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22848   if test "x$has_forbidden_chars" != x; then
22849     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22850     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22851   fi
22852 
22853 
22854   windows_path="$new_path"
22855   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22856     unix_path=`$CYGPATH -u "$windows_path"`
22857     new_path="$unix_path"
22858   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22859     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22860     new_path="$unix_path"
22861   fi
22862 
22863   if test "x$path" != "x$new_path"; then
22864     BOOT_JDK="$new_path"
22865     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22866 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22867   fi
22868 
22869   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22870   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22871 
22872   else
22873     # We're on a posix platform. Hooray! :)
22874     path="$BOOT_JDK"
22875     has_space=`$ECHO "$path" | $GREP " "`
22876     if test "x$has_space" != x; then
22877       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22878 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22879       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22880     fi
22881 
22882     # Use eval to expand a potential ~
22883     eval path="$path"
22884     if test ! -f "$path" && test ! -d "$path"; then
22885       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22886     fi
22887 
22888     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22889   fi
22890 
22891               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22892 $as_echo_n "checking for Boot JDK... " >&6; }
22893               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22894 $as_echo "$BOOT_JDK" >&6; }
22895               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22896 $as_echo_n "checking Boot JDK version... " >&6; }
22897               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22898               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22899 $as_echo "$BOOT_JDK_VERSION" >&6; }
22900             fi # end check jdk version
22901           fi # end check rt.jar
22902         fi # end check javac
22903       fi # end check java
22904     fi # end check boot jdk found
22905   fi
22906 
22907     done
22908   fi
22909 
22910 
22911     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22912     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22913       # Do we have a bin/java?
22914       if test ! -x "$BOOT_JDK/bin/java"; then
22915         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22916 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22917         BOOT_JDK_FOUND=no
22918       else
22919         # Do we have a bin/javac?
22920         if test ! -x "$BOOT_JDK/bin/javac"; then
22921           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22922 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22923           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22924 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22925           BOOT_JDK_FOUND=no
22926         else
22927           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22928           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22929             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22930 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22931             BOOT_JDK_FOUND=no
22932           else
22933             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22934             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22935 
22936             # Extra M4 quote needed to protect [] in grep expression.
22937             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22938             if test "x$FOUND_VERSION_78" = x; then
22939               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22940 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22941               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22942 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22943               BOOT_JDK_FOUND=no
22944             else
22945               # We're done! :-)
22946               BOOT_JDK_FOUND=yes
22947 
22948   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22949 
22950   # Input might be given as Windows format, start by converting to
22951   # unix format.
22952   path="$BOOT_JDK"
22953   new_path=`$CYGPATH -u "$path"`
22954 
22955   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22956   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22957   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22958   # "foo.exe" is OK but "foo" is an error.
22959   #
22960   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22961   # It is also a way to make sure we got the proper file name for the real test later on.
22962   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22963   if test "x$test_shortpath" = x; then
22964     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22965 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22966     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22967   fi
22968 
22969   # Call helper function which possibly converts this using DOS-style short mode.
22970   # If so, the updated path is stored in $new_path.
22971 
22972   input_path="$new_path"
22973   # Check if we need to convert this using DOS-style short mode. If the path
22974   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22975   # take no chances and rewrite it.
22976   # Note: m4 eats our [], so we need to use [ and ] instead.
22977   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22978   if test "x$has_forbidden_chars" != x; then
22979     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22980     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22981     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22982     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22983       # Going to short mode and back again did indeed matter. Since short mode is
22984       # case insensitive, let's make it lowercase to improve readability.
22985       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22986       # Now convert it back to Unix-stile (cygpath)
22987       input_path=`$CYGPATH -u "$shortmode_path"`
22988       new_path="$input_path"
22989     fi
22990   fi
22991 
22992   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22993   if test "x$test_cygdrive_prefix" = x; then
22994     # As a simple fix, exclude /usr/bin since it's not a real path.
22995     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22996       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22997       # a path prefixed by /cygdrive for fixpath to work.
22998       new_path="$CYGWIN_ROOT_PATH$input_path"
22999     fi
23000   fi
23001 
23002 
23003   if test "x$path" != "x$new_path"; then
23004     BOOT_JDK="$new_path"
23005     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23006 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23007   fi
23008 
23009   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23010 
23011   path="$BOOT_JDK"
23012   has_colon=`$ECHO $path | $GREP ^.:`
23013   new_path="$path"
23014   if test "x$has_colon" = x; then
23015     # Not in mixed or Windows style, start by that.
23016     new_path=`cmd //c echo $path`
23017   fi
23018 
23019 
23020   input_path="$new_path"
23021   # Check if we need to convert this using DOS-style short mode. If the path
23022   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23023   # take no chances and rewrite it.
23024   # Note: m4 eats our [], so we need to use [ and ] instead.
23025   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23026   if test "x$has_forbidden_chars" != x; then
23027     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23028     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23029   fi
23030 
23031 
23032   windows_path="$new_path"
23033   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23034     unix_path=`$CYGPATH -u "$windows_path"`
23035     new_path="$unix_path"
23036   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23037     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23038     new_path="$unix_path"
23039   fi
23040 
23041   if test "x$path" != "x$new_path"; then
23042     BOOT_JDK="$new_path"
23043     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23044 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23045   fi
23046 
23047   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23048   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23049 
23050   else
23051     # We're on a posix platform. Hooray! :)
23052     path="$BOOT_JDK"
23053     has_space=`$ECHO "$path" | $GREP " "`
23054     if test "x$has_space" != x; then
23055       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23056 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23057       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23058     fi
23059 
23060     # Use eval to expand a potential ~
23061     eval path="$path"
23062     if test ! -f "$path" && test ! -d "$path"; then
23063       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23064     fi
23065 
23066     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23067   fi
23068 
23069               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23070 $as_echo_n "checking for Boot JDK... " >&6; }
23071               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23072 $as_echo "$BOOT_JDK" >&6; }
23073               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23074 $as_echo_n "checking Boot JDK version... " >&6; }
23075               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23076               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23077 $as_echo "$BOOT_JDK_VERSION" >&6; }
23078             fi # end check jdk version
23079           fi # end check rt.jar
23080         fi # end check javac
23081       fi # end check java
23082     fi # end check boot jdk found
23083   fi
23084 
23085   elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
23086 
23087   if test "x$BOOT_JDK_FOUND" = xno; then
23088     # Now execute the test
23089 
23090   BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines"
23091   BOOT_JDK_SUFFIX="/Contents/Home"
23092   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23093   if test "x$ALL_JDKS_FOUND" != x; then
23094     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23095 
23096   if test "x$BOOT_JDK_FOUND" = xno; then
23097     # Now execute the test
23098 
23099         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23100         if test -d "$BOOT_JDK"; then
23101           BOOT_JDK_FOUND=maybe
23102           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23103 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23104         fi
23105 
23106 
23107     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23108     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23109       # Do we have a bin/java?
23110       if test ! -x "$BOOT_JDK/bin/java"; then
23111         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23112 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23113         BOOT_JDK_FOUND=no
23114       else
23115         # Do we have a bin/javac?
23116         if test ! -x "$BOOT_JDK/bin/javac"; then
23117           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23118 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23119           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23120 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23121           BOOT_JDK_FOUND=no
23122         else
23123           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23124           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23125             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23126 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23127             BOOT_JDK_FOUND=no
23128           else
23129             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23130             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23131 
23132             # Extra M4 quote needed to protect [] in grep expression.
23133             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23134             if test "x$FOUND_VERSION_78" = x; then
23135               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23136 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23137               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23138 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23139               BOOT_JDK_FOUND=no
23140             else
23141               # We're done! :-)
23142               BOOT_JDK_FOUND=yes
23143 
23144   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23145 
23146   # Input might be given as Windows format, start by converting to
23147   # unix format.
23148   path="$BOOT_JDK"
23149   new_path=`$CYGPATH -u "$path"`
23150 
23151   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23152   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23153   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23154   # "foo.exe" is OK but "foo" is an error.
23155   #
23156   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23157   # It is also a way to make sure we got the proper file name for the real test later on.
23158   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23159   if test "x$test_shortpath" = x; then
23160     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23161 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23162     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23163   fi
23164 
23165   # Call helper function which possibly converts this using DOS-style short mode.
23166   # If so, the updated path is stored in $new_path.
23167 
23168   input_path="$new_path"
23169   # Check if we need to convert this using DOS-style short mode. If the path
23170   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23171   # take no chances and rewrite it.
23172   # Note: m4 eats our [], so we need to use [ and ] instead.
23173   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23174   if test "x$has_forbidden_chars" != x; then
23175     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23176     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23177     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23178     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23179       # Going to short mode and back again did indeed matter. Since short mode is
23180       # case insensitive, let's make it lowercase to improve readability.
23181       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23182       # Now convert it back to Unix-stile (cygpath)
23183       input_path=`$CYGPATH -u "$shortmode_path"`
23184       new_path="$input_path"
23185     fi
23186   fi
23187 
23188   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23189   if test "x$test_cygdrive_prefix" = x; then
23190     # As a simple fix, exclude /usr/bin since it's not a real path.
23191     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23192       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23193       # a path prefixed by /cygdrive for fixpath to work.
23194       new_path="$CYGWIN_ROOT_PATH$input_path"
23195     fi
23196   fi
23197 
23198 
23199   if test "x$path" != "x$new_path"; then
23200     BOOT_JDK="$new_path"
23201     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23202 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23203   fi
23204 
23205   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23206 
23207   path="$BOOT_JDK"
23208   has_colon=`$ECHO $path | $GREP ^.:`
23209   new_path="$path"
23210   if test "x$has_colon" = x; then
23211     # Not in mixed or Windows style, start by that.
23212     new_path=`cmd //c echo $path`
23213   fi
23214 
23215 
23216   input_path="$new_path"
23217   # Check if we need to convert this using DOS-style short mode. If the path
23218   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23219   # take no chances and rewrite it.
23220   # Note: m4 eats our [], so we need to use [ and ] instead.
23221   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23222   if test "x$has_forbidden_chars" != x; then
23223     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23224     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23225   fi
23226 
23227 
23228   windows_path="$new_path"
23229   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23230     unix_path=`$CYGPATH -u "$windows_path"`
23231     new_path="$unix_path"
23232   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23233     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23234     new_path="$unix_path"
23235   fi
23236 
23237   if test "x$path" != "x$new_path"; then
23238     BOOT_JDK="$new_path"
23239     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23240 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23241   fi
23242 
23243   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23244   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23245 
23246   else
23247     # We're on a posix platform. Hooray! :)
23248     path="$BOOT_JDK"
23249     has_space=`$ECHO "$path" | $GREP " "`
23250     if test "x$has_space" != x; then
23251       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23252 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23253       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23254     fi
23255 
23256     # Use eval to expand a potential ~
23257     eval path="$path"
23258     if test ! -f "$path" && test ! -d "$path"; then
23259       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23260     fi
23261 
23262     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23263   fi
23264 
23265               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23266 $as_echo_n "checking for Boot JDK... " >&6; }
23267               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23268 $as_echo "$BOOT_JDK" >&6; }
23269               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23270 $as_echo_n "checking Boot JDK version... " >&6; }
23271               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23272               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23273 $as_echo "$BOOT_JDK_VERSION" >&6; }
23274             fi # end check jdk version
23275           fi # end check rt.jar
23276         fi # end check javac
23277       fi # end check java
23278     fi # end check boot jdk found
23279   fi
23280 
23281     done
23282   fi
23283 
23284 
23285     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23286     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23287       # Do we have a bin/java?
23288       if test ! -x "$BOOT_JDK/bin/java"; then
23289         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23290 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23291         BOOT_JDK_FOUND=no
23292       else
23293         # Do we have a bin/javac?
23294         if test ! -x "$BOOT_JDK/bin/javac"; then
23295           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23296 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23297           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23298 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23299           BOOT_JDK_FOUND=no
23300         else
23301           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23302           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23303             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23304 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23305             BOOT_JDK_FOUND=no
23306           else
23307             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23308             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23309 
23310             # Extra M4 quote needed to protect [] in grep expression.
23311             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23312             if test "x$FOUND_VERSION_78" = x; then
23313               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23314 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23315               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23316 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23317               BOOT_JDK_FOUND=no
23318             else
23319               # We're done! :-)
23320               BOOT_JDK_FOUND=yes
23321 
23322   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23323 
23324   # Input might be given as Windows format, start by converting to
23325   # unix format.
23326   path="$BOOT_JDK"
23327   new_path=`$CYGPATH -u "$path"`
23328 
23329   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23330   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23331   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23332   # "foo.exe" is OK but "foo" is an error.
23333   #
23334   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23335   # It is also a way to make sure we got the proper file name for the real test later on.
23336   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23337   if test "x$test_shortpath" = x; then
23338     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23339 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23340     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23341   fi
23342 
23343   # Call helper function which possibly converts this using DOS-style short mode.
23344   # If so, the updated path is stored in $new_path.
23345 
23346   input_path="$new_path"
23347   # Check if we need to convert this using DOS-style short mode. If the path
23348   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23349   # take no chances and rewrite it.
23350   # Note: m4 eats our [], so we need to use [ and ] instead.
23351   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23352   if test "x$has_forbidden_chars" != x; then
23353     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23354     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23355     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23356     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23357       # Going to short mode and back again did indeed matter. Since short mode is
23358       # case insensitive, let's make it lowercase to improve readability.
23359       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23360       # Now convert it back to Unix-stile (cygpath)
23361       input_path=`$CYGPATH -u "$shortmode_path"`
23362       new_path="$input_path"
23363     fi
23364   fi
23365 
23366   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23367   if test "x$test_cygdrive_prefix" = x; then
23368     # As a simple fix, exclude /usr/bin since it's not a real path.
23369     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23370       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23371       # a path prefixed by /cygdrive for fixpath to work.
23372       new_path="$CYGWIN_ROOT_PATH$input_path"
23373     fi
23374   fi
23375 
23376 
23377   if test "x$path" != "x$new_path"; then
23378     BOOT_JDK="$new_path"
23379     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23380 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23381   fi
23382 
23383   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23384 
23385   path="$BOOT_JDK"
23386   has_colon=`$ECHO $path | $GREP ^.:`
23387   new_path="$path"
23388   if test "x$has_colon" = x; then
23389     # Not in mixed or Windows style, start by that.
23390     new_path=`cmd //c echo $path`
23391   fi
23392 
23393 
23394   input_path="$new_path"
23395   # Check if we need to convert this using DOS-style short mode. If the path
23396   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23397   # take no chances and rewrite it.
23398   # Note: m4 eats our [], so we need to use [ and ] instead.
23399   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23400   if test "x$has_forbidden_chars" != x; then
23401     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23402     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23403   fi
23404 
23405 
23406   windows_path="$new_path"
23407   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23408     unix_path=`$CYGPATH -u "$windows_path"`
23409     new_path="$unix_path"
23410   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23411     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23412     new_path="$unix_path"
23413   fi
23414 
23415   if test "x$path" != "x$new_path"; then
23416     BOOT_JDK="$new_path"
23417     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23418 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23419   fi
23420 
23421   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23422   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23423 
23424   else
23425     # We're on a posix platform. Hooray! :)
23426     path="$BOOT_JDK"
23427     has_space=`$ECHO "$path" | $GREP " "`
23428     if test "x$has_space" != x; then
23429       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23430 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23431       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23432     fi
23433 
23434     # Use eval to expand a potential ~
23435     eval path="$path"
23436     if test ! -f "$path" && test ! -d "$path"; then
23437       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23438     fi
23439 
23440     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23441   fi
23442 
23443               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23444 $as_echo_n "checking for Boot JDK... " >&6; }
23445               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23446 $as_echo "$BOOT_JDK" >&6; }
23447               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23448 $as_echo_n "checking Boot JDK version... " >&6; }
23449               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23450               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23451 $as_echo "$BOOT_JDK_VERSION" >&6; }
23452             fi # end check jdk version
23453           fi # end check rt.jar
23454         fi # end check javac
23455       fi # end check java
23456     fi # end check boot jdk found
23457   fi
23458 
23459 
23460   if test "x$BOOT_JDK_FOUND" = xno; then
23461     # Now execute the test
23462 
23463   BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines"
23464   BOOT_JDK_SUFFIX="/Contents/Home"
23465   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23466   if test "x$ALL_JDKS_FOUND" != x; then
23467     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23468 
23469   if test "x$BOOT_JDK_FOUND" = xno; then
23470     # Now execute the test
23471 
23472         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23473         if test -d "$BOOT_JDK"; then
23474           BOOT_JDK_FOUND=maybe
23475           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23476 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23477         fi
23478 
23479 
23480     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23481     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23482       # Do we have a bin/java?
23483       if test ! -x "$BOOT_JDK/bin/java"; then
23484         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23485 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23486         BOOT_JDK_FOUND=no
23487       else
23488         # Do we have a bin/javac?
23489         if test ! -x "$BOOT_JDK/bin/javac"; then
23490           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23491 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23492           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23493 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23494           BOOT_JDK_FOUND=no
23495         else
23496           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23497           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23498             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23499 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23500             BOOT_JDK_FOUND=no
23501           else
23502             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23503             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23504 
23505             # Extra M4 quote needed to protect [] in grep expression.
23506             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23507             if test "x$FOUND_VERSION_78" = x; then
23508               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23509 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23510               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23511 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23512               BOOT_JDK_FOUND=no
23513             else
23514               # We're done! :-)
23515               BOOT_JDK_FOUND=yes
23516 
23517   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23518 
23519   # Input might be given as Windows format, start by converting to
23520   # unix format.
23521   path="$BOOT_JDK"
23522   new_path=`$CYGPATH -u "$path"`
23523 
23524   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23525   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23526   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23527   # "foo.exe" is OK but "foo" is an error.
23528   #
23529   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23530   # It is also a way to make sure we got the proper file name for the real test later on.
23531   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23532   if test "x$test_shortpath" = x; then
23533     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23534 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23535     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23536   fi
23537 
23538   # Call helper function which possibly converts this using DOS-style short mode.
23539   # If so, the updated path is stored in $new_path.
23540 
23541   input_path="$new_path"
23542   # Check if we need to convert this using DOS-style short mode. If the path
23543   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23544   # take no chances and rewrite it.
23545   # Note: m4 eats our [], so we need to use [ and ] instead.
23546   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23547   if test "x$has_forbidden_chars" != x; then
23548     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23549     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23550     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23551     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23552       # Going to short mode and back again did indeed matter. Since short mode is
23553       # case insensitive, let's make it lowercase to improve readability.
23554       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23555       # Now convert it back to Unix-stile (cygpath)
23556       input_path=`$CYGPATH -u "$shortmode_path"`
23557       new_path="$input_path"
23558     fi
23559   fi
23560 
23561   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23562   if test "x$test_cygdrive_prefix" = x; then
23563     # As a simple fix, exclude /usr/bin since it's not a real path.
23564     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23565       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23566       # a path prefixed by /cygdrive for fixpath to work.
23567       new_path="$CYGWIN_ROOT_PATH$input_path"
23568     fi
23569   fi
23570 
23571 
23572   if test "x$path" != "x$new_path"; then
23573     BOOT_JDK="$new_path"
23574     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23575 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23576   fi
23577 
23578   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23579 
23580   path="$BOOT_JDK"
23581   has_colon=`$ECHO $path | $GREP ^.:`
23582   new_path="$path"
23583   if test "x$has_colon" = x; then
23584     # Not in mixed or Windows style, start by that.
23585     new_path=`cmd //c echo $path`
23586   fi
23587 
23588 
23589   input_path="$new_path"
23590   # Check if we need to convert this using DOS-style short mode. If the path
23591   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23592   # take no chances and rewrite it.
23593   # Note: m4 eats our [], so we need to use [ and ] instead.
23594   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23595   if test "x$has_forbidden_chars" != x; then
23596     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23597     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23598   fi
23599 
23600 
23601   windows_path="$new_path"
23602   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23603     unix_path=`$CYGPATH -u "$windows_path"`
23604     new_path="$unix_path"
23605   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23606     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23607     new_path="$unix_path"
23608   fi
23609 
23610   if test "x$path" != "x$new_path"; then
23611     BOOT_JDK="$new_path"
23612     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23613 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23614   fi
23615 
23616   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23617   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23618 
23619   else
23620     # We're on a posix platform. Hooray! :)
23621     path="$BOOT_JDK"
23622     has_space=`$ECHO "$path" | $GREP " "`
23623     if test "x$has_space" != x; then
23624       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23625 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23626       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23627     fi
23628 
23629     # Use eval to expand a potential ~
23630     eval path="$path"
23631     if test ! -f "$path" && test ! -d "$path"; then
23632       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23633     fi
23634 
23635     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23636   fi
23637 
23638               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23639 $as_echo_n "checking for Boot JDK... " >&6; }
23640               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23641 $as_echo "$BOOT_JDK" >&6; }
23642               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23643 $as_echo_n "checking Boot JDK version... " >&6; }
23644               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23645               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23646 $as_echo "$BOOT_JDK_VERSION" >&6; }
23647             fi # end check jdk version
23648           fi # end check rt.jar
23649         fi # end check javac
23650       fi # end check java
23651     fi # end check boot jdk found
23652   fi
23653 
23654     done
23655   fi
23656 
23657 
23658     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23659     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23660       # Do we have a bin/java?
23661       if test ! -x "$BOOT_JDK/bin/java"; then
23662         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23663 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23664         BOOT_JDK_FOUND=no
23665       else
23666         # Do we have a bin/javac?
23667         if test ! -x "$BOOT_JDK/bin/javac"; then
23668           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23669 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23670           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23671 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23672           BOOT_JDK_FOUND=no
23673         else
23674           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23675           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23676             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23677 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23678             BOOT_JDK_FOUND=no
23679           else
23680             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23681             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23682 
23683             # Extra M4 quote needed to protect [] in grep expression.
23684             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23685             if test "x$FOUND_VERSION_78" = x; then
23686               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23687 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23688               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23689 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23690               BOOT_JDK_FOUND=no
23691             else
23692               # We're done! :-)
23693               BOOT_JDK_FOUND=yes
23694 
23695   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23696 
23697   # Input might be given as Windows format, start by converting to
23698   # unix format.
23699   path="$BOOT_JDK"
23700   new_path=`$CYGPATH -u "$path"`
23701 
23702   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23703   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23704   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23705   # "foo.exe" is OK but "foo" is an error.
23706   #
23707   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23708   # It is also a way to make sure we got the proper file name for the real test later on.
23709   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23710   if test "x$test_shortpath" = x; then
23711     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23712 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23713     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23714   fi
23715 
23716   # Call helper function which possibly converts this using DOS-style short mode.
23717   # If so, the updated path is stored in $new_path.
23718 
23719   input_path="$new_path"
23720   # Check if we need to convert this using DOS-style short mode. If the path
23721   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23722   # take no chances and rewrite it.
23723   # Note: m4 eats our [], so we need to use [ and ] instead.
23724   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23725   if test "x$has_forbidden_chars" != x; then
23726     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23727     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23728     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23729     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23730       # Going to short mode and back again did indeed matter. Since short mode is
23731       # case insensitive, let's make it lowercase to improve readability.
23732       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23733       # Now convert it back to Unix-stile (cygpath)
23734       input_path=`$CYGPATH -u "$shortmode_path"`
23735       new_path="$input_path"
23736     fi
23737   fi
23738 
23739   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23740   if test "x$test_cygdrive_prefix" = x; then
23741     # As a simple fix, exclude /usr/bin since it's not a real path.
23742     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23743       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23744       # a path prefixed by /cygdrive for fixpath to work.
23745       new_path="$CYGWIN_ROOT_PATH$input_path"
23746     fi
23747   fi
23748 
23749 
23750   if test "x$path" != "x$new_path"; then
23751     BOOT_JDK="$new_path"
23752     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23753 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23754   fi
23755 
23756   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23757 
23758   path="$BOOT_JDK"
23759   has_colon=`$ECHO $path | $GREP ^.:`
23760   new_path="$path"
23761   if test "x$has_colon" = x; then
23762     # Not in mixed or Windows style, start by that.
23763     new_path=`cmd //c echo $path`
23764   fi
23765 
23766 
23767   input_path="$new_path"
23768   # Check if we need to convert this using DOS-style short mode. If the path
23769   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23770   # take no chances and rewrite it.
23771   # Note: m4 eats our [], so we need to use [ and ] instead.
23772   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23773   if test "x$has_forbidden_chars" != x; then
23774     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23775     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23776   fi
23777 
23778 
23779   windows_path="$new_path"
23780   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23781     unix_path=`$CYGPATH -u "$windows_path"`
23782     new_path="$unix_path"
23783   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23784     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23785     new_path="$unix_path"
23786   fi
23787 
23788   if test "x$path" != "x$new_path"; then
23789     BOOT_JDK="$new_path"
23790     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23791 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23792   fi
23793 
23794   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23795   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23796 
23797   else
23798     # We're on a posix platform. Hooray! :)
23799     path="$BOOT_JDK"
23800     has_space=`$ECHO "$path" | $GREP " "`
23801     if test "x$has_space" != x; then
23802       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23803 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23804       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23805     fi
23806 
23807     # Use eval to expand a potential ~
23808     eval path="$path"
23809     if test ! -f "$path" && test ! -d "$path"; then
23810       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23811     fi
23812 
23813     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23814   fi
23815 
23816               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23817 $as_echo_n "checking for Boot JDK... " >&6; }
23818               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23819 $as_echo "$BOOT_JDK" >&6; }
23820               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23821 $as_echo_n "checking Boot JDK version... " >&6; }
23822               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23823               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23824 $as_echo "$BOOT_JDK_VERSION" >&6; }
23825             fi # end check jdk version
23826           fi # end check rt.jar
23827         fi # end check javac
23828       fi # end check java
23829     fi # end check boot jdk found
23830   fi
23831 
23832   elif test "x$OPENJDK_TARGET_OS" = xlinux; then
23833 
23834   if test "x$BOOT_JDK_FOUND" = xno; then
23835     # Now execute the test
23836 
23837   BOOT_JDK_PREFIX="/usr/lib/jvm"
23838   BOOT_JDK_SUFFIX=""
23839   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23840   if test "x$ALL_JDKS_FOUND" != x; then
23841     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23842 
23843   if test "x$BOOT_JDK_FOUND" = xno; then
23844     # Now execute the test
23845 
23846         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23847         if test -d "$BOOT_JDK"; then
23848           BOOT_JDK_FOUND=maybe
23849           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23850 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23851         fi
23852 
23853 
23854     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23855     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23856       # Do we have a bin/java?
23857       if test ! -x "$BOOT_JDK/bin/java"; then
23858         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23859 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23860         BOOT_JDK_FOUND=no
23861       else
23862         # Do we have a bin/javac?
23863         if test ! -x "$BOOT_JDK/bin/javac"; then
23864           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23865 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23866           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23867 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23868           BOOT_JDK_FOUND=no
23869         else
23870           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23871           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23872             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23873 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23874             BOOT_JDK_FOUND=no
23875           else
23876             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23877             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23878 
23879             # Extra M4 quote needed to protect [] in grep expression.
23880             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23881             if test "x$FOUND_VERSION_78" = x; then
23882               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23883 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23884               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23885 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23886               BOOT_JDK_FOUND=no
23887             else
23888               # We're done! :-)
23889               BOOT_JDK_FOUND=yes
23890 
23891   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23892 
23893   # Input might be given as Windows format, start by converting to
23894   # unix format.
23895   path="$BOOT_JDK"
23896   new_path=`$CYGPATH -u "$path"`
23897 
23898   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23899   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23900   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23901   # "foo.exe" is OK but "foo" is an error.
23902   #
23903   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23904   # It is also a way to make sure we got the proper file name for the real test later on.
23905   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23906   if test "x$test_shortpath" = x; then
23907     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23908 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23909     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23910   fi
23911 
23912   # Call helper function which possibly converts this using DOS-style short mode.
23913   # If so, the updated path is stored in $new_path.
23914 
23915   input_path="$new_path"
23916   # Check if we need to convert this using DOS-style short mode. If the path
23917   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23918   # take no chances and rewrite it.
23919   # Note: m4 eats our [], so we need to use [ and ] instead.
23920   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23921   if test "x$has_forbidden_chars" != x; then
23922     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23923     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23924     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23925     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23926       # Going to short mode and back again did indeed matter. Since short mode is
23927       # case insensitive, let's make it lowercase to improve readability.
23928       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23929       # Now convert it back to Unix-stile (cygpath)
23930       input_path=`$CYGPATH -u "$shortmode_path"`
23931       new_path="$input_path"
23932     fi
23933   fi
23934 
23935   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23936   if test "x$test_cygdrive_prefix" = x; then
23937     # As a simple fix, exclude /usr/bin since it's not a real path.
23938     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23939       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23940       # a path prefixed by /cygdrive for fixpath to work.
23941       new_path="$CYGWIN_ROOT_PATH$input_path"
23942     fi
23943   fi
23944 
23945 
23946   if test "x$path" != "x$new_path"; then
23947     BOOT_JDK="$new_path"
23948     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23949 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23950   fi
23951 
23952   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23953 
23954   path="$BOOT_JDK"
23955   has_colon=`$ECHO $path | $GREP ^.:`
23956   new_path="$path"
23957   if test "x$has_colon" = x; then
23958     # Not in mixed or Windows style, start by that.
23959     new_path=`cmd //c echo $path`
23960   fi
23961 
23962 
23963   input_path="$new_path"
23964   # Check if we need to convert this using DOS-style short mode. If the path
23965   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23966   # take no chances and rewrite it.
23967   # Note: m4 eats our [], so we need to use [ and ] instead.
23968   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23969   if test "x$has_forbidden_chars" != x; then
23970     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23971     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23972   fi
23973 
23974 
23975   windows_path="$new_path"
23976   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23977     unix_path=`$CYGPATH -u "$windows_path"`
23978     new_path="$unix_path"
23979   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23980     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23981     new_path="$unix_path"
23982   fi
23983 
23984   if test "x$path" != "x$new_path"; then
23985     BOOT_JDK="$new_path"
23986     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23987 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23988   fi
23989 
23990   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23991   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23992 
23993   else
23994     # We're on a posix platform. Hooray! :)
23995     path="$BOOT_JDK"
23996     has_space=`$ECHO "$path" | $GREP " "`
23997     if test "x$has_space" != x; then
23998       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23999 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24000       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24001     fi
24002 
24003     # Use eval to expand a potential ~
24004     eval path="$path"
24005     if test ! -f "$path" && test ! -d "$path"; then
24006       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24007     fi
24008 
24009     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24010   fi
24011 
24012               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24013 $as_echo_n "checking for Boot JDK... " >&6; }
24014               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24015 $as_echo "$BOOT_JDK" >&6; }
24016               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24017 $as_echo_n "checking Boot JDK version... " >&6; }
24018               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24019               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24020 $as_echo "$BOOT_JDK_VERSION" >&6; }
24021             fi # end check jdk version
24022           fi # end check rt.jar
24023         fi # end check javac
24024       fi # end check java
24025     fi # end check boot jdk found
24026   fi
24027 
24028     done
24029   fi
24030 
24031 
24032     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24033     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24034       # Do we have a bin/java?
24035       if test ! -x "$BOOT_JDK/bin/java"; then
24036         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24037 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24038         BOOT_JDK_FOUND=no
24039       else
24040         # Do we have a bin/javac?
24041         if test ! -x "$BOOT_JDK/bin/javac"; then
24042           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24043 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24044           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24045 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24046           BOOT_JDK_FOUND=no
24047         else
24048           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24049           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24050             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24051 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24052             BOOT_JDK_FOUND=no
24053           else
24054             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24055             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24056 
24057             # Extra M4 quote needed to protect [] in grep expression.
24058             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
24059             if test "x$FOUND_VERSION_78" = x; then
24060               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24061 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24062               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
24063 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
24064               BOOT_JDK_FOUND=no
24065             else
24066               # We're done! :-)
24067               BOOT_JDK_FOUND=yes
24068 
24069   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24070 
24071   # Input might be given as Windows format, start by converting to
24072   # unix format.
24073   path="$BOOT_JDK"
24074   new_path=`$CYGPATH -u "$path"`
24075 
24076   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24077   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24078   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24079   # "foo.exe" is OK but "foo" is an error.
24080   #
24081   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24082   # It is also a way to make sure we got the proper file name for the real test later on.
24083   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24084   if test "x$test_shortpath" = x; then
24085     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24086 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24087     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24088   fi
24089 
24090   # Call helper function which possibly converts this using DOS-style short mode.
24091   # If so, the updated path is stored in $new_path.
24092 
24093   input_path="$new_path"
24094   # Check if we need to convert this using DOS-style short mode. If the path
24095   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24096   # take no chances and rewrite it.
24097   # Note: m4 eats our [], so we need to use [ and ] instead.
24098   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24099   if test "x$has_forbidden_chars" != x; then
24100     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24101     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24102     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24103     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24104       # Going to short mode and back again did indeed matter. Since short mode is
24105       # case insensitive, let's make it lowercase to improve readability.
24106       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24107       # Now convert it back to Unix-stile (cygpath)
24108       input_path=`$CYGPATH -u "$shortmode_path"`
24109       new_path="$input_path"
24110     fi
24111   fi
24112 
24113   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24114   if test "x$test_cygdrive_prefix" = x; then
24115     # As a simple fix, exclude /usr/bin since it's not a real path.
24116     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24117       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24118       # a path prefixed by /cygdrive for fixpath to work.
24119       new_path="$CYGWIN_ROOT_PATH$input_path"
24120     fi
24121   fi
24122 
24123 
24124   if test "x$path" != "x$new_path"; then
24125     BOOT_JDK="$new_path"
24126     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24127 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24128   fi
24129 
24130   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24131 
24132   path="$BOOT_JDK"
24133   has_colon=`$ECHO $path | $GREP ^.:`
24134   new_path="$path"
24135   if test "x$has_colon" = x; then
24136     # Not in mixed or Windows style, start by that.
24137     new_path=`cmd //c echo $path`
24138   fi
24139 
24140 
24141   input_path="$new_path"
24142   # Check if we need to convert this using DOS-style short mode. If the path
24143   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24144   # take no chances and rewrite it.
24145   # Note: m4 eats our [], so we need to use [ and ] instead.
24146   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24147   if test "x$has_forbidden_chars" != x; then
24148     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24149     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24150   fi
24151 
24152 
24153   windows_path="$new_path"
24154   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24155     unix_path=`$CYGPATH -u "$windows_path"`
24156     new_path="$unix_path"
24157   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24158     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24159     new_path="$unix_path"
24160   fi
24161 
24162   if test "x$path" != "x$new_path"; then
24163     BOOT_JDK="$new_path"
24164     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24165 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24166   fi
24167 
24168   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24169   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24170 
24171   else
24172     # We're on a posix platform. Hooray! :)
24173     path="$BOOT_JDK"
24174     has_space=`$ECHO "$path" | $GREP " "`
24175     if test "x$has_space" != x; then
24176       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24177 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24178       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24179     fi
24180 
24181     # Use eval to expand a potential ~
24182     eval path="$path"
24183     if test ! -f "$path" && test ! -d "$path"; then
24184       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24185     fi
24186 
24187     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24188   fi
24189 
24190               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24191 $as_echo_n "checking for Boot JDK... " >&6; }
24192               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24193 $as_echo "$BOOT_JDK" >&6; }
24194               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24195 $as_echo_n "checking Boot JDK version... " >&6; }
24196               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24197               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24198 $as_echo "$BOOT_JDK_VERSION" >&6; }
24199             fi # end check jdk version
24200           fi # end check rt.jar
24201         fi # end check javac
24202       fi # end check java
24203     fi # end check boot jdk found
24204   fi
24205 
24206   fi
24207 
24208 
24209     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24210     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24211       # Do we have a bin/java?
24212       if test ! -x "$BOOT_JDK/bin/java"; then
24213         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24214 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24215         BOOT_JDK_FOUND=no
24216       else
24217         # Do we have a bin/javac?
24218         if test ! -x "$BOOT_JDK/bin/javac"; then
24219           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24220 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24221           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24222 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24223           BOOT_JDK_FOUND=no
24224         else
24225           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24226           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24227             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24228 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24229             BOOT_JDK_FOUND=no
24230           else
24231             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24232             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24233 
24234             # Extra M4 quote needed to protect [] in grep expression.
24235             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
24236             if test "x$FOUND_VERSION_78" = x; then
24237               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24238 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24239               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
24240 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
24241               BOOT_JDK_FOUND=no
24242             else
24243               # We're done! :-)
24244               BOOT_JDK_FOUND=yes
24245 
24246   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24247 
24248   # Input might be given as Windows format, start by converting to
24249   # unix format.
24250   path="$BOOT_JDK"
24251   new_path=`$CYGPATH -u "$path"`
24252 
24253   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24254   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24255   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24256   # "foo.exe" is OK but "foo" is an error.
24257   #
24258   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24259   # It is also a way to make sure we got the proper file name for the real test later on.
24260   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24261   if test "x$test_shortpath" = x; then
24262     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24263 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24264     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24265   fi
24266 
24267   # Call helper function which possibly converts this using DOS-style short mode.
24268   # If so, the updated path is stored in $new_path.
24269 
24270   input_path="$new_path"
24271   # Check if we need to convert this using DOS-style short mode. If the path
24272   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24273   # take no chances and rewrite it.
24274   # Note: m4 eats our [], so we need to use [ and ] instead.
24275   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24276   if test "x$has_forbidden_chars" != x; then
24277     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24278     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24279     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24280     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24281       # Going to short mode and back again did indeed matter. Since short mode is
24282       # case insensitive, let's make it lowercase to improve readability.
24283       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24284       # Now convert it back to Unix-stile (cygpath)
24285       input_path=`$CYGPATH -u "$shortmode_path"`
24286       new_path="$input_path"
24287     fi
24288   fi
24289 
24290   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24291   if test "x$test_cygdrive_prefix" = x; then
24292     # As a simple fix, exclude /usr/bin since it's not a real path.
24293     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24294       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24295       # a path prefixed by /cygdrive for fixpath to work.
24296       new_path="$CYGWIN_ROOT_PATH$input_path"
24297     fi
24298   fi
24299 
24300 
24301   if test "x$path" != "x$new_path"; then
24302     BOOT_JDK="$new_path"
24303     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24304 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24305   fi
24306 
24307   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24308 
24309   path="$BOOT_JDK"
24310   has_colon=`$ECHO $path | $GREP ^.:`
24311   new_path="$path"
24312   if test "x$has_colon" = x; then
24313     # Not in mixed or Windows style, start by that.
24314     new_path=`cmd //c echo $path`
24315   fi
24316 
24317 
24318   input_path="$new_path"
24319   # Check if we need to convert this using DOS-style short mode. If the path
24320   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24321   # take no chances and rewrite it.
24322   # Note: m4 eats our [], so we need to use [ and ] instead.
24323   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24324   if test "x$has_forbidden_chars" != x; then
24325     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24326     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24327   fi
24328 
24329 
24330   windows_path="$new_path"
24331   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24332     unix_path=`$CYGPATH -u "$windows_path"`
24333     new_path="$unix_path"
24334   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24335     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24336     new_path="$unix_path"
24337   fi
24338 
24339   if test "x$path" != "x$new_path"; then
24340     BOOT_JDK="$new_path"
24341     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24342 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24343   fi
24344 
24345   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24346   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24347 
24348   else
24349     # We're on a posix platform. Hooray! :)
24350     path="$BOOT_JDK"
24351     has_space=`$ECHO "$path" | $GREP " "`
24352     if test "x$has_space" != x; then
24353       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24354 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24355       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24356     fi
24357 
24358     # Use eval to expand a potential ~
24359     eval path="$path"
24360     if test ! -f "$path" && test ! -d "$path"; then
24361       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24362     fi
24363 
24364     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24365   fi
24366 
24367               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24368 $as_echo_n "checking for Boot JDK... " >&6; }
24369               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24370 $as_echo "$BOOT_JDK" >&6; }
24371               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24372 $as_echo_n "checking Boot JDK version... " >&6; }
24373               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24374               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24375 $as_echo "$BOOT_JDK_VERSION" >&6; }
24376             fi # end check jdk version
24377           fi # end check rt.jar
24378         fi # end check javac
24379       fi # end check java
24380     fi # end check boot jdk found
24381   fi
24382 
24383 
24384   # If we haven't found anything yet, we've truly lost. Give up.
24385   if test "x$BOOT_JDK_FOUND" = xno; then
24386 
24387   # Print a helpful message on how to acquire the necessary build dependency.
24388   # openjdk is the help tag: freetype, cups, pulse, alsa etc
24389   MISSING_DEPENDENCY=openjdk
24390 
24391   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24392     cygwin_help $MISSING_DEPENDENCY
24393   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24394     msys_help $MISSING_DEPENDENCY
24395   else
24396     PKGHANDLER_COMMAND=
24397 
24398     case $PKGHANDLER in
24399       apt-get)
24400         apt_help     $MISSING_DEPENDENCY ;;
24401       yum)
24402         yum_help     $MISSING_DEPENDENCY ;;
24403       port)
24404         port_help    $MISSING_DEPENDENCY ;;
24405       pkgutil)
24406         pkgutil_help $MISSING_DEPENDENCY ;;
24407       pkgadd)
24408         pkgadd_help  $MISSING_DEPENDENCY ;;
24409     esac
24410 
24411     if test "x$PKGHANDLER_COMMAND" != x; then
24412       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
24413     fi
24414   fi
24415 
24416     { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5
24417 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;}
24418     { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5
24419 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24420     as_fn_error $? "Cannot continue" "$LINENO" 5
24421   fi
24422 
24423   # Setup proper paths for what we found
24424   BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar"
24425   if test ! -f "$BOOT_RTJAR"; then
24426     # On MacOSX it is called classes.jar
24427     BOOT_RTJAR="$BOOT_JDK/../Classes/classes.jar"
24428     if test -f "$BOOT_RTJAR"; then
24429       # Remove the ..
24430       BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}"
24431     fi
24432   fi
24433   BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar"
24434   BOOT_JDK="$BOOT_JDK"
24435 
24436 
24437 
24438 
24439   # Setup tools from the Boot JDK.
24440 
24441   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5
24442 $as_echo_n "checking for java in Boot JDK... " >&6; }
24443   JAVA=$BOOT_JDK/bin/java
24444   if test ! -x $JAVA; then
24445     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24446 $as_echo "not found" >&6; }
24447     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24448 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24449     as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5
24450   fi
24451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24452 $as_echo "ok" >&6; }
24453 
24454 
24455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5
24456 $as_echo_n "checking for javac in Boot JDK... " >&6; }
24457   JAVAC=$BOOT_JDK/bin/javac
24458   if test ! -x $JAVAC; then
24459     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24460 $as_echo "not found" >&6; }
24461     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24462 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24463     as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5
24464   fi
24465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24466 $as_echo "ok" >&6; }
24467 
24468 
24469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5
24470 $as_echo_n "checking for javah in Boot JDK... " >&6; }
24471   JAVAH=$BOOT_JDK/bin/javah
24472   if test ! -x $JAVAH; then
24473     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24474 $as_echo "not found" >&6; }
24475     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24476 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24477     as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5
24478   fi
24479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24480 $as_echo "ok" >&6; }
24481 
24482 
24483   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javap in Boot JDK" >&5
24484 $as_echo_n "checking for javap in Boot JDK... " >&6; }
24485   JAVAP=$BOOT_JDK/bin/javap
24486   if test ! -x $JAVAP; then
24487     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24488 $as_echo "not found" >&6; }
24489     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24490 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24491     as_fn_error $? "Could not find javap in the Boot JDK" "$LINENO" 5
24492   fi
24493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24494 $as_echo "ok" >&6; }
24495 
24496 
24497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5
24498 $as_echo_n "checking for jar in Boot JDK... " >&6; }
24499   JAR=$BOOT_JDK/bin/jar
24500   if test ! -x $JAR; then
24501     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24502 $as_echo "not found" >&6; }
24503     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24504 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24505     as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5
24506   fi
24507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24508 $as_echo "ok" >&6; }
24509 
24510 
24511   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rmic in Boot JDK" >&5
24512 $as_echo_n "checking for rmic in Boot JDK... " >&6; }
24513   RMIC=$BOOT_JDK/bin/rmic
24514   if test ! -x $RMIC; then
24515     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24516 $as_echo "not found" >&6; }
24517     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24518 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24519     as_fn_error $? "Could not find rmic in the Boot JDK" "$LINENO" 5
24520   fi
24521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24522 $as_echo "ok" >&6; }
24523 
24524 
24525   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5
24526 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; }
24527   NATIVE2ASCII=$BOOT_JDK/bin/native2ascii
24528   if test ! -x $NATIVE2ASCII; then
24529     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24530 $as_echo "not found" >&6; }
24531     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24532 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24533     as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5
24534   fi
24535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24536 $as_echo "ok" >&6; }
24537 
24538 
24539   # Finally, set some other options...
24540 
24541   # When compiling code to be executed by the Boot JDK, force jdk7 compatibility.
24542   BOOT_JDK_SOURCETARGET="-source 7 -target 7"
24543 
24544 
24545 
24546   # Check if the boot jdk is 32 or 64 bit
24547   if "$JAVA" -d64 -version > /dev/null 2>&1; then
24548     BOOT_JDK_BITS="64"
24549   else
24550     BOOT_JDK_BITS="32"
24551   fi
24552   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5
24553 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; }
24554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5
24555 $as_echo "$BOOT_JDK_BITS" >&6; }
24556 
24557 
24558 
24559   ##############################################################################
24560   #
24561   # Specify options for anything that is run with the Boot JDK.
24562   #
24563 
24564 # Check whether --with-boot-jdk-jvmargs was given.
24565 if test "${with_boot_jdk_jvmargs+set}" = set; then :
24566   withval=$with_boot_jdk_jvmargs;
24567 fi
24568 
24569 
24570   { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5
24571 $as_echo_n "checking flags for boot jdk java command ... " >&6; }
24572 
24573   # Disable special log output when a debug build is used as Boot JDK...
24574 
24575   $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5
24576   $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5
24577   OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1`
24578   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24579   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24580   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24581     boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput"
24582     JVM_ARG_OK=true
24583   else
24584     $ECHO "Arg failed:" >&5
24585     $ECHO "$OUTPUT" >&5
24586     JVM_ARG_OK=false
24587   fi
24588 
24589 
24590   # Apply user provided options.
24591 
24592   $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5
24593   $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5
24594   OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1`
24595   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24596   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24597   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24598     boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs"
24599     JVM_ARG_OK=true
24600   else
24601     $ECHO "Arg failed:" >&5
24602     $ECHO "$OUTPUT" >&5
24603     JVM_ARG_OK=false
24604   fi
24605 
24606 
24607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5
24608 $as_echo "$boot_jdk_jvmargs" >&6; }
24609 
24610   # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs
24611   JAVA_FLAGS=$boot_jdk_jvmargs
24612 
24613 
24614 
24615   { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5
24616 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; }
24617 
24618   # Starting amount of heap memory.
24619 
24620   $ECHO "Check if jvm arg is ok: -Xms64M" >&5
24621   $ECHO "Command: $JAVA -Xms64M -version" >&5
24622   OUTPUT=`$JAVA -Xms64M -version 2>&1`
24623   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24624   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24625   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24626     boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M"
24627     JVM_ARG_OK=true
24628   else
24629     $ECHO "Arg failed:" >&5
24630     $ECHO "$OUTPUT" >&5
24631     JVM_ARG_OK=false
24632   fi
24633 
24634 
24635   # Maximum amount of heap memory.
24636   # Maximum stack size.
24637   if test "x$BOOT_JDK_BITS" = x32; then
24638     JVM_MAX_HEAP=768M
24639     STACK_SIZE=768
24640   else
24641     # Running Javac on a JVM on a 64-bit machine, takes more space since 64-bit
24642     # pointers are used. Apparently, we need to increase the heap and stack
24643     # space for the jvm. More specifically, when running javac to build huge
24644     # jdk batch
24645     JVM_MAX_HEAP=1600M
24646     STACK_SIZE=1536
24647   fi
24648 
24649   $ECHO "Check if jvm arg is ok: -Xmx$JVM_MAX_HEAP" >&5
24650   $ECHO "Command: $JAVA -Xmx$JVM_MAX_HEAP -version" >&5
24651   OUTPUT=`$JAVA -Xmx$JVM_MAX_HEAP -version 2>&1`
24652   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24653   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24654   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24655     boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx$JVM_MAX_HEAP"
24656     JVM_ARG_OK=true
24657   else
24658     $ECHO "Arg failed:" >&5
24659     $ECHO "$OUTPUT" >&5
24660     JVM_ARG_OK=false
24661   fi
24662 
24663 
24664   $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5
24665   $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5
24666   OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1`
24667   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24668   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24669   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24670     boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE"
24671     JVM_ARG_OK=true
24672   else
24673     $ECHO "Arg failed:" >&5
24674     $ECHO "$OUTPUT" >&5
24675     JVM_ARG_OK=false
24676   fi
24677 
24678 
24679   $ECHO "Check if jvm arg is ok: -XX:PermSize=32m" >&5
24680   $ECHO "Command: $JAVA -XX:PermSize=32m -version" >&5
24681   OUTPUT=`$JAVA -XX:PermSize=32m -version 2>&1`
24682   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24683   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24684   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24685     boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:PermSize=32m"
24686     JVM_ARG_OK=true
24687   else
24688     $ECHO "Arg failed:" >&5
24689     $ECHO "$OUTPUT" >&5
24690     JVM_ARG_OK=false
24691   fi
24692 
24693 
24694   $ECHO "Check if jvm arg is ok: -XX:MaxPermSize=160m" >&5
24695   $ECHO "Command: $JAVA -XX:MaxPermSize=160m -version" >&5
24696   OUTPUT=`$JAVA -XX:MaxPermSize=160m -version 2>&1`
24697   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24698   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24699   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24700     boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:MaxPermSize=160m"
24701     JVM_ARG_OK=true
24702   else
24703     $ECHO "Arg failed:" >&5
24704     $ECHO "$OUTPUT" >&5
24705     JVM_ARG_OK=false
24706   fi
24707 
24708 
24709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5
24710 $as_echo "$boot_jdk_jvmargs_big" >&6; }
24711 
24712   JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big
24713 
24714 
24715 
24716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5
24717 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; }
24718 
24719   # Use serial gc for small short lived tools if possible
24720 
24721   $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5
24722   $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5
24723   OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1`
24724   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24725   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24726   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24727     boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC"
24728     JVM_ARG_OK=true
24729   else
24730     $ECHO "Arg failed:" >&5
24731     $ECHO "$OUTPUT" >&5
24732     JVM_ARG_OK=false
24733   fi
24734 
24735 
24736   $ECHO "Check if jvm arg is ok: -Xms32M" >&5
24737   $ECHO "Command: $JAVA -Xms32M -version" >&5
24738   OUTPUT=`$JAVA -Xms32M -version 2>&1`
24739   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24740   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24741   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24742     boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M"
24743     JVM_ARG_OK=true
24744   else
24745     $ECHO "Arg failed:" >&5
24746     $ECHO "$OUTPUT" >&5
24747     JVM_ARG_OK=false
24748   fi
24749 
24750 
24751   $ECHO "Check if jvm arg is ok: -Xmx512M" >&5
24752   $ECHO "Command: $JAVA -Xmx512M -version" >&5
24753   OUTPUT=`$JAVA -Xmx512M -version 2>&1`
24754   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24755   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24756   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24757     boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M"
24758     JVM_ARG_OK=true
24759   else
24760     $ECHO "Arg failed:" >&5
24761     $ECHO "$OUTPUT" >&5
24762     JVM_ARG_OK=false
24763   fi
24764 
24765 
24766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5
24767 $as_echo "$boot_jdk_jvmargs_small" >&6; }
24768 
24769   JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small
24770 
24771 
24772 
24773 ###############################################################################
24774 #
24775 # Configure the sources to use. We can add or override individual directories.
24776 #
24777 ###############################################################################
24778 
24779 
24780   # Where are the sources. Any of these can be overridden
24781   # using --with-override-corba and the likes.
24782   LANGTOOLS_TOPDIR="$SRC_ROOT/langtools"
24783   CORBA_TOPDIR="$SRC_ROOT/corba"
24784   JAXP_TOPDIR="$SRC_ROOT/jaxp"
24785   JAXWS_TOPDIR="$SRC_ROOT/jaxws"
24786   HOTSPOT_TOPDIR="$SRC_ROOT/hotspot"
24787   NASHORN_TOPDIR="$SRC_ROOT/nashorn"
24788   JDK_TOPDIR="$SRC_ROOT/jdk"
24789 
24790 
24791 
24792 
24793 
24794 
24795 
24796 
24797 
24798 
24799   ###############################################################################
24800   #
24801   # Pickup additional source for a component from outside of the source root
24802   # or override source for a component.
24803   #
24804 
24805 # Check whether --with-add-source-root was given.
24806 if test "${with_add_source_root+set}" = set; then :
24807   withval=$with_add_source_root;
24808 fi
24809 
24810 
24811 
24812 # Check whether --with-override-source-root was given.
24813 if test "${with_override_source_root+set}" = set; then :
24814   withval=$with_override_source_root;
24815 fi
24816 
24817 
24818 
24819 # Check whether --with-adds-and-overrides was given.
24820 if test "${with_adds_and_overrides+set}" = set; then :
24821   withval=$with_adds_and_overrides;
24822 fi
24823 
24824 
24825   if test "x$with_adds_and_overrides" != x; then
24826     with_add_source_root="$with_adds_and_overrides/adds"
24827     with_override_source_root="$with_adds_and_overrides/overrides"
24828   fi
24829 
24830   if test "x$with_add_source_root" != x; then
24831     if ! test -d $with_add_source_root; then
24832       as_fn_error $? "Trying to use a non-existant add-source-root $with_add_source_root" "$LINENO" 5
24833     fi
24834     CURDIR="$PWD"
24835     cd "$with_add_source_root"
24836     ADD_SRC_ROOT="`pwd`"
24837     cd "$CURDIR"
24838     # Verify that the addon source root does not have any root makefiles.
24839     # If it does, then it is u