1 #!/bin/bash
   2 #
   3 # ##########################################################
   4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
   5 # ##########################################################
   6 #
   7 #! /bin/sh
   8 # Guess values for system-dependent variables and create Makefiles.
   9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk9.
  10 #
  11 # Report bugs to <build-dev@openjdk.java.net>.
  12 #
  13 #
  14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  15 #
  16 #
  17 # This configure script is free software; the Free Software Foundation
  18 # gives unlimited permission to copy, distribute and modify it.
  19 ## -------------------- ##
  20 ## M4sh Initialization. ##
  21 ## -------------------- ##
  22 
  23 # Be more Bourne compatible
  24 DUALCASE=1; export DUALCASE # for MKS sh
  25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  26   emulate sh
  27   NULLCMD=:
  28   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  29   # is contrary to our usage.  Disable this feature.
  30   alias -g '${1+"$@"}'='"$@"'
  31   setopt NO_GLOB_SUBST
  32 else
  33   case `(set -o) 2>/dev/null` in #(
  34   *posix*) :
  35     set -o posix ;; #(
  36   *) :
  37      ;;
  38 esac
  39 fi
  40 
  41 
  42 as_nl='
  43 '
  44 export as_nl
  45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
  46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  49 # Prefer a ksh shell builtin over an external printf program on Solaris,
  50 # but without wasting forks for bash or zsh.
  51 if test -z "$BASH_VERSION$ZSH_VERSION" \
  52     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  53   as_echo='print -r --'
  54   as_echo_n='print -rn --'
  55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  56   as_echo='printf %s\n'
  57   as_echo_n='printf %s'
  58 else
  59   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  60     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  61     as_echo_n='/usr/ucb/echo -n'
  62   else
  63     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  64     as_echo_n_body='eval
  65       arg=$1;
  66       case $arg in #(
  67       *"$as_nl"*)
  68         expr "X$arg" : "X\\(.*\\)$as_nl";
  69         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  70       esac;
  71       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  72     '
  73     export as_echo_n_body
  74     as_echo_n='sh -c $as_echo_n_body as_echo'
  75   fi
  76   export as_echo_body
  77   as_echo='sh -c $as_echo_body as_echo'
  78 fi
  79 
  80 # The user is always right.
  81 if test "${PATH_SEPARATOR+set}" != set; then
  82   PATH_SEPARATOR=:
  83   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  84     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  85       PATH_SEPARATOR=';'
  86   }
  87 fi
  88 
  89 
  90 # IFS
  91 # We need space, tab and new line, in precisely that order.  Quoting is
  92 # there to prevent editors from complaining about space-tab.
  93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  94 # splitting by setting IFS to empty value.)
  95 IFS=" ""        $as_nl"
  96 
  97 # Find who we are.  Look in the path if we contain no directory separator.
  98 as_myself=
  99 case $0 in #((
 100   *[\\/]* ) as_myself=$0 ;;
 101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 102 for as_dir in $PATH
 103 do
 104   IFS=$as_save_IFS
 105   test -z "$as_dir" && as_dir=.
 106     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 107   done
 108 IFS=$as_save_IFS
 109 
 110      ;;
 111 esac
 112 # We did not find ourselves, most probably we were run as `sh COMMAND'
 113 # in which case we are not to be found in the path.
 114 if test "x$as_myself" = x; then
 115   as_myself=$0
 116 fi
 117 if test ! -f "$as_myself"; then
 118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 119   exit 1
 120 fi
 121 
 122 # Unset variables that we do not need and which cause bugs (e.g. in
 123 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 124 # suppresses any "Segmentation fault" message there.  '((' could
 125 # trigger a bug in pdksh 5.2.14.
 126 for as_var in BASH_ENV ENV MAIL MAILPATH
 127 do eval test x\${$as_var+set} = xset \
 128   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 129 done
 130 PS1='$ '
 131 PS2='> '
 132 PS4='+ '
 133 
 134 # NLS nuisances.
 135 LC_ALL=C
 136 export LC_ALL
 137 LANGUAGE=C
 138 export LANGUAGE
 139 
 140 # CDPATH.
 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 142 
 143 # Use a proper internal environment variable to ensure we don't fall
 144   # into an infinite loop, continuously re-executing ourselves.
 145   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 146     _as_can_reexec=no; export _as_can_reexec;
 147     # We cannot yet assume a decent shell, so we have to provide a
 148 # neutralization value for shells without unset; and this also
 149 # works around shells that cannot unset nonexistent variables.
 150 # Preserve -v and -x to the replacement shell.
 151 BASH_ENV=/dev/null
 152 ENV=/dev/null
 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 154 case $- in # ((((
 155   *v*x* | *x*v* ) as_opts=-vx ;;
 156   *v* ) as_opts=-v ;;
 157   *x* ) as_opts=-x ;;
 158   * ) as_opts= ;;
 159 esac
 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 161 # Admittedly, this is quite paranoid, since all the known shells bail
 162 # out after a failed `exec'.
 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 164 as_fn_exit 255
 165   fi
 166   # We don't want this to propagate to other subprocesses.
 167           { _as_can_reexec=; unset _as_can_reexec;}
 168 if test "x$CONFIG_SHELL" = x; then
 169   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 170   emulate sh
 171   NULLCMD=:
 172   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 173   # is contrary to our usage.  Disable this feature.
 174   alias -g '\${1+\"\$@\"}'='\"\$@\"'
 175   setopt NO_GLOB_SUBST
 176 else
 177   case \`(set -o) 2>/dev/null\` in #(
 178   *posix*) :
 179     set -o posix ;; #(
 180   *) :
 181      ;;
 182 esac
 183 fi
 184 "
 185   as_required="as_fn_return () { (exit \$1); }
 186 as_fn_success () { as_fn_return 0; }
 187 as_fn_failure () { as_fn_return 1; }
 188 as_fn_ret_success () { return 0; }
 189 as_fn_ret_failure () { return 1; }
 190 
 191 exitcode=0
 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 197 
 198 else
 199   exitcode=1; echo positional parameters were not saved.
 200 fi
 201 test x\$exitcode = x0 || exit 1
 202 test -x / || exit 1"
 203   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 204   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 205   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 206   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 207 test \$(( 1 + 1 )) = 2 || exit 1"
 208   if (eval "$as_required") 2>/dev/null; then :
 209   as_have_required=yes
 210 else
 211   as_have_required=no
 212 fi
 213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 214 
 215 else
 216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 217 as_found=false
 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 219 do
 220   IFS=$as_save_IFS
 221   test -z "$as_dir" && as_dir=.
 222   as_found=:
 223   case $as_dir in #(
 224          /*)
 225            for as_base in sh bash ksh sh5; do
 226              # Try only shells that exist, to save several forks.
 227              as_shell=$as_dir/$as_base
 228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 230   CONFIG_SHELL=$as_shell as_have_required=yes
 231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 232   break 2
 233 fi
 234 fi
 235            done;;
 236        esac
 237   as_found=false
 238 done
 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 241   CONFIG_SHELL=$SHELL as_have_required=yes
 242 fi; }
 243 IFS=$as_save_IFS
 244 
 245 
 246       if test "x$CONFIG_SHELL" != x; then :
 247   export CONFIG_SHELL
 248              # We cannot yet assume a decent shell, so we have to provide a
 249 # neutralization value for shells without unset; and this also
 250 # works around shells that cannot unset nonexistent variables.
 251 # Preserve -v and -x to the replacement shell.
 252 BASH_ENV=/dev/null
 253 ENV=/dev/null
 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 255 case $- in # ((((
 256   *v*x* | *x*v* ) as_opts=-vx ;;
 257   *v* ) as_opts=-v ;;
 258   *x* ) as_opts=-x ;;
 259   * ) as_opts= ;;
 260 esac
 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 262 # Admittedly, this is quite paranoid, since all the known shells bail
 263 # out after a failed `exec'.
 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 265 exit 255
 266 fi
 267 
 268     if test x$as_have_required = xno; then :
 269   $as_echo "$0: This script requires a shell more modern than all"
 270   $as_echo "$0: the shells that I found on your system."
 271   if test x${ZSH_VERSION+set} = xset ; then
 272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 274   else
 275     $as_echo "$0: Please tell bug-autoconf@gnu.org and
 276 $0: build-dev@openjdk.java.net about your system, including
 277 $0: any error possibly output before this message. Then
 278 $0: install a modern shell, or manually run the script
 279 $0: under such a shell if you do have one."
 280   fi
 281   exit 1
 282 fi
 283 fi
 284 fi
 285 SHELL=${CONFIG_SHELL-/bin/sh}
 286 export SHELL
 287 # Unset more variables known to interfere with behavior of common tools.
 288 CLICOLOR_FORCE= GREP_OPTIONS=
 289 unset CLICOLOR_FORCE GREP_OPTIONS
 290 
 291 ## --------------------- ##
 292 ## M4sh Shell Functions. ##
 293 ## --------------------- ##
 294 # as_fn_unset VAR
 295 # ---------------
 296 # Portably unset VAR.
 297 as_fn_unset ()
 298 {
 299   { eval $1=; unset $1;}
 300 }
 301 as_unset=as_fn_unset
 302 
 303 # as_fn_set_status STATUS
 304 # -----------------------
 305 # Set $? to STATUS, without forking.
 306 as_fn_set_status ()
 307 {
 308   return $1
 309 } # as_fn_set_status
 310 
 311 # as_fn_exit STATUS
 312 # -----------------
 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 314 as_fn_exit ()
 315 {
 316   set +e
 317   as_fn_set_status $1
 318   exit $1
 319 } # as_fn_exit
 320 
 321 # as_fn_mkdir_p
 322 # -------------
 323 # Create "$as_dir" as a directory, including parents if necessary.
 324 as_fn_mkdir_p ()
 325 {
 326 
 327   case $as_dir in #(
 328   -*) as_dir=./$as_dir;;
 329   esac
 330   test -d "$as_dir" || eval $as_mkdir_p || {
 331     as_dirs=
 332     while :; do
 333       case $as_dir in #(
 334       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 335       *) as_qdir=$as_dir;;
 336       esac
 337       as_dirs="'$as_qdir' $as_dirs"
 338       as_dir=`$as_dirname -- "$as_dir" ||
 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 340          X"$as_dir" : 'X\(//\)[^/]' \| \
 341          X"$as_dir" : 'X\(//\)$' \| \
 342          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 343 $as_echo X"$as_dir" |
 344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 345             s//\1/
 346             q
 347           }
 348           /^X\(\/\/\)[^/].*/{
 349             s//\1/
 350             q
 351           }
 352           /^X\(\/\/\)$/{
 353             s//\1/
 354             q
 355           }
 356           /^X\(\/\).*/{
 357             s//\1/
 358             q
 359           }
 360           s/.*/./; q'`
 361       test -d "$as_dir" && break
 362     done
 363     test -z "$as_dirs" || eval "mkdir $as_dirs"
 364   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 365 
 366 
 367 } # as_fn_mkdir_p
 368 
 369 # as_fn_executable_p FILE
 370 # -----------------------
 371 # Test if FILE is an executable regular file.
 372 as_fn_executable_p ()
 373 {
 374   test -f "$1" && test -x "$1"
 375 } # as_fn_executable_p
 376 # as_fn_append VAR VALUE
 377 # ----------------------
 378 # Append the text in VALUE to the end of the definition contained in VAR. Take
 379 # advantage of any shell optimizations that allow amortized linear growth over
 380 # repeated appends, instead of the typical quadratic growth present in naive
 381 # implementations.
 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 383   eval 'as_fn_append ()
 384   {
 385     eval $1+=\$2
 386   }'
 387 else
 388   as_fn_append ()
 389   {
 390     eval $1=\$$1\$2
 391   }
 392 fi # as_fn_append
 393 
 394 # as_fn_arith ARG...
 395 # ------------------
 396 # Perform arithmetic evaluation on the ARGs, and store the result in the
 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments
 398 # must be portable across $(()) and expr.
 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 400   eval 'as_fn_arith ()
 401   {
 402     as_val=$(( $* ))
 403   }'
 404 else
 405   as_fn_arith ()
 406   {
 407     as_val=`expr "$@" || test $? -eq 1`
 408   }
 409 fi # as_fn_arith
 410 
 411 
 412 # as_fn_error STATUS ERROR [LINENO LOG_FD]
 413 # ----------------------------------------
 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 416 # script with STATUS, using 1 if that was 0.
 417 as_fn_error ()
 418 {
 419   as_status=$1; test $as_status -eq 0 && as_status=1
 420   if test "$4"; then
 421     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 422     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 423   fi
 424   $as_echo "$as_me: error: $2" >&2
 425   as_fn_exit $as_status
 426 } # as_fn_error
 427 
 428 if expr a : '\(a\)' >/dev/null 2>&1 &&
 429    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 430   as_expr=expr
 431 else
 432   as_expr=false
 433 fi
 434 
 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 436   as_basename=basename
 437 else
 438   as_basename=false
 439 fi
 440 
 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 442   as_dirname=dirname
 443 else
 444   as_dirname=false
 445 fi
 446 
 447 as_me=`$as_basename -- "$0" ||
 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 449          X"$0" : 'X\(//\)$' \| \
 450          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 451 $as_echo X/"$0" |
 452     sed '/^.*\/\([^/][^/]*\)\/*$/{
 453             s//\1/
 454             q
 455           }
 456           /^X\/\(\/\/\)$/{
 457             s//\1/
 458             q
 459           }
 460           /^X\/\(\/\).*/{
 461             s//\1/
 462             q
 463           }
 464           s/.*/./; q'`
 465 
 466 # Avoid depending upon Character Ranges.
 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 470 as_cr_digits='0123456789'
 471 as_cr_alnum=$as_cr_Letters$as_cr_digits
 472 
 473 
 474   as_lineno_1=$LINENO as_lineno_1a=$LINENO
 475   as_lineno_2=$LINENO as_lineno_2a=$LINENO
 476   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 477   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 478   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 479   sed -n '
 480     p
 481     /[$]LINENO/=
 482   ' <$as_myself |
 483     sed '
 484       s/[$]LINENO.*/&-/
 485       t lineno
 486       b
 487       :lineno
 488       N
 489       :loop
 490       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 491       t loop
 492       s/-\n.*//
 493     ' >$as_me.lineno &&
 494   chmod +x "$as_me.lineno" ||
 495     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 496 
 497   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 498   # already done that, so ensure we don't try to do so again and fall
 499   # in an infinite loop.  This has already happened in practice.
 500   _as_can_reexec=no; export _as_can_reexec
 501   # Don't try to exec as it changes $[0], causing all sort of problems
 502   # (the dirname of $[0] is not the place where we might find the
 503   # original and so on.  Autoconf is especially sensitive to this).
 504   . "./$as_me.lineno"
 505   # Exit status is that of the last command.
 506   exit
 507 }
 508 
 509 ECHO_C= ECHO_N= ECHO_T=
 510 case `echo -n x` in #(((((
 511 -n*)
 512   case `echo 'xy\c'` in
 513   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 514   xy)  ECHO_C='\c';;
 515   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 516        ECHO_T=' ';;
 517   esac;;
 518 *)
 519   ECHO_N='-n';;
 520 esac
 521 
 522 rm -f conf$$ conf$$.exe conf$$.file
 523 if test -d conf$$.dir; then
 524   rm -f conf$$.dir/conf$$.file
 525 else
 526   rm -f conf$$.dir
 527   mkdir conf$$.dir 2>/dev/null
 528 fi
 529 if (echo >conf$$.file) 2>/dev/null; then
 530   if ln -s conf$$.file conf$$ 2>/dev/null; then
 531     as_ln_s='ln -s'
 532     # ... but there are two gotchas:
 533     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 534     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 535     # In both cases, we have to default to `cp -pR'.
 536     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 537       as_ln_s='cp -pR'
 538   elif ln conf$$.file conf$$ 2>/dev/null; then
 539     as_ln_s=ln
 540   else
 541     as_ln_s='cp -pR'
 542   fi
 543 else
 544   as_ln_s='cp -pR'
 545 fi
 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 547 rmdir conf$$.dir 2>/dev/null
 548 
 549 if mkdir -p . 2>/dev/null; then
 550   as_mkdir_p='mkdir -p "$as_dir"'
 551 else
 552   test -d ./-p && rmdir ./-p
 553   as_mkdir_p=false
 554 fi
 555 
 556 as_test_x='test -x'
 557 as_executable_p=as_fn_executable_p
 558 
 559 # Sed expression to map a string onto a valid CPP name.
 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 561 
 562 # Sed expression to map a string onto a valid variable name.
 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 564 
 565 
 566 test -n "$DJDIR" || exec 7<&0 </dev/null
 567 exec 6>&1
 568 
 569 # Name of the host.
 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 571 # so uname gets run too.
 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 573 
 574 #
 575 # Initializations.
 576 #
 577 ac_default_prefix=/usr/local
 578 ac_clean_files=
 579 ac_config_libobj_dir=.
 580 LIBOBJS=
 581 cross_compiling=no
 582 subdirs=
 583 MFLAGS=
 584 MAKEFLAGS=
 585 
 586 # Identity of this package.
 587 PACKAGE_NAME='OpenJDK'
 588 PACKAGE_TARNAME='openjdk'
 589 PACKAGE_VERSION='jdk9'
 590 PACKAGE_STRING='OpenJDK jdk9'
 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net'
 592 PACKAGE_URL='http://openjdk.java.net'
 593 
 594 # Factoring default headers for most tests.
 595 ac_includes_default="\
 596 #include <stdio.h>
 597 #ifdef HAVE_SYS_TYPES_H
 598 # include <sys/types.h>
 599 #endif
 600 #ifdef HAVE_SYS_STAT_H
 601 # include <sys/stat.h>
 602 #endif
 603 #ifdef STDC_HEADERS
 604 # include <stdlib.h>
 605 # include <stddef.h>
 606 #else
 607 # ifdef HAVE_STDLIB_H
 608 #  include <stdlib.h>
 609 # endif
 610 #endif
 611 #ifdef HAVE_STRING_H
 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 613 #  include <memory.h>
 614 # endif
 615 # include <string.h>
 616 #endif
 617 #ifdef HAVE_STRINGS_H
 618 # include <strings.h>
 619 #endif
 620 #ifdef HAVE_INTTYPES_H
 621 # include <inttypes.h>
 622 #endif
 623 #ifdef HAVE_STDINT_H
 624 # include <stdint.h>
 625 #endif
 626 #ifdef HAVE_UNISTD_H
 627 # include <unistd.h>
 628 #endif"
 629 
 630 ac_subst_vars='LTLIBOBJS
 631 LIBOBJS
 632 CFLAGS_CCACHE
 633 CCACHE
 634 USE_PRECOMPILED_HEADER
 635 ENABLE_JAVAC_SERVER
 636 ENABLE_SJAVAC
 637 SJAVAC_SERVER_JAVA_FLAGS
 638 SJAVAC_SERVER_JAVA
 639 JAVA_TOOL_FLAGS_SMALL
 640 JAVA_FLAGS_SMALL
 641 JAVA_FLAGS_BIG
 642 JAVA_FLAGS
 643 JOBS
 644 MEMORY_SIZE
 645 NUM_CORES
 646 ENABLE_INTREE_EC
 647 SALIB_NAME
 648 HOTSPOT_MAKE_ARGS
 649 LIBZIP_CAN_USE_MMAP
 650 LIBDL
 651 LIBM
 652 USE_EXTERNAL_LCMS
 653 LCMS_LIBS
 654 LCMS_CFLAGS
 655 USE_EXTERNAL_LIBZ
 656 USE_EXTERNAL_LIBPNG
 657 PNG_LIBS
 658 PNG_CFLAGS
 659 USE_EXTERNAL_LIBGIF
 660 USE_EXTERNAL_LIBJPEG
 661 LLVM_LIBS
 662 LLVM_LDFLAGS
 663 LLVM_CFLAGS
 664 LLVM_CONFIG
 665 LIBFFI_LIBS
 666 LIBFFI_CFLAGS
 667 ALSA_LIBS
 668 ALSA_CFLAGS
 669 FREETYPE_BUNDLE_LIB_PATH
 670 FREETYPE_LIBS
 671 FREETYPE_CFLAGS
 672 CUPS_CFLAGS
 673 X_EXTRA_LIBS
 674 X_LIBS
 675 X_PRE_LIBS
 676 X_CFLAGS
 677 XMKMF
 678 MSVCP_DLL
 679 MSVCR_DLL
 680 LIBCXX
 681 STATIC_CXX_SETTING
 682 FIXPATH
 683 GCOV_ENABLED
 684 ZIP_DEBUGINFO_FILES
 685 ENABLE_DEBUG_SYMBOLS
 686 STRIP_POLICY
 687 DEBUG_BINARIES
 688 DEBUG_SYMBOLS
 689 CFLAGS_WARNINGS_ARE_ERRORS
 690 DISABLE_WARNING_PREFIX
 691 HOTSPOT_SET_WARNINGS_AS_ERRORS
 692 WARNINGS_AS_ERRORS
 693 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 694 ZERO_ARCHFLAG
 695 LDFLAGS_TESTEXE
 696 LDFLAGS_TESTLIB
 697 LDFLAGS_CXX_JDK
 698 JDKEXE_LIBS
 699 JDKLIB_LIBS
 700 LDFLAGS_JDKEXE
 701 LDFLAGS_JDKLIB
 702 CXXFLAGS_TESTEXE
 703 CXXFLAGS_TESTLIB
 704 CFLAGS_TESTEXE
 705 CFLAGS_TESTLIB
 706 CXXFLAGS_JDKEXE
 707 CXXFLAGS_JDKLIB
 708 CFLAGS_JDKEXE
 709 CFLAGS_JDKLIB
 710 MACOSX_VERSION_MIN
 711 CXX_O_FLAG_NONE
 712 CXX_O_FLAG_DEBUG
 713 CXX_O_FLAG_NORM
 714 CXX_O_FLAG_HI
 715 CXX_O_FLAG_HIGHEST
 716 C_O_FLAG_NONE
 717 C_O_FLAG_DEBUG
 718 C_O_FLAG_NORM
 719 C_O_FLAG_HI
 720 C_O_FLAG_HIGHEST
 721 CXXFLAGS_DEBUG_SYMBOLS
 722 CFLAGS_DEBUG_SYMBOLS
 723 CXX_FLAG_DEPS
 724 C_FLAG_DEPS
 725 SET_SHARED_LIBRARY_MAPFILE
 726 SET_SHARED_LIBRARY_NAME
 727 SET_SHARED_LIBRARY_ORIGIN
 728 SET_EXECUTABLE_ORIGIN
 729 CXX_FLAG_REORDER
 730 C_FLAG_REORDER
 731 RC_FLAGS
 732 AR_OUT_OPTION
 733 LD_OUT_OPTION
 734 EXE_OUT_OPTION
 735 CC_OUT_OPTION
 736 STRIPFLAGS
 737 ARFLAGS
 738 COMPILER_TARGET_BITS_FLAG
 739 JT_HOME
 740 JTREGEXE
 741 USING_BROKEN_SUSE_LD
 742 PACKAGE_PATH
 743 USE_CLANG
 744 HOTSPOT_LD
 745 HOTSPOT_CXX
 746 HOTSPOT_RC
 747 HOTSPOT_MT
 748 BUILD_LD
 749 BUILD_CXX
 750 BUILD_CC
 751 BUILD_SYSROOT_LDFLAGS
 752 BUILD_SYSROOT_CFLAGS
 753 ac_ct_OBJDUMP
 754 OBJDUMP
 755 ac_ct_OBJCOPY
 756 OBJCOPY
 757 ac_ct_NM
 758 ac_ct_STRIP
 759 GNM
 760 NM
 761 STRIP
 762 MSBUILD
 763 DUMPBIN
 764 RC
 765 MT
 766 LIPO
 767 ac_ct_AR
 768 AR
 769 AS
 770 LDCXX
 771 LD
 772 CXXCPP
 773 CPP
 774 ac_ct_CXX
 775 CXXFLAGS
 776 CXX
 777 ac_ct_PROPER_COMPILER_CXX
 778 PROPER_COMPILER_CXX
 779 TOOLCHAIN_PATH_CXX
 780 POTENTIAL_CXX
 781 OBJEXT
 782 EXEEXT
 783 ac_ct_CC
 784 CPPFLAGS
 785 LDFLAGS
 786 CFLAGS
 787 CC
 788 ac_ct_PROPER_COMPILER_CC
 789 PROPER_COMPILER_CC
 790 TOOLCHAIN_PATH_CC
 791 POTENTIAL_CC
 792 VS_LIB
 793 VS_INCLUDE
 794 VS_PATH
 795 CYGWIN_LINK
 796 SYSROOT_LDFLAGS
 797 SYSROOT_CFLAGS
 798 LEGACY_EXTRA_LDFLAGS
 799 LEGACY_EXTRA_CXXFLAGS
 800 LEGACY_EXTRA_CFLAGS
 801 EXE_SUFFIX
 802 OBJ_SUFFIX
 803 STATIC_LIBRARY
 804 SHARED_LIBRARY
 805 STATIC_LIBRARY_SUFFIX
 806 SHARED_LIBRARY_SUFFIX
 807 LIBRARY_PREFIX
 808 TOOLCHAIN_TYPE
 809 STATIC_BUILD
 810 BUILD_HOTSPOT
 811 HOTSPOT_DIST
 812 BUILD_OUTPUT
 813 JDK_TOPDIR
 814 NASHORN_TOPDIR
 815 HOTSPOT_TOPDIR
 816 JAXWS_TOPDIR
 817 JAXP_TOPDIR
 818 CORBA_TOPDIR
 819 LANGTOOLS_TOPDIR
 820 BOOT_JDK_BITS
 821 JAVAC_FLAGS
 822 BOOT_JDK_SOURCETARGET
 823 JARSIGNER
 824 JAR
 825 JAVAH
 826 JAVAC
 827 JAVA
 828 BOOT_JDK
 829 JAVA_CHECK
 830 JAVAC_CHECK
 831 COOKED_BUILD_NUMBER
 832 JDK_VERSION
 833 COPYRIGHT_YEAR
 834 MACOSX_BUNDLE_ID_BASE
 835 MACOSX_BUNDLE_NAME_BASE
 836 COMPANY_NAME
 837 JDK_RC_PLATFORM_NAME
 838 PRODUCT_SUFFIX
 839 PRODUCT_NAME
 840 LAUNCHER_NAME
 841 MILESTONE
 842 JDK_BUILD_NUMBER
 843 JDK_UPDATE_VERSION
 844 JDK_MICRO_VERSION
 845 JDK_MINOR_VERSION
 846 JDK_MAJOR_VERSION
 847 USER_RELEASE_SUFFIX
 848 COMPRESS_JARS
 849 UNLIMITED_CRYPTO
 850 CACERTS_FILE
 851 TEST_IN_BUILD
 852 BUILD_HEADLESS
 853 SUPPORT_HEADFUL
 854 SUPPORT_HEADLESS
 855 OS_VERSION_MICRO
 856 OS_VERSION_MINOR
 857 OS_VERSION_MAJOR
 858 PKG_CONFIG
 859 BASH_ARGS
 860 SETFILE
 861 CODESIGN
 862 XATTR
 863 DSYMUTIL
 864 IS_GNU_TIME
 865 PATCH
 866 TIME
 867 STAT
 868 HG
 869 READELF
 870 OTOOL
 871 LDD
 872 ZIP
 873 UNZIP
 874 FIND_DELETE
 875 OUTPUT_SYNC
 876 OUTPUT_SYNC_SUPPORTED
 877 CHECK_TOOLSDIR_MAKE
 878 CHECK_TOOLSDIR_GMAKE
 879 CHECK_MAKE
 880 CHECK_GMAKE
 881 MAKE
 882 PKGHANDLER
 883 CONFIGURESUPPORT_OUTPUTDIR
 884 OUTPUT_ROOT
 885 CONF_NAME
 886 SPEC
 887 SDKROOT
 888 XCODEBUILD
 889 BUILD_VARIANT_RELEASE
 890 DEBUG_CLASSFILES
 891 FASTDEBUG
 892 VARIANT
 893 DEBUG_LEVEL
 894 MACOSX_UNIVERSAL
 895 INCLUDE_SA
 896 JVM_VARIANT_CORE
 897 JVM_VARIANT_ZEROSHARK
 898 JVM_VARIANT_ZERO
 899 JVM_VARIANT_KERNEL
 900 JVM_VARIANT_MINIMAL1
 901 JVM_VARIANT_CLIENT
 902 JVM_VARIANT_SERVER
 903 JVM_VARIANTS
 904 JVM_INTERPRETER
 905 JDK_VARIANT
 906 SET_OPENJDK
 907 CANONICAL_TOPDIR
 908 ORIGINAL_TOPDIR
 909 TOPDIR
 910 PATH_SEP
 911 ZERO_ARCHDEF
 912 DEFINE_CROSS_COMPILE_ARCH
 913 LP64
 914 OPENJDK_TARGET_OS_EXPORT_DIR
 915 OPENJDK_TARGET_CPU_JLI_CFLAGS
 916 OPENJDK_TARGET_CPU_OSARCH
 917 OPENJDK_TARGET_CPU_ISADIR
 918 OPENJDK_TARGET_CPU_LIBDIR
 919 OPENJDK_TARGET_CPU_LEGACY_LIB
 920 OPENJDK_TARGET_CPU_LEGACY
 921 REQUIRED_OS_VERSION
 922 REQUIRED_OS_NAME
 923 COMPILE_TYPE
 924 OPENJDK_TARGET_CPU_ENDIAN
 925 OPENJDK_TARGET_CPU_BITS
 926 OPENJDK_TARGET_CPU_ARCH
 927 OPENJDK_TARGET_CPU
 928 OPENJDK_TARGET_OS_ENV
 929 OPENJDK_TARGET_OS_TYPE
 930 OPENJDK_TARGET_OS
 931 OPENJDK_BUILD_CPU_ENDIAN
 932 OPENJDK_BUILD_CPU_BITS
 933 OPENJDK_BUILD_CPU_ARCH
 934 OPENJDK_BUILD_CPU
 935 OPENJDK_BUILD_OS_ENV
 936 OPENJDK_BUILD_OS_TYPE
 937 OPENJDK_BUILD_OS
 938 OPENJDK_BUILD_AUTOCONF_NAME
 939 OPENJDK_TARGET_AUTOCONF_NAME
 940 target_os
 941 target_vendor
 942 target_cpu
 943 target
 944 host_os
 945 host_vendor
 946 host_cpu
 947 host
 948 build_os
 949 build_vendor
 950 build_cpu
 951 build
 952 NICE
 953 CPIO
 954 DF
 955 READLINK
 956 CYGPATH
 957 SED
 958 FGREP
 959 EGREP
 960 GREP
 961 AWK
 962 XARGS
 963 WHICH
 964 WC
 965 UNIQ
 966 UNAME
 967 TR
 968 TOUCH
 969 TEE
 970 TAR
 971 TAIL
 972 SORT
 973 SH
 974 RMDIR
 975 RM
 976 PRINTF
 977 NAWK
 978 MV
 979 MKTEMP
 980 MKDIR
 981 LS
 982 LN
 983 HEAD
 984 FIND
 985 FILE
 986 EXPR
 987 ECHO
 988 DIRNAME
 989 DIFF
 990 DATE
 991 CUT
 992 CP
 993 COMM
 994 CMP
 995 CHMOD
 996 CAT
 997 BASH
 998 BASENAME
 999 DATE_WHEN_CONFIGURED
1000 ORIGINAL_PATH
1001 CONFIGURE_COMMAND_LINE
1002 target_alias
1003 host_alias
1004 build_alias
1005 LIBS
1006 ECHO_T
1007 ECHO_N
1008 ECHO_C
1009 DEFS
1010 mandir
1011 localedir
1012 libdir
1013 psdir
1014 pdfdir
1015 dvidir
1016 htmldir
1017 infodir
1018 docdir
1019 oldincludedir
1020 includedir
1021 localstatedir
1022 sharedstatedir
1023 sysconfdir
1024 datadir
1025 datarootdir
1026 libexecdir
1027 sbindir
1028 bindir
1029 program_transform_name
1030 prefix
1031 exec_prefix
1032 PACKAGE_URL
1033 PACKAGE_BUGREPORT
1034 PACKAGE_STRING
1035 PACKAGE_VERSION
1036 PACKAGE_TARNAME
1037 PACKAGE_NAME
1038 PATH_SEPARATOR
1039 SHELL'
1040 ac_subst_files=''
1041 ac_user_opts='
1042 enable_option_checking
1043 with_target_bits
1044 enable_openjdk_only
1045 with_custom_make_dir
1046 with_jdk_variant
1047 with_jvm_interpreter
1048 with_jvm_variants
1049 enable_debug
1050 with_debug_level
1051 with_devkit
1052 with_sys_root
1053 with_sysroot
1054 with_tools_dir
1055 with_toolchain_path
1056 with_extra_path
1057 with_sdk_name
1058 with_conf_name
1059 with_output_sync
1060 enable_headful
1061 enable_hotspot_test_in_build
1062 with_cacerts_file
1063 enable_unlimited_crypto
1064 with_milestone
1065 with_update_version
1066 with_user_release_suffix
1067 with_build_number
1068 with_copyright_year
1069 with_boot_jdk
1070 with_add_source_root
1071 with_override_source_root
1072 with_adds_and_overrides
1073 with_override_langtools
1074 with_override_corba
1075 with_override_jaxp
1076 with_override_jaxws
1077 with_override_hotspot
1078 with_override_nashorn
1079 with_override_jdk
1080 with_import_hotspot
1081 enable_static_build
1082 with_toolchain_type
1083 with_extra_cflags
1084 with_extra_cxxflags
1085 with_extra_ldflags
1086 with_toolchain_version
1087 with_build_devkit
1088 with_jtreg
1089 enable_warnings_as_errors
1090 with_debug_symbols
1091 enable_debug_symbols
1092 enable_zip_debug_info
1093 enable_native_coverage
1094 with_stdc__lib
1095 with_msvcr_dll
1096 with_msvcp_dll
1097 with_x
1098 with_cups
1099 with_cups_include
1100 with_freetype
1101 with_freetype_include
1102 with_freetype_lib
1103 with_freetype_src
1104 enable_freetype_bundling
1105 with_alsa
1106 with_alsa_include
1107 with_alsa_lib
1108 with_libffi
1109 with_libffi_include
1110 with_libffi_lib
1111 with_libjpeg
1112 with_giflib
1113 with_libpng
1114 with_zlib
1115 with_lcms
1116 with_dxsdk
1117 with_dxsdk_lib
1118 with_dxsdk_include
1119 with_num_cores
1120 with_memory_size
1121 with_jobs
1122 with_boot_jdk_jvmargs
1123 with_sjavac_server_java
1124 enable_sjavac
1125 enable_javac_server
1126 enable_precompiled_headers
1127 enable_ccache
1128 with_ccache_dir
1129 '
1130       ac_precious_vars='build_alias
1131 host_alias
1132 target_alias
1133 BASENAME
1134 BASH
1135 CAT
1136 CHMOD
1137 CMP
1138 COMM
1139 CP
1140 CUT
1141 DATE
1142 DIFF
1143 DIRNAME
1144 ECHO
1145 EXPR
1146 FILE
1147 FIND
1148 HEAD
1149 LN
1150 LS
1151 MKDIR
1152 MKTEMP
1153 MV
1154 NAWK
1155 PRINTF
1156 RM
1157 RMDIR
1158 SH
1159 SORT
1160 TAIL
1161 TAR
1162 TEE
1163 TOUCH
1164 TR
1165 UNAME
1166 UNIQ
1167 WC
1168 WHICH
1169 XARGS
1170 AWK
1171 GREP
1172 EGREP
1173 FGREP
1174 SED
1175 CYGPATH
1176 READLINK
1177 DF
1178 CPIO
1179 NICE
1180 MAKE
1181 UNZIP
1182 ZIP
1183 LDD
1184 OTOOL
1185 READELF
1186 HG
1187 STAT
1188 TIME
1189 PATCH
1190 DSYMUTIL
1191 XATTR
1192 CODESIGN
1193 SETFILE
1194 PKG_CONFIG
1195 JAVA
1196 JAVAC
1197 JAVAH
1198 JAR
1199 JARSIGNER
1200 CC
1201 CFLAGS
1202 LDFLAGS
1203 LIBS
1204 CPPFLAGS
1205 CXX
1206 CXXFLAGS
1207 CCC
1208 CPP
1209 CXXCPP
1210 AS
1211 AR
1212 LIPO
1213 STRIP
1214 NM
1215 GNM
1216 OBJCOPY
1217 OBJDUMP
1218 BUILD_CC
1219 BUILD_CXX
1220 JTREGEXE
1221 XMKMF
1222 FREETYPE_CFLAGS
1223 FREETYPE_LIBS
1224 ALSA_CFLAGS
1225 ALSA_LIBS
1226 LIBFFI_CFLAGS
1227 LIBFFI_LIBS
1228 PNG_CFLAGS
1229 PNG_LIBS
1230 LCMS_CFLAGS
1231 LCMS_LIBS
1232 CCACHE'
1233 
1234 
1235 # Initialize some variables set by options.
1236 ac_init_help=
1237 ac_init_version=false
1238 ac_unrecognized_opts=
1239 ac_unrecognized_sep=
1240 # The variables have the same names as the options, with
1241 # dashes changed to underlines.
1242 cache_file=/dev/null
1243 exec_prefix=NONE
1244 no_create=
1245 no_recursion=
1246 prefix=NONE
1247 program_prefix=NONE
1248 program_suffix=NONE
1249 program_transform_name=s,x,x,
1250 silent=
1251 site=
1252 srcdir=
1253 verbose=
1254 x_includes=NONE
1255 x_libraries=NONE
1256 
1257 # Installation directory options.
1258 # These are left unexpanded so users can "make install exec_prefix=/foo"
1259 # and all the variables that are supposed to be based on exec_prefix
1260 # by default will actually change.
1261 # Use braces instead of parens because sh, perl, etc. also accept them.
1262 # (The list follows the same order as the GNU Coding Standards.)
1263 bindir='${exec_prefix}/bin'
1264 sbindir='${exec_prefix}/sbin'
1265 libexecdir='${exec_prefix}/libexec'
1266 datarootdir='${prefix}/share'
1267 datadir='${datarootdir}'
1268 sysconfdir='${prefix}/etc'
1269 sharedstatedir='${prefix}/com'
1270 localstatedir='${prefix}/var'
1271 includedir='${prefix}/include'
1272 oldincludedir='/usr/include'
1273 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1274 infodir='${datarootdir}/info'
1275 htmldir='${docdir}'
1276 dvidir='${docdir}'
1277 pdfdir='${docdir}'
1278 psdir='${docdir}'
1279 libdir='${exec_prefix}/lib'
1280 localedir='${datarootdir}/locale'
1281 mandir='${datarootdir}/man'
1282 
1283 ac_prev=
1284 ac_dashdash=
1285 for ac_option
1286 do
1287   # If the previous option needs an argument, assign it.
1288   if test -n "$ac_prev"; then
1289     eval $ac_prev=\$ac_option
1290     ac_prev=
1291     continue
1292   fi
1293 
1294   case $ac_option in
1295   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1296   *=)   ac_optarg= ;;
1297   *)    ac_optarg=yes ;;
1298   esac
1299 
1300   # Accept the important Cygnus configure options, so we can diagnose typos.
1301 
1302   case $ac_dashdash$ac_option in
1303   --)
1304     ac_dashdash=yes ;;
1305 
1306   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1307     ac_prev=bindir ;;
1308   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1309     bindir=$ac_optarg ;;
1310 
1311   -build | --build | --buil | --bui | --bu)
1312     ac_prev=build_alias ;;
1313   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1314     build_alias=$ac_optarg ;;
1315 
1316   -cache-file | --cache-file | --cache-fil | --cache-fi \
1317   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1318     ac_prev=cache_file ;;
1319   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1320   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1321     cache_file=$ac_optarg ;;
1322 
1323   --config-cache | -C)
1324     cache_file=config.cache ;;
1325 
1326   -datadir | --datadir | --datadi | --datad)
1327     ac_prev=datadir ;;
1328   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1329     datadir=$ac_optarg ;;
1330 
1331   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1332   | --dataroo | --dataro | --datar)
1333     ac_prev=datarootdir ;;
1334   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1335   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1336     datarootdir=$ac_optarg ;;
1337 
1338   -disable-* | --disable-*)
1339     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1340     # Reject names that are not valid shell variable names.
1341     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1342       as_fn_error $? "invalid feature name: $ac_useropt"
1343     ac_useropt_orig=$ac_useropt
1344     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1345     case $ac_user_opts in
1346       *"
1347 "enable_$ac_useropt"
1348 "*) ;;
1349       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1350          ac_unrecognized_sep=', ';;
1351     esac
1352     eval enable_$ac_useropt=no ;;
1353 
1354   -docdir | --docdir | --docdi | --doc | --do)
1355     ac_prev=docdir ;;
1356   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1357     docdir=$ac_optarg ;;
1358 
1359   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1360     ac_prev=dvidir ;;
1361   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1362     dvidir=$ac_optarg ;;
1363 
1364   -enable-* | --enable-*)
1365     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1366     # Reject names that are not valid shell variable names.
1367     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1368       as_fn_error $? "invalid feature name: $ac_useropt"
1369     ac_useropt_orig=$ac_useropt
1370     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1371     case $ac_user_opts in
1372       *"
1373 "enable_$ac_useropt"
1374 "*) ;;
1375       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1376          ac_unrecognized_sep=', ';;
1377     esac
1378     eval enable_$ac_useropt=\$ac_optarg ;;
1379 
1380   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1381   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1382   | --exec | --exe | --ex)
1383     ac_prev=exec_prefix ;;
1384   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1385   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1386   | --exec=* | --exe=* | --ex=*)
1387     exec_prefix=$ac_optarg ;;
1388 
1389   -gas | --gas | --ga | --g)
1390     # Obsolete; use --with-gas.
1391     with_gas=yes ;;
1392 
1393   -help | --help | --hel | --he | -h)
1394     ac_init_help=long ;;
1395   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1396     ac_init_help=recursive ;;
1397   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1398     ac_init_help=short ;;
1399 
1400   -host | --host | --hos | --ho)
1401     ac_prev=host_alias ;;
1402   -host=* | --host=* | --hos=* | --ho=*)
1403     host_alias=$ac_optarg ;;
1404 
1405   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1406     ac_prev=htmldir ;;
1407   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1408   | --ht=*)
1409     htmldir=$ac_optarg ;;
1410 
1411   -includedir | --includedir | --includedi | --included | --include \
1412   | --includ | --inclu | --incl | --inc)
1413     ac_prev=includedir ;;
1414   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1415   | --includ=* | --inclu=* | --incl=* | --inc=*)
1416     includedir=$ac_optarg ;;
1417 
1418   -infodir | --infodir | --infodi | --infod | --info | --inf)
1419     ac_prev=infodir ;;
1420   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1421     infodir=$ac_optarg ;;
1422 
1423   -libdir | --libdir | --libdi | --libd)
1424     ac_prev=libdir ;;
1425   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1426     libdir=$ac_optarg ;;
1427 
1428   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1429   | --libexe | --libex | --libe)
1430     ac_prev=libexecdir ;;
1431   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1432   | --libexe=* | --libex=* | --libe=*)
1433     libexecdir=$ac_optarg ;;
1434 
1435   -localedir | --localedir | --localedi | --localed | --locale)
1436     ac_prev=localedir ;;
1437   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1438     localedir=$ac_optarg ;;
1439 
1440   -localstatedir | --localstatedir | --localstatedi | --localstated \
1441   | --localstate | --localstat | --localsta | --localst | --locals)
1442     ac_prev=localstatedir ;;
1443   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1444   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1445     localstatedir=$ac_optarg ;;
1446 
1447   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1448     ac_prev=mandir ;;
1449   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1450     mandir=$ac_optarg ;;
1451 
1452   -nfp | --nfp | --nf)
1453     # Obsolete; use --without-fp.
1454     with_fp=no ;;
1455 
1456   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1457   | --no-cr | --no-c | -n)
1458     no_create=yes ;;
1459 
1460   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1461   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1462     no_recursion=yes ;;
1463 
1464   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1465   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1466   | --oldin | --oldi | --old | --ol | --o)
1467     ac_prev=oldincludedir ;;
1468   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1469   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1470   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1471     oldincludedir=$ac_optarg ;;
1472 
1473   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1474     ac_prev=prefix ;;
1475   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1476     prefix=$ac_optarg ;;
1477 
1478   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1479   | --program-pre | --program-pr | --program-p)
1480     ac_prev=program_prefix ;;
1481   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1482   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1483     program_prefix=$ac_optarg ;;
1484 
1485   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1486   | --program-suf | --program-su | --program-s)
1487     ac_prev=program_suffix ;;
1488   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1489   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1490     program_suffix=$ac_optarg ;;
1491 
1492   -program-transform-name | --program-transform-name \
1493   | --program-transform-nam | --program-transform-na \
1494   | --program-transform-n | --program-transform- \
1495   | --program-transform | --program-transfor \
1496   | --program-transfo | --program-transf \
1497   | --program-trans | --program-tran \
1498   | --progr-tra | --program-tr | --program-t)
1499     ac_prev=program_transform_name ;;
1500   -program-transform-name=* | --program-transform-name=* \
1501   | --program-transform-nam=* | --program-transform-na=* \
1502   | --program-transform-n=* | --program-transform-=* \
1503   | --program-transform=* | --program-transfor=* \
1504   | --program-transfo=* | --program-transf=* \
1505   | --program-trans=* | --program-tran=* \
1506   | --progr-tra=* | --program-tr=* | --program-t=*)
1507     program_transform_name=$ac_optarg ;;
1508 
1509   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1510     ac_prev=pdfdir ;;
1511   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1512     pdfdir=$ac_optarg ;;
1513 
1514   -psdir | --psdir | --psdi | --psd | --ps)
1515     ac_prev=psdir ;;
1516   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1517     psdir=$ac_optarg ;;
1518 
1519   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1520   | -silent | --silent | --silen | --sile | --sil)
1521     silent=yes ;;
1522 
1523   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1524     ac_prev=sbindir ;;
1525   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1526   | --sbi=* | --sb=*)
1527     sbindir=$ac_optarg ;;
1528 
1529   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1530   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1531   | --sharedst | --shareds | --shared | --share | --shar \
1532   | --sha | --sh)
1533     ac_prev=sharedstatedir ;;
1534   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1535   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1536   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1537   | --sha=* | --sh=*)
1538     sharedstatedir=$ac_optarg ;;
1539 
1540   -site | --site | --sit)
1541     ac_prev=site ;;
1542   -site=* | --site=* | --sit=*)
1543     site=$ac_optarg ;;
1544 
1545   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1546     ac_prev=srcdir ;;
1547   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1548     srcdir=$ac_optarg ;;
1549 
1550   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1551   | --syscon | --sysco | --sysc | --sys | --sy)
1552     ac_prev=sysconfdir ;;
1553   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1554   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1555     sysconfdir=$ac_optarg ;;
1556 
1557   -target | --target | --targe | --targ | --tar | --ta | --t)
1558     ac_prev=target_alias ;;
1559   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1560     target_alias=$ac_optarg ;;
1561 
1562   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1563     verbose=yes ;;
1564 
1565   -version | --version | --versio | --versi | --vers | -V)
1566     ac_init_version=: ;;
1567 
1568   -with-* | --with-*)
1569     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1570     # Reject names that are not valid shell variable names.
1571     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1572       as_fn_error $? "invalid package name: $ac_useropt"
1573     ac_useropt_orig=$ac_useropt
1574     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1575     case $ac_user_opts in
1576       *"
1577 "with_$ac_useropt"
1578 "*) ;;
1579       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1580          ac_unrecognized_sep=', ';;
1581     esac
1582     eval with_$ac_useropt=\$ac_optarg ;;
1583 
1584   -without-* | --without-*)
1585     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1586     # Reject names that are not valid shell variable names.
1587     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1588       as_fn_error $? "invalid package name: $ac_useropt"
1589     ac_useropt_orig=$ac_useropt
1590     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1591     case $ac_user_opts in
1592       *"
1593 "with_$ac_useropt"
1594 "*) ;;
1595       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1596          ac_unrecognized_sep=', ';;
1597     esac
1598     eval with_$ac_useropt=no ;;
1599 
1600   --x)
1601     # Obsolete; use --with-x.
1602     with_x=yes ;;
1603 
1604   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1605   | --x-incl | --x-inc | --x-in | --x-i)
1606     ac_prev=x_includes ;;
1607   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1608   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1609     x_includes=$ac_optarg ;;
1610 
1611   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1612   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1613     ac_prev=x_libraries ;;
1614   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1615   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1616     x_libraries=$ac_optarg ;;
1617 
1618   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1619 Try \`$0 --help' for more information"
1620     ;;
1621 
1622   *=*)
1623     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1624     # Reject names that are not valid shell variable names.
1625     case $ac_envvar in #(
1626       '' | [0-9]* | *[!_$as_cr_alnum]* )
1627       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1628     esac
1629     eval $ac_envvar=\$ac_optarg
1630     export $ac_envvar ;;
1631 
1632   *)
1633     # FIXME: should be removed in autoconf 3.0.
1634     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1635     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1636       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1637     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1638     ;;
1639 
1640   esac
1641 done
1642 
1643 if test -n "$ac_prev"; then
1644   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1645   as_fn_error $? "missing argument to $ac_option"
1646 fi
1647 
1648 if test -n "$ac_unrecognized_opts"; then
1649   case $enable_option_checking in
1650     no) ;;
1651     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1652     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1653   esac
1654 fi
1655 
1656 # Check all directory arguments for consistency.
1657 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1658                 datadir sysconfdir sharedstatedir localstatedir includedir \
1659                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1660                 libdir localedir mandir
1661 do
1662   eval ac_val=\$$ac_var
1663   # Remove trailing slashes.
1664   case $ac_val in
1665     */ )
1666       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1667       eval $ac_var=\$ac_val;;
1668   esac
1669   # Be sure to have absolute directory names.
1670   case $ac_val in
1671     [\\/$]* | ?:[\\/]* )  continue;;
1672     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1673   esac
1674   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1675 done
1676 
1677 # There might be people who depend on the old broken behavior: `$host'
1678 # used to hold the argument of --host etc.
1679 # FIXME: To remove some day.
1680 build=$build_alias
1681 host=$host_alias
1682 target=$target_alias
1683 
1684 # FIXME: To remove some day.
1685 if test "x$host_alias" != x; then
1686   if test "x$build_alias" = x; then
1687     cross_compiling=maybe
1688   elif test "x$build_alias" != "x$host_alias"; then
1689     cross_compiling=yes
1690   fi
1691 fi
1692 
1693 ac_tool_prefix=
1694 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1695 
1696 test "$silent" = yes && exec 6>/dev/null
1697 
1698 
1699 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1700 ac_ls_di=`ls -di .` &&
1701 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1702   as_fn_error $? "working directory cannot be determined"
1703 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1704   as_fn_error $? "pwd does not report name of working directory"
1705 
1706 
1707 # Find the source files, if location was not specified.
1708 if test -z "$srcdir"; then
1709   ac_srcdir_defaulted=yes
1710   # Try the directory containing this script, then the parent directory.
1711   ac_confdir=`$as_dirname -- "$as_myself" ||
1712 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1713          X"$as_myself" : 'X\(//\)[^/]' \| \
1714          X"$as_myself" : 'X\(//\)$' \| \
1715          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1716 $as_echo X"$as_myself" |
1717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1718             s//\1/
1719             q
1720           }
1721           /^X\(\/\/\)[^/].*/{
1722             s//\1/
1723             q
1724           }
1725           /^X\(\/\/\)$/{
1726             s//\1/
1727             q
1728           }
1729           /^X\(\/\).*/{
1730             s//\1/
1731             q
1732           }
1733           s/.*/./; q'`
1734   srcdir=$ac_confdir
1735   if test ! -r "$srcdir/$ac_unique_file"; then
1736     srcdir=..
1737   fi
1738 else
1739   ac_srcdir_defaulted=no
1740 fi
1741 if test ! -r "$srcdir/$ac_unique_file"; then
1742   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1743   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1744 fi
1745 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1746 ac_abs_confdir=`(
1747         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1748         pwd)`
1749 # When building in place, set srcdir=.
1750 if test "$ac_abs_confdir" = "$ac_pwd"; then
1751   srcdir=.
1752 fi
1753 # Remove unnecessary trailing slashes from srcdir.
1754 # Double slashes in file names in object file debugging info
1755 # mess up M-x gdb in Emacs.
1756 case $srcdir in
1757 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1758 esac
1759 for ac_var in $ac_precious_vars; do
1760   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1761   eval ac_env_${ac_var}_value=\$${ac_var}
1762   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1763   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1764 done
1765 
1766 #
1767 # Report the --help message.
1768 #
1769 if test "$ac_init_help" = "long"; then
1770   # Omit some internal or obsolete options to make the list less imposing.
1771   # This message is too long to be a string in the A/UX 3.1 sh.
1772   cat <<_ACEOF
1773 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1774 
1775 Usage: $0 [OPTION]... [VAR=VALUE]...
1776 
1777 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1778 VAR=VALUE.  See below for descriptions of some of the useful variables.
1779 
1780 Defaults for the options are specified in brackets.
1781 
1782 Configuration:
1783   -h, --help              display this help and exit
1784       --help=short        display options specific to this package
1785       --help=recursive    display the short help of all the included packages
1786   -V, --version           display version information and exit
1787   -q, --quiet, --silent   do not print \`checking ...' messages
1788       --cache-file=FILE   cache test results in FILE [disabled]
1789   -C, --config-cache      alias for \`--cache-file=config.cache'
1790   -n, --no-create         do not create output files
1791       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1792 
1793 Installation directories:
1794   --prefix=PREFIX         install architecture-independent files in PREFIX
1795                           [$ac_default_prefix]
1796   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1797                           [PREFIX]
1798 
1799 By default, \`make install' will install all the files in
1800 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1801 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1802 for instance \`--prefix=\$HOME'.
1803 
1804 For better control, use the options below.
1805 
1806 Fine tuning of the installation directories:
1807   --bindir=DIR            user executables [EPREFIX/bin]
1808   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1809   --libexecdir=DIR        program executables [EPREFIX/libexec]
1810   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1811   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1812   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1813   --libdir=DIR            object code libraries [EPREFIX/lib]
1814   --includedir=DIR        C header files [PREFIX/include]
1815   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1816   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1817   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1818   --infodir=DIR           info documentation [DATAROOTDIR/info]
1819   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1820   --mandir=DIR            man documentation [DATAROOTDIR/man]
1821   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1822   --htmldir=DIR           html documentation [DOCDIR]
1823   --dvidir=DIR            dvi documentation [DOCDIR]
1824   --pdfdir=DIR            pdf documentation [DOCDIR]
1825   --psdir=DIR             ps documentation [DOCDIR]
1826 _ACEOF
1827 
1828   cat <<\_ACEOF
1829 
1830 X features:
1831   --x-includes=DIR    X include files are in DIR
1832   --x-libraries=DIR   X library files are in DIR
1833 
1834 System types:
1835   --build=BUILD     configure for building on BUILD [guessed]
1836   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1837   --target=TARGET   configure for building compilers for TARGET [HOST]
1838 _ACEOF
1839 fi
1840 
1841 if test -n "$ac_init_help"; then
1842   case $ac_init_help in
1843      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1844    esac
1845   cat <<\_ACEOF
1846 
1847 Optional Features:
1848   --disable-option-checking  ignore unrecognized --enable/--with options
1849   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1850   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1851   --enable-openjdk-only   suppress building custom source even if present
1852                           [disabled]
1853   --enable-debug          set the debug level to fastdebug (shorthand for
1854                           --with-debug-level=fastdebug) [disabled]
1855   --disable-headful       disable building headful support (graphical UI
1856                           support) [enabled]
1857   --enable-hotspot-test-in-build
1858                           run the Queens test after Hotspot build [disabled]
1859   --enable-unlimited-crypto
1860                           Enable unlimited crypto policy [disabled]
1861   --enable-static-build   enable static library build [disabled]
1862   --disable-warnings-as-errors
1863                           do not consider native warnings to be an error
1864                           [enabled]
1865   --enable-debug-symbols  Deprecated. Option is kept for backwards
1866                           compatibility and is ignored
1867   --enable-zip-debug-info Deprecated. Option is kept for backwards
1868                           compatibility and is ignored
1869   --enable-native-coverage
1870                           enable native compilation with code coverage
1871                           data[disabled]
1872   --disable-freetype-bundling
1873                           disable bundling of the freetype library with the
1874                           build result [enabled on Windows or when using
1875                           --with-freetype, disabled otherwise]
1876   --enable-sjavac         use sjavac to do fast incremental compiles
1877                           [disabled]
1878   --enable-javac-server   use only the server part of sjavac for faster javac
1879                           compiles [disabled]
1880   --disable-precompiled-headers
1881                           disable using precompiled headers when compiling C++
1882                           [enabled]
1883   --enable-ccache         enable using ccache to speed up recompilations
1884                           [disabled]
1885 
1886 Optional Packages:
1887   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1888   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1889   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1890                           support it), e.g. --with-target-bits=32 [guessed]
1891   --with-custom-make-dir  Deprecated. Option is kept for backwards
1892                           compatibility and is ignored
1893   --with-jdk-variant      JDK variant to build (normal) [normal]
1894   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1895   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1896                           client, minimal1, kernel, zero, zeroshark, core)
1897                           [server]
1898   --with-debug-level      set the debug level (release, fastdebug, slowdebug,
1899                           optimized (HotSpot build only)) [release]
1900   --with-devkit           use this devkit for compilers, tools and resources
1901   --with-sys-root         alias for --with-sysroot for backwards compatability
1902   --with-sysroot          use this directory as sysroot
1903   --with-tools-dir        alias for --with-toolchain-path for backwards
1904                           compatibility
1905   --with-toolchain-path   prepend these directories when searching for
1906                           toolchain binaries (compilers etc)
1907   --with-extra-path       prepend these directories to the default path
1908   --with-sdk-name         use the platform SDK of the given name. [macosx]
1909   --with-conf-name        use this as the name of the configuration [generated
1910                           from important configuration options]
1911   --with-output-sync      set make output sync type if supported by make.
1912                           [recurse]
1913   --with-cacerts-file     specify alternative cacerts file
1914   --with-milestone        Set milestone value for build [internal]
1915   --with-update-version   Set update version value for build [b00]
1916   --with-user-release-suffix
1917                           Add a custom string to the version string if build
1918                           number is not set.[username_builddateb00]
1919   --with-build-number     Set build number value for build [b00]
1920   --with-copyright-year   Set copyright year value for build [current year]
1921   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1922   --with-add-source-root  Deprecated. Option is kept for backwards
1923                           compatibility and is ignored
1924   --with-override-source-root
1925                           Deprecated. Option is kept for backwards
1926                           compatibility and is ignored
1927   --with-adds-and-overrides
1928                           Deprecated. Option is kept for backwards
1929                           compatibility and is ignored
1930   --with-override-langtools
1931                           Deprecated. Option is kept for backwards
1932                           compatibility and is ignored
1933   --with-override-corba   Deprecated. Option is kept for backwards
1934                           compatibility and is ignored
1935   --with-override-jaxp    Deprecated. Option is kept for backwards
1936                           compatibility and is ignored
1937   --with-override-jaxws   Deprecated. Option is kept for backwards
1938                           compatibility and is ignored
1939   --with-override-hotspot Deprecated. Option is kept for backwards
1940                           compatibility and is ignored
1941   --with-override-nashorn Deprecated. Option is kept for backwards
1942                           compatibility and is ignored
1943   --with-override-jdk     Deprecated. Option is kept for backwards
1944                           compatibility and is ignored
1945   --with-import-hotspot   import hotspot binaries from this jdk image or
1946                           hotspot build dist dir instead of building from
1947                           source
1948   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
1949                           to show possible values [platform dependent]
1950   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1951   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1952   --with-extra-ldflags    extra flags to be used when linking jdk
1953   --with-toolchain-version
1954                           the version of the toolchain to look for, use
1955                           '--help' to show possible values [platform
1956                           dependent]
1957   --with-build-devkit     Devkit to use for the build platform toolchain
1958   --with-jtreg            Regression Test Harness [probed]
1959   --with-debug-symbols    set the debug symbol configuration (none, internal,
1960                           external, zipped) [zipped]
1961   --with-stdc++lib=<static>,<dynamic>,<default>
1962                           force linking of the C++ runtime on Linux to either
1963                           static or dynamic, default is static with dynamic as
1964                           fallback
1965   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
1966                           (Windows only) [probed]
1967   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
1968                           (Windows only) [probed]
1969   --with-x                use the X Window System
1970   --with-cups             specify prefix directory for the cups package
1971                           (expecting the headers under PATH/include)
1972   --with-cups-include     specify directory for the cups include files
1973   --with-freetype         specify prefix directory for the freetype package
1974                           (expecting the libraries under PATH/lib and the
1975                           headers under PATH/include)
1976   --with-freetype-include specify directory for the freetype include files
1977   --with-freetype-lib     specify directory for the freetype library
1978   --with-freetype-src     specify directory with freetype sources to
1979                           automatically build the library (experimental,
1980                           Windows-only)
1981   --with-alsa             specify prefix directory for the alsa package
1982                           (expecting the libraries under PATH/lib and the
1983                           headers under PATH/include)
1984   --with-alsa-include     specify directory for the alsa include files
1985   --with-alsa-lib         specify directory for the alsa library
1986   --with-libffi           specify prefix directory for the libffi package
1987                           (expecting the libraries under PATH/lib and the
1988                           headers under PATH/include)
1989   --with-libffi-include   specify directory for the libffi include files
1990   --with-libffi-lib       specify directory for the libffi library
1991   --with-libjpeg          use libjpeg from build system or OpenJDK source
1992                           (system, bundled) [bundled]
1993   --with-giflib           use giflib from build system or OpenJDK source
1994                           (system, bundled) [bundled]
1995   --with-libpng           use libpng from build system or OpenJDK source
1996                           (system, bundled) [bundled]
1997   --with-zlib             use zlib from build system or OpenJDK source
1998                           (system, bundled) [bundled]
1999   --with-lcms             use lcms2 from build system or OpenJDK source
2000                           (system, bundled) [bundled]
2001   --with-dxsdk            Deprecated. Option is kept for backwards
2002                           compatibility and is ignored
2003   --with-dxsdk-lib        Deprecated. Option is kept for backwards
2004                           compatibility and is ignored
2005   --with-dxsdk-include    Deprecated. Option is kept for backwards
2006                           compatibility and is ignored
2007   --with-num-cores        number of cores in the build system, e.g.
2008                           --with-num-cores=8 [probed]
2009   --with-memory-size      memory (in MB) available in the build system, e.g.
2010                           --with-memory-size=1024 [probed]
2011   --with-jobs             number of parallel jobs to let make run [calculated
2012                           based on cores and memory]
2013   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
2014                           invocations of boot JDK, overriding the default
2015                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
2016                           -enableassertions"
2017   --with-sjavac-server-java
2018                           use this java binary for running the sjavac
2019                           background server [Boot JDK java]
2020   --with-ccache-dir       where to store ccache files [~/.ccache]
2021 
2022 Some influential environment variables:
2023   BASENAME    Override default value for BASENAME
2024   BASH        Override default value for BASH
2025   CAT         Override default value for CAT
2026   CHMOD       Override default value for CHMOD
2027   CMP         Override default value for CMP
2028   COMM        Override default value for COMM
2029   CP          Override default value for CP
2030   CUT         Override default value for CUT
2031   DATE        Override default value for DATE
2032   DIFF        Override default value for DIFF
2033   DIRNAME     Override default value for DIRNAME
2034   ECHO        Override default value for ECHO
2035   EXPR        Override default value for EXPR
2036   FILE        Override default value for FILE
2037   FIND        Override default value for FIND
2038   HEAD        Override default value for HEAD
2039   LN          Override default value for LN
2040   LS          Override default value for LS
2041   MKDIR       Override default value for MKDIR
2042   MKTEMP      Override default value for MKTEMP
2043   MV          Override default value for MV
2044   NAWK        Override default value for NAWK
2045   PRINTF      Override default value for PRINTF
2046   RM          Override default value for RM
2047   RMDIR       Override default value for RMDIR
2048   SH          Override default value for SH
2049   SORT        Override default value for SORT
2050   TAIL        Override default value for TAIL
2051   TAR         Override default value for TAR
2052   TEE         Override default value for TEE
2053   TOUCH       Override default value for TOUCH
2054   TR          Override default value for TR
2055   UNAME       Override default value for UNAME
2056   UNIQ        Override default value for UNIQ
2057   WC          Override default value for WC
2058   WHICH       Override default value for WHICH
2059   XARGS       Override default value for XARGS
2060   AWK         Override default value for AWK
2061   GREP        Override default value for GREP
2062   EGREP       Override default value for EGREP
2063   FGREP       Override default value for FGREP
2064   SED         Override default value for SED
2065   CYGPATH     Override default value for CYGPATH
2066   READLINK    Override default value for READLINK
2067   DF          Override default value for DF
2068   CPIO        Override default value for CPIO
2069   NICE        Override default value for NICE
2070   MAKE        Override default value for MAKE
2071   UNZIP       Override default value for UNZIP
2072   ZIP         Override default value for ZIP
2073   LDD         Override default value for LDD
2074   OTOOL       Override default value for OTOOL
2075   READELF     Override default value for READELF
2076   HG          Override default value for HG
2077   STAT        Override default value for STAT
2078   TIME        Override default value for TIME
2079   PATCH       Override default value for PATCH
2080   DSYMUTIL    Override default value for DSYMUTIL
2081   XATTR       Override default value for XATTR
2082   CODESIGN    Override default value for CODESIGN
2083   SETFILE     Override default value for SETFILE
2084   PKG_CONFIG  path to pkg-config utility
2085   JAVA        Override default value for JAVA
2086   JAVAC       Override default value for JAVAC
2087   JAVAH       Override default value for JAVAH
2088   JAR         Override default value for JAR
2089   JARSIGNER   Override default value for JARSIGNER
2090   CC          C compiler command
2091   CFLAGS      C compiler flags
2092   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2093               nonstandard directory <lib dir>
2094   LIBS        libraries to pass to the linker, e.g. -l<library>
2095   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2096               you have headers in a nonstandard directory <include dir>
2097   CXX         C++ compiler command
2098   CXXFLAGS    C++ compiler flags
2099   CPP         C preprocessor
2100   CXXCPP      C++ preprocessor
2101   AS          Override default value for AS
2102   AR          Override default value for AR
2103   LIPO        Override default value for LIPO
2104   STRIP       Override default value for STRIP
2105   NM          Override default value for NM
2106   GNM         Override default value for GNM
2107   OBJCOPY     Override default value for OBJCOPY
2108   OBJDUMP     Override default value for OBJDUMP
2109   BUILD_CC    Override default value for BUILD_CC
2110   BUILD_CXX   Override default value for BUILD_CXX
2111   JTREGEXE    Override default value for JTREGEXE
2112   XMKMF       Path to xmkmf, Makefile generator for X Window System
2113   FREETYPE_CFLAGS
2114               C compiler flags for FREETYPE, overriding pkg-config
2115   FREETYPE_LIBS
2116               linker flags for FREETYPE, overriding pkg-config
2117   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2118   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2119   LIBFFI_CFLAGS
2120               C compiler flags for LIBFFI, overriding pkg-config
2121   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2122   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2123   PNG_LIBS    linker flags for PNG, overriding pkg-config
2124   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2125   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
2126   CCACHE      Override default value for CCACHE
2127 
2128 Use these variables to override the choices made by `configure' or to help
2129 it to find libraries and programs with nonstandard names/locations.
2130 
2131 Report bugs to <build-dev@openjdk.java.net>.
2132 OpenJDK home page: <http://openjdk.java.net>.
2133 _ACEOF
2134 ac_status=$?
2135 fi
2136 
2137 if test "$ac_init_help" = "recursive"; then
2138   # If there are subdirs, report their specific --help.
2139   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2140     test -d "$ac_dir" ||
2141       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2142       continue
2143     ac_builddir=.
2144 
2145 case "$ac_dir" in
2146 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2147 *)
2148   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2149   # A ".." for each directory in $ac_dir_suffix.
2150   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2151   case $ac_top_builddir_sub in
2152   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2153   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2154   esac ;;
2155 esac
2156 ac_abs_top_builddir=$ac_pwd
2157 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2158 # for backward compatibility:
2159 ac_top_builddir=$ac_top_build_prefix
2160 
2161 case $srcdir in
2162   .)  # We are building in place.
2163     ac_srcdir=.
2164     ac_top_srcdir=$ac_top_builddir_sub
2165     ac_abs_top_srcdir=$ac_pwd ;;
2166   [\\/]* | ?:[\\/]* )  # Absolute name.
2167     ac_srcdir=$srcdir$ac_dir_suffix;
2168     ac_top_srcdir=$srcdir
2169     ac_abs_top_srcdir=$srcdir ;;
2170   *) # Relative name.
2171     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2172     ac_top_srcdir=$ac_top_build_prefix$srcdir
2173     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2174 esac
2175 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2176 
2177     cd "$ac_dir" || { ac_status=$?; continue; }
2178     # Check for guested configure.
2179     if test -f "$ac_srcdir/configure.gnu"; then
2180       echo &&
2181       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2182     elif test -f "$ac_srcdir/configure"; then
2183       echo &&
2184       $SHELL "$ac_srcdir/configure" --help=recursive
2185     else
2186       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2187     fi || ac_status=$?
2188     cd "$ac_pwd" || { ac_status=$?; break; }
2189   done
2190 fi
2191 
2192 test -n "$ac_init_help" && exit $ac_status
2193 if $ac_init_version; then
2194   cat <<\_ACEOF
2195 OpenJDK configure jdk9
2196 generated by GNU Autoconf 2.69
2197 
2198 Copyright (C) 2012 Free Software Foundation, Inc.
2199 This configure script is free software; the Free Software Foundation
2200 gives unlimited permission to copy, distribute and modify it.
2201 _ACEOF
2202   exit
2203 fi
2204 
2205 ## ------------------------ ##
2206 ## Autoconf initialization. ##
2207 ## ------------------------ ##
2208 
2209 # ac_fn_c_try_compile LINENO
2210 # --------------------------
2211 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2212 ac_fn_c_try_compile ()
2213 {
2214   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2215   rm -f conftest.$ac_objext
2216   if { { ac_try="$ac_compile"
2217 case "(($ac_try" in
2218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2219   *) ac_try_echo=$ac_try;;
2220 esac
2221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2222 $as_echo "$ac_try_echo"; } >&5
2223   (eval "$ac_compile") 2>conftest.err
2224   ac_status=$?
2225   if test -s conftest.err; then
2226     grep -v '^ *+' conftest.err >conftest.er1
2227     cat conftest.er1 >&5
2228     mv -f conftest.er1 conftest.err
2229   fi
2230   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2231   test $ac_status = 0; } && {
2232          test -z "$ac_c_werror_flag" ||
2233          test ! -s conftest.err
2234        } && test -s conftest.$ac_objext; then :
2235   ac_retval=0
2236 else
2237   $as_echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2239 
2240         ac_retval=1
2241 fi
2242   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2243   as_fn_set_status $ac_retval
2244 
2245 } # ac_fn_c_try_compile
2246 
2247 # ac_fn_cxx_try_compile LINENO
2248 # ----------------------------
2249 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2250 ac_fn_cxx_try_compile ()
2251 {
2252   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253   rm -f conftest.$ac_objext
2254   if { { ac_try="$ac_compile"
2255 case "(($ac_try" in
2256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2257   *) ac_try_echo=$ac_try;;
2258 esac
2259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2260 $as_echo "$ac_try_echo"; } >&5
2261   (eval "$ac_compile") 2>conftest.err
2262   ac_status=$?
2263   if test -s conftest.err; then
2264     grep -v '^ *+' conftest.err >conftest.er1
2265     cat conftest.er1 >&5
2266     mv -f conftest.er1 conftest.err
2267   fi
2268   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2269   test $ac_status = 0; } && {
2270          test -z "$ac_cxx_werror_flag" ||
2271          test ! -s conftest.err
2272        } && test -s conftest.$ac_objext; then :
2273   ac_retval=0
2274 else
2275   $as_echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2277 
2278         ac_retval=1
2279 fi
2280   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2281   as_fn_set_status $ac_retval
2282 
2283 } # ac_fn_cxx_try_compile
2284 
2285 # ac_fn_c_try_cpp LINENO
2286 # ----------------------
2287 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2288 ac_fn_c_try_cpp ()
2289 {
2290   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2291   if { { ac_try="$ac_cpp conftest.$ac_ext"
2292 case "(($ac_try" in
2293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2294   *) ac_try_echo=$ac_try;;
2295 esac
2296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2297 $as_echo "$ac_try_echo"; } >&5
2298   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2299   ac_status=$?
2300   if test -s conftest.err; then
2301     grep -v '^ *+' conftest.err >conftest.er1
2302     cat conftest.er1 >&5
2303     mv -f conftest.er1 conftest.err
2304   fi
2305   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2306   test $ac_status = 0; } > conftest.i && {
2307          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2308          test ! -s conftest.err
2309        }; then :
2310   ac_retval=0
2311 else
2312   $as_echo "$as_me: failed program was:" >&5
2313 sed 's/^/| /' conftest.$ac_ext >&5
2314 
2315     ac_retval=1
2316 fi
2317   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2318   as_fn_set_status $ac_retval
2319 
2320 } # ac_fn_c_try_cpp
2321 
2322 # ac_fn_cxx_try_cpp LINENO
2323 # ------------------------
2324 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2325 ac_fn_cxx_try_cpp ()
2326 {
2327   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2328   if { { ac_try="$ac_cpp conftest.$ac_ext"
2329 case "(($ac_try" in
2330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2331   *) ac_try_echo=$ac_try;;
2332 esac
2333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2334 $as_echo "$ac_try_echo"; } >&5
2335   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2336   ac_status=$?
2337   if test -s conftest.err; then
2338     grep -v '^ *+' conftest.err >conftest.er1
2339     cat conftest.er1 >&5
2340     mv -f conftest.er1 conftest.err
2341   fi
2342   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2343   test $ac_status = 0; } > conftest.i && {
2344          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2345          test ! -s conftest.err
2346        }; then :
2347   ac_retval=0
2348 else
2349   $as_echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.$ac_ext >&5
2351 
2352     ac_retval=1
2353 fi
2354   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2355   as_fn_set_status $ac_retval
2356 
2357 } # ac_fn_cxx_try_cpp
2358 
2359 # ac_fn_c_try_link LINENO
2360 # -----------------------
2361 # Try to link conftest.$ac_ext, and return whether this succeeded.
2362 ac_fn_c_try_link ()
2363 {
2364   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2365   rm -f conftest.$ac_objext conftest$ac_exeext
2366   if { { ac_try="$ac_link"
2367 case "(($ac_try" in
2368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2369   *) ac_try_echo=$ac_try;;
2370 esac
2371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2372 $as_echo "$ac_try_echo"; } >&5
2373   (eval "$ac_link") 2>conftest.err
2374   ac_status=$?
2375   if test -s conftest.err; then
2376     grep -v '^ *+' conftest.err >conftest.er1
2377     cat conftest.er1 >&5
2378     mv -f conftest.er1 conftest.err
2379   fi
2380   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2381   test $ac_status = 0; } && {
2382          test -z "$ac_c_werror_flag" ||
2383          test ! -s conftest.err
2384        } && test -s conftest$ac_exeext && {
2385          test "$cross_compiling" = yes ||
2386          test -x conftest$ac_exeext
2387        }; then :
2388   ac_retval=0
2389 else
2390   $as_echo "$as_me: failed program was:" >&5
2391 sed 's/^/| /' conftest.$ac_ext >&5
2392 
2393         ac_retval=1
2394 fi
2395   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2396   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2397   # interfere with the next link command; also delete a directory that is
2398   # left behind by Apple's compiler.  We do this before executing the actions.
2399   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2400   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2401   as_fn_set_status $ac_retval
2402 
2403 } # ac_fn_c_try_link
2404 
2405 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2406 # ---------------------------------------------------------
2407 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2408 # the include files in INCLUDES and setting the cache variable VAR
2409 # accordingly.
2410 ac_fn_cxx_check_header_mongrel ()
2411 {
2412   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2413   if eval \${$3+:} false; then :
2414   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2415 $as_echo_n "checking for $2... " >&6; }
2416 if eval \${$3+:} false; then :
2417   $as_echo_n "(cached) " >&6
2418 fi
2419 eval ac_res=\$$3
2420                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2421 $as_echo "$ac_res" >&6; }
2422 else
2423   # Is the header compilable?
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2425 $as_echo_n "checking $2 usability... " >&6; }
2426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2427 /* end confdefs.h.  */
2428 $4
2429 #include <$2>
2430 _ACEOF
2431 if ac_fn_cxx_try_compile "$LINENO"; then :
2432   ac_header_compiler=yes
2433 else
2434   ac_header_compiler=no
2435 fi
2436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2438 $as_echo "$ac_header_compiler" >&6; }
2439 
2440 # Is the header present?
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2442 $as_echo_n "checking $2 presence... " >&6; }
2443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h.  */
2445 #include <$2>
2446 _ACEOF
2447 if ac_fn_cxx_try_cpp "$LINENO"; then :
2448   ac_header_preproc=yes
2449 else
2450   ac_header_preproc=no
2451 fi
2452 rm -f conftest.err conftest.i conftest.$ac_ext
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2454 $as_echo "$ac_header_preproc" >&6; }
2455 
2456 # So?  What about this header?
2457 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2458   yes:no: )
2459     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2460 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2461     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2462 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2463     ;;
2464   no:yes:* )
2465     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2466 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2467     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2468 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2469     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2470 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2471     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2472 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2473     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2474 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2475 ( $as_echo "## ----------------------------------------- ##
2476 ## Report this to build-dev@openjdk.java.net ##
2477 ## ----------------------------------------- ##"
2478      ) | sed "s/^/$as_me: WARNING:     /" >&2
2479     ;;
2480 esac
2481   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2482 $as_echo_n "checking for $2... " >&6; }
2483 if eval \${$3+:} false; then :
2484   $as_echo_n "(cached) " >&6
2485 else
2486   eval "$3=\$ac_header_compiler"
2487 fi
2488 eval ac_res=\$$3
2489                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2490 $as_echo "$ac_res" >&6; }
2491 fi
2492   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2493 
2494 } # ac_fn_cxx_check_header_mongrel
2495 
2496 # ac_fn_cxx_try_run LINENO
2497 # ------------------------
2498 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2499 # that executables *can* be run.
2500 ac_fn_cxx_try_run ()
2501 {
2502   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2503   if { { ac_try="$ac_link"
2504 case "(($ac_try" in
2505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506   *) ac_try_echo=$ac_try;;
2507 esac
2508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2509 $as_echo "$ac_try_echo"; } >&5
2510   (eval "$ac_link") 2>&5
2511   ac_status=$?
2512   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2513   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2514   { { case "(($ac_try" in
2515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516   *) ac_try_echo=$ac_try;;
2517 esac
2518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2519 $as_echo "$ac_try_echo"; } >&5
2520   (eval "$ac_try") 2>&5
2521   ac_status=$?
2522   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2523   test $ac_status = 0; }; }; then :
2524   ac_retval=0
2525 else
2526   $as_echo "$as_me: program exited with status $ac_status" >&5
2527        $as_echo "$as_me: failed program was:" >&5
2528 sed 's/^/| /' conftest.$ac_ext >&5
2529 
2530        ac_retval=$ac_status
2531 fi
2532   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2533   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2534   as_fn_set_status $ac_retval
2535 
2536 } # ac_fn_cxx_try_run
2537 
2538 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2539 # ---------------------------------------------------------
2540 # Tests whether HEADER exists and can be compiled using the include files in
2541 # INCLUDES, setting the cache variable VAR accordingly.
2542 ac_fn_cxx_check_header_compile ()
2543 {
2544   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2545   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2546 $as_echo_n "checking for $2... " >&6; }
2547 if eval \${$3+:} false; then :
2548   $as_echo_n "(cached) " >&6
2549 else
2550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2551 /* end confdefs.h.  */
2552 $4
2553 #include <$2>
2554 _ACEOF
2555 if ac_fn_cxx_try_compile "$LINENO"; then :
2556   eval "$3=yes"
2557 else
2558   eval "$3=no"
2559 fi
2560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2561 fi
2562 eval ac_res=\$$3
2563                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2564 $as_echo "$ac_res" >&6; }
2565   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2566 
2567 } # ac_fn_cxx_check_header_compile
2568 
2569 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2570 # ----------------------------------------------
2571 # Tries to find the compile-time value of EXPR in a program that includes
2572 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2573 # computed
2574 ac_fn_cxx_compute_int ()
2575 {
2576   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2577   if test "$cross_compiling" = yes; then
2578     # Depending upon the size, compute the lo and hi bounds.
2579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580 /* end confdefs.h.  */
2581 $4
2582 int
2583 main ()
2584 {
2585 static int test_array [1 - 2 * !(($2) >= 0)];
2586 test_array [0] = 0;
2587 return test_array [0];
2588 
2589   ;
2590   return 0;
2591 }
2592 _ACEOF
2593 if ac_fn_cxx_try_compile "$LINENO"; then :
2594   ac_lo=0 ac_mid=0
2595   while :; do
2596     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2597 /* end confdefs.h.  */
2598 $4
2599 int
2600 main ()
2601 {
2602 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2603 test_array [0] = 0;
2604 return test_array [0];
2605 
2606   ;
2607   return 0;
2608 }
2609 _ACEOF
2610 if ac_fn_cxx_try_compile "$LINENO"; then :
2611   ac_hi=$ac_mid; break
2612 else
2613   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2614                         if test $ac_lo -le $ac_mid; then
2615                           ac_lo= ac_hi=
2616                           break
2617                         fi
2618                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2619 fi
2620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2621   done
2622 else
2623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624 /* end confdefs.h.  */
2625 $4
2626 int
2627 main ()
2628 {
2629 static int test_array [1 - 2 * !(($2) < 0)];
2630 test_array [0] = 0;
2631 return test_array [0];
2632 
2633   ;
2634   return 0;
2635 }
2636 _ACEOF
2637 if ac_fn_cxx_try_compile "$LINENO"; then :
2638   ac_hi=-1 ac_mid=-1
2639   while :; do
2640     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2641 /* end confdefs.h.  */
2642 $4
2643 int
2644 main ()
2645 {
2646 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2647 test_array [0] = 0;
2648 return test_array [0];
2649 
2650   ;
2651   return 0;
2652 }
2653 _ACEOF
2654 if ac_fn_cxx_try_compile "$LINENO"; then :
2655   ac_lo=$ac_mid; break
2656 else
2657   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2658                         if test $ac_mid -le $ac_hi; then
2659                           ac_lo= ac_hi=
2660                           break
2661                         fi
2662                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2663 fi
2664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2665   done
2666 else
2667   ac_lo= ac_hi=
2668 fi
2669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2670 fi
2671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2672 # Binary search between lo and hi bounds.
2673 while test "x$ac_lo" != "x$ac_hi"; do
2674   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2676 /* end confdefs.h.  */
2677 $4
2678 int
2679 main ()
2680 {
2681 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2682 test_array [0] = 0;
2683 return test_array [0];
2684 
2685   ;
2686   return 0;
2687 }
2688 _ACEOF
2689 if ac_fn_cxx_try_compile "$LINENO"; then :
2690   ac_hi=$ac_mid
2691 else
2692   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2693 fi
2694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2695 done
2696 case $ac_lo in #((
2697 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2698 '') ac_retval=1 ;;
2699 esac
2700   else
2701     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2702 /* end confdefs.h.  */
2703 $4
2704 static long int longval () { return $2; }
2705 static unsigned long int ulongval () { return $2; }
2706 #include <stdio.h>
2707 #include <stdlib.h>
2708 int
2709 main ()
2710 {
2711 
2712   FILE *f = fopen ("conftest.val", "w");
2713   if (! f)
2714     return 1;
2715   if (($2) < 0)
2716     {
2717       long int i = longval ();
2718       if (i != ($2))
2719         return 1;
2720       fprintf (f, "%ld", i);
2721     }
2722   else
2723     {
2724       unsigned long int i = ulongval ();
2725       if (i != ($2))
2726         return 1;
2727       fprintf (f, "%lu", i);
2728     }
2729   /* Do not output a trailing newline, as this causes \r\n confusion
2730      on some platforms.  */
2731   return ferror (f) || fclose (f) != 0;
2732 
2733   ;
2734   return 0;
2735 }
2736 _ACEOF
2737 if ac_fn_cxx_try_run "$LINENO"; then :
2738   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2739 else
2740   ac_retval=1
2741 fi
2742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2743   conftest.$ac_objext conftest.beam conftest.$ac_ext
2744 rm -f conftest.val
2745 
2746   fi
2747   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2748   as_fn_set_status $ac_retval
2749 
2750 } # ac_fn_cxx_compute_int
2751 
2752 # ac_fn_cxx_try_link LINENO
2753 # -------------------------
2754 # Try to link conftest.$ac_ext, and return whether this succeeded.
2755 ac_fn_cxx_try_link ()
2756 {
2757   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2758   rm -f conftest.$ac_objext conftest$ac_exeext
2759   if { { ac_try="$ac_link"
2760 case "(($ac_try" in
2761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762   *) ac_try_echo=$ac_try;;
2763 esac
2764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2765 $as_echo "$ac_try_echo"; } >&5
2766   (eval "$ac_link") 2>conftest.err
2767   ac_status=$?
2768   if test -s conftest.err; then
2769     grep -v '^ *+' conftest.err >conftest.er1
2770     cat conftest.er1 >&5
2771     mv -f conftest.er1 conftest.err
2772   fi
2773   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2774   test $ac_status = 0; } && {
2775          test -z "$ac_cxx_werror_flag" ||
2776          test ! -s conftest.err
2777        } && test -s conftest$ac_exeext && {
2778          test "$cross_compiling" = yes ||
2779          test -x conftest$ac_exeext
2780        }; then :
2781   ac_retval=0
2782 else
2783   $as_echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2785 
2786         ac_retval=1
2787 fi
2788   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2789   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2790   # interfere with the next link command; also delete a directory that is
2791   # left behind by Apple's compiler.  We do this before executing the actions.
2792   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2793   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2794   as_fn_set_status $ac_retval
2795 
2796 } # ac_fn_cxx_try_link
2797 
2798 # ac_fn_cxx_check_func LINENO FUNC VAR
2799 # ------------------------------------
2800 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2801 ac_fn_cxx_check_func ()
2802 {
2803   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2805 $as_echo_n "checking for $2... " >&6; }
2806 if eval \${$3+:} false; then :
2807   $as_echo_n "(cached) " >&6
2808 else
2809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2810 /* end confdefs.h.  */
2811 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2812    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2813 #define $2 innocuous_$2
2814 
2815 /* System header to define __stub macros and hopefully few prototypes,
2816     which can conflict with char $2 (); below.
2817     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2818     <limits.h> exists even on freestanding compilers.  */
2819 
2820 #ifdef __STDC__
2821 # include <limits.h>
2822 #else
2823 # include <assert.h>
2824 #endif
2825 
2826 #undef $2
2827 
2828 /* Override any GCC internal prototype to avoid an error.
2829    Use char because int might match the return type of a GCC
2830    builtin and then its argument prototype would still apply.  */
2831 #ifdef __cplusplus
2832 extern "C"
2833 #endif
2834 char $2 ();
2835 /* The GNU C library defines this for functions which it implements
2836     to always fail with ENOSYS.  Some functions are actually named
2837     something starting with __ and the normal name is an alias.  */
2838 #if defined __stub_$2 || defined __stub___$2
2839 choke me
2840 #endif
2841 
2842 int
2843 main ()
2844 {
2845 return $2 ();
2846   ;
2847   return 0;
2848 }
2849 _ACEOF
2850 if ac_fn_cxx_try_link "$LINENO"; then :
2851   eval "$3=yes"
2852 else
2853   eval "$3=no"
2854 fi
2855 rm -f core conftest.err conftest.$ac_objext \
2856     conftest$ac_exeext conftest.$ac_ext
2857 fi
2858 eval ac_res=\$$3
2859                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2860 $as_echo "$ac_res" >&6; }
2861   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2862 
2863 } # ac_fn_cxx_check_func
2864 
2865 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2866 # -------------------------------------------------------
2867 # Tests whether HEADER exists and can be compiled using the include files in
2868 # INCLUDES, setting the cache variable VAR accordingly.
2869 ac_fn_c_check_header_compile ()
2870 {
2871   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2873 $as_echo_n "checking for $2... " >&6; }
2874 if eval \${$3+:} false; then :
2875   $as_echo_n "(cached) " >&6
2876 else
2877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2878 /* end confdefs.h.  */
2879 $4
2880 #include <$2>
2881 _ACEOF
2882 if ac_fn_c_try_compile "$LINENO"; then :
2883   eval "$3=yes"
2884 else
2885   eval "$3=no"
2886 fi
2887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2888 fi
2889 eval ac_res=\$$3
2890                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2891 $as_echo "$ac_res" >&6; }
2892   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2893 
2894 } # ac_fn_c_check_header_compile
2895 cat >config.log <<_ACEOF
2896 This file contains any messages produced by compilers while
2897 running configure, to aid debugging if configure makes a mistake.
2898 
2899 It was created by OpenJDK $as_me jdk9, which was
2900 generated by GNU Autoconf 2.69.  Invocation command line was
2901 
2902   $ $0 $@
2903 
2904 _ACEOF
2905 exec 5>>config.log
2906 {
2907 cat <<_ASUNAME
2908 ## --------- ##
2909 ## Platform. ##
2910 ## --------- ##
2911 
2912 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2913 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2914 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2915 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2916 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2917 
2918 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2919 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2920 
2921 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2922 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2923 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2924 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2925 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2926 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2927 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2928 
2929 _ASUNAME
2930 
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 for as_dir in $PATH
2933 do
2934   IFS=$as_save_IFS
2935   test -z "$as_dir" && as_dir=.
2936     $as_echo "PATH: $as_dir"
2937   done
2938 IFS=$as_save_IFS
2939 
2940 } >&5
2941 
2942 cat >&5 <<_ACEOF
2943 
2944 
2945 ## ----------- ##
2946 ## Core tests. ##
2947 ## ----------- ##
2948 
2949 _ACEOF
2950 
2951 
2952 # Keep a trace of the command line.
2953 # Strip out --no-create and --no-recursion so they do not pile up.
2954 # Strip out --silent because we don't want to record it for future runs.
2955 # Also quote any args containing shell meta-characters.
2956 # Make two passes to allow for proper duplicate-argument suppression.
2957 ac_configure_args=
2958 ac_configure_args0=
2959 ac_configure_args1=
2960 ac_must_keep_next=false
2961 for ac_pass in 1 2
2962 do
2963   for ac_arg
2964   do
2965     case $ac_arg in
2966     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2967     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2968     | -silent | --silent | --silen | --sile | --sil)
2969       continue ;;
2970     *\'*)
2971       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2972     esac
2973     case $ac_pass in
2974     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2975     2)
2976       as_fn_append ac_configure_args1 " '$ac_arg'"
2977       if test $ac_must_keep_next = true; then
2978         ac_must_keep_next=false # Got value, back to normal.
2979       else
2980         case $ac_arg in
2981           *=* | --config-cache | -C | -disable-* | --disable-* \
2982           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2983           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2984           | -with-* | --with-* | -without-* | --without-* | --x)
2985             case "$ac_configure_args0 " in
2986               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2987             esac
2988             ;;
2989           -* ) ac_must_keep_next=true ;;
2990         esac
2991       fi
2992       as_fn_append ac_configure_args " '$ac_arg'"
2993       ;;
2994     esac
2995   done
2996 done
2997 { ac_configure_args0=; unset ac_configure_args0;}
2998 { ac_configure_args1=; unset ac_configure_args1;}
2999 
3000 # When interrupted or exit'd, cleanup temporary files, and complete
3001 # config.log.  We remove comments because anyway the quotes in there
3002 # would cause problems or look ugly.
3003 # WARNING: Use '\'' to represent an apostrophe within the trap.
3004 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3005 trap 'exit_status=$?
3006   # Save into config.log some information that might help in debugging.
3007   {
3008     echo
3009 
3010     $as_echo "## ---------------- ##
3011 ## Cache variables. ##
3012 ## ---------------- ##"
3013     echo
3014     # The following way of writing the cache mishandles newlines in values,
3015 (
3016   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3017     eval ac_val=\$$ac_var
3018     case $ac_val in #(
3019     *${as_nl}*)
3020       case $ac_var in #(
3021       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3022 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3023       esac
3024       case $ac_var in #(
3025       _ | IFS | as_nl) ;; #(
3026       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3027       *) { eval $ac_var=; unset $ac_var;} ;;
3028       esac ;;
3029     esac
3030   done
3031   (set) 2>&1 |
3032     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3033     *${as_nl}ac_space=\ *)
3034       sed -n \
3035         "s/'\''/'\''\\\\'\'''\''/g;
3036           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3037       ;; #(
3038     *)
3039       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3040       ;;
3041     esac |
3042     sort
3043 )
3044     echo
3045 
3046     $as_echo "## ----------------- ##
3047 ## Output variables. ##
3048 ## ----------------- ##"
3049     echo
3050     for ac_var in $ac_subst_vars
3051     do
3052       eval ac_val=\$$ac_var
3053       case $ac_val in
3054       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3055       esac
3056       $as_echo "$ac_var='\''$ac_val'\''"
3057     done | sort
3058     echo
3059 
3060     if test -n "$ac_subst_files"; then
3061       $as_echo "## ------------------- ##
3062 ## File substitutions. ##
3063 ## ------------------- ##"
3064       echo
3065       for ac_var in $ac_subst_files
3066       do
3067         eval ac_val=\$$ac_var
3068         case $ac_val in
3069         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3070         esac
3071         $as_echo "$ac_var='\''$ac_val'\''"
3072       done | sort
3073       echo
3074     fi
3075 
3076     if test -s confdefs.h; then
3077       $as_echo "## ----------- ##
3078 ## confdefs.h. ##
3079 ## ----------- ##"
3080       echo
3081       cat confdefs.h
3082       echo
3083     fi
3084     test "$ac_signal" != 0 &&
3085       $as_echo "$as_me: caught signal $ac_signal"
3086     $as_echo "$as_me: exit $exit_status"
3087   } >&5
3088   rm -f core *.core core.conftest.* &&
3089     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3090     exit $exit_status
3091 ' 0
3092 for ac_signal in 1 2 13 15; do
3093   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3094 done
3095 ac_signal=0
3096 
3097 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3098 rm -f -r conftest* confdefs.h
3099 
3100 $as_echo "/* confdefs.h */" > confdefs.h
3101 
3102 # Predefined preprocessor variables.
3103 
3104 cat >>confdefs.h <<_ACEOF
3105 #define PACKAGE_NAME "$PACKAGE_NAME"
3106 _ACEOF
3107 
3108 cat >>confdefs.h <<_ACEOF
3109 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3110 _ACEOF
3111 
3112 cat >>confdefs.h <<_ACEOF
3113 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3114 _ACEOF
3115 
3116 cat >>confdefs.h <<_ACEOF
3117 #define PACKAGE_STRING "$PACKAGE_STRING"
3118 _ACEOF
3119 
3120 cat >>confdefs.h <<_ACEOF
3121 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3122 _ACEOF
3123 
3124 cat >>confdefs.h <<_ACEOF
3125 #define PACKAGE_URL "$PACKAGE_URL"
3126 _ACEOF
3127 
3128 
3129 # Let the site file select an alternate cache file if it wants to.
3130 # Prefer an explicitly selected file to automatically selected ones.
3131 ac_site_file1=NONE
3132 ac_site_file2=NONE
3133 if test -n "$CONFIG_SITE"; then
3134   # We do not want a PATH search for config.site.
3135   case $CONFIG_SITE in #((
3136     -*)  ac_site_file1=./$CONFIG_SITE;;
3137     */*) ac_site_file1=$CONFIG_SITE;;
3138     *)   ac_site_file1=./$CONFIG_SITE;;
3139   esac
3140 elif test "x$prefix" != xNONE; then
3141   ac_site_file1=$prefix/share/config.site
3142   ac_site_file2=$prefix/etc/config.site
3143 else
3144   ac_site_file1=$ac_default_prefix/share/config.site
3145   ac_site_file2=$ac_default_prefix/etc/config.site
3146 fi
3147 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3148 do
3149   test "x$ac_site_file" = xNONE && continue
3150   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3151     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3152 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3153     sed 's/^/| /' "$ac_site_file" >&5
3154     . "$ac_site_file" \
3155       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157 as_fn_error $? "failed to load site script $ac_site_file
3158 See \`config.log' for more details" "$LINENO" 5; }
3159   fi
3160 done
3161 
3162 if test -r "$cache_file"; then
3163   # Some versions of bash will fail to source /dev/null (special files
3164   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3165   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3166     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3167 $as_echo "$as_me: loading cache $cache_file" >&6;}
3168     case $cache_file in
3169       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3170       *)                      . "./$cache_file";;
3171     esac
3172   fi
3173 else
3174   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3175 $as_echo "$as_me: creating cache $cache_file" >&6;}
3176   >$cache_file
3177 fi
3178 
3179 # Check that the precious variables saved in the cache have kept the same
3180 # value.
3181 ac_cache_corrupted=false
3182 for ac_var in $ac_precious_vars; do
3183   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3184   eval ac_new_set=\$ac_env_${ac_var}_set
3185   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3186   eval ac_new_val=\$ac_env_${ac_var}_value
3187   case $ac_old_set,$ac_new_set in
3188     set,)
3189       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3190 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3191       ac_cache_corrupted=: ;;
3192     ,set)
3193       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3194 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3195       ac_cache_corrupted=: ;;
3196     ,);;
3197     *)
3198       if test "x$ac_old_val" != "x$ac_new_val"; then
3199         # differences in whitespace do not lead to failure.
3200         ac_old_val_w=`echo x $ac_old_val`
3201         ac_new_val_w=`echo x $ac_new_val`
3202         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3203           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3204 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3205           ac_cache_corrupted=:
3206         else
3207           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3208 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3209           eval $ac_var=\$ac_old_val
3210         fi
3211         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3212 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3213         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3214 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3215       fi;;
3216   esac
3217   # Pass precious variables to config.status.
3218   if test "$ac_new_set" = set; then
3219     case $ac_new_val in
3220     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3221     *) ac_arg=$ac_var=$ac_new_val ;;
3222     esac
3223     case " $ac_configure_args " in
3224       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3225       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3226     esac
3227   fi
3228 done
3229 if $ac_cache_corrupted; then
3230   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3232   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3233 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3234   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3235 fi
3236 ## -------------------- ##
3237 ## Main body of script. ##
3238 ## -------------------- ##
3239 
3240 ac_ext=c
3241 ac_cpp='$CPP $CPPFLAGS'
3242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3245 
3246 
3247 
3248 ac_aux_dir=
3249 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3250   if test -f "$ac_dir/install-sh"; then
3251     ac_aux_dir=$ac_dir
3252     ac_install_sh="$ac_aux_dir/install-sh -c"
3253     break
3254   elif test -f "$ac_dir/install.sh"; then
3255     ac_aux_dir=$ac_dir
3256     ac_install_sh="$ac_aux_dir/install.sh -c"
3257     break
3258   elif test -f "$ac_dir/shtool"; then
3259     ac_aux_dir=$ac_dir
3260     ac_install_sh="$ac_aux_dir/shtool install -c"
3261     break
3262   fi
3263 done
3264 if test -z "$ac_aux_dir"; then
3265   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
3266 fi
3267 
3268 # These three variables are undocumented and unsupported,
3269 # and are intended to be withdrawn in a future Autoconf release.
3270 # They can cause serious problems if a builder's source tree is in a directory
3271 # whose full name contains unusual characters.
3272 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3273 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3274 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3275 
3276 
3277 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3278 
3279 #
3280 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3281 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3282 #
3283 # This code is free software; you can redistribute it and/or modify it
3284 # under the terms of the GNU General Public License version 2 only, as
3285 # published by the Free Software Foundation.  Oracle designates this
3286 # particular file as subject to the "Classpath" exception as provided
3287 # by Oracle in the LICENSE file that accompanied this code.
3288 #
3289 # This code is distributed in the hope that it will be useful, but WITHOUT
3290 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3291 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3292 # version 2 for more details (a copy is included in the LICENSE file that
3293 # accompanied this code).
3294 #
3295 # You should have received a copy of the GNU General Public License version
3296 # 2 along with this work; if not, write to the Free Software Foundation,
3297 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3298 #
3299 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3300 # or visit www.oracle.com if you need additional information or have any
3301 # questions.
3302 #
3303 
3304 #
3305 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3306 #
3307 # This program is free software; you can redistribute it and/or modify
3308 # it under the terms of the GNU General Public License as published by
3309 # the Free Software Foundation; either version 2 of the License, or
3310 # (at your option) any later version.
3311 #
3312 # This program is distributed in the hope that it will be useful, but
3313 # WITHOUT ANY WARRANTY; without even the implied warranty of
3314 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3315 # General Public License for more details.
3316 #
3317 # You should have received a copy of the GNU General Public License
3318 # along with this program; if not, write to the Free Software
3319 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3320 #
3321 # As a special exception to the GNU General Public License, if you
3322 # distribute this file as part of a program that contains a
3323 # configuration script generated by Autoconf, you may include it under
3324 # the same distribution terms that you use for the rest of that program.
3325 
3326 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3327 # ----------------------------------
3328 # PKG_PROG_PKG_CONFIG
3329 
3330 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3331 #
3332 # Check to see whether a particular set of modules exists.  Similar
3333 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3334 #
3335 #
3336 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3337 # this or PKG_CHECK_MODULES is called, or make sure to call
3338 # PKG_CHECK_EXISTS manually
3339 # --------------------------------------------------------------
3340 
3341 
3342 
3343 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3344 # ---------------------------------------------
3345 # _PKG_CONFIG
3346 
3347 # _PKG_SHORT_ERRORS_SUPPORTED
3348 # -----------------------------
3349 # _PKG_SHORT_ERRORS_SUPPORTED
3350 
3351 
3352 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3353 # [ACTION-IF-NOT-FOUND])
3354 #
3355 #
3356 # Note that if there is a possibility the first call to
3357 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3358 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3359 #
3360 #
3361 # --------------------------------------------------------------
3362 # PKG_CHECK_MODULES
3363 
3364 
3365 # Include these first...
3366 #
3367 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3368 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3369 #
3370 # This code is free software; you can redistribute it and/or modify it
3371 # under the terms of the GNU General Public License version 2 only, as
3372 # published by the Free Software Foundation.  Oracle designates this
3373 # particular file as subject to the "Classpath" exception as provided
3374 # by Oracle in the LICENSE file that accompanied this code.
3375 #
3376 # This code is distributed in the hope that it will be useful, but WITHOUT
3377 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3378 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3379 # version 2 for more details (a copy is included in the LICENSE file that
3380 # accompanied this code).
3381 #
3382 # You should have received a copy of the GNU General Public License version
3383 # 2 along with this work; if not, write to the Free Software Foundation,
3384 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3385 #
3386 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3387 # or visit www.oracle.com if you need additional information or have any
3388 # questions.
3389 #
3390 
3391 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3392 # If so, then append $1 to $2 \
3393 # Also set JVM_ARG_OK to true/false depending on outcome.
3394 
3395 
3396 # Appends a string to a path variable, only adding the : when needed.
3397 
3398 
3399 # Prepends a string to a path variable, only adding the : when needed.
3400 
3401 
3402 # This will make sure the given variable points to a full and proper
3403 # path. This means:
3404 # 1) There will be no spaces in the path. On unix platforms,
3405 #    spaces in the path will result in an error. On Windows,
3406 #    the path will be rewritten using short-style to be space-free.
3407 # 2) The path will be absolute, and it will be in unix-style (on
3408 #     cygwin).
3409 # $1: The name of the variable to fix
3410 
3411 
3412 # This will make sure the given variable points to a executable
3413 # with a full and proper path. This means:
3414 # 1) There will be no spaces in the path. On unix platforms,
3415 #    spaces in the path will result in an error. On Windows,
3416 #    the path will be rewritten using short-style to be space-free.
3417 # 2) The path will be absolute, and it will be in unix-style (on
3418 #     cygwin).
3419 # Any arguments given to the executable is preserved.
3420 # If the input variable does not have a directory specification, then
3421 # it need to be in the PATH.
3422 # $1: The name of the variable to fix
3423 
3424 
3425 
3426 
3427 # Register a --with argument but mark it as deprecated
3428 # $1: The name of the with argument to deprecate, not including --with-
3429 
3430 
3431 # Register a --enable argument but mark it as deprecated
3432 # $1: The name of the with argument to deprecate, not including --enable-
3433 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3434 
3435 
3436 
3437 
3438 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3439 # $1: variable to check
3440 
3441 
3442 # Check that there are no unprocessed overridden variables left.
3443 # If so, they are an incorrect argument and we will exit with an error.
3444 
3445 
3446 # Setup a tool for the given variable. If correctly specified by the user,
3447 # use that value, otherwise search for the tool using the supplied code snippet.
3448 # $1: variable to set
3449 # $2: code snippet to call to look for the tool
3450 # $3: code snippet to call if variable was used to find tool
3451 
3452 
3453 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3454 # $1: variable to set
3455 # $2: executable name (or list of names) to look for
3456 
3457 
3458 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3459 # $1: variable to set
3460 # $2: executable name (or list of names) to look for
3461 
3462 
3463 # Like BASIC_PATH_PROGS but fails if no tool was found.
3464 # $1: variable to set
3465 # $2: executable name (or list of names) to look for
3466 
3467 
3468 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3469 # $1: variable to set
3470 # $2: autoconf macro to call to look for the special tool
3471 
3472 
3473 # Setup the most fundamental tools that relies on not much else to set up,
3474 # but is used by much of the early bootstrap code.
3475 
3476 
3477 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3478 
3479 
3480 # Evaluates platform specific overrides for devkit variables.
3481 # $1: Name of variable
3482 
3483 
3484 
3485 
3486 
3487 
3488 #%%% Simple tools %%%
3489 
3490 # Check if we have found a usable version of make
3491 # $1: the path to a potential make binary (or empty)
3492 # $2: the description on how we found this
3493 
3494 
3495 
3496 
3497 # Goes looking for a usable version of GNU make.
3498 
3499 
3500 
3501 
3502 
3503 
3504 # Check if build directory is on local disk. If not possible to determine,
3505 # we prefer to claim it's local.
3506 # Argument 1: directory to test
3507 # Argument 2: what to do if it is on local disk
3508 # Argument 3: what to do otherwise (remote disk or failure)
3509 
3510 
3511 # Check that source files have basic read permissions set. This might
3512 # not be the case in cygwin in certain conditions.
3513 
3514 
3515 
3516 
3517 # Check for support for specific options in bash
3518 
3519 
3520 # Code to run after AC_OUTPUT
3521 
3522 
3523 #
3524 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3525 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3526 #
3527 # This code is free software; you can redistribute it and/or modify it
3528 # under the terms of the GNU General Public License version 2 only, as
3529 # published by the Free Software Foundation.  Oracle designates this
3530 # particular file as subject to the "Classpath" exception as provided
3531 # by Oracle in the LICENSE file that accompanied this code.
3532 #
3533 # This code is distributed in the hope that it will be useful, but WITHOUT
3534 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3535 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3536 # version 2 for more details (a copy is included in the LICENSE file that
3537 # accompanied this code).
3538 #
3539 # You should have received a copy of the GNU General Public License version
3540 # 2 along with this work; if not, write to the Free Software Foundation,
3541 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3542 #
3543 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3544 # or visit www.oracle.com if you need additional information or have any
3545 # questions.
3546 #
3547 
3548 
3549 
3550 
3551 
3552 # Helper function which possibly converts a path using DOS-style short mode.
3553 # If so, the updated path is stored in $new_path.
3554 # $1: The path to check
3555 
3556 
3557 # Helper function which possibly converts a path using DOS-style short mode.
3558 # If so, the updated path is stored in $new_path.
3559 # $1: The path to check
3560 
3561 
3562 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3563 # and could probably be heavily simplified. However, all changes in this
3564 # area tend to need lot of testing in different scenarios, and in lack of
3565 # proper unit testing, cleaning this up has not been deemed worth the effort
3566 # at the moment.
3567 
3568 
3569 
3570 
3571 
3572 
3573 
3574 
3575 
3576 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3577 
3578 
3579 
3580 
3581 # ... then the rest
3582 #
3583 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3584 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3585 #
3586 # This code is free software; you can redistribute it and/or modify it
3587 # under the terms of the GNU General Public License version 2 only, as
3588 # published by the Free Software Foundation.  Oracle designates this
3589 # particular file as subject to the "Classpath" exception as provided
3590 # by Oracle in the LICENSE file that accompanied this code.
3591 #
3592 # This code is distributed in the hope that it will be useful, but WITHOUT
3593 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3594 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3595 # version 2 for more details (a copy is included in the LICENSE file that
3596 # accompanied this code).
3597 #
3598 # You should have received a copy of the GNU General Public License version
3599 # 2 along with this work; if not, write to the Free Software Foundation,
3600 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3601 #
3602 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3603 # or visit www.oracle.com if you need additional information or have any
3604 # questions.
3605 #
3606 
3607 ########################################################################
3608 # This file handles detection of the Boot JDK. The Boot JDK detection
3609 # process has been developed as a response to solve a complex real-world
3610 # problem. Initially, it was simple, but it has grown as platform after
3611 # platform, idiosyncracy after idiosyncracy has been supported.
3612 #
3613 # The basic idea is this:
3614 # 1) You need an acceptable *) JDK to use as a Boot JDK
3615 # 2) There are several ways to locate a JDK, that are mostly platform
3616 #    dependent **)
3617 # 3) You can have multiple JDKs installed
3618 # 4) If possible, configure should try to dig out an acceptable JDK
3619 #    automatically, without having to resort to command-line options
3620 #
3621 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3622 #     javac) and not a JRE, etc.
3623 #
3624 # **) On Windows we typically use a well-known path.
3625 #     On MacOSX we typically use the tool java_home.
3626 #     On Linux we typically find javac in the $PATH, and then follow a
3627 #     chain of symlinks that often ends up in a real JDK.
3628 #
3629 # This leads to the code where we check in different ways to locate a
3630 # JDK, and if one is found, check if it is acceptable. If not, we print
3631 # our reasons for rejecting it (useful when debugging non-working
3632 # configure situations) and continue checking the next one.
3633 ########################################################################
3634 
3635 # Execute the check given as argument, and verify the result
3636 # If the Boot JDK was previously found, do nothing
3637 # $1 A command line (typically autoconf macro) to execute
3638 
3639 
3640 # Test: Is bootjdk explicitely set by command line arguments?
3641 
3642 
3643 # Test: Is $JAVA_HOME set?
3644 
3645 
3646 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3647 
3648 
3649 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3650 # $1: Argument to the java_home binary (optional)
3651 
3652 
3653 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3654 
3655 
3656 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3657 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3658 # $1 = Path to directory containing jdk installations.
3659 # $2 = String to append to the found JDK directory to get the proper JDK home
3660 
3661 
3662 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3663 # environmental variable as base for where to look.
3664 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3665 
3666 
3667 # Test: Is there a JDK installed in default, well-known locations?
3668 
3669 
3670 # Check that a command-line tool in the Boot JDK is correct
3671 # $1 = name of variable to assign
3672 # $2 = name of binary
3673 
3674 
3675 ###############################################################################
3676 #
3677 # We need a Boot JDK to bootstrap the build.
3678 #
3679 
3680 
3681 
3682 
3683 
3684 #
3685 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3686 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3687 #
3688 # This code is free software; you can redistribute it and/or modify it
3689 # under the terms of the GNU General Public License version 2 only, as
3690 # published by the Free Software Foundation.  Oracle designates this
3691 # particular file as subject to the "Classpath" exception as provided
3692 # by Oracle in the LICENSE file that accompanied this code.
3693 #
3694 # This code is distributed in the hope that it will be useful, but WITHOUT
3695 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3696 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3697 # version 2 for more details (a copy is included in the LICENSE file that
3698 # accompanied this code).
3699 #
3700 # You should have received a copy of the GNU General Public License version
3701 # 2 along with this work; if not, write to the Free Software Foundation,
3702 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3703 #
3704 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3705 # or visit www.oracle.com if you need additional information or have any
3706 # questions.
3707 #
3708 
3709 
3710 
3711 
3712 
3713 
3714 
3715 
3716 
3717 
3718 
3719 
3720 
3721 
3722 
3723 
3724 
3725 
3726 
3727 
3728 #
3729 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3730 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3731 #
3732 # This code is free software; you can redistribute it and/or modify it
3733 # under the terms of the GNU General Public License version 2 only, as
3734 # published by the Free Software Foundation.  Oracle designates this
3735 # particular file as subject to the "Classpath" exception as provided
3736 # by Oracle in the LICENSE file that accompanied this code.
3737 #
3738 # This code is distributed in the hope that it will be useful, but WITHOUT
3739 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3740 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3741 # version 2 for more details (a copy is included in the LICENSE file that
3742 # accompanied this code).
3743 #
3744 # You should have received a copy of the GNU General Public License version
3745 # 2 along with this work; if not, write to the Free Software Foundation,
3746 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3747 #
3748 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3749 # or visit www.oracle.com if you need additional information or have any
3750 # questions.
3751 #
3752 
3753 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the
3754 # corresponding configure arguments instead
3755 
3756 
3757 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so
3758 # that configure can use them while detecting compilers.
3759 # TOOLCHAIN_TYPE is available here.
3760 # Param 1 - Optional prefix to all variables. (e.g BUILD_)
3761 
3762 
3763 
3764 
3765 
3766 
3767 # Documentation on common flags used for solstudio in HIGHEST.
3768 #
3769 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
3770 #          done with care, there are some assumptions below that need to
3771 #          be understood about the use of pointers, and IEEE behavior.
3772 #
3773 # -fns: Use non-standard floating point mode (not IEEE 754)
3774 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
3775 # -fsingle: Use single precision floating point with 'float'
3776 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
3777 #   (Source with excessing pointer casting and data access with mixed
3778 #    pointer types are not recommended)
3779 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
3780 #   (If you expect perfect errno behavior, do not use this)
3781 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
3782 # -xrestrict: Pointer parameters to functions do not overlap
3783 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
3784 #    If you pass in multiple pointers to the same data, do not use this)
3785 # -xlibmil: Inline some library routines
3786 #   (If you expect perfect errno behavior, do not use this)
3787 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
3788 #   (If you expect perfect errno behavior, do not use this)
3789 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
3790 
3791     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
3792     # Bug?
3793     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
3794     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
3795     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
3796     #fi
3797 
3798 
3799 
3800 
3801 
3802 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3803 #                                   [RUN-IF-FALSE])
3804 # ------------------------------------------------------------
3805 # Check that the c and c++ compilers support an argument
3806 
3807 
3808 # FLAGS_LINKER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3809 #                                    [RUN-IF-FALSE])
3810 # ------------------------------------------------------------
3811 # Check that the linker support an argument
3812 
3813 
3814 
3815 
3816 #
3817 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3818 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3819 #
3820 # This code is free software; you can redistribute it and/or modify it
3821 # under the terms of the GNU General Public License version 2 only, as
3822 # published by the Free Software Foundation.  Oracle designates this
3823 # particular file as subject to the "Classpath" exception as provided
3824 # by Oracle in the LICENSE file that accompanied this code.
3825 #
3826 # This code is distributed in the hope that it will be useful, but WITHOUT
3827 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3828 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3829 # version 2 for more details (a copy is included in the LICENSE file that
3830 # accompanied this code).
3831 #
3832 # You should have received a copy of the GNU General Public License version
3833 # 2 along with this work; if not, write to the Free Software Foundation,
3834 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3835 #
3836 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3837 # or visit www.oracle.com if you need additional information or have any
3838 # questions.
3839 #
3840 
3841 
3842 
3843 
3844 
3845 cygwin_help() {
3846   case $1 in
3847     unzip)
3848       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
3849       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3850       ;;
3851     zip)
3852       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
3853       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3854       ;;
3855     make)
3856       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
3857       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3858       ;;
3859     freetype)
3860       HELP_MSG="
3861 The freetype library can now be build during the configure process.
3862 Download the freetype sources and unpack them into an arbitrary directory:
3863 
3864 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
3865 tar -xzf freetype-2.5.3.tar.gz
3866 
3867 Then run configure with '--with-freetype-src=<freetype_src>'. This will
3868 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
3869 builds or into '<freetype_src>/lib32' for 32-bit builds.
3870 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
3871 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds."
3872       ;;
3873   esac
3874 }
3875 
3876 msys_help() {
3877   PKGHANDLER_COMMAND=""
3878 }
3879 
3880 apt_help() {
3881   case $1 in
3882     reduced)
3883       PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;;
3884     devkit)
3885       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3886     openjdk)
3887       PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3888     alsa)
3889       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3890     cups)
3891       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3892     freetype)
3893       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3894     ffi)
3895       PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;;
3896     x11)
3897       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
3898     ccache)
3899       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3900   esac
3901 }
3902 
3903 yum_help() {
3904   case $1 in
3905     devkit)
3906       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3907     openjdk)
3908       PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3909     alsa)
3910       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3911     cups)
3912       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3913     freetype)
3914       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
3915     x11)
3916       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;;
3917     ccache)
3918       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3919   esac
3920 }
3921 
3922 port_help() {
3923   PKGHANDLER_COMMAND=""
3924 }
3925 
3926 pkgutil_help() {
3927   PKGHANDLER_COMMAND=""
3928 }
3929 
3930 pkgadd_help() {
3931   PKGHANDLER_COMMAND=""
3932 }
3933 
3934 # This function will check if we're called from the "configure" wrapper while
3935 # printing --help. If so, we will print out additional information that can
3936 # only be extracted within the autoconf script, and then exit. This must be
3937 # called at the very beginning in configure.ac.
3938 
3939 
3940 
3941 
3942 
3943 
3944 #
3945 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3946 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3947 #
3948 # This code is free software; you can redistribute it and/or modify it
3949 # under the terms of the GNU General Public License version 2 only, as
3950 # published by the Free Software Foundation.  Oracle designates this
3951 # particular file as subject to the "Classpath" exception as provided
3952 # by Oracle in the LICENSE file that accompanied this code.
3953 #
3954 # This code is distributed in the hope that it will be useful, but WITHOUT
3955 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3956 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3957 # version 2 for more details (a copy is included in the LICENSE file that
3958 # accompanied this code).
3959 #
3960 # You should have received a copy of the GNU General Public License version
3961 # 2 along with this work; if not, write to the Free Software Foundation,
3962 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3963 #
3964 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3965 # or visit www.oracle.com if you need additional information or have any
3966 # questions.
3967 #
3968 
3969 
3970 
3971 
3972 
3973 
3974 
3975 
3976 
3977 
3978 ###############################################################################
3979 #
3980 # Should we build only OpenJDK even if closed sources are present?
3981 #
3982 
3983 
3984 
3985 
3986 ###############################################################################
3987 #
3988 # Setup version numbers
3989 #
3990 
3991 
3992 
3993 
3994 
3995 
3996 ################################################################################
3997 #
3998 # Gcov coverage data for hotspot
3999 #
4000 
4001 
4002 ################################################################################
4003 #
4004 # Static build support.  When enabled will generate static
4005 # libraries instead of shared libraries for all JDK libs.
4006 #
4007 
4008 
4009 
4010 
4011 #
4012 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4013 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4014 #
4015 # This code is free software; you can redistribute it and/or modify it
4016 # under the terms of the GNU General Public License version 2 only, as
4017 # published by the Free Software Foundation.  Oracle designates this
4018 # particular file as subject to the "Classpath" exception as provided
4019 # by Oracle in the LICENSE file that accompanied this code.
4020 #
4021 # This code is distributed in the hope that it will be useful, but WITHOUT
4022 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4023 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4024 # version 2 for more details (a copy is included in the LICENSE file that
4025 # accompanied this code).
4026 #
4027 # You should have received a copy of the GNU General Public License version
4028 # 2 along with this work; if not, write to the Free Software Foundation,
4029 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4030 #
4031 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4032 # or visit www.oracle.com if you need additional information or have any
4033 # questions.
4034 #
4035 
4036 # Major library component reside in separate files.
4037 #
4038 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4039 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4040 #
4041 # This code is free software; you can redistribute it and/or modify it
4042 # under the terms of the GNU General Public License version 2 only, as
4043 # published by the Free Software Foundation.  Oracle designates this
4044 # particular file as subject to the "Classpath" exception as provided
4045 # by Oracle in the LICENSE file that accompanied this code.
4046 #
4047 # This code is distributed in the hope that it will be useful, but WITHOUT
4048 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4049 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4050 # version 2 for more details (a copy is included in the LICENSE file that
4051 # accompanied this code).
4052 #
4053 # You should have received a copy of the GNU General Public License version
4054 # 2 along with this work; if not, write to the Free Software Foundation,
4055 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4056 #
4057 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4058 # or visit www.oracle.com if you need additional information or have any
4059 # questions.
4060 #
4061 
4062 ################################################################################
4063 # Setup alsa (Advanced Linux Sound Architecture)
4064 ################################################################################
4065 
4066 
4067 #
4068 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4069 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4070 #
4071 # This code is free software; you can redistribute it and/or modify it
4072 # under the terms of the GNU General Public License version 2 only, as
4073 # published by the Free Software Foundation.  Oracle designates this
4074 # particular file as subject to the "Classpath" exception as provided
4075 # by Oracle in the LICENSE file that accompanied this code.
4076 #
4077 # This code is distributed in the hope that it will be useful, but WITHOUT
4078 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4079 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4080 # version 2 for more details (a copy is included in the LICENSE file that
4081 # accompanied this code).
4082 #
4083 # You should have received a copy of the GNU General Public License version
4084 # 2 along with this work; if not, write to the Free Software Foundation,
4085 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4086 #
4087 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4088 # or visit www.oracle.com if you need additional information or have any
4089 # questions.
4090 #
4091 
4092 ################################################################################
4093 # Setup bundled libraries.
4094 #
4095 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the
4096 # OpenJDK repository. Default is to use these libraries as bundled, but they
4097 # might be replaced by en external version by the user.
4098 ################################################################################
4099 
4100 
4101 ################################################################################
4102 # Setup libjpeg
4103 ################################################################################
4104 
4105 
4106 ################################################################################
4107 # Setup giflib
4108 ################################################################################
4109 
4110 
4111 ################################################################################
4112 # Setup libpng
4113 ################################################################################
4114 
4115 
4116 ################################################################################
4117 # Setup zlib
4118 ################################################################################
4119 
4120 
4121 ################################################################################
4122 # Setup lcms (Little CMS)
4123 ################################################################################
4124 
4125 
4126 #
4127 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4128 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4129 #
4130 # This code is free software; you can redistribute it and/or modify it
4131 # under the terms of the GNU General Public License version 2 only, as
4132 # published by the Free Software Foundation.  Oracle designates this
4133 # particular file as subject to the "Classpath" exception as provided
4134 # by Oracle in the LICENSE file that accompanied this code.
4135 #
4136 # This code is distributed in the hope that it will be useful, but WITHOUT
4137 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4138 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4139 # version 2 for more details (a copy is included in the LICENSE file that
4140 # accompanied this code).
4141 #
4142 # You should have received a copy of the GNU General Public License version
4143 # 2 along with this work; if not, write to the Free Software Foundation,
4144 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4145 #
4146 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4147 # or visit www.oracle.com if you need additional information or have any
4148 # questions.
4149 #
4150 
4151 ################################################################################
4152 # Setup cups (Common Unix Printing System)
4153 ################################################################################
4154 
4155 
4156 #
4157 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4158 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4159 #
4160 # This code is free software; you can redistribute it and/or modify it
4161 # under the terms of the GNU General Public License version 2 only, as
4162 # published by the Free Software Foundation.  Oracle designates this
4163 # particular file as subject to the "Classpath" exception as provided
4164 # by Oracle in the LICENSE file that accompanied this code.
4165 #
4166 # This code is distributed in the hope that it will be useful, but WITHOUT
4167 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4168 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4169 # version 2 for more details (a copy is included in the LICENSE file that
4170 # accompanied this code).
4171 #
4172 # You should have received a copy of the GNU General Public License version
4173 # 2 along with this work; if not, write to the Free Software Foundation,
4174 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4175 #
4176 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4177 # or visit www.oracle.com if you need additional information or have any
4178 # questions.
4179 #
4180 
4181 ################################################################################
4182 # Setup libffi (Foreign Function Interface)
4183 ################################################################################
4184 
4185 
4186 #
4187 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4188 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4189 #
4190 # This code is free software; you can redistribute it and/or modify it
4191 # under the terms of the GNU General Public License version 2 only, as
4192 # published by the Free Software Foundation.  Oracle designates this
4193 # particular file as subject to the "Classpath" exception as provided
4194 # by Oracle in the LICENSE file that accompanied this code.
4195 #
4196 # This code is distributed in the hope that it will be useful, but WITHOUT
4197 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4198 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4199 # version 2 for more details (a copy is included in the LICENSE file that
4200 # accompanied this code).
4201 #
4202 # You should have received a copy of the GNU General Public License version
4203 # 2 along with this work; if not, write to the Free Software Foundation,
4204 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4205 #
4206 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4207 # or visit www.oracle.com if you need additional information or have any
4208 # questions.
4209 #
4210 
4211 ################################################################################
4212 # Build the freetype lib from source
4213 ################################################################################
4214 
4215 
4216 ################################################################################
4217 # Check if a potential freeype library match is correct and usable
4218 ################################################################################
4219 
4220 
4221 ################################################################################
4222 # Setup freetype (The FreeType2 font rendering library)
4223 ################################################################################
4224 
4225 
4226 #
4227 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4228 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4229 #
4230 # This code is free software; you can redistribute it and/or modify it
4231 # under the terms of the GNU General Public License version 2 only, as
4232 # published by the Free Software Foundation.  Oracle designates this
4233 # particular file as subject to the "Classpath" exception as provided
4234 # by Oracle in the LICENSE file that accompanied this code.
4235 #
4236 # This code is distributed in the hope that it will be useful, but WITHOUT
4237 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4238 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4239 # version 2 for more details (a copy is included in the LICENSE file that
4240 # accompanied this code).
4241 #
4242 # You should have received a copy of the GNU General Public License version
4243 # 2 along with this work; if not, write to the Free Software Foundation,
4244 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4245 #
4246 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4247 # or visit www.oracle.com if you need additional information or have any
4248 # questions.
4249 #
4250 
4251 ################################################################################
4252 # Setup the standard C/C++ runtime libraries.
4253 #
4254 # Most importantly, determine if stdc++ should be linked statically or
4255 # dynamically.
4256 ################################################################################
4257 
4258 
4259 #
4260 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4261 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4262 #
4263 # This code is free software; you can redistribute it and/or modify it
4264 # under the terms of the GNU General Public License version 2 only, as
4265 # published by the Free Software Foundation.  Oracle designates this
4266 # particular file as subject to the "Classpath" exception as provided
4267 # by Oracle in the LICENSE file that accompanied this code.
4268 #
4269 # This code is distributed in the hope that it will be useful, but WITHOUT
4270 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4271 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4272 # version 2 for more details (a copy is included in the LICENSE file that
4273 # accompanied this code).
4274 #
4275 # You should have received a copy of the GNU General Public License version
4276 # 2 along with this work; if not, write to the Free Software Foundation,
4277 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4278 #
4279 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4280 # or visit www.oracle.com if you need additional information or have any
4281 # questions.
4282 #
4283 
4284 ################################################################################
4285 # Setup X11 Windows system
4286 ################################################################################
4287 
4288 
4289 
4290 ################################################################################
4291 # Determine which libraries are needed for this configuration
4292 ################################################################################
4293 
4294 
4295 ################################################################################
4296 # Parse library options, and setup needed libraries
4297 ################################################################################
4298 
4299 
4300 ################################################################################
4301 # Setup llvm (Low-Level VM)
4302 ################################################################################
4303 
4304 
4305 ################################################################################
4306 # Setup various libraries, typically small system libraries
4307 ################################################################################
4308 
4309 
4310 #
4311 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4312 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4313 #
4314 # This code is free software; you can redistribute it and/or modify it
4315 # under the terms of the GNU General Public License version 2 only, as
4316 # published by the Free Software Foundation.  Oracle designates this
4317 # particular file as subject to the "Classpath" exception as provided
4318 # by Oracle in the LICENSE file that accompanied this code.
4319 #
4320 # This code is distributed in the hope that it will be useful, but WITHOUT
4321 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4322 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4323 # version 2 for more details (a copy is included in the LICENSE file that
4324 # accompanied this code).
4325 #
4326 # You should have received a copy of the GNU General Public License version
4327 # 2 along with this work; if not, write to the Free Software Foundation,
4328 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4329 #
4330 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4331 # or visit www.oracle.com if you need additional information or have any
4332 # questions.
4333 #
4334 
4335 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4336 # Converts autoconf style CPU name to OpenJDK style, into
4337 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4338 
4339 
4340 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4341 # Converts autoconf style OS name to OpenJDK style, into
4342 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV.
4343 
4344 
4345 # Expects $host_os $host_cpu $build_os and $build_cpu
4346 # and $with_target_bits to have been setup!
4347 #
4348 # Translate the standard triplet(quadruplet) definition
4349 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4350 # OPENJDK_BUILD_OS, etc.
4351 
4352 
4353 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4354 # accordingly. Must be done after setting up build and target system, but before
4355 # doing anything else with these values.
4356 
4357 
4358 # Setup the legacy variables, for controlling the old makefiles.
4359 #
4360 
4361 
4362 
4363 
4364 #%%% Build and target systems %%%
4365 
4366 
4367 
4368 
4369 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4370 # Add -mX to various FLAGS variables.
4371 
4372 
4373 
4374 
4375 
4376 
4377 #
4378 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4379 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4380 #
4381 # This code is free software; you can redistribute it and/or modify it
4382 # under the terms of the GNU General Public License version 2 only, as
4383 # published by the Free Software Foundation.  Oracle designates this
4384 # particular file as subject to the "Classpath" exception as provided
4385 # by Oracle in the LICENSE file that accompanied this code.
4386 #
4387 # This code is distributed in the hope that it will be useful, but WITHOUT
4388 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4389 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4390 # version 2 for more details (a copy is included in the LICENSE file that
4391 # accompanied this code).
4392 #
4393 # You should have received a copy of the GNU General Public License version
4394 # 2 along with this work; if not, write to the Free Software Foundation,
4395 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4396 #
4397 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4398 # or visit www.oracle.com if you need additional information or have any
4399 # questions.
4400 #
4401 
4402 
4403 
4404 
4405 
4406 
4407 
4408 #
4409 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4410 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4411 #
4412 # This code is free software; you can redistribute it and/or modify it
4413 # under the terms of the GNU General Public License version 2 only, as
4414 # published by the Free Software Foundation.  Oracle designates this
4415 # particular file as subject to the "Classpath" exception as provided
4416 # by Oracle in the LICENSE file that accompanied this code.
4417 #
4418 # This code is distributed in the hope that it will be useful, but WITHOUT
4419 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4420 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4421 # version 2 for more details (a copy is included in the LICENSE file that
4422 # accompanied this code).
4423 #
4424 # You should have received a copy of the GNU General Public License version
4425 # 2 along with this work; if not, write to the Free Software Foundation,
4426 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4427 #
4428 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4429 # or visit www.oracle.com if you need additional information or have any
4430 # questions.
4431 #
4432 
4433 ########################################################################
4434 # This file is responsible for detecting, verifying and setting up the
4435 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4436 # proper paths to the binaries, but it will not setup any flags.
4437 #
4438 # The binaries used is determined by the toolchain type, which is the family of
4439 # compilers and related tools that are used.
4440 ########################################################################
4441 
4442 
4443 # All valid toolchains, regardless of platform (used by help.m4)
4444 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4445 
4446 # These toolchains are valid on different platforms
4447 VALID_TOOLCHAINS_linux="gcc clang"
4448 VALID_TOOLCHAINS_solaris="solstudio"
4449 VALID_TOOLCHAINS_macosx="gcc clang"
4450 VALID_TOOLCHAINS_aix="xlc"
4451 VALID_TOOLCHAINS_windows="microsoft"
4452 
4453 # Toolchain descriptions
4454 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4455 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4456 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4457 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4458 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4459 
4460 # Setup a number of variables describing how native output files are
4461 # named on this platform/toolchain.
4462 
4463 
4464 # Determine which toolchain type to use, and make sure it is valid for this
4465 # platform. Setup various information about the selected toolchain.
4466 
4467 
4468 # Before we start detecting the toolchain executables, we might need some
4469 # special setup, e.g. additional paths etc.
4470 
4471 
4472 # Restore path, etc
4473 
4474 
4475 # Check if a compiler is of the toolchain type we expect, and save the version
4476 # information from it. If the compiler does not match the expected type,
4477 # this function will abort using AC_MSG_ERROR. If it matches, the version will
4478 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4479 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4480 #
4481 # $1 = compiler to test (CC or CXX)
4482 # $2 = human readable name of compiler (C or C++)
4483 
4484 
4485 # Try to locate the given C or C++ compiler in the path, or otherwise.
4486 #
4487 # $1 = compiler to test (CC or CXX)
4488 # $2 = human readable name of compiler (C or C++)
4489 # $3 = list of compiler names to search for
4490 
4491 
4492 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4493 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4494 # archiver (AR). Verify that the compilers are correct according to the
4495 # toolchain type.
4496 
4497 
4498 # Setup additional tools that is considered a part of the toolchain, but not the
4499 # core part. Many of these are highly platform-specific and do not exist,
4500 # and/or are not needed on all platforms.
4501 
4502 
4503 # Setup the build tools (i.e, the compiler and linker used to build programs
4504 # that should be run on the build platform, not the target platform, as a build
4505 # helper). Since the non-cross-compile case uses the normal, target compilers
4506 # for this, we can only do this after these have been setup.
4507 
4508 
4509 # Setup legacy variables that are still needed as alternative ways to refer to
4510 # parts of the toolchain.
4511 
4512 
4513 # Do some additional checks on the detected tools.
4514 
4515 
4516 # Setup the JTReg Regression Test Harness.
4517 
4518 
4519 #
4520 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4521 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4522 #
4523 # This code is free software; you can redistribute it and/or modify it
4524 # under the terms of the GNU General Public License version 2 only, as
4525 # published by the Free Software Foundation.  Oracle designates this
4526 # particular file as subject to the "Classpath" exception as provided
4527 # by Oracle in the LICENSE file that accompanied this code.
4528 #
4529 # This code is distributed in the hope that it will be useful, but WITHOUT
4530 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4531 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4532 # version 2 for more details (a copy is included in the LICENSE file that
4533 # accompanied this code).
4534 #
4535 # You should have received a copy of the GNU General Public License version
4536 # 2 along with this work; if not, write to the Free Software Foundation,
4537 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4538 #
4539 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4540 # or visit www.oracle.com if you need additional information or have any
4541 # questions.
4542 #
4543 
4544 ################################################################################
4545 # The order of these defines the priority by which we try to find them.
4546 VALID_VS_VERSIONS="2013 2012 2010"
4547 
4548 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
4549 VS_VERSION_INTERNAL_2010=100
4550 VS_MSVCR_2010=msvcr100.dll
4551 # We don't use msvcp on Visual Studio 2010
4552 #VS_MSVCP_2010=msvcp100.dll
4553 VS_ENVVAR_2010="VS100COMNTOOLS"
4554 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
4555 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
4556 VS_VS_PLATFORM_NAME_2010="v100"
4557 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
4558 
4559 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
4560 VS_VERSION_INTERNAL_2012=110
4561 VS_MSVCR_2012=msvcr110.dll
4562 VS_MSVCP_2012=msvcp110.dll
4563 VS_ENVVAR_2012="VS110COMNTOOLS"
4564 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
4565 VS_SDK_INSTALLDIR_2012=
4566 VS_VS_PLATFORM_NAME_2012="v110"
4567 VS_SDK_PLATFORM_NAME_2012=
4568 
4569 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
4570 VS_VERSION_INTERNAL_2013=120
4571 VS_MSVCR_2013=msvcr120.dll
4572 VS_MSVCP_2013=msvcp120.dll
4573 VS_ENVVAR_2013="VS120COMNTOOLS"
4574 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
4575 VS_SDK_INSTALLDIR_2013=
4576 VS_VS_PLATFORM_NAME_2013="v120"
4577 VS_SDK_PLATFORM_NAME_2013=
4578 
4579 ################################################################################
4580 
4581 
4582 
4583 ################################################################################
4584 
4585 
4586 
4587 ################################################################################
4588 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
4589 # build environment and assigns it to VS_ENV_CMD
4590 
4591 
4592 ################################################################################
4593 
4594 
4595 
4596 ################################################################################
4597 # Check if the VS env variables were setup prior to running configure.
4598 # If not, then find vcvarsall.bat and run it automatically, and integrate
4599 # the set env variables into the spec file.
4600 
4601 
4602 
4603 
4604 
4605 
4606 
4607 
4608 
4609 
4610 
4611 
4612 
4613 
4614 # This line needs to be here, verbatim, after all includes and the dummy hook
4615 # definitions. It is replaced with custom functionality when building
4616 # custom sources.
4617 #CUSTOM_AUTOCONF_INCLUDE
4618 
4619 # Do not change or remove the following line, it is needed for consistency checks:
4620 DATE_WHEN_GENERATED=1448110876
4621 
4622 ###############################################################################
4623 #
4624 # Initialization / Boot-strapping
4625 #
4626 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4627 # thus it jumps back and forth, each time gaining something needed later on.
4628 #
4629 ###############################################################################
4630 
4631 # If we are requested to print additional help, do that and then exit.
4632 # This must be the very first call.
4633 
4634   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4635     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4636     $PRINTF "Which are valid to use depends on the build platform.\n"
4637     for toolchain in $VALID_TOOLCHAINS_all; do
4638       # Use indirect variable referencing
4639       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4640       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
4641       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
4642     done
4643 
4644     # And now exit directly
4645     exit 0
4646   fi
4647 
4648 
4649 # Basic initialization that must happen first of all in the normal process.
4650 
4651   # Save the original command line. This is passed to us by the wrapper configure script.
4652 
4653   # Save the path variable before it gets changed
4654   ORIGINAL_PATH="$PATH"
4655 
4656   DATE_WHEN_CONFIGURED=`LANG=C date`
4657 
4658   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4659 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4660   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4661 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4662 
4663 
4664   # Start with tools that do not need have cross compilation support
4665   # and can be expected to be found in the default PATH. These tools are
4666   # used by configure.
4667 
4668   # First are all the simple required tools.
4669 
4670 
4671 
4672   # Publish this variable in the help.
4673 
4674 
4675   if [ -z "${BASENAME+x}" ]; then
4676     # The variable is not set by user, try to locate tool using the code snippet
4677     for ac_prog in basename
4678 do
4679   # Extract the first word of "$ac_prog", so it can be a program name with args.
4680 set dummy $ac_prog; ac_word=$2
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4682 $as_echo_n "checking for $ac_word... " >&6; }
4683 if ${ac_cv_path_BASENAME+:} false; then :
4684   $as_echo_n "(cached) " >&6
4685 else
4686   case $BASENAME in
4687   [\\/]* | ?:[\\/]*)
4688   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4689   ;;
4690   *)
4691   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 for as_dir in $PATH
4693 do
4694   IFS=$as_save_IFS
4695   test -z "$as_dir" && as_dir=.
4696     for ac_exec_ext in '' $ac_executable_extensions; do
4697   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4698     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4700     break 2
4701   fi
4702 done
4703   done
4704 IFS=$as_save_IFS
4705 
4706   ;;
4707 esac
4708 fi
4709 BASENAME=$ac_cv_path_BASENAME
4710 if test -n "$BASENAME"; then
4711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4712 $as_echo "$BASENAME" >&6; }
4713 else
4714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715 $as_echo "no" >&6; }
4716 fi
4717 
4718 
4719   test -n "$BASENAME" && break
4720 done
4721 
4722   else
4723     # The variable is set, but is it from the command line or the environment?
4724 
4725     # Try to remove the string !BASENAME! from our list.
4726     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4727     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4728       # If it failed, the variable was not from the command line. Ignore it,
4729       # but warn the user (except for BASH, which is always set by the calling BASH).
4730       if test "xBASENAME" != xBASH; then
4731         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4732 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4733       fi
4734       # Try to locate tool using the code snippet
4735       for ac_prog in basename
4736 do
4737   # Extract the first word of "$ac_prog", so it can be a program name with args.
4738 set dummy $ac_prog; ac_word=$2
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4740 $as_echo_n "checking for $ac_word... " >&6; }
4741 if ${ac_cv_path_BASENAME+:} false; then :
4742   $as_echo_n "(cached) " >&6
4743 else
4744   case $BASENAME in
4745   [\\/]* | ?:[\\/]*)
4746   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4747   ;;
4748   *)
4749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752   IFS=$as_save_IFS
4753   test -z "$as_dir" && as_dir=.
4754     for ac_exec_ext in '' $ac_executable_extensions; do
4755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758     break 2
4759   fi
4760 done
4761   done
4762 IFS=$as_save_IFS
4763 
4764   ;;
4765 esac
4766 fi
4767 BASENAME=$ac_cv_path_BASENAME
4768 if test -n "$BASENAME"; then
4769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4770 $as_echo "$BASENAME" >&6; }
4771 else
4772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773 $as_echo "no" >&6; }
4774 fi
4775 
4776 
4777   test -n "$BASENAME" && break
4778 done
4779 
4780     else
4781       # If it succeeded, then it was overridden by the user. We will use it
4782       # for the tool.
4783 
4784       # First remove it from the list of overridden variables, so we can test
4785       # for unknown variables in the end.
4786       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4787 
4788       # Check if we try to supply an empty value
4789       if test "x$BASENAME" = x; then
4790         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5
4791 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;}
4792         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4793 $as_echo_n "checking for BASENAME... " >&6; }
4794         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
4795 $as_echo "disabled" >&6; }
4796       else
4797         # Check if the provided tool contains a complete path.
4798         tool_specified="$BASENAME"
4799         tool_basename="${tool_specified##*/}"
4800         if test "x$tool_basename" = "x$tool_specified"; then
4801           # A command without a complete path is provided, search $PATH.
4802           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4803 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4804           # Extract the first word of "$tool_basename", so it can be a program name with args.
4805 set dummy $tool_basename; ac_word=$2
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807 $as_echo_n "checking for $ac_word... " >&6; }
4808 if ${ac_cv_path_BASENAME+:} false; then :
4809   $as_echo_n "(cached) " >&6
4810 else
4811   case $BASENAME in
4812   [\\/]* | ?:[\\/]*)
4813   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4814   ;;
4815   *)
4816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 for as_dir in $PATH
4818 do
4819   IFS=$as_save_IFS
4820   test -z "$as_dir" && as_dir=.
4821     for ac_exec_ext in '' $ac_executable_extensions; do
4822   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4823     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4825     break 2
4826   fi
4827 done
4828   done
4829 IFS=$as_save_IFS
4830 
4831   ;;
4832 esac
4833 fi
4834 BASENAME=$ac_cv_path_BASENAME
4835 if test -n "$BASENAME"; then
4836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4837 $as_echo "$BASENAME" >&6; }
4838 else
4839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840 $as_echo "no" >&6; }
4841 fi
4842 
4843 
4844           if test "x$BASENAME" = x; then
4845             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4846           fi
4847         else
4848           # Otherwise we believe it is a complete path. Use it as it is.
4849           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4850 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4851           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4852 $as_echo_n "checking for BASENAME... " >&6; }
4853           if test ! -x "$tool_specified"; then
4854             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4855 $as_echo "not found" >&6; }
4856             as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4857           fi
4858           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4859 $as_echo "$tool_specified" >&6; }
4860         fi
4861       fi
4862     fi
4863 
4864   fi
4865 
4866 
4867 
4868   if test "x$BASENAME" = x; then
4869     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4870   fi
4871 
4872 
4873 
4874 
4875 
4876   # Publish this variable in the help.
4877 
4878 
4879   if [ -z "${BASH+x}" ]; then
4880     # The variable is not set by user, try to locate tool using the code snippet
4881     for ac_prog in bash
4882 do
4883   # Extract the first word of "$ac_prog", so it can be a program name with args.
4884 set dummy $ac_prog; ac_word=$2
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4886 $as_echo_n "checking for $ac_word... " >&6; }
4887 if ${ac_cv_path_BASH+:} false; then :
4888   $as_echo_n "(cached) " >&6
4889 else
4890   case $BASH in
4891   [\\/]* | ?:[\\/]*)
4892   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4893   ;;
4894   *)
4895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 for as_dir in $PATH
4897 do
4898   IFS=$as_save_IFS
4899   test -z "$as_dir" && as_dir=.
4900     for ac_exec_ext in '' $ac_executable_extensions; do
4901   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4902     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4904     break 2
4905   fi
4906 done
4907   done
4908 IFS=$as_save_IFS
4909 
4910   ;;
4911 esac
4912 fi
4913 BASH=$ac_cv_path_BASH
4914 if test -n "$BASH"; then
4915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4916 $as_echo "$BASH" >&6; }
4917 else
4918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4919 $as_echo "no" >&6; }
4920 fi
4921 
4922 
4923   test -n "$BASH" && break
4924 done
4925 
4926   else
4927     # The variable is set, but is it from the command line or the environment?
4928 
4929     # Try to remove the string !BASH! from our list.
4930     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
4931     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4932       # If it failed, the variable was not from the command line. Ignore it,
4933       # but warn the user (except for BASH, which is always set by the calling BASH).
4934       if test "xBASH" != xBASH; then
4935         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
4936 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
4937       fi
4938       # Try to locate tool using the code snippet
4939       for ac_prog in bash
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_BASH+:} false; then :
4946   $as_echo_n "(cached) " >&6
4947 else
4948   case $BASH in
4949   [\\/]* | ?:[\\/]*)
4950   ac_cv_path_BASH="$BASH" # 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_BASH="$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 BASH=$ac_cv_path_BASH
4972 if test -n "$BASH"; then
4973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4974 $as_echo "$BASH" >&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 "$BASH" && break
4982 done
4983 
4984     else
4985       # If it succeeded, then it was overridden by the user. We will use it
4986       # for the tool.
4987 
4988       # First remove it from the list of overridden variables, so we can test
4989       # for unknown variables in the end.
4990       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4991 
4992       # Check if we try to supply an empty value
4993       if test "x$BASH" = x; then
4994         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5
4995 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;}
4996         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
4997 $as_echo_n "checking for BASH... " >&6; }
4998         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
4999 $as_echo "disabled" >&6; }
5000       else
5001         # Check if the provided tool contains a complete path.
5002         tool_specified="$BASH"
5003         tool_basename="${tool_specified##*/}"
5004         if test "x$tool_basename" = "x$tool_specified"; then
5005           # A command without a complete path is provided, search $PATH.
5006           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
5007 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
5008           # Extract the first word of "$tool_basename", so it can be a program name with args.
5009 set dummy $tool_basename; ac_word=$2
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5011 $as_echo_n "checking for $ac_word... " >&6; }
5012 if ${ac_cv_path_BASH+:} false; then :
5013   $as_echo_n "(cached) " >&6
5014 else
5015   case $BASH in
5016   [\\/]* | ?:[\\/]*)
5017   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5018   ;;
5019   *)
5020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021 for as_dir in $PATH
5022 do
5023   IFS=$as_save_IFS
5024   test -z "$as_dir" && as_dir=.
5025     for ac_exec_ext in '' $ac_executable_extensions; do
5026   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5027     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5029     break 2
5030   fi
5031 done
5032   done
5033 IFS=$as_save_IFS
5034 
5035   ;;
5036 esac
5037 fi
5038 BASH=$ac_cv_path_BASH
5039 if test -n "$BASH"; then
5040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5041 $as_echo "$BASH" >&6; }
5042 else
5043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5044 $as_echo "no" >&6; }
5045 fi
5046 
5047 
5048           if test "x$BASH" = x; then
5049             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5050           fi
5051         else
5052           # Otherwise we believe it is a complete path. Use it as it is.
5053           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
5054 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
5055           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5056 $as_echo_n "checking for BASH... " >&6; }
5057           if test ! -x "$tool_specified"; then
5058             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5059 $as_echo "not found" >&6; }
5060             as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
5061           fi
5062           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5063 $as_echo "$tool_specified" >&6; }
5064         fi
5065       fi
5066     fi
5067 
5068   fi
5069 
5070 
5071 
5072   if test "x$BASH" = x; then
5073     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
5074   fi
5075 
5076 
5077 
5078 
5079 
5080   # Publish this variable in the help.
5081 
5082 
5083   if [ -z "${CAT+x}" ]; then
5084     # The variable is not set by user, try to locate tool using the code snippet
5085     for ac_prog in cat
5086 do
5087   # Extract the first word of "$ac_prog", so it can be a program name with args.
5088 set dummy $ac_prog; ac_word=$2
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090 $as_echo_n "checking for $ac_word... " >&6; }
5091 if ${ac_cv_path_CAT+:} false; then :
5092   $as_echo_n "(cached) " >&6
5093 else
5094   case $CAT in
5095   [\\/]* | ?:[\\/]*)
5096   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5097   ;;
5098   *)
5099   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH
5101 do
5102   IFS=$as_save_IFS
5103   test -z "$as_dir" && as_dir=.
5104     for ac_exec_ext in '' $ac_executable_extensions; do
5105   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5106     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5108     break 2
5109   fi
5110 done
5111   done
5112 IFS=$as_save_IFS
5113 
5114   ;;
5115 esac
5116 fi
5117 CAT=$ac_cv_path_CAT
5118 if test -n "$CAT"; then
5119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5120 $as_echo "$CAT" >&6; }
5121 else
5122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5123 $as_echo "no" >&6; }
5124 fi
5125 
5126 
5127   test -n "$CAT" && break
5128 done
5129 
5130   else
5131     # The variable is set, but is it from the command line or the environment?
5132 
5133     # Try to remove the string !CAT! from our list.
5134     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
5135     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5136       # If it failed, the variable was not from the command line. Ignore it,
5137       # but warn the user (except for BASH, which is always set by the calling BASH).
5138       if test "xCAT" != xBASH; then
5139         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
5140 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
5141       fi
5142       # Try to locate tool using the code snippet
5143       for ac_prog in cat
5144 do
5145   # Extract the first word of "$ac_prog", so it can be a program name with args.
5146 set dummy $ac_prog; ac_word=$2
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5148 $as_echo_n "checking for $ac_word... " >&6; }
5149 if ${ac_cv_path_CAT+:} false; then :
5150   $as_echo_n "(cached) " >&6
5151 else
5152   case $CAT in
5153   [\\/]* | ?:[\\/]*)
5154   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5155   ;;
5156   *)
5157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 for as_dir in $PATH
5159 do
5160   IFS=$as_save_IFS
5161   test -z "$as_dir" && as_dir=.
5162     for ac_exec_ext in '' $ac_executable_extensions; do
5163   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5164     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5166     break 2
5167   fi
5168 done
5169   done
5170 IFS=$as_save_IFS
5171 
5172   ;;
5173 esac
5174 fi
5175 CAT=$ac_cv_path_CAT
5176 if test -n "$CAT"; then
5177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5178 $as_echo "$CAT" >&6; }
5179 else
5180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5182 fi
5183 
5184 
5185   test -n "$CAT" && break
5186 done
5187 
5188     else
5189       # If it succeeded, then it was overridden by the user. We will use it
5190       # for the tool.
5191 
5192       # First remove it from the list of overridden variables, so we can test
5193       # for unknown variables in the end.
5194       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5195 
5196       # Check if we try to supply an empty value
5197       if test "x$CAT" = x; then
5198         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5
5199 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;}
5200         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5201 $as_echo_n "checking for CAT... " >&6; }
5202         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5203 $as_echo "disabled" >&6; }
5204       else
5205         # Check if the provided tool contains a complete path.
5206         tool_specified="$CAT"
5207         tool_basename="${tool_specified##*/}"
5208         if test "x$tool_basename" = "x$tool_specified"; then
5209           # A command without a complete path is provided, search $PATH.
5210           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
5211 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
5212           # Extract the first word of "$tool_basename", so it can be a program name with args.
5213 set dummy $tool_basename; ac_word=$2
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5215 $as_echo_n "checking for $ac_word... " >&6; }
5216 if ${ac_cv_path_CAT+:} false; then :
5217   $as_echo_n "(cached) " >&6
5218 else
5219   case $CAT in
5220   [\\/]* | ?:[\\/]*)
5221   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5222   ;;
5223   *)
5224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in $PATH
5226 do
5227   IFS=$as_save_IFS
5228   test -z "$as_dir" && as_dir=.
5229     for ac_exec_ext in '' $ac_executable_extensions; do
5230   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5231     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5233     break 2
5234   fi
5235 done
5236   done
5237 IFS=$as_save_IFS
5238 
5239   ;;
5240 esac
5241 fi
5242 CAT=$ac_cv_path_CAT
5243 if test -n "$CAT"; then
5244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5245 $as_echo "$CAT" >&6; }
5246 else
5247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5248 $as_echo "no" >&6; }
5249 fi
5250 
5251 
5252           if test "x$CAT" = x; then
5253             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5254           fi
5255         else
5256           # Otherwise we believe it is a complete path. Use it as it is.
5257           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
5258 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
5259           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5260 $as_echo_n "checking for CAT... " >&6; }
5261           if test ! -x "$tool_specified"; then
5262             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5263 $as_echo "not found" >&6; }
5264             as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
5265           fi
5266           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5267 $as_echo "$tool_specified" >&6; }
5268         fi
5269       fi
5270     fi
5271 
5272   fi
5273 
5274 
5275 
5276   if test "x$CAT" = x; then
5277     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5278   fi
5279 
5280 
5281 
5282 
5283 
5284   # Publish this variable in the help.
5285 
5286 
5287   if [ -z "${CHMOD+x}" ]; then
5288     # The variable is not set by user, try to locate tool using the code snippet
5289     for ac_prog in chmod
5290 do
5291   # Extract the first word of "$ac_prog", so it can be a program name with args.
5292 set dummy $ac_prog; ac_word=$2
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294 $as_echo_n "checking for $ac_word... " >&6; }
5295 if ${ac_cv_path_CHMOD+:} false; then :
5296   $as_echo_n "(cached) " >&6
5297 else
5298   case $CHMOD in
5299   [\\/]* | ?:[\\/]*)
5300   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5301   ;;
5302   *)
5303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 for as_dir in $PATH
5305 do
5306   IFS=$as_save_IFS
5307   test -z "$as_dir" && as_dir=.
5308     for ac_exec_ext in '' $ac_executable_extensions; do
5309   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5310     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312     break 2
5313   fi
5314 done
5315   done
5316 IFS=$as_save_IFS
5317 
5318   ;;
5319 esac
5320 fi
5321 CHMOD=$ac_cv_path_CHMOD
5322 if test -n "$CHMOD"; then
5323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5324 $as_echo "$CHMOD" >&6; }
5325 else
5326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327 $as_echo "no" >&6; }
5328 fi
5329 
5330 
5331   test -n "$CHMOD" && break
5332 done
5333 
5334   else
5335     # The variable is set, but is it from the command line or the environment?
5336 
5337     # Try to remove the string !CHMOD! from our list.
5338     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5339     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5340       # If it failed, the variable was not from the command line. Ignore it,
5341       # but warn the user (except for BASH, which is always set by the calling BASH).
5342       if test "xCHMOD" != xBASH; then
5343         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5344 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5345       fi
5346       # Try to locate tool using the code snippet
5347       for ac_prog in chmod
5348 do
5349   # Extract the first word of "$ac_prog", so it can be a program name with args.
5350 set dummy $ac_prog; ac_word=$2
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5352 $as_echo_n "checking for $ac_word... " >&6; }
5353 if ${ac_cv_path_CHMOD+:} false; then :
5354   $as_echo_n "(cached) " >&6
5355 else
5356   case $CHMOD in
5357   [\\/]* | ?:[\\/]*)
5358   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5359   ;;
5360   *)
5361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362 for as_dir in $PATH
5363 do
5364   IFS=$as_save_IFS
5365   test -z "$as_dir" && as_dir=.
5366     for ac_exec_ext in '' $ac_executable_extensions; do
5367   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5368     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5370     break 2
5371   fi
5372 done
5373   done
5374 IFS=$as_save_IFS
5375 
5376   ;;
5377 esac
5378 fi
5379 CHMOD=$ac_cv_path_CHMOD
5380 if test -n "$CHMOD"; then
5381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5382 $as_echo "$CHMOD" >&6; }
5383 else
5384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5385 $as_echo "no" >&6; }
5386 fi
5387 
5388 
5389   test -n "$CHMOD" && break
5390 done
5391 
5392     else
5393       # If it succeeded, then it was overridden by the user. We will use it
5394       # for the tool.
5395 
5396       # First remove it from the list of overridden variables, so we can test
5397       # for unknown variables in the end.
5398       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5399 
5400       # Check if we try to supply an empty value
5401       if test "x$CHMOD" = x; then
5402         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5
5403 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;}
5404         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5405 $as_echo_n "checking for CHMOD... " >&6; }
5406         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5407 $as_echo "disabled" >&6; }
5408       else
5409         # Check if the provided tool contains a complete path.
5410         tool_specified="$CHMOD"
5411         tool_basename="${tool_specified##*/}"
5412         if test "x$tool_basename" = "x$tool_specified"; then
5413           # A command without a complete path is provided, search $PATH.
5414           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5415 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5416           # Extract the first word of "$tool_basename", so it can be a program name with args.
5417 set dummy $tool_basename; ac_word=$2
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5419 $as_echo_n "checking for $ac_word... " >&6; }
5420 if ${ac_cv_path_CHMOD+:} false; then :
5421   $as_echo_n "(cached) " >&6
5422 else
5423   case $CHMOD in
5424   [\\/]* | ?:[\\/]*)
5425   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5426   ;;
5427   *)
5428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429 for as_dir in $PATH
5430 do
5431   IFS=$as_save_IFS
5432   test -z "$as_dir" && as_dir=.
5433     for ac_exec_ext in '' $ac_executable_extensions; do
5434   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5435     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5437     break 2
5438   fi
5439 done
5440   done
5441 IFS=$as_save_IFS
5442 
5443   ;;
5444 esac
5445 fi
5446 CHMOD=$ac_cv_path_CHMOD
5447 if test -n "$CHMOD"; then
5448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5449 $as_echo "$CHMOD" >&6; }
5450 else
5451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452 $as_echo "no" >&6; }
5453 fi
5454 
5455 
5456           if test "x$CHMOD" = x; then
5457             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5458           fi
5459         else
5460           # Otherwise we believe it is a complete path. Use it as it is.
5461           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5462 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5463           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5464 $as_echo_n "checking for CHMOD... " >&6; }
5465           if test ! -x "$tool_specified"; then
5466             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5467 $as_echo "not found" >&6; }
5468             as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5469           fi
5470           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5471 $as_echo "$tool_specified" >&6; }
5472         fi
5473       fi
5474     fi
5475 
5476   fi
5477 
5478 
5479 
5480   if test "x$CHMOD" = x; then
5481     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5482   fi
5483 
5484 
5485 
5486 
5487 
5488   # Publish this variable in the help.
5489 
5490 
5491   if [ -z "${CMP+x}" ]; then
5492     # The variable is not set by user, try to locate tool using the code snippet
5493     for ac_prog in cmp
5494 do
5495   # Extract the first word of "$ac_prog", so it can be a program name with args.
5496 set dummy $ac_prog; ac_word=$2
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5498 $as_echo_n "checking for $ac_word... " >&6; }
5499 if ${ac_cv_path_CMP+:} false; then :
5500   $as_echo_n "(cached) " >&6
5501 else
5502   case $CMP in
5503   [\\/]* | ?:[\\/]*)
5504   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5505   ;;
5506   *)
5507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508 for as_dir in $PATH
5509 do
5510   IFS=$as_save_IFS
5511   test -z "$as_dir" && as_dir=.
5512     for ac_exec_ext in '' $ac_executable_extensions; do
5513   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5514     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5516     break 2
5517   fi
5518 done
5519   done
5520 IFS=$as_save_IFS
5521 
5522   ;;
5523 esac
5524 fi
5525 CMP=$ac_cv_path_CMP
5526 if test -n "$CMP"; then
5527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5528 $as_echo "$CMP" >&6; }
5529 else
5530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531 $as_echo "no" >&6; }
5532 fi
5533 
5534 
5535   test -n "$CMP" && break
5536 done
5537 
5538   else
5539     # The variable is set, but is it from the command line or the environment?
5540 
5541     # Try to remove the string !CMP! from our list.
5542     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
5543     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5544       # If it failed, the variable was not from the command line. Ignore it,
5545       # but warn the user (except for BASH, which is always set by the calling BASH).
5546       if test "xCMP" != xBASH; then
5547         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
5548 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
5549       fi
5550       # Try to locate tool using the code snippet
5551       for ac_prog in cmp
5552 do
5553   # Extract the first word of "$ac_prog", so it can be a program name with args.
5554 set dummy $ac_prog; ac_word=$2
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5556 $as_echo_n "checking for $ac_word... " >&6; }
5557 if ${ac_cv_path_CMP+:} false; then :
5558   $as_echo_n "(cached) " >&6
5559 else
5560   case $CMP in
5561   [\\/]* | ?:[\\/]*)
5562   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5563   ;;
5564   *)
5565   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566 for as_dir in $PATH
5567 do
5568   IFS=$as_save_IFS
5569   test -z "$as_dir" && as_dir=.
5570     for ac_exec_ext in '' $ac_executable_extensions; do
5571   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5572     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5574     break 2
5575   fi
5576 done
5577   done
5578 IFS=$as_save_IFS
5579 
5580   ;;
5581 esac
5582 fi
5583 CMP=$ac_cv_path_CMP
5584 if test -n "$CMP"; then
5585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5586 $as_echo "$CMP" >&6; }
5587 else
5588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589 $as_echo "no" >&6; }
5590 fi
5591 
5592 
5593   test -n "$CMP" && break
5594 done
5595 
5596     else
5597       # If it succeeded, then it was overridden by the user. We will use it
5598       # for the tool.
5599 
5600       # First remove it from the list of overridden variables, so we can test
5601       # for unknown variables in the end.
5602       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5603 
5604       # Check if we try to supply an empty value
5605       if test "x$CMP" = x; then
5606         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5
5607 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;}
5608         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5609 $as_echo_n "checking for CMP... " >&6; }
5610         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5611 $as_echo "disabled" >&6; }
5612       else
5613         # Check if the provided tool contains a complete path.
5614         tool_specified="$CMP"
5615         tool_basename="${tool_specified##*/}"
5616         if test "x$tool_basename" = "x$tool_specified"; then
5617           # A command without a complete path is provided, search $PATH.
5618           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5619 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5620           # Extract the first word of "$tool_basename", so it can be a program name with args.
5621 set dummy $tool_basename; ac_word=$2
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5623 $as_echo_n "checking for $ac_word... " >&6; }
5624 if ${ac_cv_path_CMP+:} false; then :
5625   $as_echo_n "(cached) " >&6
5626 else
5627   case $CMP in
5628   [\\/]* | ?:[\\/]*)
5629   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5630   ;;
5631   *)
5632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 for as_dir in $PATH
5634 do
5635   IFS=$as_save_IFS
5636   test -z "$as_dir" && as_dir=.
5637     for ac_exec_ext in '' $ac_executable_extensions; do
5638   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5639     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5641     break 2
5642   fi
5643 done
5644   done
5645 IFS=$as_save_IFS
5646 
5647   ;;
5648 esac
5649 fi
5650 CMP=$ac_cv_path_CMP
5651 if test -n "$CMP"; then
5652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5653 $as_echo "$CMP" >&6; }
5654 else
5655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 $as_echo "no" >&6; }
5657 fi
5658 
5659 
5660           if test "x$CMP" = x; then
5661             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5662           fi
5663         else
5664           # Otherwise we believe it is a complete path. Use it as it is.
5665           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5666 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5667           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5668 $as_echo_n "checking for CMP... " >&6; }
5669           if test ! -x "$tool_specified"; then
5670             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5671 $as_echo "not found" >&6; }
5672             as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5673           fi
5674           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5675 $as_echo "$tool_specified" >&6; }
5676         fi
5677       fi
5678     fi
5679 
5680   fi
5681 
5682 
5683 
5684   if test "x$CMP" = x; then
5685     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5686   fi
5687 
5688 
5689 
5690 
5691 
5692   # Publish this variable in the help.
5693 
5694 
5695   if [ -z "${COMM+x}" ]; then
5696     # The variable is not set by user, try to locate tool using the code snippet
5697     for ac_prog in comm
5698 do
5699   # Extract the first word of "$ac_prog", so it can be a program name with args.
5700 set dummy $ac_prog; ac_word=$2
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5702 $as_echo_n "checking for $ac_word... " >&6; }
5703 if ${ac_cv_path_COMM+:} false; then :
5704   $as_echo_n "(cached) " >&6
5705 else
5706   case $COMM in
5707   [\\/]* | ?:[\\/]*)
5708   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5709   ;;
5710   *)
5711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 for as_dir in $PATH
5713 do
5714   IFS=$as_save_IFS
5715   test -z "$as_dir" && as_dir=.
5716     for ac_exec_ext in '' $ac_executable_extensions; do
5717   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5718     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5720     break 2
5721   fi
5722 done
5723   done
5724 IFS=$as_save_IFS
5725 
5726   ;;
5727 esac
5728 fi
5729 COMM=$ac_cv_path_COMM
5730 if test -n "$COMM"; then
5731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5732 $as_echo "$COMM" >&6; }
5733 else
5734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5735 $as_echo "no" >&6; }
5736 fi
5737 
5738 
5739   test -n "$COMM" && break
5740 done
5741 
5742   else
5743     # The variable is set, but is it from the command line or the environment?
5744 
5745     # Try to remove the string !COMM! from our list.
5746     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5747     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5748       # If it failed, the variable was not from the command line. Ignore it,
5749       # but warn the user (except for BASH, which is always set by the calling BASH).
5750       if test "xCOMM" != xBASH; then
5751         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5752 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5753       fi
5754       # Try to locate tool using the code snippet
5755       for ac_prog in comm
5756 do
5757   # Extract the first word of "$ac_prog", so it can be a program name with args.
5758 set dummy $ac_prog; ac_word=$2
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5760 $as_echo_n "checking for $ac_word... " >&6; }
5761 if ${ac_cv_path_COMM+:} false; then :
5762   $as_echo_n "(cached) " >&6
5763 else
5764   case $COMM in
5765   [\\/]* | ?:[\\/]*)
5766   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5767   ;;
5768   *)
5769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 for as_dir in $PATH
5771 do
5772   IFS=$as_save_IFS
5773   test -z "$as_dir" && as_dir=.
5774     for ac_exec_ext in '' $ac_executable_extensions; do
5775   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5776     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5778     break 2
5779   fi
5780 done
5781   done
5782 IFS=$as_save_IFS
5783 
5784   ;;
5785 esac
5786 fi
5787 COMM=$ac_cv_path_COMM
5788 if test -n "$COMM"; then
5789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5790 $as_echo "$COMM" >&6; }
5791 else
5792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793 $as_echo "no" >&6; }
5794 fi
5795 
5796 
5797   test -n "$COMM" && break
5798 done
5799 
5800     else
5801       # If it succeeded, then it was overridden by the user. We will use it
5802       # for the tool.
5803 
5804       # First remove it from the list of overridden variables, so we can test
5805       # for unknown variables in the end.
5806       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5807 
5808       # Check if we try to supply an empty value
5809       if test "x$COMM" = x; then
5810         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5
5811 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;}
5812         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5813 $as_echo_n "checking for COMM... " >&6; }
5814         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5815 $as_echo "disabled" >&6; }
5816       else
5817         # Check if the provided tool contains a complete path.
5818         tool_specified="$COMM"
5819         tool_basename="${tool_specified##*/}"
5820         if test "x$tool_basename" = "x$tool_specified"; then
5821           # A command without a complete path is provided, search $PATH.
5822           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5823 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5824           # Extract the first word of "$tool_basename", so it can be a program name with args.
5825 set dummy $tool_basename; ac_word=$2
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5827 $as_echo_n "checking for $ac_word... " >&6; }
5828 if ${ac_cv_path_COMM+:} false; then :
5829   $as_echo_n "(cached) " >&6
5830 else
5831   case $COMM in
5832   [\\/]* | ?:[\\/]*)
5833   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5834   ;;
5835   *)
5836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 for as_dir in $PATH
5838 do
5839   IFS=$as_save_IFS
5840   test -z "$as_dir" && as_dir=.
5841     for ac_exec_ext in '' $ac_executable_extensions; do
5842   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5843     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5845     break 2
5846   fi
5847 done
5848   done
5849 IFS=$as_save_IFS
5850 
5851   ;;
5852 esac
5853 fi
5854 COMM=$ac_cv_path_COMM
5855 if test -n "$COMM"; then
5856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5857 $as_echo "$COMM" >&6; }
5858 else
5859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5860 $as_echo "no" >&6; }
5861 fi
5862 
5863 
5864           if test "x$COMM" = x; then
5865             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5866           fi
5867         else
5868           # Otherwise we believe it is a complete path. Use it as it is.
5869           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5870 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5871           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5872 $as_echo_n "checking for COMM... " >&6; }
5873           if test ! -x "$tool_specified"; then
5874             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5875 $as_echo "not found" >&6; }
5876             as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5877           fi
5878           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5879 $as_echo "$tool_specified" >&6; }
5880         fi
5881       fi
5882     fi
5883 
5884   fi
5885 
5886 
5887 
5888   if test "x$COMM" = x; then
5889     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
5890   fi
5891 
5892 
5893 
5894 
5895 
5896   # Publish this variable in the help.
5897 
5898 
5899   if [ -z "${CP+x}" ]; then
5900     # The variable is not set by user, try to locate tool using the code snippet
5901     for ac_prog in cp
5902 do
5903   # Extract the first word of "$ac_prog", so it can be a program name with args.
5904 set dummy $ac_prog; ac_word=$2
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5906 $as_echo_n "checking for $ac_word... " >&6; }
5907 if ${ac_cv_path_CP+:} false; then :
5908   $as_echo_n "(cached) " >&6
5909 else
5910   case $CP in
5911   [\\/]* | ?:[\\/]*)
5912   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5913   ;;
5914   *)
5915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 for as_dir in $PATH
5917 do
5918   IFS=$as_save_IFS
5919   test -z "$as_dir" && as_dir=.
5920     for ac_exec_ext in '' $ac_executable_extensions; do
5921   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5922     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5924     break 2
5925   fi
5926 done
5927   done
5928 IFS=$as_save_IFS
5929 
5930   ;;
5931 esac
5932 fi
5933 CP=$ac_cv_path_CP
5934 if test -n "$CP"; then
5935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5936 $as_echo "$CP" >&6; }
5937 else
5938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5939 $as_echo "no" >&6; }
5940 fi
5941 
5942 
5943   test -n "$CP" && break
5944 done
5945 
5946   else
5947     # The variable is set, but is it from the command line or the environment?
5948 
5949     # Try to remove the string !CP! from our list.
5950     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
5951     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5952       # If it failed, the variable was not from the command line. Ignore it,
5953       # but warn the user (except for BASH, which is always set by the calling BASH).
5954       if test "xCP" != xBASH; then
5955         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
5956 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
5957       fi
5958       # Try to locate tool using the code snippet
5959       for ac_prog in cp
5960 do
5961   # Extract the first word of "$ac_prog", so it can be a program name with args.
5962 set dummy $ac_prog; ac_word=$2
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5964 $as_echo_n "checking for $ac_word... " >&6; }
5965 if ${ac_cv_path_CP+:} false; then :
5966   $as_echo_n "(cached) " >&6
5967 else
5968   case $CP in
5969   [\\/]* | ?:[\\/]*)
5970   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5971   ;;
5972   *)
5973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974 for as_dir in $PATH
5975 do
5976   IFS=$as_save_IFS
5977   test -z "$as_dir" && as_dir=.
5978     for ac_exec_ext in '' $ac_executable_extensions; do
5979   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5980     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5982     break 2
5983   fi
5984 done
5985   done
5986 IFS=$as_save_IFS
5987 
5988   ;;
5989 esac
5990 fi
5991 CP=$ac_cv_path_CP
5992 if test -n "$CP"; then
5993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5994 $as_echo "$CP" >&6; }
5995 else
5996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5997 $as_echo "no" >&6; }
5998 fi
5999 
6000 
6001   test -n "$CP" && break
6002 done
6003 
6004     else
6005       # If it succeeded, then it was overridden by the user. We will use it
6006       # for the tool.
6007 
6008       # First remove it from the list of overridden variables, so we can test
6009       # for unknown variables in the end.
6010       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6011 
6012       # Check if we try to supply an empty value
6013       if test "x$CP" = x; then
6014         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5
6015 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;}
6016         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6017 $as_echo_n "checking for CP... " >&6; }
6018         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6019 $as_echo "disabled" >&6; }
6020       else
6021         # Check if the provided tool contains a complete path.
6022         tool_specified="$CP"
6023         tool_basename="${tool_specified##*/}"
6024         if test "x$tool_basename" = "x$tool_specified"; then
6025           # A command without a complete path is provided, search $PATH.
6026           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
6027 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
6028           # Extract the first word of "$tool_basename", so it can be a program name with args.
6029 set dummy $tool_basename; ac_word=$2
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6031 $as_echo_n "checking for $ac_word... " >&6; }
6032 if ${ac_cv_path_CP+:} false; then :
6033   $as_echo_n "(cached) " >&6
6034 else
6035   case $CP in
6036   [\\/]* | ?:[\\/]*)
6037   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6038   ;;
6039   *)
6040   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041 for as_dir in $PATH
6042 do
6043   IFS=$as_save_IFS
6044   test -z "$as_dir" && as_dir=.
6045     for ac_exec_ext in '' $ac_executable_extensions; do
6046   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6047     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6049     break 2
6050   fi
6051 done
6052   done
6053 IFS=$as_save_IFS
6054 
6055   ;;
6056 esac
6057 fi
6058 CP=$ac_cv_path_CP
6059 if test -n "$CP"; then
6060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6061 $as_echo "$CP" >&6; }
6062 else
6063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6065 fi
6066 
6067 
6068           if test "x$CP" = x; then
6069             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6070           fi
6071         else
6072           # Otherwise we believe it is a complete path. Use it as it is.
6073           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
6074 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
6075           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6076 $as_echo_n "checking for CP... " >&6; }
6077           if test ! -x "$tool_specified"; then
6078             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6079 $as_echo "not found" >&6; }
6080             as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
6081           fi
6082           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6083 $as_echo "$tool_specified" >&6; }
6084         fi
6085       fi
6086     fi
6087 
6088   fi
6089 
6090 
6091 
6092   if test "x$CP" = x; then
6093     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
6094   fi
6095 
6096 
6097 
6098 
6099 
6100   # Publish this variable in the help.
6101 
6102 
6103   if [ -z "${CUT+x}" ]; then
6104     # The variable is not set by user, try to locate tool using the code snippet
6105     for ac_prog in cut
6106 do
6107   # Extract the first word of "$ac_prog", so it can be a program name with args.
6108 set dummy $ac_prog; ac_word=$2
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110 $as_echo_n "checking for $ac_word... " >&6; }
6111 if ${ac_cv_path_CUT+:} false; then :
6112   $as_echo_n "(cached) " >&6
6113 else
6114   case $CUT in
6115   [\\/]* | ?:[\\/]*)
6116   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6117   ;;
6118   *)
6119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 for as_dir in $PATH
6121 do
6122   IFS=$as_save_IFS
6123   test -z "$as_dir" && as_dir=.
6124     for ac_exec_ext in '' $ac_executable_extensions; do
6125   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6126     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6128     break 2
6129   fi
6130 done
6131   done
6132 IFS=$as_save_IFS
6133 
6134   ;;
6135 esac
6136 fi
6137 CUT=$ac_cv_path_CUT
6138 if test -n "$CUT"; then
6139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6140 $as_echo "$CUT" >&6; }
6141 else
6142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6143 $as_echo "no" >&6; }
6144 fi
6145 
6146 
6147   test -n "$CUT" && break
6148 done
6149 
6150   else
6151     # The variable is set, but is it from the command line or the environment?
6152 
6153     # Try to remove the string !CUT! from our list.
6154     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
6155     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6156       # If it failed, the variable was not from the command line. Ignore it,
6157       # but warn the user (except for BASH, which is always set by the calling BASH).
6158       if test "xCUT" != xBASH; then
6159         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
6160 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
6161       fi
6162       # Try to locate tool using the code snippet
6163       for ac_prog in cut
6164 do
6165   # Extract the first word of "$ac_prog", so it can be a program name with args.
6166 set dummy $ac_prog; ac_word=$2
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6168 $as_echo_n "checking for $ac_word... " >&6; }
6169 if ${ac_cv_path_CUT+:} false; then :
6170   $as_echo_n "(cached) " >&6
6171 else
6172   case $CUT in
6173   [\\/]* | ?:[\\/]*)
6174   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6175   ;;
6176   *)
6177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 for as_dir in $PATH
6179 do
6180   IFS=$as_save_IFS
6181   test -z "$as_dir" && as_dir=.
6182     for ac_exec_ext in '' $ac_executable_extensions; do
6183   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6184     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6186     break 2
6187   fi
6188 done
6189   done
6190 IFS=$as_save_IFS
6191 
6192   ;;
6193 esac
6194 fi
6195 CUT=$ac_cv_path_CUT
6196 if test -n "$CUT"; then
6197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6198 $as_echo "$CUT" >&6; }
6199 else
6200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6201 $as_echo "no" >&6; }
6202 fi
6203 
6204 
6205   test -n "$CUT" && break
6206 done
6207 
6208     else
6209       # If it succeeded, then it was overridden by the user. We will use it
6210       # for the tool.
6211 
6212       # First remove it from the list of overridden variables, so we can test
6213       # for unknown variables in the end.
6214       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6215 
6216       # Check if we try to supply an empty value
6217       if test "x$CUT" = x; then
6218         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5
6219 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;}
6220         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6221 $as_echo_n "checking for CUT... " >&6; }
6222         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6223 $as_echo "disabled" >&6; }
6224       else
6225         # Check if the provided tool contains a complete path.
6226         tool_specified="$CUT"
6227         tool_basename="${tool_specified##*/}"
6228         if test "x$tool_basename" = "x$tool_specified"; then
6229           # A command without a complete path is provided, search $PATH.
6230           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
6231 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
6232           # Extract the first word of "$tool_basename", so it can be a program name with args.
6233 set dummy $tool_basename; ac_word=$2
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6235 $as_echo_n "checking for $ac_word... " >&6; }
6236 if ${ac_cv_path_CUT+:} false; then :
6237   $as_echo_n "(cached) " >&6
6238 else
6239   case $CUT in
6240   [\\/]* | ?:[\\/]*)
6241   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6242   ;;
6243   *)
6244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 for as_dir in $PATH
6246 do
6247   IFS=$as_save_IFS
6248   test -z "$as_dir" && as_dir=.
6249     for ac_exec_ext in '' $ac_executable_extensions; do
6250   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6251     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6253     break 2
6254   fi
6255 done
6256   done
6257 IFS=$as_save_IFS
6258 
6259   ;;
6260 esac
6261 fi
6262 CUT=$ac_cv_path_CUT
6263 if test -n "$CUT"; then
6264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6265 $as_echo "$CUT" >&6; }
6266 else
6267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268 $as_echo "no" >&6; }
6269 fi
6270 
6271 
6272           if test "x$CUT" = x; then
6273             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6274           fi
6275         else
6276           # Otherwise we believe it is a complete path. Use it as it is.
6277           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
6278 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6279           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6280 $as_echo_n "checking for CUT... " >&6; }
6281           if test ! -x "$tool_specified"; then
6282             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6283 $as_echo "not found" >&6; }
6284             as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6285           fi
6286           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6287 $as_echo "$tool_specified" >&6; }
6288         fi
6289       fi
6290     fi
6291 
6292   fi
6293 
6294 
6295 
6296   if test "x$CUT" = x; then
6297     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6298   fi
6299 
6300 
6301 
6302 
6303 
6304   # Publish this variable in the help.
6305 
6306 
6307   if [ -z "${DATE+x}" ]; then
6308     # The variable is not set by user, try to locate tool using the code snippet
6309     for ac_prog in date
6310 do
6311   # Extract the first word of "$ac_prog", so it can be a program name with args.
6312 set dummy $ac_prog; ac_word=$2
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6314 $as_echo_n "checking for $ac_word... " >&6; }
6315 if ${ac_cv_path_DATE+:} false; then :
6316   $as_echo_n "(cached) " >&6
6317 else
6318   case $DATE in
6319   [\\/]* | ?:[\\/]*)
6320   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6321   ;;
6322   *)
6323   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 for as_dir in $PATH
6325 do
6326   IFS=$as_save_IFS
6327   test -z "$as_dir" && as_dir=.
6328     for ac_exec_ext in '' $ac_executable_extensions; do
6329   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6330     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6332     break 2
6333   fi
6334 done
6335   done
6336 IFS=$as_save_IFS
6337 
6338   ;;
6339 esac
6340 fi
6341 DATE=$ac_cv_path_DATE
6342 if test -n "$DATE"; then
6343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6344 $as_echo "$DATE" >&6; }
6345 else
6346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347 $as_echo "no" >&6; }
6348 fi
6349 
6350 
6351   test -n "$DATE" && break
6352 done
6353 
6354   else
6355     # The variable is set, but is it from the command line or the environment?
6356 
6357     # Try to remove the string !DATE! from our list.
6358     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6359     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6360       # If it failed, the variable was not from the command line. Ignore it,
6361       # but warn the user (except for BASH, which is always set by the calling BASH).
6362       if test "xDATE" != xBASH; then
6363         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6364 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6365       fi
6366       # Try to locate tool using the code snippet
6367       for ac_prog in date
6368 do
6369   # Extract the first word of "$ac_prog", so it can be a program name with args.
6370 set dummy $ac_prog; ac_word=$2
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6372 $as_echo_n "checking for $ac_word... " >&6; }
6373 if ${ac_cv_path_DATE+:} false; then :
6374   $as_echo_n "(cached) " >&6
6375 else
6376   case $DATE in
6377   [\\/]* | ?:[\\/]*)
6378   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6379   ;;
6380   *)
6381   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382 for as_dir in $PATH
6383 do
6384   IFS=$as_save_IFS
6385   test -z "$as_dir" && as_dir=.
6386     for ac_exec_ext in '' $ac_executable_extensions; do
6387   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6388     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6390     break 2
6391   fi
6392 done
6393   done
6394 IFS=$as_save_IFS
6395 
6396   ;;
6397 esac
6398 fi
6399 DATE=$ac_cv_path_DATE
6400 if test -n "$DATE"; then
6401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6402 $as_echo "$DATE" >&6; }
6403 else
6404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405 $as_echo "no" >&6; }
6406 fi
6407 
6408 
6409   test -n "$DATE" && break
6410 done
6411 
6412     else
6413       # If it succeeded, then it was overridden by the user. We will use it
6414       # for the tool.
6415 
6416       # First remove it from the list of overridden variables, so we can test
6417       # for unknown variables in the end.
6418       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6419 
6420       # Check if we try to supply an empty value
6421       if test "x$DATE" = x; then
6422         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5
6423 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;}
6424         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6425 $as_echo_n "checking for DATE... " >&6; }
6426         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6427 $as_echo "disabled" >&6; }
6428       else
6429         # Check if the provided tool contains a complete path.
6430         tool_specified="$DATE"
6431         tool_basename="${tool_specified##*/}"
6432         if test "x$tool_basename" = "x$tool_specified"; then
6433           # A command without a complete path is provided, search $PATH.
6434           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6435 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6436           # Extract the first word of "$tool_basename", so it can be a program name with args.
6437 set dummy $tool_basename; ac_word=$2
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439 $as_echo_n "checking for $ac_word... " >&6; }
6440 if ${ac_cv_path_DATE+:} false; then :
6441   $as_echo_n "(cached) " >&6
6442 else
6443   case $DATE in
6444   [\\/]* | ?:[\\/]*)
6445   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6446   ;;
6447   *)
6448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH
6450 do
6451   IFS=$as_save_IFS
6452   test -z "$as_dir" && as_dir=.
6453     for ac_exec_ext in '' $ac_executable_extensions; do
6454   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6455     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457     break 2
6458   fi
6459 done
6460   done
6461 IFS=$as_save_IFS
6462 
6463   ;;
6464 esac
6465 fi
6466 DATE=$ac_cv_path_DATE
6467 if test -n "$DATE"; then
6468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6469 $as_echo "$DATE" >&6; }
6470 else
6471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6473 fi
6474 
6475 
6476           if test "x$DATE" = x; then
6477             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6478           fi
6479         else
6480           # Otherwise we believe it is a complete path. Use it as it is.
6481           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6482 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6483           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6484 $as_echo_n "checking for DATE... " >&6; }
6485           if test ! -x "$tool_specified"; then
6486             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6487 $as_echo "not found" >&6; }
6488             as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6489           fi
6490           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6491 $as_echo "$tool_specified" >&6; }
6492         fi
6493       fi
6494     fi
6495 
6496   fi
6497 
6498 
6499 
6500   if test "x$DATE" = x; then
6501     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6502   fi
6503 
6504 
6505 
6506 
6507 
6508   # Publish this variable in the help.
6509 
6510 
6511   if [ -z "${DIFF+x}" ]; then
6512     # The variable is not set by user, try to locate tool using the code snippet
6513     for ac_prog in gdiff diff
6514 do
6515   # Extract the first word of "$ac_prog", so it can be a program name with args.
6516 set dummy $ac_prog; ac_word=$2
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6518 $as_echo_n "checking for $ac_word... " >&6; }
6519 if ${ac_cv_path_DIFF+:} false; then :
6520   $as_echo_n "(cached) " >&6
6521 else
6522   case $DIFF in
6523   [\\/]* | ?:[\\/]*)
6524   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6525   ;;
6526   *)
6527   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 for as_dir in $PATH
6529 do
6530   IFS=$as_save_IFS
6531   test -z "$as_dir" && as_dir=.
6532     for ac_exec_ext in '' $ac_executable_extensions; do
6533   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6534     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6536     break 2
6537   fi
6538 done
6539   done
6540 IFS=$as_save_IFS
6541 
6542   ;;
6543 esac
6544 fi
6545 DIFF=$ac_cv_path_DIFF
6546 if test -n "$DIFF"; then
6547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6548 $as_echo "$DIFF" >&6; }
6549 else
6550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551 $as_echo "no" >&6; }
6552 fi
6553 
6554 
6555   test -n "$DIFF" && break
6556 done
6557 
6558   else
6559     # The variable is set, but is it from the command line or the environment?
6560 
6561     # Try to remove the string !DIFF! from our list.
6562     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6563     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6564       # If it failed, the variable was not from the command line. Ignore it,
6565       # but warn the user (except for BASH, which is always set by the calling BASH).
6566       if test "xDIFF" != xBASH; then
6567         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6568 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6569       fi
6570       # Try to locate tool using the code snippet
6571       for ac_prog in gdiff diff
6572 do
6573   # Extract the first word of "$ac_prog", so it can be a program name with args.
6574 set dummy $ac_prog; ac_word=$2
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6576 $as_echo_n "checking for $ac_word... " >&6; }
6577 if ${ac_cv_path_DIFF+:} false; then :
6578   $as_echo_n "(cached) " >&6
6579 else
6580   case $DIFF in
6581   [\\/]* | ?:[\\/]*)
6582   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6583   ;;
6584   *)
6585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 for as_dir in $PATH
6587 do
6588   IFS=$as_save_IFS
6589   test -z "$as_dir" && as_dir=.
6590     for ac_exec_ext in '' $ac_executable_extensions; do
6591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6592     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6594     break 2
6595   fi
6596 done
6597   done
6598 IFS=$as_save_IFS
6599 
6600   ;;
6601 esac
6602 fi
6603 DIFF=$ac_cv_path_DIFF
6604 if test -n "$DIFF"; then
6605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6606 $as_echo "$DIFF" >&6; }
6607 else
6608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6609 $as_echo "no" >&6; }
6610 fi
6611 
6612 
6613   test -n "$DIFF" && break
6614 done
6615 
6616     else
6617       # If it succeeded, then it was overridden by the user. We will use it
6618       # for the tool.
6619 
6620       # First remove it from the list of overridden variables, so we can test
6621       # for unknown variables in the end.
6622       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6623 
6624       # Check if we try to supply an empty value
6625       if test "x$DIFF" = x; then
6626         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5
6627 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;}
6628         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6629 $as_echo_n "checking for DIFF... " >&6; }
6630         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6631 $as_echo "disabled" >&6; }
6632       else
6633         # Check if the provided tool contains a complete path.
6634         tool_specified="$DIFF"
6635         tool_basename="${tool_specified##*/}"
6636         if test "x$tool_basename" = "x$tool_specified"; then
6637           # A command without a complete path is provided, search $PATH.
6638           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6639 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6640           # Extract the first word of "$tool_basename", so it can be a program name with args.
6641 set dummy $tool_basename; ac_word=$2
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6643 $as_echo_n "checking for $ac_word... " >&6; }
6644 if ${ac_cv_path_DIFF+:} false; then :
6645   $as_echo_n "(cached) " >&6
6646 else
6647   case $DIFF in
6648   [\\/]* | ?:[\\/]*)
6649   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6650   ;;
6651   *)
6652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 for as_dir in $PATH
6654 do
6655   IFS=$as_save_IFS
6656   test -z "$as_dir" && as_dir=.
6657     for ac_exec_ext in '' $ac_executable_extensions; do
6658   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6659     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6661     break 2
6662   fi
6663 done
6664   done
6665 IFS=$as_save_IFS
6666 
6667   ;;
6668 esac
6669 fi
6670 DIFF=$ac_cv_path_DIFF
6671 if test -n "$DIFF"; then
6672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6673 $as_echo "$DIFF" >&6; }
6674 else
6675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6676 $as_echo "no" >&6; }
6677 fi
6678 
6679 
6680           if test "x$DIFF" = x; then
6681             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6682           fi
6683         else
6684           # Otherwise we believe it is a complete path. Use it as it is.
6685           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6686 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6687           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6688 $as_echo_n "checking for DIFF... " >&6; }
6689           if test ! -x "$tool_specified"; then
6690             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6691 $as_echo "not found" >&6; }
6692             as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6693           fi
6694           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6695 $as_echo "$tool_specified" >&6; }
6696         fi
6697       fi
6698     fi
6699 
6700   fi
6701 
6702 
6703 
6704   if test "x$DIFF" = x; then
6705     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6706   fi
6707 
6708 
6709 
6710 
6711 
6712   # Publish this variable in the help.
6713 
6714 
6715   if [ -z "${DIRNAME+x}" ]; then
6716     # The variable is not set by user, try to locate tool using the code snippet
6717     for ac_prog in dirname
6718 do
6719   # Extract the first word of "$ac_prog", so it can be a program name with args.
6720 set dummy $ac_prog; ac_word=$2
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722 $as_echo_n "checking for $ac_word... " >&6; }
6723 if ${ac_cv_path_DIRNAME+:} false; then :
6724   $as_echo_n "(cached) " >&6
6725 else
6726   case $DIRNAME in
6727   [\\/]* | ?:[\\/]*)
6728   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6729   ;;
6730   *)
6731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 for as_dir in $PATH
6733 do
6734   IFS=$as_save_IFS
6735   test -z "$as_dir" && as_dir=.
6736     for ac_exec_ext in '' $ac_executable_extensions; do
6737   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6738     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6740     break 2
6741   fi
6742 done
6743   done
6744 IFS=$as_save_IFS
6745 
6746   ;;
6747 esac
6748 fi
6749 DIRNAME=$ac_cv_path_DIRNAME
6750 if test -n "$DIRNAME"; then
6751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6752 $as_echo "$DIRNAME" >&6; }
6753 else
6754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755 $as_echo "no" >&6; }
6756 fi
6757 
6758 
6759   test -n "$DIRNAME" && break
6760 done
6761 
6762   else
6763     # The variable is set, but is it from the command line or the environment?
6764 
6765     # Try to remove the string !DIRNAME! from our list.
6766     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6767     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6768       # If it failed, the variable was not from the command line. Ignore it,
6769       # but warn the user (except for BASH, which is always set by the calling BASH).
6770       if test "xDIRNAME" != xBASH; then
6771         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6772 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6773       fi
6774       # Try to locate tool using the code snippet
6775       for ac_prog in dirname
6776 do
6777   # Extract the first word of "$ac_prog", so it can be a program name with args.
6778 set dummy $ac_prog; ac_word=$2
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6780 $as_echo_n "checking for $ac_word... " >&6; }
6781 if ${ac_cv_path_DIRNAME+:} false; then :
6782   $as_echo_n "(cached) " >&6
6783 else
6784   case $DIRNAME in
6785   [\\/]* | ?:[\\/]*)
6786   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6787   ;;
6788   *)
6789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 for as_dir in $PATH
6791 do
6792   IFS=$as_save_IFS
6793   test -z "$as_dir" && as_dir=.
6794     for ac_exec_ext in '' $ac_executable_extensions; do
6795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6796     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6798     break 2
6799   fi
6800 done
6801   done
6802 IFS=$as_save_IFS
6803 
6804   ;;
6805 esac
6806 fi
6807 DIRNAME=$ac_cv_path_DIRNAME
6808 if test -n "$DIRNAME"; then
6809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6810 $as_echo "$DIRNAME" >&6; }
6811 else
6812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813 $as_echo "no" >&6; }
6814 fi
6815 
6816 
6817   test -n "$DIRNAME" && break
6818 done
6819 
6820     else
6821       # If it succeeded, then it was overridden by the user. We will use it
6822       # for the tool.
6823 
6824       # First remove it from the list of overridden variables, so we can test
6825       # for unknown variables in the end.
6826       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6827 
6828       # Check if we try to supply an empty value
6829       if test "x$DIRNAME" = x; then
6830         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5
6831 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;}
6832         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6833 $as_echo_n "checking for DIRNAME... " >&6; }
6834         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6835 $as_echo "disabled" >&6; }
6836       else
6837         # Check if the provided tool contains a complete path.
6838         tool_specified="$DIRNAME"
6839         tool_basename="${tool_specified##*/}"
6840         if test "x$tool_basename" = "x$tool_specified"; then
6841           # A command without a complete path is provided, search $PATH.
6842           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6843 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6844           # Extract the first word of "$tool_basename", so it can be a program name with args.
6845 set dummy $tool_basename; ac_word=$2
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6847 $as_echo_n "checking for $ac_word... " >&6; }
6848 if ${ac_cv_path_DIRNAME+:} false; then :
6849   $as_echo_n "(cached) " >&6
6850 else
6851   case $DIRNAME in
6852   [\\/]* | ?:[\\/]*)
6853   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6854   ;;
6855   *)
6856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 for as_dir in $PATH
6858 do
6859   IFS=$as_save_IFS
6860   test -z "$as_dir" && as_dir=.
6861     for ac_exec_ext in '' $ac_executable_extensions; do
6862   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6863     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6865     break 2
6866   fi
6867 done
6868   done
6869 IFS=$as_save_IFS
6870 
6871   ;;
6872 esac
6873 fi
6874 DIRNAME=$ac_cv_path_DIRNAME
6875 if test -n "$DIRNAME"; then
6876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6877 $as_echo "$DIRNAME" >&6; }
6878 else
6879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6880 $as_echo "no" >&6; }
6881 fi
6882 
6883 
6884           if test "x$DIRNAME" = x; then
6885             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6886           fi
6887         else
6888           # Otherwise we believe it is a complete path. Use it as it is.
6889           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
6890 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
6891           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6892 $as_echo_n "checking for DIRNAME... " >&6; }
6893           if test ! -x "$tool_specified"; then
6894             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6895 $as_echo "not found" >&6; }
6896             as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
6897           fi
6898           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6899 $as_echo "$tool_specified" >&6; }
6900         fi
6901       fi
6902     fi
6903 
6904   fi
6905 
6906 
6907 
6908   if test "x$DIRNAME" = x; then
6909     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
6910   fi
6911 
6912 
6913 
6914 
6915 
6916   # Publish this variable in the help.
6917 
6918 
6919   if [ -z "${ECHO+x}" ]; then
6920     # The variable is not set by user, try to locate tool using the code snippet
6921     for ac_prog in echo
6922 do
6923   # Extract the first word of "$ac_prog", so it can be a program name with args.
6924 set dummy $ac_prog; ac_word=$2
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 $as_echo_n "checking for $ac_word... " >&6; }
6927 if ${ac_cv_path_ECHO+:} false; then :
6928   $as_echo_n "(cached) " >&6
6929 else
6930   case $ECHO in
6931   [\\/]* | ?:[\\/]*)
6932   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6933   ;;
6934   *)
6935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 for as_dir in $PATH
6937 do
6938   IFS=$as_save_IFS
6939   test -z "$as_dir" && as_dir=.
6940     for ac_exec_ext in '' $ac_executable_extensions; do
6941   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6942     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6944     break 2
6945   fi
6946 done
6947   done
6948 IFS=$as_save_IFS
6949 
6950   ;;
6951 esac
6952 fi
6953 ECHO=$ac_cv_path_ECHO
6954 if test -n "$ECHO"; then
6955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6956 $as_echo "$ECHO" >&6; }
6957 else
6958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6959 $as_echo "no" >&6; }
6960 fi
6961 
6962 
6963   test -n "$ECHO" && break
6964 done
6965 
6966   else
6967     # The variable is set, but is it from the command line or the environment?
6968 
6969     # Try to remove the string !ECHO! from our list.
6970     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
6971     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6972       # If it failed, the variable was not from the command line. Ignore it,
6973       # but warn the user (except for BASH, which is always set by the calling BASH).
6974       if test "xECHO" != xBASH; then
6975         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
6976 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
6977       fi
6978       # Try to locate tool using the code snippet
6979       for ac_prog in echo
6980 do
6981   # Extract the first word of "$ac_prog", so it can be a program name with args.
6982 set dummy $ac_prog; ac_word=$2
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6984 $as_echo_n "checking for $ac_word... " >&6; }
6985 if ${ac_cv_path_ECHO+:} false; then :
6986   $as_echo_n "(cached) " >&6
6987 else
6988   case $ECHO in
6989   [\\/]* | ?:[\\/]*)
6990   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6991   ;;
6992   *)
6993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 for as_dir in $PATH
6995 do
6996   IFS=$as_save_IFS
6997   test -z "$as_dir" && as_dir=.
6998     for ac_exec_ext in '' $ac_executable_extensions; do
6999   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7000     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7002     break 2
7003   fi
7004 done
7005   done
7006 IFS=$as_save_IFS
7007 
7008   ;;
7009 esac
7010 fi
7011 ECHO=$ac_cv_path_ECHO
7012 if test -n "$ECHO"; then
7013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7014 $as_echo "$ECHO" >&6; }
7015 else
7016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017 $as_echo "no" >&6; }
7018 fi
7019 
7020 
7021   test -n "$ECHO" && break
7022 done
7023 
7024     else
7025       # If it succeeded, then it was overridden by the user. We will use it
7026       # for the tool.
7027 
7028       # First remove it from the list of overridden variables, so we can test
7029       # for unknown variables in the end.
7030       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7031 
7032       # Check if we try to supply an empty value
7033       if test "x$ECHO" = x; then
7034         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5
7035 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;}
7036         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7037 $as_echo_n "checking for ECHO... " >&6; }
7038         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7039 $as_echo "disabled" >&6; }
7040       else
7041         # Check if the provided tool contains a complete path.
7042         tool_specified="$ECHO"
7043         tool_basename="${tool_specified##*/}"
7044         if test "x$tool_basename" = "x$tool_specified"; then
7045           # A command without a complete path is provided, search $PATH.
7046           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
7047 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
7048           # Extract the first word of "$tool_basename", so it can be a program name with args.
7049 set dummy $tool_basename; ac_word=$2
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7051 $as_echo_n "checking for $ac_word... " >&6; }
7052 if ${ac_cv_path_ECHO+:} false; then :
7053   $as_echo_n "(cached) " >&6
7054 else
7055   case $ECHO in
7056   [\\/]* | ?:[\\/]*)
7057   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7058   ;;
7059   *)
7060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061 for as_dir in $PATH
7062 do
7063   IFS=$as_save_IFS
7064   test -z "$as_dir" && as_dir=.
7065     for ac_exec_ext in '' $ac_executable_extensions; do
7066   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7067     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7069     break 2
7070   fi
7071 done
7072   done
7073 IFS=$as_save_IFS
7074 
7075   ;;
7076 esac
7077 fi
7078 ECHO=$ac_cv_path_ECHO
7079 if test -n "$ECHO"; then
7080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7081 $as_echo "$ECHO" >&6; }
7082 else
7083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7084 $as_echo "no" >&6; }
7085 fi
7086 
7087 
7088           if test "x$ECHO" = x; then
7089             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7090           fi
7091         else
7092           # Otherwise we believe it is a complete path. Use it as it is.
7093           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
7094 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
7095           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7096 $as_echo_n "checking for ECHO... " >&6; }
7097           if test ! -x "$tool_specified"; then
7098             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7099 $as_echo "not found" >&6; }
7100             as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
7101           fi
7102           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7103 $as_echo "$tool_specified" >&6; }
7104         fi
7105       fi
7106     fi
7107 
7108   fi
7109 
7110 
7111 
7112   if test "x$ECHO" = x; then
7113     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
7114   fi
7115 
7116 
7117 
7118 
7119 
7120   # Publish this variable in the help.
7121 
7122 
7123   if [ -z "${EXPR+x}" ]; then
7124     # The variable is not set by user, try to locate tool using the code snippet
7125     for ac_prog in expr
7126 do
7127   # Extract the first word of "$ac_prog", so it can be a program name with args.
7128 set dummy $ac_prog; ac_word=$2
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7130 $as_echo_n "checking for $ac_word... " >&6; }
7131 if ${ac_cv_path_EXPR+:} false; then :
7132   $as_echo_n "(cached) " >&6
7133 else
7134   case $EXPR in
7135   [\\/]* | ?:[\\/]*)
7136   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7137   ;;
7138   *)
7139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 for as_dir in $PATH
7141 do
7142   IFS=$as_save_IFS
7143   test -z "$as_dir" && as_dir=.
7144     for ac_exec_ext in '' $ac_executable_extensions; do
7145   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7146     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7148     break 2
7149   fi
7150 done
7151   done
7152 IFS=$as_save_IFS
7153 
7154   ;;
7155 esac
7156 fi
7157 EXPR=$ac_cv_path_EXPR
7158 if test -n "$EXPR"; then
7159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7160 $as_echo "$EXPR" >&6; }
7161 else
7162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7163 $as_echo "no" >&6; }
7164 fi
7165 
7166 
7167   test -n "$EXPR" && break
7168 done
7169 
7170   else
7171     # The variable is set, but is it from the command line or the environment?
7172 
7173     # Try to remove the string !EXPR! from our list.
7174     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
7175     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7176       # If it failed, the variable was not from the command line. Ignore it,
7177       # but warn the user (except for BASH, which is always set by the calling BASH).
7178       if test "xEXPR" != xBASH; then
7179         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
7180 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
7181       fi
7182       # Try to locate tool using the code snippet
7183       for ac_prog in expr
7184 do
7185   # Extract the first word of "$ac_prog", so it can be a program name with args.
7186 set dummy $ac_prog; ac_word=$2
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7188 $as_echo_n "checking for $ac_word... " >&6; }
7189 if ${ac_cv_path_EXPR+:} false; then :
7190   $as_echo_n "(cached) " >&6
7191 else
7192   case $EXPR in
7193   [\\/]* | ?:[\\/]*)
7194   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7195   ;;
7196   *)
7197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 for as_dir in $PATH
7199 do
7200   IFS=$as_save_IFS
7201   test -z "$as_dir" && as_dir=.
7202     for ac_exec_ext in '' $ac_executable_extensions; do
7203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7204     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7206     break 2
7207   fi
7208 done
7209   done
7210 IFS=$as_save_IFS
7211 
7212   ;;
7213 esac
7214 fi
7215 EXPR=$ac_cv_path_EXPR
7216 if test -n "$EXPR"; then
7217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7218 $as_echo "$EXPR" >&6; }
7219 else
7220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7221 $as_echo "no" >&6; }
7222 fi
7223 
7224 
7225   test -n "$EXPR" && break
7226 done
7227 
7228     else
7229       # If it succeeded, then it was overridden by the user. We will use it
7230       # for the tool.
7231 
7232       # First remove it from the list of overridden variables, so we can test
7233       # for unknown variables in the end.
7234       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7235 
7236       # Check if we try to supply an empty value
7237       if test "x$EXPR" = x; then
7238         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5
7239 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;}
7240         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7241 $as_echo_n "checking for EXPR... " >&6; }
7242         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7243 $as_echo "disabled" >&6; }
7244       else
7245         # Check if the provided tool contains a complete path.
7246         tool_specified="$EXPR"
7247         tool_basename="${tool_specified##*/}"
7248         if test "x$tool_basename" = "x$tool_specified"; then
7249           # A command without a complete path is provided, search $PATH.
7250           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
7251 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
7252           # Extract the first word of "$tool_basename", so it can be a program name with args.
7253 set dummy $tool_basename; ac_word=$2
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7255 $as_echo_n "checking for $ac_word... " >&6; }
7256 if ${ac_cv_path_EXPR+:} false; then :
7257   $as_echo_n "(cached) " >&6
7258 else
7259   case $EXPR in
7260   [\\/]* | ?:[\\/]*)
7261   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7262   ;;
7263   *)
7264   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265 for as_dir in $PATH
7266 do
7267   IFS=$as_save_IFS
7268   test -z "$as_dir" && as_dir=.
7269     for ac_exec_ext in '' $ac_executable_extensions; do
7270   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7271     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7273     break 2
7274   fi
7275 done
7276   done
7277 IFS=$as_save_IFS
7278 
7279   ;;
7280 esac
7281 fi
7282 EXPR=$ac_cv_path_EXPR
7283 if test -n "$EXPR"; then
7284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7285 $as_echo "$EXPR" >&6; }
7286 else
7287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7288 $as_echo "no" >&6; }
7289 fi
7290 
7291 
7292           if test "x$EXPR" = x; then
7293             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7294           fi
7295         else
7296           # Otherwise we believe it is a complete path. Use it as it is.
7297           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
7298 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
7299           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7300 $as_echo_n "checking for EXPR... " >&6; }
7301           if test ! -x "$tool_specified"; then
7302             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7303 $as_echo "not found" >&6; }
7304             as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
7305           fi
7306           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7307 $as_echo "$tool_specified" >&6; }
7308         fi
7309       fi
7310     fi
7311 
7312   fi
7313 
7314 
7315 
7316   if test "x$EXPR" = x; then
7317     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
7318   fi
7319 
7320 
7321 
7322 
7323 
7324   # Publish this variable in the help.
7325 
7326 
7327   if [ -z "${FILE+x}" ]; then
7328     # The variable is not set by user, try to locate tool using the code snippet
7329     for ac_prog in file
7330 do
7331   # Extract the first word of "$ac_prog", so it can be a program name with args.
7332 set dummy $ac_prog; ac_word=$2
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7334 $as_echo_n "checking for $ac_word... " >&6; }
7335 if ${ac_cv_path_FILE+:} false; then :
7336   $as_echo_n "(cached) " >&6
7337 else
7338   case $FILE in
7339   [\\/]* | ?:[\\/]*)
7340   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7341   ;;
7342   *)
7343   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 for as_dir in $PATH
7345 do
7346   IFS=$as_save_IFS
7347   test -z "$as_dir" && as_dir=.
7348     for ac_exec_ext in '' $ac_executable_extensions; do
7349   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7350     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7352     break 2
7353   fi
7354 done
7355   done
7356 IFS=$as_save_IFS
7357 
7358   ;;
7359 esac
7360 fi
7361 FILE=$ac_cv_path_FILE
7362 if test -n "$FILE"; then
7363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7364 $as_echo "$FILE" >&6; }
7365 else
7366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7368 fi
7369 
7370 
7371   test -n "$FILE" && break
7372 done
7373 
7374   else
7375     # The variable is set, but is it from the command line or the environment?
7376 
7377     # Try to remove the string !FILE! from our list.
7378     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7379     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7380       # If it failed, the variable was not from the command line. Ignore it,
7381       # but warn the user (except for BASH, which is always set by the calling BASH).
7382       if test "xFILE" != xBASH; then
7383         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7384 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7385       fi
7386       # Try to locate tool using the code snippet
7387       for ac_prog in file
7388 do
7389   # Extract the first word of "$ac_prog", so it can be a program name with args.
7390 set dummy $ac_prog; ac_word=$2
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7392 $as_echo_n "checking for $ac_word... " >&6; }
7393 if ${ac_cv_path_FILE+:} false; then :
7394   $as_echo_n "(cached) " >&6
7395 else
7396   case $FILE in
7397   [\\/]* | ?:[\\/]*)
7398   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7399   ;;
7400   *)
7401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402 for as_dir in $PATH
7403 do
7404   IFS=$as_save_IFS
7405   test -z "$as_dir" && as_dir=.
7406     for ac_exec_ext in '' $ac_executable_extensions; do
7407   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7408     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7410     break 2
7411   fi
7412 done
7413   done
7414 IFS=$as_save_IFS
7415 
7416   ;;
7417 esac
7418 fi
7419 FILE=$ac_cv_path_FILE
7420 if test -n "$FILE"; then
7421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7422 $as_echo "$FILE" >&6; }
7423 else
7424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425 $as_echo "no" >&6; }
7426 fi
7427 
7428 
7429   test -n "$FILE" && break
7430 done
7431 
7432     else
7433       # If it succeeded, then it was overridden by the user. We will use it
7434       # for the tool.
7435 
7436       # First remove it from the list of overridden variables, so we can test
7437       # for unknown variables in the end.
7438       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7439 
7440       # Check if we try to supply an empty value
7441       if test "x$FILE" = x; then
7442         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5
7443 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;}
7444         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7445 $as_echo_n "checking for FILE... " >&6; }
7446         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7447 $as_echo "disabled" >&6; }
7448       else
7449         # Check if the provided tool contains a complete path.
7450         tool_specified="$FILE"
7451         tool_basename="${tool_specified##*/}"
7452         if test "x$tool_basename" = "x$tool_specified"; then
7453           # A command without a complete path is provided, search $PATH.
7454           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7455 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
7456           # Extract the first word of "$tool_basename", so it can be a program name with args.
7457 set dummy $tool_basename; ac_word=$2
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7459 $as_echo_n "checking for $ac_word... " >&6; }
7460 if ${ac_cv_path_FILE+:} false; then :
7461   $as_echo_n "(cached) " >&6
7462 else
7463   case $FILE in
7464   [\\/]* | ?:[\\/]*)
7465   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7466   ;;
7467   *)
7468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469 for as_dir in $PATH
7470 do
7471   IFS=$as_save_IFS
7472   test -z "$as_dir" && as_dir=.
7473     for ac_exec_ext in '' $ac_executable_extensions; do
7474   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7475     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7477     break 2
7478   fi
7479 done
7480   done
7481 IFS=$as_save_IFS
7482 
7483   ;;
7484 esac
7485 fi
7486 FILE=$ac_cv_path_FILE
7487 if test -n "$FILE"; then
7488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7489 $as_echo "$FILE" >&6; }
7490 else
7491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492 $as_echo "no" >&6; }
7493 fi
7494 
7495 
7496           if test "x$FILE" = x; then
7497             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7498           fi
7499         else
7500           # Otherwise we believe it is a complete path. Use it as it is.
7501           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7502 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7503           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7504 $as_echo_n "checking for FILE... " >&6; }
7505           if test ! -x "$tool_specified"; then
7506             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7507 $as_echo "not found" >&6; }
7508             as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7509           fi
7510           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7511 $as_echo "$tool_specified" >&6; }
7512         fi
7513       fi
7514     fi
7515 
7516   fi
7517 
7518 
7519 
7520   if test "x$FILE" = x; then
7521     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7522   fi
7523 
7524 
7525 
7526 
7527 
7528   # Publish this variable in the help.
7529 
7530 
7531   if [ -z "${FIND+x}" ]; then
7532     # The variable is not set by user, try to locate tool using the code snippet
7533     for ac_prog in find
7534 do
7535   # Extract the first word of "$ac_prog", so it can be a program name with args.
7536 set dummy $ac_prog; ac_word=$2
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7538 $as_echo_n "checking for $ac_word... " >&6; }
7539 if ${ac_cv_path_FIND+:} false; then :
7540   $as_echo_n "(cached) " >&6
7541 else
7542   case $FIND in
7543   [\\/]* | ?:[\\/]*)
7544   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7545   ;;
7546   *)
7547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7549 do
7550   IFS=$as_save_IFS
7551   test -z "$as_dir" && as_dir=.
7552     for ac_exec_ext in '' $ac_executable_extensions; do
7553   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7554     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556     break 2
7557   fi
7558 done
7559   done
7560 IFS=$as_save_IFS
7561 
7562   ;;
7563 esac
7564 fi
7565 FIND=$ac_cv_path_FIND
7566 if test -n "$FIND"; then
7567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7568 $as_echo "$FIND" >&6; }
7569 else
7570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 $as_echo "no" >&6; }
7572 fi
7573 
7574 
7575   test -n "$FIND" && break
7576 done
7577 
7578   else
7579     # The variable is set, but is it from the command line or the environment?
7580 
7581     # Try to remove the string !FIND! from our list.
7582     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7583     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7584       # If it failed, the variable was not from the command line. Ignore it,
7585       # but warn the user (except for BASH, which is always set by the calling BASH).
7586       if test "xFIND" != xBASH; then
7587         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7588 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7589       fi
7590       # Try to locate tool using the code snippet
7591       for ac_prog in find
7592 do
7593   # Extract the first word of "$ac_prog", so it can be a program name with args.
7594 set dummy $ac_prog; ac_word=$2
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596 $as_echo_n "checking for $ac_word... " >&6; }
7597 if ${ac_cv_path_FIND+:} false; then :
7598   $as_echo_n "(cached) " >&6
7599 else
7600   case $FIND in
7601   [\\/]* | ?:[\\/]*)
7602   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7603   ;;
7604   *)
7605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606 for as_dir in $PATH
7607 do
7608   IFS=$as_save_IFS
7609   test -z "$as_dir" && as_dir=.
7610     for ac_exec_ext in '' $ac_executable_extensions; do
7611   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7612     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7614     break 2
7615   fi
7616 done
7617   done
7618 IFS=$as_save_IFS
7619 
7620   ;;
7621 esac
7622 fi
7623 FIND=$ac_cv_path_FIND
7624 if test -n "$FIND"; then
7625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7626 $as_echo "$FIND" >&6; }
7627 else
7628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7630 fi
7631 
7632 
7633   test -n "$FIND" && break
7634 done
7635 
7636     else
7637       # If it succeeded, then it was overridden by the user. We will use it
7638       # for the tool.
7639 
7640       # First remove it from the list of overridden variables, so we can test
7641       # for unknown variables in the end.
7642       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7643 
7644       # Check if we try to supply an empty value
7645       if test "x$FIND" = x; then
7646         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5
7647 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;}
7648         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7649 $as_echo_n "checking for FIND... " >&6; }
7650         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7651 $as_echo "disabled" >&6; }
7652       else
7653         # Check if the provided tool contains a complete path.
7654         tool_specified="$FIND"
7655         tool_basename="${tool_specified##*/}"
7656         if test "x$tool_basename" = "x$tool_specified"; then
7657           # A command without a complete path is provided, search $PATH.
7658           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7659 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7660           # Extract the first word of "$tool_basename", so it can be a program name with args.
7661 set dummy $tool_basename; ac_word=$2
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7663 $as_echo_n "checking for $ac_word... " >&6; }
7664 if ${ac_cv_path_FIND+:} false; then :
7665   $as_echo_n "(cached) " >&6
7666 else
7667   case $FIND in
7668   [\\/]* | ?:[\\/]*)
7669   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7670   ;;
7671   *)
7672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 for as_dir in $PATH
7674 do
7675   IFS=$as_save_IFS
7676   test -z "$as_dir" && as_dir=.
7677     for ac_exec_ext in '' $ac_executable_extensions; do
7678   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7679     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7681     break 2
7682   fi
7683 done
7684   done
7685 IFS=$as_save_IFS
7686 
7687   ;;
7688 esac
7689 fi
7690 FIND=$ac_cv_path_FIND
7691 if test -n "$FIND"; then
7692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7693 $as_echo "$FIND" >&6; }
7694 else
7695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7696 $as_echo "no" >&6; }
7697 fi
7698 
7699 
7700           if test "x$FIND" = x; then
7701             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7702           fi
7703         else
7704           # Otherwise we believe it is a complete path. Use it as it is.
7705           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7706 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7707           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7708 $as_echo_n "checking for FIND... " >&6; }
7709           if test ! -x "$tool_specified"; then
7710             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7711 $as_echo "not found" >&6; }
7712             as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7713           fi
7714           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7715 $as_echo "$tool_specified" >&6; }
7716         fi
7717       fi
7718     fi
7719 
7720   fi
7721 
7722 
7723 
7724   if test "x$FIND" = x; then
7725     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7726   fi
7727 
7728 
7729 
7730 
7731 
7732   # Publish this variable in the help.
7733 
7734 
7735   if [ -z "${HEAD+x}" ]; then
7736     # The variable is not set by user, try to locate tool using the code snippet
7737     for ac_prog in head
7738 do
7739   # Extract the first word of "$ac_prog", so it can be a program name with args.
7740 set dummy $ac_prog; ac_word=$2
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7742 $as_echo_n "checking for $ac_word... " >&6; }
7743 if ${ac_cv_path_HEAD+:} false; then :
7744   $as_echo_n "(cached) " >&6
7745 else
7746   case $HEAD in
7747   [\\/]* | ?:[\\/]*)
7748   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7749   ;;
7750   *)
7751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752 for as_dir in $PATH
7753 do
7754   IFS=$as_save_IFS
7755   test -z "$as_dir" && as_dir=.
7756     for ac_exec_ext in '' $ac_executable_extensions; do
7757   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7758     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7760     break 2
7761   fi
7762 done
7763   done
7764 IFS=$as_save_IFS
7765 
7766   ;;
7767 esac
7768 fi
7769 HEAD=$ac_cv_path_HEAD
7770 if test -n "$HEAD"; then
7771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7772 $as_echo "$HEAD" >&6; }
7773 else
7774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775 $as_echo "no" >&6; }
7776 fi
7777 
7778 
7779   test -n "$HEAD" && break
7780 done
7781 
7782   else
7783     # The variable is set, but is it from the command line or the environment?
7784 
7785     # Try to remove the string !HEAD! from our list.
7786     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7787     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7788       # If it failed, the variable was not from the command line. Ignore it,
7789       # but warn the user (except for BASH, which is always set by the calling BASH).
7790       if test "xHEAD" != xBASH; then
7791         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7792 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7793       fi
7794       # Try to locate tool using the code snippet
7795       for ac_prog in head
7796 do
7797   # Extract the first word of "$ac_prog", so it can be a program name with args.
7798 set dummy $ac_prog; ac_word=$2
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800 $as_echo_n "checking for $ac_word... " >&6; }
7801 if ${ac_cv_path_HEAD+:} false; then :
7802   $as_echo_n "(cached) " >&6
7803 else
7804   case $HEAD in
7805   [\\/]* | ?:[\\/]*)
7806   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7807   ;;
7808   *)
7809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 for as_dir in $PATH
7811 do
7812   IFS=$as_save_IFS
7813   test -z "$as_dir" && as_dir=.
7814     for ac_exec_ext in '' $ac_executable_extensions; do
7815   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7816     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7818     break 2
7819   fi
7820 done
7821   done
7822 IFS=$as_save_IFS
7823 
7824   ;;
7825 esac
7826 fi
7827 HEAD=$ac_cv_path_HEAD
7828 if test -n "$HEAD"; then
7829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7830 $as_echo "$HEAD" >&6; }
7831 else
7832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833 $as_echo "no" >&6; }
7834 fi
7835 
7836 
7837   test -n "$HEAD" && break
7838 done
7839 
7840     else
7841       # If it succeeded, then it was overridden by the user. We will use it
7842       # for the tool.
7843 
7844       # First remove it from the list of overridden variables, so we can test
7845       # for unknown variables in the end.
7846       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7847 
7848       # Check if we try to supply an empty value
7849       if test "x$HEAD" = x; then
7850         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5
7851 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;}
7852         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7853 $as_echo_n "checking for HEAD... " >&6; }
7854         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7855 $as_echo "disabled" >&6; }
7856       else
7857         # Check if the provided tool contains a complete path.
7858         tool_specified="$HEAD"
7859         tool_basename="${tool_specified##*/}"
7860         if test "x$tool_basename" = "x$tool_specified"; then
7861           # A command without a complete path is provided, search $PATH.
7862           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7863 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7864           # Extract the first word of "$tool_basename", so it can be a program name with args.
7865 set dummy $tool_basename; ac_word=$2
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7867 $as_echo_n "checking for $ac_word... " >&6; }
7868 if ${ac_cv_path_HEAD+:} false; then :
7869   $as_echo_n "(cached) " >&6
7870 else
7871   case $HEAD in
7872   [\\/]* | ?:[\\/]*)
7873   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7874   ;;
7875   *)
7876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877 for as_dir in $PATH
7878 do
7879   IFS=$as_save_IFS
7880   test -z "$as_dir" && as_dir=.
7881     for ac_exec_ext in '' $ac_executable_extensions; do
7882   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7883     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7885     break 2
7886   fi
7887 done
7888   done
7889 IFS=$as_save_IFS
7890 
7891   ;;
7892 esac
7893 fi
7894 HEAD=$ac_cv_path_HEAD
7895 if test -n "$HEAD"; then
7896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7897 $as_echo "$HEAD" >&6; }
7898 else
7899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7900 $as_echo "no" >&6; }
7901 fi
7902 
7903 
7904           if test "x$HEAD" = x; then
7905             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7906           fi
7907         else
7908           # Otherwise we believe it is a complete path. Use it as it is.
7909           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
7910 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
7911           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7912 $as_echo_n "checking for HEAD... " >&6; }
7913           if test ! -x "$tool_specified"; then
7914             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7915 $as_echo "not found" >&6; }
7916             as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
7917           fi
7918           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7919 $as_echo "$tool_specified" >&6; }
7920         fi
7921       fi
7922     fi
7923 
7924   fi
7925 
7926 
7927 
7928   if test "x$HEAD" = x; then
7929     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
7930   fi
7931 
7932 
7933 
7934 
7935 
7936   # Publish this variable in the help.
7937 
7938 
7939   if [ -z "${LN+x}" ]; then
7940     # The variable is not set by user, try to locate tool using the code snippet
7941     for ac_prog in ln
7942 do
7943   # Extract the first word of "$ac_prog", so it can be a program name with args.
7944 set dummy $ac_prog; ac_word=$2
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946 $as_echo_n "checking for $ac_word... " >&6; }
7947 if ${ac_cv_path_LN+:} false; then :
7948   $as_echo_n "(cached) " >&6
7949 else
7950   case $LN in
7951   [\\/]* | ?:[\\/]*)
7952   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7953   ;;
7954   *)
7955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956 for as_dir in $PATH
7957 do
7958   IFS=$as_save_IFS
7959   test -z "$as_dir" && as_dir=.
7960     for ac_exec_ext in '' $ac_executable_extensions; do
7961   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7962     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7964     break 2
7965   fi
7966 done
7967   done
7968 IFS=$as_save_IFS
7969 
7970   ;;
7971 esac
7972 fi
7973 LN=$ac_cv_path_LN
7974 if test -n "$LN"; then
7975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7976 $as_echo "$LN" >&6; }
7977 else
7978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979 $as_echo "no" >&6; }
7980 fi
7981 
7982 
7983   test -n "$LN" && break
7984 done
7985 
7986   else
7987     # The variable is set, but is it from the command line or the environment?
7988 
7989     # Try to remove the string !LN! from our list.
7990     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
7991     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7992       # If it failed, the variable was not from the command line. Ignore it,
7993       # but warn the user (except for BASH, which is always set by the calling BASH).
7994       if test "xLN" != xBASH; then
7995         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
7996 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
7997       fi
7998       # Try to locate tool using the code snippet
7999       for ac_prog in ln
8000 do
8001   # Extract the first word of "$ac_prog", so it can be a program name with args.
8002 set dummy $ac_prog; ac_word=$2
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8004 $as_echo_n "checking for $ac_word... " >&6; }
8005 if ${ac_cv_path_LN+:} false; then :
8006   $as_echo_n "(cached) " >&6
8007 else
8008   case $LN in
8009   [\\/]* | ?:[\\/]*)
8010   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8011   ;;
8012   *)
8013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8014 for as_dir in $PATH
8015 do
8016   IFS=$as_save_IFS
8017   test -z "$as_dir" && as_dir=.
8018     for ac_exec_ext in '' $ac_executable_extensions; do
8019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8020     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8022     break 2
8023   fi
8024 done
8025   done
8026 IFS=$as_save_IFS
8027 
8028   ;;
8029 esac
8030 fi
8031 LN=$ac_cv_path_LN
8032 if test -n "$LN"; then
8033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8034 $as_echo "$LN" >&6; }
8035 else
8036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8037 $as_echo "no" >&6; }
8038 fi
8039 
8040 
8041   test -n "$LN" && break
8042 done
8043 
8044     else
8045       # If it succeeded, then it was overridden by the user. We will use it
8046       # for the tool.
8047 
8048       # First remove it from the list of overridden variables, so we can test
8049       # for unknown variables in the end.
8050       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8051 
8052       # Check if we try to supply an empty value
8053       if test "x$LN" = x; then
8054         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5
8055 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;}
8056         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
8057 $as_echo_n "checking for LN... " >&6; }
8058         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8059 $as_echo "disabled" >&6; }
8060       else
8061         # Check if the provided tool contains a complete path.
8062         tool_specified="$LN"
8063         tool_basename="${tool_specified##*/}"
8064         if test "x$tool_basename" = "x$tool_specified"; then
8065           # A command without a complete path is provided, search $PATH.
8066           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
8067 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
8068           # Extract the first word of "$tool_basename", so it can be a program name with args.
8069 set dummy $tool_basename; ac_word=$2
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8071 $as_echo_n "checking for $ac_word... " >&6; }
8072 if ${ac_cv_path_LN+:} false; then :
8073   $as_echo_n "(cached) " >&6
8074 else
8075   case $LN in
8076   [\\/]* | ?:[\\/]*)
8077   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8078   ;;
8079   *)
8080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8081 for as_dir in $PATH
8082 do
8083   IFS=$as_save_IFS
8084   test -z "$as_dir" && as_dir=.
8085     for ac_exec_ext in '' $ac_executable_extensions; do
8086   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8087     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8089     break 2
8090   fi
8091 done
8092   done
8093 IFS=$as_save_IFS
8094 
8095   ;;
8096 esac
8097 fi
8098 LN=$ac_cv_path_LN
8099 if test -n "$LN"; then
8100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8101 $as_echo "$LN" >&6; }
8102 else
8103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104 $as_echo "no" >&6; }
8105 fi
8106 
8107 
8108           if test "x$LN" = x; then
8109             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8110           fi
8111         else
8112           # Otherwise we believe it is a complete path. Use it as it is.
8113           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
8114 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
8115           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
8116 $as_echo_n "checking for LN... " >&6; }
8117           if test ! -x "$tool_specified"; then
8118             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8119 $as_echo "not found" >&6; }
8120             as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
8121           fi
8122           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8123 $as_echo "$tool_specified" >&6; }
8124         fi
8125       fi
8126     fi
8127 
8128   fi
8129 
8130 
8131 
8132   if test "x$LN" = x; then
8133     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
8134   fi
8135 
8136 
8137 
8138 
8139 
8140   # Publish this variable in the help.
8141 
8142 
8143   if [ -z "${LS+x}" ]; then
8144     # The variable is not set by user, try to locate tool using the code snippet
8145     for ac_prog in ls
8146 do
8147   # Extract the first word of "$ac_prog", so it can be a program name with args.
8148 set dummy $ac_prog; ac_word=$2
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8150 $as_echo_n "checking for $ac_word... " >&6; }
8151 if ${ac_cv_path_LS+:} false; then :
8152   $as_echo_n "(cached) " >&6
8153 else
8154   case $LS in
8155   [\\/]* | ?:[\\/]*)
8156   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8157   ;;
8158   *)
8159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160 for as_dir in $PATH
8161 do
8162   IFS=$as_save_IFS
8163   test -z "$as_dir" && as_dir=.
8164     for ac_exec_ext in '' $ac_executable_extensions; do
8165   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8166     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8168     break 2
8169   fi
8170 done
8171   done
8172 IFS=$as_save_IFS
8173 
8174   ;;
8175 esac
8176 fi
8177 LS=$ac_cv_path_LS
8178 if test -n "$LS"; then
8179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8180 $as_echo "$LS" >&6; }
8181 else
8182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8183 $as_echo "no" >&6; }
8184 fi
8185 
8186 
8187   test -n "$LS" && break
8188 done
8189 
8190   else
8191     # The variable is set, but is it from the command line or the environment?
8192 
8193     # Try to remove the string !LS! from our list.
8194     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
8195     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8196       # If it failed, the variable was not from the command line. Ignore it,
8197       # but warn the user (except for BASH, which is always set by the calling BASH).
8198       if test "xLS" != xBASH; then
8199         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
8200 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
8201       fi
8202       # Try to locate tool using the code snippet
8203       for ac_prog in ls
8204 do
8205   # Extract the first word of "$ac_prog", so it can be a program name with args.
8206 set dummy $ac_prog; ac_word=$2
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8208 $as_echo_n "checking for $ac_word... " >&6; }
8209 if ${ac_cv_path_LS+:} false; then :
8210   $as_echo_n "(cached) " >&6
8211 else
8212   case $LS in
8213   [\\/]* | ?:[\\/]*)
8214   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8215   ;;
8216   *)
8217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218 for as_dir in $PATH
8219 do
8220   IFS=$as_save_IFS
8221   test -z "$as_dir" && as_dir=.
8222     for ac_exec_ext in '' $ac_executable_extensions; do
8223   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8224     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8226     break 2
8227   fi
8228 done
8229   done
8230 IFS=$as_save_IFS
8231 
8232   ;;
8233 esac
8234 fi
8235 LS=$ac_cv_path_LS
8236 if test -n "$LS"; then
8237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8238 $as_echo "$LS" >&6; }
8239 else
8240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8241 $as_echo "no" >&6; }
8242 fi
8243 
8244 
8245   test -n "$LS" && break
8246 done
8247 
8248     else
8249       # If it succeeded, then it was overridden by the user. We will use it
8250       # for the tool.
8251 
8252       # First remove it from the list of overridden variables, so we can test
8253       # for unknown variables in the end.
8254       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8255 
8256       # Check if we try to supply an empty value
8257       if test "x$LS" = x; then
8258         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5
8259 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;}
8260         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
8261 $as_echo_n "checking for LS... " >&6; }
8262         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8263 $as_echo "disabled" >&6; }
8264       else
8265         # Check if the provided tool contains a complete path.
8266         tool_specified="$LS"
8267         tool_basename="${tool_specified##*/}"
8268         if test "x$tool_basename" = "x$tool_specified"; then
8269           # A command without a complete path is provided, search $PATH.
8270           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
8271 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
8272           # Extract the first word of "$tool_basename", so it can be a program name with args.
8273 set dummy $tool_basename; ac_word=$2
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8275 $as_echo_n "checking for $ac_word... " >&6; }
8276 if ${ac_cv_path_LS+:} false; then :
8277   $as_echo_n "(cached) " >&6
8278 else
8279   case $LS in
8280   [\\/]* | ?:[\\/]*)
8281   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8282   ;;
8283   *)
8284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8285 for as_dir in $PATH
8286 do
8287   IFS=$as_save_IFS
8288   test -z "$as_dir" && as_dir=.
8289     for ac_exec_ext in '' $ac_executable_extensions; do
8290   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8291     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8293     break 2
8294   fi
8295 done
8296   done
8297 IFS=$as_save_IFS
8298 
8299   ;;
8300 esac
8301 fi
8302 LS=$ac_cv_path_LS
8303 if test -n "$LS"; then
8304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8305 $as_echo "$LS" >&6; }
8306 else
8307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8308 $as_echo "no" >&6; }
8309 fi
8310 
8311 
8312           if test "x$LS" = x; then
8313             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8314           fi
8315         else
8316           # Otherwise we believe it is a complete path. Use it as it is.
8317           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
8318 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
8319           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
8320 $as_echo_n "checking for LS... " >&6; }
8321           if test ! -x "$tool_specified"; then
8322             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8323 $as_echo "not found" >&6; }
8324             as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
8325           fi
8326           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8327 $as_echo "$tool_specified" >&6; }
8328         fi
8329       fi
8330     fi
8331 
8332   fi
8333 
8334 
8335 
8336   if test "x$LS" = x; then
8337     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
8338   fi
8339 
8340 
8341 
8342 
8343 
8344   # Publish this variable in the help.
8345 
8346 
8347   if [ -z "${MKDIR+x}" ]; then
8348     # The variable is not set by user, try to locate tool using the code snippet
8349     for ac_prog in mkdir
8350 do
8351   # Extract the first word of "$ac_prog", so it can be a program name with args.
8352 set dummy $ac_prog; ac_word=$2
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8354 $as_echo_n "checking for $ac_word... " >&6; }
8355 if ${ac_cv_path_MKDIR+:} false; then :
8356   $as_echo_n "(cached) " >&6
8357 else
8358   case $MKDIR in
8359   [\\/]* | ?:[\\/]*)
8360   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8361   ;;
8362   *)
8363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364 for as_dir in $PATH
8365 do
8366   IFS=$as_save_IFS
8367   test -z "$as_dir" && as_dir=.
8368     for ac_exec_ext in '' $ac_executable_extensions; do
8369   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8370     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8372     break 2
8373   fi
8374 done
8375   done
8376 IFS=$as_save_IFS
8377 
8378   ;;
8379 esac
8380 fi
8381 MKDIR=$ac_cv_path_MKDIR
8382 if test -n "$MKDIR"; then
8383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8384 $as_echo "$MKDIR" >&6; }
8385 else
8386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387 $as_echo "no" >&6; }
8388 fi
8389 
8390 
8391   test -n "$MKDIR" && break
8392 done
8393 
8394   else
8395     # The variable is set, but is it from the command line or the environment?
8396 
8397     # Try to remove the string !MKDIR! from our list.
8398     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
8399     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8400       # If it failed, the variable was not from the command line. Ignore it,
8401       # but warn the user (except for BASH, which is always set by the calling BASH).
8402       if test "xMKDIR" != xBASH; then
8403         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
8404 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
8405       fi
8406       # Try to locate tool using the code snippet
8407       for ac_prog in mkdir
8408 do
8409   # Extract the first word of "$ac_prog", so it can be a program name with args.
8410 set dummy $ac_prog; ac_word=$2
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8412 $as_echo_n "checking for $ac_word... " >&6; }
8413 if ${ac_cv_path_MKDIR+:} false; then :
8414   $as_echo_n "(cached) " >&6
8415 else
8416   case $MKDIR in
8417   [\\/]* | ?:[\\/]*)
8418   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8419   ;;
8420   *)
8421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8422 for as_dir in $PATH
8423 do
8424   IFS=$as_save_IFS
8425   test -z "$as_dir" && as_dir=.
8426     for ac_exec_ext in '' $ac_executable_extensions; do
8427   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8428     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8430     break 2
8431   fi
8432 done
8433   done
8434 IFS=$as_save_IFS
8435 
8436   ;;
8437 esac
8438 fi
8439 MKDIR=$ac_cv_path_MKDIR
8440 if test -n "$MKDIR"; then
8441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8442 $as_echo "$MKDIR" >&6; }
8443 else
8444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445 $as_echo "no" >&6; }
8446 fi
8447 
8448 
8449   test -n "$MKDIR" && break
8450 done
8451 
8452     else
8453       # If it succeeded, then it was overridden by the user. We will use it
8454       # for the tool.
8455 
8456       # First remove it from the list of overridden variables, so we can test
8457       # for unknown variables in the end.
8458       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8459 
8460       # Check if we try to supply an empty value
8461       if test "x$MKDIR" = x; then
8462         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5
8463 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;}
8464         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8465 $as_echo_n "checking for MKDIR... " >&6; }
8466         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8467 $as_echo "disabled" >&6; }
8468       else
8469         # Check if the provided tool contains a complete path.
8470         tool_specified="$MKDIR"
8471         tool_basename="${tool_specified##*/}"
8472         if test "x$tool_basename" = "x$tool_specified"; then
8473           # A command without a complete path is provided, search $PATH.
8474           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
8475 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
8476           # Extract the first word of "$tool_basename", so it can be a program name with args.
8477 set dummy $tool_basename; ac_word=$2
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8479 $as_echo_n "checking for $ac_word... " >&6; }
8480 if ${ac_cv_path_MKDIR+:} false; then :
8481   $as_echo_n "(cached) " >&6
8482 else
8483   case $MKDIR in
8484   [\\/]* | ?:[\\/]*)
8485   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8486   ;;
8487   *)
8488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8489 for as_dir in $PATH
8490 do
8491   IFS=$as_save_IFS
8492   test -z "$as_dir" && as_dir=.
8493     for ac_exec_ext in '' $ac_executable_extensions; do
8494   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8495     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8497     break 2
8498   fi
8499 done
8500   done
8501 IFS=$as_save_IFS
8502 
8503   ;;
8504 esac
8505 fi
8506 MKDIR=$ac_cv_path_MKDIR
8507 if test -n "$MKDIR"; then
8508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8509 $as_echo "$MKDIR" >&6; }
8510 else
8511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8512 $as_echo "no" >&6; }
8513 fi
8514 
8515 
8516           if test "x$MKDIR" = x; then
8517             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8518           fi
8519         else
8520           # Otherwise we believe it is a complete path. Use it as it is.
8521           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
8522 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
8523           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8524 $as_echo_n "checking for MKDIR... " >&6; }
8525           if test ! -x "$tool_specified"; then
8526             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8527 $as_echo "not found" >&6; }
8528             as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
8529           fi
8530           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8531 $as_echo "$tool_specified" >&6; }
8532         fi
8533       fi
8534     fi
8535 
8536   fi
8537 
8538 
8539 
8540   if test "x$MKDIR" = x; then
8541     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
8542   fi
8543 
8544 
8545 
8546 
8547 
8548   # Publish this variable in the help.
8549 
8550 
8551   if [ -z "${MKTEMP+x}" ]; then
8552     # The variable is not set by user, try to locate tool using the code snippet
8553     for ac_prog in mktemp
8554 do
8555   # Extract the first word of "$ac_prog", so it can be a program name with args.
8556 set dummy $ac_prog; ac_word=$2
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8558 $as_echo_n "checking for $ac_word... " >&6; }
8559 if ${ac_cv_path_MKTEMP+:} false; then :
8560   $as_echo_n "(cached) " >&6
8561 else
8562   case $MKTEMP in
8563   [\\/]* | ?:[\\/]*)
8564   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8565   ;;
8566   *)
8567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568 for as_dir in $PATH
8569 do
8570   IFS=$as_save_IFS
8571   test -z "$as_dir" && as_dir=.
8572     for ac_exec_ext in '' $ac_executable_extensions; do
8573   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8574     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8576     break 2
8577   fi
8578 done
8579   done
8580 IFS=$as_save_IFS
8581 
8582   ;;
8583 esac
8584 fi
8585 MKTEMP=$ac_cv_path_MKTEMP
8586 if test -n "$MKTEMP"; then
8587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8588 $as_echo "$MKTEMP" >&6; }
8589 else
8590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591 $as_echo "no" >&6; }
8592 fi
8593 
8594 
8595   test -n "$MKTEMP" && break
8596 done
8597 
8598   else
8599     # The variable is set, but is it from the command line or the environment?
8600 
8601     # Try to remove the string !MKTEMP! from our list.
8602     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8603     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8604       # If it failed, the variable was not from the command line. Ignore it,
8605       # but warn the user (except for BASH, which is always set by the calling BASH).
8606       if test "xMKTEMP" != xBASH; then
8607         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8608 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8609       fi
8610       # Try to locate tool using the code snippet
8611       for ac_prog in mktemp
8612 do
8613   # Extract the first word of "$ac_prog", so it can be a program name with args.
8614 set dummy $ac_prog; ac_word=$2
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8616 $as_echo_n "checking for $ac_word... " >&6; }
8617 if ${ac_cv_path_MKTEMP+:} false; then :
8618   $as_echo_n "(cached) " >&6
8619 else
8620   case $MKTEMP in
8621   [\\/]* | ?:[\\/]*)
8622   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8623   ;;
8624   *)
8625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8626 for as_dir in $PATH
8627 do
8628   IFS=$as_save_IFS
8629   test -z "$as_dir" && as_dir=.
8630     for ac_exec_ext in '' $ac_executable_extensions; do
8631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8632     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8634     break 2
8635   fi
8636 done
8637   done
8638 IFS=$as_save_IFS
8639 
8640   ;;
8641 esac
8642 fi
8643 MKTEMP=$ac_cv_path_MKTEMP
8644 if test -n "$MKTEMP"; then
8645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8646 $as_echo "$MKTEMP" >&6; }
8647 else
8648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8649 $as_echo "no" >&6; }
8650 fi
8651 
8652 
8653   test -n "$MKTEMP" && break
8654 done
8655 
8656     else
8657       # If it succeeded, then it was overridden by the user. We will use it
8658       # for the tool.
8659 
8660       # First remove it from the list of overridden variables, so we can test
8661       # for unknown variables in the end.
8662       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8663 
8664       # Check if we try to supply an empty value
8665       if test "x$MKTEMP" = x; then
8666         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5
8667 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;}
8668         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8669 $as_echo_n "checking for MKTEMP... " >&6; }
8670         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8671 $as_echo "disabled" >&6; }
8672       else
8673         # Check if the provided tool contains a complete path.
8674         tool_specified="$MKTEMP"
8675         tool_basename="${tool_specified##*/}"
8676         if test "x$tool_basename" = "x$tool_specified"; then
8677           # A command without a complete path is provided, search $PATH.
8678           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8679 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8680           # Extract the first word of "$tool_basename", so it can be a program name with args.
8681 set dummy $tool_basename; ac_word=$2
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8683 $as_echo_n "checking for $ac_word... " >&6; }
8684 if ${ac_cv_path_MKTEMP+:} false; then :
8685   $as_echo_n "(cached) " >&6
8686 else
8687   case $MKTEMP in
8688   [\\/]* | ?:[\\/]*)
8689   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8690   ;;
8691   *)
8692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8693 for as_dir in $PATH
8694 do
8695   IFS=$as_save_IFS
8696   test -z "$as_dir" && as_dir=.
8697     for ac_exec_ext in '' $ac_executable_extensions; do
8698   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8699     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8701     break 2
8702   fi
8703 done
8704   done
8705 IFS=$as_save_IFS
8706 
8707   ;;
8708 esac
8709 fi
8710 MKTEMP=$ac_cv_path_MKTEMP
8711 if test -n "$MKTEMP"; then
8712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8713 $as_echo "$MKTEMP" >&6; }
8714 else
8715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8716 $as_echo "no" >&6; }
8717 fi
8718 
8719 
8720           if test "x$MKTEMP" = x; then
8721             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8722           fi
8723         else
8724           # Otherwise we believe it is a complete path. Use it as it is.
8725           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8726 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8727           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8728 $as_echo_n "checking for MKTEMP... " >&6; }
8729           if test ! -x "$tool_specified"; then
8730             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8731 $as_echo "not found" >&6; }
8732             as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8733           fi
8734           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8735 $as_echo "$tool_specified" >&6; }
8736         fi
8737       fi
8738     fi
8739 
8740   fi
8741 
8742 
8743 
8744   if test "x$MKTEMP" = x; then
8745     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8746   fi
8747 
8748 
8749 
8750 
8751 
8752   # Publish this variable in the help.
8753 
8754 
8755   if [ -z "${MV+x}" ]; then
8756     # The variable is not set by user, try to locate tool using the code snippet
8757     for ac_prog in mv
8758 do
8759   # Extract the first word of "$ac_prog", so it can be a program name with args.
8760 set dummy $ac_prog; ac_word=$2
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8762 $as_echo_n "checking for $ac_word... " >&6; }
8763 if ${ac_cv_path_MV+:} false; then :
8764   $as_echo_n "(cached) " >&6
8765 else
8766   case $MV in
8767   [\\/]* | ?:[\\/]*)
8768   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8769   ;;
8770   *)
8771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8772 for as_dir in $PATH
8773 do
8774   IFS=$as_save_IFS
8775   test -z "$as_dir" && as_dir=.
8776     for ac_exec_ext in '' $ac_executable_extensions; do
8777   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8778     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8780     break 2
8781   fi
8782 done
8783   done
8784 IFS=$as_save_IFS
8785 
8786   ;;
8787 esac
8788 fi
8789 MV=$ac_cv_path_MV
8790 if test -n "$MV"; then
8791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8792 $as_echo "$MV" >&6; }
8793 else
8794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795 $as_echo "no" >&6; }
8796 fi
8797 
8798 
8799   test -n "$MV" && break
8800 done
8801 
8802   else
8803     # The variable is set, but is it from the command line or the environment?
8804 
8805     # Try to remove the string !MV! from our list.
8806     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8807     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8808       # If it failed, the variable was not from the command line. Ignore it,
8809       # but warn the user (except for BASH, which is always set by the calling BASH).
8810       if test "xMV" != xBASH; then
8811         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8812 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8813       fi
8814       # Try to locate tool using the code snippet
8815       for ac_prog in mv
8816 do
8817   # Extract the first word of "$ac_prog", so it can be a program name with args.
8818 set dummy $ac_prog; ac_word=$2
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8820 $as_echo_n "checking for $ac_word... " >&6; }
8821 if ${ac_cv_path_MV+:} false; then :
8822   $as_echo_n "(cached) " >&6
8823 else
8824   case $MV in
8825   [\\/]* | ?:[\\/]*)
8826   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8827   ;;
8828   *)
8829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8830 for as_dir in $PATH
8831 do
8832   IFS=$as_save_IFS
8833   test -z "$as_dir" && as_dir=.
8834     for ac_exec_ext in '' $ac_executable_extensions; do
8835   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8836     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8838     break 2
8839   fi
8840 done
8841   done
8842 IFS=$as_save_IFS
8843 
8844   ;;
8845 esac
8846 fi
8847 MV=$ac_cv_path_MV
8848 if test -n "$MV"; then
8849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8850 $as_echo "$MV" >&6; }
8851 else
8852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8853 $as_echo "no" >&6; }
8854 fi
8855 
8856 
8857   test -n "$MV" && break
8858 done
8859 
8860     else
8861       # If it succeeded, then it was overridden by the user. We will use it
8862       # for the tool.
8863 
8864       # First remove it from the list of overridden variables, so we can test
8865       # for unknown variables in the end.
8866       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8867 
8868       # Check if we try to supply an empty value
8869       if test "x$MV" = x; then
8870         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5
8871 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;}
8872         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8873 $as_echo_n "checking for MV... " >&6; }
8874         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8875 $as_echo "disabled" >&6; }
8876       else
8877         # Check if the provided tool contains a complete path.
8878         tool_specified="$MV"
8879         tool_basename="${tool_specified##*/}"
8880         if test "x$tool_basename" = "x$tool_specified"; then
8881           # A command without a complete path is provided, search $PATH.
8882           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8883 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8884           # Extract the first word of "$tool_basename", so it can be a program name with args.
8885 set dummy $tool_basename; ac_word=$2
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8887 $as_echo_n "checking for $ac_word... " >&6; }
8888 if ${ac_cv_path_MV+:} false; then :
8889   $as_echo_n "(cached) " >&6
8890 else
8891   case $MV in
8892   [\\/]* | ?:[\\/]*)
8893   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8894   ;;
8895   *)
8896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8897 for as_dir in $PATH
8898 do
8899   IFS=$as_save_IFS
8900   test -z "$as_dir" && as_dir=.
8901     for ac_exec_ext in '' $ac_executable_extensions; do
8902   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8903     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8905     break 2
8906   fi
8907 done
8908   done
8909 IFS=$as_save_IFS
8910 
8911   ;;
8912 esac
8913 fi
8914 MV=$ac_cv_path_MV
8915 if test -n "$MV"; then
8916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8917 $as_echo "$MV" >&6; }
8918 else
8919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8920 $as_echo "no" >&6; }
8921 fi
8922 
8923 
8924           if test "x$MV" = x; then
8925             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8926           fi
8927         else
8928           # Otherwise we believe it is a complete path. Use it as it is.
8929           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
8930 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
8931           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8932 $as_echo_n "checking for MV... " >&6; }
8933           if test ! -x "$tool_specified"; then
8934             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8935 $as_echo "not found" >&6; }
8936             as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
8937           fi
8938           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8939 $as_echo "$tool_specified" >&6; }
8940         fi
8941       fi
8942     fi
8943 
8944   fi
8945 
8946 
8947 
8948   if test "x$MV" = x; then
8949     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
8950   fi
8951 
8952 
8953 
8954 
8955 
8956   # Publish this variable in the help.
8957 
8958 
8959   if [ -z "${NAWK+x}" ]; then
8960     # The variable is not set by user, try to locate tool using the code snippet
8961     for ac_prog in nawk gawk awk
8962 do
8963   # Extract the first word of "$ac_prog", so it can be a program name with args.
8964 set dummy $ac_prog; ac_word=$2
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8966 $as_echo_n "checking for $ac_word... " >&6; }
8967 if ${ac_cv_path_NAWK+:} false; then :
8968   $as_echo_n "(cached) " >&6
8969 else
8970   case $NAWK in
8971   [\\/]* | ?:[\\/]*)
8972   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8973   ;;
8974   *)
8975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8976 for as_dir in $PATH
8977 do
8978   IFS=$as_save_IFS
8979   test -z "$as_dir" && as_dir=.
8980     for ac_exec_ext in '' $ac_executable_extensions; do
8981   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8982     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8984     break 2
8985   fi
8986 done
8987   done
8988 IFS=$as_save_IFS
8989 
8990   ;;
8991 esac
8992 fi
8993 NAWK=$ac_cv_path_NAWK
8994 if test -n "$NAWK"; then
8995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8996 $as_echo "$NAWK" >&6; }
8997 else
8998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8999 $as_echo "no" >&6; }
9000 fi
9001 
9002 
9003   test -n "$NAWK" && break
9004 done
9005 
9006   else
9007     # The variable is set, but is it from the command line or the environment?
9008 
9009     # Try to remove the string !NAWK! from our list.
9010     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
9011     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9012       # If it failed, the variable was not from the command line. Ignore it,
9013       # but warn the user (except for BASH, which is always set by the calling BASH).
9014       if test "xNAWK" != xBASH; then
9015         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
9016 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
9017       fi
9018       # Try to locate tool using the code snippet
9019       for ac_prog in nawk gawk awk
9020 do
9021   # Extract the first word of "$ac_prog", so it can be a program name with args.
9022 set dummy $ac_prog; ac_word=$2
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9024 $as_echo_n "checking for $ac_word... " >&6; }
9025 if ${ac_cv_path_NAWK+:} false; then :
9026   $as_echo_n "(cached) " >&6
9027 else
9028   case $NAWK in
9029   [\\/]* | ?:[\\/]*)
9030   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9031   ;;
9032   *)
9033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9034 for as_dir in $PATH
9035 do
9036   IFS=$as_save_IFS
9037   test -z "$as_dir" && as_dir=.
9038     for ac_exec_ext in '' $ac_executable_extensions; do
9039   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9040     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9042     break 2
9043   fi
9044 done
9045   done
9046 IFS=$as_save_IFS
9047 
9048   ;;
9049 esac
9050 fi
9051 NAWK=$ac_cv_path_NAWK
9052 if test -n "$NAWK"; then
9053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9054 $as_echo "$NAWK" >&6; }
9055 else
9056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9057 $as_echo "no" >&6; }
9058 fi
9059 
9060 
9061   test -n "$NAWK" && break
9062 done
9063 
9064     else
9065       # If it succeeded, then it was overridden by the user. We will use it
9066       # for the tool.
9067 
9068       # First remove it from the list of overridden variables, so we can test
9069       # for unknown variables in the end.
9070       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9071 
9072       # Check if we try to supply an empty value
9073       if test "x$NAWK" = x; then
9074         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5
9075 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;}
9076         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
9077 $as_echo_n "checking for NAWK... " >&6; }
9078         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9079 $as_echo "disabled" >&6; }
9080       else
9081         # Check if the provided tool contains a complete path.
9082         tool_specified="$NAWK"
9083         tool_basename="${tool_specified##*/}"
9084         if test "x$tool_basename" = "x$tool_specified"; then
9085           # A command without a complete path is provided, search $PATH.
9086           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
9087 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
9088           # Extract the first word of "$tool_basename", so it can be a program name with args.
9089 set dummy $tool_basename; ac_word=$2
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9091 $as_echo_n "checking for $ac_word... " >&6; }
9092 if ${ac_cv_path_NAWK+:} false; then :
9093   $as_echo_n "(cached) " >&6
9094 else
9095   case $NAWK in
9096   [\\/]* | ?:[\\/]*)
9097   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9098   ;;
9099   *)
9100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9101 for as_dir in $PATH
9102 do
9103   IFS=$as_save_IFS
9104   test -z "$as_dir" && as_dir=.
9105     for ac_exec_ext in '' $ac_executable_extensions; do
9106   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9107     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9109     break 2
9110   fi
9111 done
9112   done
9113 IFS=$as_save_IFS
9114 
9115   ;;
9116 esac
9117 fi
9118 NAWK=$ac_cv_path_NAWK
9119 if test -n "$NAWK"; then
9120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9121 $as_echo "$NAWK" >&6; }
9122 else
9123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9124 $as_echo "no" >&6; }
9125 fi
9126 
9127 
9128           if test "x$NAWK" = x; then
9129             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9130           fi
9131         else
9132           # Otherwise we believe it is a complete path. Use it as it is.
9133           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
9134 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
9135           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
9136 $as_echo_n "checking for NAWK... " >&6; }
9137           if test ! -x "$tool_specified"; then
9138             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9139 $as_echo "not found" >&6; }
9140             as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
9141           fi
9142           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9143 $as_echo "$tool_specified" >&6; }
9144         fi
9145       fi
9146     fi
9147 
9148   fi
9149 
9150 
9151 
9152   if test "x$NAWK" = x; then
9153     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
9154   fi
9155 
9156 
9157 
9158 
9159 
9160   # Publish this variable in the help.
9161 
9162 
9163   if [ -z "${PRINTF+x}" ]; then
9164     # The variable is not set by user, try to locate tool using the code snippet
9165     for ac_prog in printf
9166 do
9167   # Extract the first word of "$ac_prog", so it can be a program name with args.
9168 set dummy $ac_prog; ac_word=$2
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9170 $as_echo_n "checking for $ac_word... " >&6; }
9171 if ${ac_cv_path_PRINTF+:} false; then :
9172   $as_echo_n "(cached) " >&6
9173 else
9174   case $PRINTF in
9175   [\\/]* | ?:[\\/]*)
9176   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9177   ;;
9178   *)
9179   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9180 for as_dir in $PATH
9181 do
9182   IFS=$as_save_IFS
9183   test -z "$as_dir" && as_dir=.
9184     for ac_exec_ext in '' $ac_executable_extensions; do
9185   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9186     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9188     break 2
9189   fi
9190 done
9191   done
9192 IFS=$as_save_IFS
9193 
9194   ;;
9195 esac
9196 fi
9197 PRINTF=$ac_cv_path_PRINTF
9198 if test -n "$PRINTF"; then
9199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9200 $as_echo "$PRINTF" >&6; }
9201 else
9202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9203 $as_echo "no" >&6; }
9204 fi
9205 
9206 
9207   test -n "$PRINTF" && break
9208 done
9209 
9210   else
9211     # The variable is set, but is it from the command line or the environment?
9212 
9213     # Try to remove the string !PRINTF! from our list.
9214     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
9215     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9216       # If it failed, the variable was not from the command line. Ignore it,
9217       # but warn the user (except for BASH, which is always set by the calling BASH).
9218       if test "xPRINTF" != xBASH; then
9219         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
9220 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
9221       fi
9222       # Try to locate tool using the code snippet
9223       for ac_prog in printf
9224 do
9225   # Extract the first word of "$ac_prog", so it can be a program name with args.
9226 set dummy $ac_prog; ac_word=$2
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9228 $as_echo_n "checking for $ac_word... " >&6; }
9229 if ${ac_cv_path_PRINTF+:} false; then :
9230   $as_echo_n "(cached) " >&6
9231 else
9232   case $PRINTF in
9233   [\\/]* | ?:[\\/]*)
9234   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9235   ;;
9236   *)
9237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9238 for as_dir in $PATH
9239 do
9240   IFS=$as_save_IFS
9241   test -z "$as_dir" && as_dir=.
9242     for ac_exec_ext in '' $ac_executable_extensions; do
9243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9244     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9246     break 2
9247   fi
9248 done
9249   done
9250 IFS=$as_save_IFS
9251 
9252   ;;
9253 esac
9254 fi
9255 PRINTF=$ac_cv_path_PRINTF
9256 if test -n "$PRINTF"; then
9257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9258 $as_echo "$PRINTF" >&6; }
9259 else
9260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9261 $as_echo "no" >&6; }
9262 fi
9263 
9264 
9265   test -n "$PRINTF" && break
9266 done
9267 
9268     else
9269       # If it succeeded, then it was overridden by the user. We will use it
9270       # for the tool.
9271 
9272       # First remove it from the list of overridden variables, so we can test
9273       # for unknown variables in the end.
9274       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9275 
9276       # Check if we try to supply an empty value
9277       if test "x$PRINTF" = x; then
9278         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5
9279 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;}
9280         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
9281 $as_echo_n "checking for PRINTF... " >&6; }
9282         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9283 $as_echo "disabled" >&6; }
9284       else
9285         # Check if the provided tool contains a complete path.
9286         tool_specified="$PRINTF"
9287         tool_basename="${tool_specified##*/}"
9288         if test "x$tool_basename" = "x$tool_specified"; then
9289           # A command without a complete path is provided, search $PATH.
9290           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
9291 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
9292           # Extract the first word of "$tool_basename", so it can be a program name with args.
9293 set dummy $tool_basename; ac_word=$2
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9295 $as_echo_n "checking for $ac_word... " >&6; }
9296 if ${ac_cv_path_PRINTF+:} false; then :
9297   $as_echo_n "(cached) " >&6
9298 else
9299   case $PRINTF in
9300   [\\/]* | ?:[\\/]*)
9301   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9302   ;;
9303   *)
9304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9305 for as_dir in $PATH
9306 do
9307   IFS=$as_save_IFS
9308   test -z "$as_dir" && as_dir=.
9309     for ac_exec_ext in '' $ac_executable_extensions; do
9310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9311     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9313     break 2
9314   fi
9315 done
9316   done
9317 IFS=$as_save_IFS
9318 
9319   ;;
9320 esac
9321 fi
9322 PRINTF=$ac_cv_path_PRINTF
9323 if test -n "$PRINTF"; then
9324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9325 $as_echo "$PRINTF" >&6; }
9326 else
9327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9328 $as_echo "no" >&6; }
9329 fi
9330 
9331 
9332           if test "x$PRINTF" = x; then
9333             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9334           fi
9335         else
9336           # Otherwise we believe it is a complete path. Use it as it is.
9337           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
9338 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
9339           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
9340 $as_echo_n "checking for PRINTF... " >&6; }
9341           if test ! -x "$tool_specified"; then
9342             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9343 $as_echo "not found" >&6; }
9344             as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
9345           fi
9346           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9347 $as_echo "$tool_specified" >&6; }
9348         fi
9349       fi
9350     fi
9351 
9352   fi
9353 
9354 
9355 
9356   if test "x$PRINTF" = x; then
9357     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
9358   fi
9359 
9360 
9361 
9362 
9363 
9364   # Publish this variable in the help.
9365 
9366 
9367   if [ -z "${RM+x}" ]; then
9368     # The variable is not set by user, try to locate tool using the code snippet
9369     for ac_prog in rm
9370 do
9371   # Extract the first word of "$ac_prog", so it can be a program name with args.
9372 set dummy $ac_prog; ac_word=$2
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9374 $as_echo_n "checking for $ac_word... " >&6; }
9375 if ${ac_cv_path_RM+:} false; then :
9376   $as_echo_n "(cached) " >&6
9377 else
9378   case $RM in
9379   [\\/]* | ?:[\\/]*)
9380   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9381   ;;
9382   *)
9383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9384 for as_dir in $PATH
9385 do
9386   IFS=$as_save_IFS
9387   test -z "$as_dir" && as_dir=.
9388     for ac_exec_ext in '' $ac_executable_extensions; do
9389   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9390     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9392     break 2
9393   fi
9394 done
9395   done
9396 IFS=$as_save_IFS
9397 
9398   ;;
9399 esac
9400 fi
9401 RM=$ac_cv_path_RM
9402 if test -n "$RM"; then
9403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9404 $as_echo "$RM" >&6; }
9405 else
9406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9407 $as_echo "no" >&6; }
9408 fi
9409 
9410 
9411   test -n "$RM" && break
9412 done
9413 
9414   else
9415     # The variable is set, but is it from the command line or the environment?
9416 
9417     # Try to remove the string !RM! from our list.
9418     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
9419     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9420       # If it failed, the variable was not from the command line. Ignore it,
9421       # but warn the user (except for BASH, which is always set by the calling BASH).
9422       if test "xRM" != xBASH; then
9423         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
9424 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
9425       fi
9426       # Try to locate tool using the code snippet
9427       for ac_prog in rm
9428 do
9429   # Extract the first word of "$ac_prog", so it can be a program name with args.
9430 set dummy $ac_prog; ac_word=$2
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9432 $as_echo_n "checking for $ac_word... " >&6; }
9433 if ${ac_cv_path_RM+:} false; then :
9434   $as_echo_n "(cached) " >&6
9435 else
9436   case $RM in
9437   [\\/]* | ?:[\\/]*)
9438   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9439   ;;
9440   *)
9441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9442 for as_dir in $PATH
9443 do
9444   IFS=$as_save_IFS
9445   test -z "$as_dir" && as_dir=.
9446     for ac_exec_ext in '' $ac_executable_extensions; do
9447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9448     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9450     break 2
9451   fi
9452 done
9453   done
9454 IFS=$as_save_IFS
9455 
9456   ;;
9457 esac
9458 fi
9459 RM=$ac_cv_path_RM
9460 if test -n "$RM"; then
9461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9462 $as_echo "$RM" >&6; }
9463 else
9464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9465 $as_echo "no" >&6; }
9466 fi
9467 
9468 
9469   test -n "$RM" && break
9470 done
9471 
9472     else
9473       # If it succeeded, then it was overridden by the user. We will use it
9474       # for the tool.
9475 
9476       # First remove it from the list of overridden variables, so we can test
9477       # for unknown variables in the end.
9478       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9479 
9480       # Check if we try to supply an empty value
9481       if test "x$RM" = x; then
9482         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5
9483 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;}
9484         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9485 $as_echo_n "checking for RM... " >&6; }
9486         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9487 $as_echo "disabled" >&6; }
9488       else
9489         # Check if the provided tool contains a complete path.
9490         tool_specified="$RM"
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 RM=$tool_basename" >&5
9495 $as_echo "$as_me: Will search for user supplied tool RM=$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_RM+:} false; then :
9501   $as_echo_n "(cached) " >&6
9502 else
9503   case $RM in
9504   [\\/]* | ?:[\\/]*)
9505   ac_cv_path_RM="$RM" # 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_RM="$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 RM=$ac_cv_path_RM
9527 if test -n "$RM"; then
9528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9529 $as_echo "$RM" >&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$RM" = 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 RM=$tool_specified" >&5
9542 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
9543           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9544 $as_echo_n "checking for RM... " >&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 RM=$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   fi
9557 
9558 
9559 
9560   if test "x$RM" = x; then
9561     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
9562   fi
9563 
9564 
9565 
9566 
9567 
9568   # Publish this variable in the help.
9569 
9570 
9571   if [ -z "${RMDIR+x}" ]; then
9572     # The variable is not set by user, try to locate tool using the code snippet
9573     for ac_prog in rmdir
9574 do
9575   # Extract the first word of "$ac_prog", so it can be a program name with args.
9576 set dummy $ac_prog; ac_word=$2
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9578 $as_echo_n "checking for $ac_word... " >&6; }
9579 if ${ac_cv_path_RMDIR+:} false; then :
9580   $as_echo_n "(cached) " >&6
9581 else
9582   case $RMDIR in
9583   [\\/]* | ?:[\\/]*)
9584   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
9585   ;;
9586   *)
9587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9588 for as_dir in $PATH
9589 do
9590   IFS=$as_save_IFS
9591   test -z "$as_dir" && as_dir=.
9592     for ac_exec_ext in '' $ac_executable_extensions; do
9593   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9594     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
9595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9596     break 2
9597   fi
9598 done
9599   done
9600 IFS=$as_save_IFS
9601 
9602   ;;
9603 esac
9604 fi
9605 RMDIR=$ac_cv_path_RMDIR
9606 if test -n "$RMDIR"; then
9607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
9608 $as_echo "$RMDIR" >&6; }
9609 else
9610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9611 $as_echo "no" >&6; }
9612 fi
9613 
9614 
9615   test -n "$RMDIR" && break
9616 done
9617 
9618   else
9619     # The variable is set, but is it from the command line or the environment?
9620 
9621     # Try to remove the string !RMDIR! from our list.
9622     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/}
9623     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9624       # If it failed, the variable was not from the command line. Ignore it,
9625       # but warn the user (except for BASH, which is always set by the calling BASH).
9626       if test "xRMDIR" != xBASH; then
9627         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5
9628 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;}
9629       fi
9630       # Try to locate tool using the code snippet
9631       for ac_prog in rmdir
9632 do
9633   # Extract the first word of "$ac_prog", so it can be a program name with args.
9634 set dummy $ac_prog; ac_word=$2
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9636 $as_echo_n "checking for $ac_word... " >&6; }
9637 if ${ac_cv_path_RMDIR+:} false; then :
9638   $as_echo_n "(cached) " >&6
9639 else
9640   case $RMDIR in
9641   [\\/]* | ?:[\\/]*)
9642   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
9643   ;;
9644   *)
9645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9646 for as_dir in $PATH
9647 do
9648   IFS=$as_save_IFS
9649   test -z "$as_dir" && as_dir=.
9650     for ac_exec_ext in '' $ac_executable_extensions; do
9651   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9652     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
9653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9654     break 2
9655   fi
9656 done
9657   done
9658 IFS=$as_save_IFS
9659 
9660   ;;
9661 esac
9662 fi
9663 RMDIR=$ac_cv_path_RMDIR
9664 if test -n "$RMDIR"; then
9665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
9666 $as_echo "$RMDIR" >&6; }
9667 else
9668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9669 $as_echo "no" >&6; }
9670 fi
9671 
9672 
9673   test -n "$RMDIR" && break
9674 done
9675 
9676     else
9677       # If it succeeded, then it was overridden by the user. We will use it
9678       # for the tool.
9679 
9680       # First remove it from the list of overridden variables, so we can test
9681       # for unknown variables in the end.
9682       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9683 
9684       # Check if we try to supply an empty value
9685       if test "x$RMDIR" = x; then
9686         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5
9687 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;}
9688         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
9689 $as_echo_n "checking for RMDIR... " >&6; }
9690         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9691 $as_echo "disabled" >&6; }
9692       else
9693         # Check if the provided tool contains a complete path.
9694         tool_specified="$RMDIR"
9695         tool_basename="${tool_specified##*/}"
9696         if test "x$tool_basename" = "x$tool_specified"; then
9697           # A command without a complete path is provided, search $PATH.
9698           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5
9699 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;}
9700           # Extract the first word of "$tool_basename", so it can be a program name with args.
9701 set dummy $tool_basename; ac_word=$2
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9703 $as_echo_n "checking for $ac_word... " >&6; }
9704 if ${ac_cv_path_RMDIR+:} false; then :
9705   $as_echo_n "(cached) " >&6
9706 else
9707   case $RMDIR in
9708   [\\/]* | ?:[\\/]*)
9709   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
9710   ;;
9711   *)
9712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9713 for as_dir in $PATH
9714 do
9715   IFS=$as_save_IFS
9716   test -z "$as_dir" && as_dir=.
9717     for ac_exec_ext in '' $ac_executable_extensions; do
9718   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9719     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
9720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9721     break 2
9722   fi
9723 done
9724   done
9725 IFS=$as_save_IFS
9726 
9727   ;;
9728 esac
9729 fi
9730 RMDIR=$ac_cv_path_RMDIR
9731 if test -n "$RMDIR"; then
9732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
9733 $as_echo "$RMDIR" >&6; }
9734 else
9735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9736 $as_echo "no" >&6; }
9737 fi
9738 
9739 
9740           if test "x$RMDIR" = x; then
9741             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9742           fi
9743         else
9744           # Otherwise we believe it is a complete path. Use it as it is.
9745           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5
9746 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;}
9747           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
9748 $as_echo_n "checking for RMDIR... " >&6; }
9749           if test ! -x "$tool_specified"; then
9750             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9751 $as_echo "not found" >&6; }
9752             as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
9753           fi
9754           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9755 $as_echo "$tool_specified" >&6; }
9756         fi
9757       fi
9758     fi
9759 
9760   fi
9761 
9762 
9763 
9764   if test "x$RMDIR" = x; then
9765     as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5
9766   fi
9767 
9768 
9769 
9770 
9771 
9772   # Publish this variable in the help.
9773 
9774 
9775   if [ -z "${SH+x}" ]; then
9776     # The variable is not set by user, try to locate tool using the code snippet
9777     for ac_prog in sh
9778 do
9779   # Extract the first word of "$ac_prog", so it can be a program name with args.
9780 set dummy $ac_prog; ac_word=$2
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9782 $as_echo_n "checking for $ac_word... " >&6; }
9783 if ${ac_cv_path_SH+:} false; then :
9784   $as_echo_n "(cached) " >&6
9785 else
9786   case $SH in
9787   [\\/]* | ?:[\\/]*)
9788   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9789   ;;
9790   *)
9791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9792 for as_dir in $PATH
9793 do
9794   IFS=$as_save_IFS
9795   test -z "$as_dir" && as_dir=.
9796     for ac_exec_ext in '' $ac_executable_extensions; do
9797   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9798     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9800     break 2
9801   fi
9802 done
9803   done
9804 IFS=$as_save_IFS
9805 
9806   ;;
9807 esac
9808 fi
9809 SH=$ac_cv_path_SH
9810 if test -n "$SH"; then
9811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9812 $as_echo "$SH" >&6; }
9813 else
9814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9815 $as_echo "no" >&6; }
9816 fi
9817 
9818 
9819   test -n "$SH" && break
9820 done
9821 
9822   else
9823     # The variable is set, but is it from the command line or the environment?
9824 
9825     # Try to remove the string !SH! from our list.
9826     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
9827     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9828       # If it failed, the variable was not from the command line. Ignore it,
9829       # but warn the user (except for BASH, which is always set by the calling BASH).
9830       if test "xSH" != xBASH; then
9831         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
9832 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
9833       fi
9834       # Try to locate tool using the code snippet
9835       for ac_prog in sh
9836 do
9837   # Extract the first word of "$ac_prog", so it can be a program name with args.
9838 set dummy $ac_prog; ac_word=$2
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9840 $as_echo_n "checking for $ac_word... " >&6; }
9841 if ${ac_cv_path_SH+:} false; then :
9842   $as_echo_n "(cached) " >&6
9843 else
9844   case $SH in
9845   [\\/]* | ?:[\\/]*)
9846   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9847   ;;
9848   *)
9849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9850 for as_dir in $PATH
9851 do
9852   IFS=$as_save_IFS
9853   test -z "$as_dir" && as_dir=.
9854     for ac_exec_ext in '' $ac_executable_extensions; do
9855   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9856     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9858     break 2
9859   fi
9860 done
9861   done
9862 IFS=$as_save_IFS
9863 
9864   ;;
9865 esac
9866 fi
9867 SH=$ac_cv_path_SH
9868 if test -n "$SH"; then
9869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9870 $as_echo "$SH" >&6; }
9871 else
9872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9873 $as_echo "no" >&6; }
9874 fi
9875 
9876 
9877   test -n "$SH" && break
9878 done
9879 
9880     else
9881       # If it succeeded, then it was overridden by the user. We will use it
9882       # for the tool.
9883 
9884       # First remove it from the list of overridden variables, so we can test
9885       # for unknown variables in the end.
9886       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9887 
9888       # Check if we try to supply an empty value
9889       if test "x$SH" = x; then
9890         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5
9891 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;}
9892         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9893 $as_echo_n "checking for SH... " >&6; }
9894         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9895 $as_echo "disabled" >&6; }
9896       else
9897         # Check if the provided tool contains a complete path.
9898         tool_specified="$SH"
9899         tool_basename="${tool_specified##*/}"
9900         if test "x$tool_basename" = "x$tool_specified"; then
9901           # A command without a complete path is provided, search $PATH.
9902           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
9903 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
9904           # Extract the first word of "$tool_basename", so it can be a program name with args.
9905 set dummy $tool_basename; ac_word=$2
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9907 $as_echo_n "checking for $ac_word... " >&6; }
9908 if ${ac_cv_path_SH+:} false; then :
9909   $as_echo_n "(cached) " >&6
9910 else
9911   case $SH in
9912   [\\/]* | ?:[\\/]*)
9913   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9914   ;;
9915   *)
9916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9917 for as_dir in $PATH
9918 do
9919   IFS=$as_save_IFS
9920   test -z "$as_dir" && as_dir=.
9921     for ac_exec_ext in '' $ac_executable_extensions; do
9922   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9923     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9925     break 2
9926   fi
9927 done
9928   done
9929 IFS=$as_save_IFS
9930 
9931   ;;
9932 esac
9933 fi
9934 SH=$ac_cv_path_SH
9935 if test -n "$SH"; then
9936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9937 $as_echo "$SH" >&6; }
9938 else
9939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9940 $as_echo "no" >&6; }
9941 fi
9942 
9943 
9944           if test "x$SH" = x; then
9945             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9946           fi
9947         else
9948           # Otherwise we believe it is a complete path. Use it as it is.
9949           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
9950 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
9951           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9952 $as_echo_n "checking for SH... " >&6; }
9953           if test ! -x "$tool_specified"; then
9954             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9955 $as_echo "not found" >&6; }
9956             as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
9957           fi
9958           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9959 $as_echo "$tool_specified" >&6; }
9960         fi
9961       fi
9962     fi
9963 
9964   fi
9965 
9966 
9967 
9968   if test "x$SH" = x; then
9969     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
9970   fi
9971 
9972 
9973 
9974 
9975 
9976   # Publish this variable in the help.
9977 
9978 
9979   if [ -z "${SORT+x}" ]; then
9980     # The variable is not set by user, try to locate tool using the code snippet
9981     for ac_prog in sort
9982 do
9983   # Extract the first word of "$ac_prog", so it can be a program name with args.
9984 set dummy $ac_prog; ac_word=$2
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9986 $as_echo_n "checking for $ac_word... " >&6; }
9987 if ${ac_cv_path_SORT+:} false; then :
9988   $as_echo_n "(cached) " >&6
9989 else
9990   case $SORT in
9991   [\\/]* | ?:[\\/]*)
9992   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9993   ;;
9994   *)
9995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9996 for as_dir in $PATH
9997 do
9998   IFS=$as_save_IFS
9999   test -z "$as_dir" && as_dir=.
10000     for ac_exec_ext in '' $ac_executable_extensions; do
10001   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10002     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10004     break 2
10005   fi
10006 done
10007   done
10008 IFS=$as_save_IFS
10009 
10010   ;;
10011 esac
10012 fi
10013 SORT=$ac_cv_path_SORT
10014 if test -n "$SORT"; then
10015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10016 $as_echo "$SORT" >&6; }
10017 else
10018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10019 $as_echo "no" >&6; }
10020 fi
10021 
10022 
10023   test -n "$SORT" && break
10024 done
10025 
10026   else
10027     # The variable is set, but is it from the command line or the environment?
10028 
10029     # Try to remove the string !SORT! from our list.
10030     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
10031     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10032       # If it failed, the variable was not from the command line. Ignore it,
10033       # but warn the user (except for BASH, which is always set by the calling BASH).
10034       if test "xSORT" != xBASH; then
10035         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
10036 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
10037       fi
10038       # Try to locate tool using the code snippet
10039       for ac_prog in sort
10040 do
10041   # Extract the first word of "$ac_prog", so it can be a program name with args.
10042 set dummy $ac_prog; ac_word=$2
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10044 $as_echo_n "checking for $ac_word... " >&6; }
10045 if ${ac_cv_path_SORT+:} false; then :
10046   $as_echo_n "(cached) " >&6
10047 else
10048   case $SORT in
10049   [\\/]* | ?:[\\/]*)
10050   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10051   ;;
10052   *)
10053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054 for as_dir in $PATH
10055 do
10056   IFS=$as_save_IFS
10057   test -z "$as_dir" && as_dir=.
10058     for ac_exec_ext in '' $ac_executable_extensions; do
10059   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10060     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10062     break 2
10063   fi
10064 done
10065   done
10066 IFS=$as_save_IFS
10067 
10068   ;;
10069 esac
10070 fi
10071 SORT=$ac_cv_path_SORT
10072 if test -n "$SORT"; then
10073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10074 $as_echo "$SORT" >&6; }
10075 else
10076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10077 $as_echo "no" >&6; }
10078 fi
10079 
10080 
10081   test -n "$SORT" && break
10082 done
10083 
10084     else
10085       # If it succeeded, then it was overridden by the user. We will use it
10086       # for the tool.
10087 
10088       # First remove it from the list of overridden variables, so we can test
10089       # for unknown variables in the end.
10090       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10091 
10092       # Check if we try to supply an empty value
10093       if test "x$SORT" = x; then
10094         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5
10095 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;}
10096         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
10097 $as_echo_n "checking for SORT... " >&6; }
10098         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10099 $as_echo "disabled" >&6; }
10100       else
10101         # Check if the provided tool contains a complete path.
10102         tool_specified="$SORT"
10103         tool_basename="${tool_specified##*/}"
10104         if test "x$tool_basename" = "x$tool_specified"; then
10105           # A command without a complete path is provided, search $PATH.
10106           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
10107 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
10108           # Extract the first word of "$tool_basename", so it can be a program name with args.
10109 set dummy $tool_basename; ac_word=$2
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10111 $as_echo_n "checking for $ac_word... " >&6; }
10112 if ${ac_cv_path_SORT+:} false; then :
10113   $as_echo_n "(cached) " >&6
10114 else
10115   case $SORT in
10116   [\\/]* | ?:[\\/]*)
10117   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10118   ;;
10119   *)
10120   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10121 for as_dir in $PATH
10122 do
10123   IFS=$as_save_IFS
10124   test -z "$as_dir" && as_dir=.
10125     for ac_exec_ext in '' $ac_executable_extensions; do
10126   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10127     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10129     break 2
10130   fi
10131 done
10132   done
10133 IFS=$as_save_IFS
10134 
10135   ;;
10136 esac
10137 fi
10138 SORT=$ac_cv_path_SORT
10139 if test -n "$SORT"; then
10140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10141 $as_echo "$SORT" >&6; }
10142 else
10143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10144 $as_echo "no" >&6; }
10145 fi
10146 
10147 
10148           if test "x$SORT" = x; then
10149             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10150           fi
10151         else
10152           # Otherwise we believe it is a complete path. Use it as it is.
10153           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
10154 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
10155           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
10156 $as_echo_n "checking for SORT... " >&6; }
10157           if test ! -x "$tool_specified"; then
10158             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10159 $as_echo "not found" >&6; }
10160             as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
10161           fi
10162           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10163 $as_echo "$tool_specified" >&6; }
10164         fi
10165       fi
10166     fi
10167 
10168   fi
10169 
10170 
10171 
10172   if test "x$SORT" = x; then
10173     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
10174   fi
10175 
10176 
10177 
10178 
10179 
10180   # Publish this variable in the help.
10181 
10182 
10183   if [ -z "${TAIL+x}" ]; then
10184     # The variable is not set by user, try to locate tool using the code snippet
10185     for ac_prog in tail
10186 do
10187   # Extract the first word of "$ac_prog", so it can be a program name with args.
10188 set dummy $ac_prog; ac_word=$2
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10190 $as_echo_n "checking for $ac_word... " >&6; }
10191 if ${ac_cv_path_TAIL+:} false; then :
10192   $as_echo_n "(cached) " >&6
10193 else
10194   case $TAIL in
10195   [\\/]* | ?:[\\/]*)
10196   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10197   ;;
10198   *)
10199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10200 for as_dir in $PATH
10201 do
10202   IFS=$as_save_IFS
10203   test -z "$as_dir" && as_dir=.
10204     for ac_exec_ext in '' $ac_executable_extensions; do
10205   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10206     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10208     break 2
10209   fi
10210 done
10211   done
10212 IFS=$as_save_IFS
10213 
10214   ;;
10215 esac
10216 fi
10217 TAIL=$ac_cv_path_TAIL
10218 if test -n "$TAIL"; then
10219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10220 $as_echo "$TAIL" >&6; }
10221 else
10222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10223 $as_echo "no" >&6; }
10224 fi
10225 
10226 
10227   test -n "$TAIL" && break
10228 done
10229 
10230   else
10231     # The variable is set, but is it from the command line or the environment?
10232 
10233     # Try to remove the string !TAIL! from our list.
10234     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
10235     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10236       # If it failed, the variable was not from the command line. Ignore it,
10237       # but warn the user (except for BASH, which is always set by the calling BASH).
10238       if test "xTAIL" != xBASH; then
10239         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
10240 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
10241       fi
10242       # Try to locate tool using the code snippet
10243       for ac_prog in tail
10244 do
10245   # Extract the first word of "$ac_prog", so it can be a program name with args.
10246 set dummy $ac_prog; ac_word=$2
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10248 $as_echo_n "checking for $ac_word... " >&6; }
10249 if ${ac_cv_path_TAIL+:} false; then :
10250   $as_echo_n "(cached) " >&6
10251 else
10252   case $TAIL in
10253   [\\/]* | ?:[\\/]*)
10254   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10255   ;;
10256   *)
10257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10258 for as_dir in $PATH
10259 do
10260   IFS=$as_save_IFS
10261   test -z "$as_dir" && as_dir=.
10262     for ac_exec_ext in '' $ac_executable_extensions; do
10263   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10264     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10266     break 2
10267   fi
10268 done
10269   done
10270 IFS=$as_save_IFS
10271 
10272   ;;
10273 esac
10274 fi
10275 TAIL=$ac_cv_path_TAIL
10276 if test -n "$TAIL"; then
10277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10278 $as_echo "$TAIL" >&6; }
10279 else
10280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281 $as_echo "no" >&6; }
10282 fi
10283 
10284 
10285   test -n "$TAIL" && break
10286 done
10287 
10288     else
10289       # If it succeeded, then it was overridden by the user. We will use it
10290       # for the tool.
10291 
10292       # First remove it from the list of overridden variables, so we can test
10293       # for unknown variables in the end.
10294       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10295 
10296       # Check if we try to supply an empty value
10297       if test "x$TAIL" = x; then
10298         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5
10299 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;}
10300         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
10301 $as_echo_n "checking for TAIL... " >&6; }
10302         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10303 $as_echo "disabled" >&6; }
10304       else
10305         # Check if the provided tool contains a complete path.
10306         tool_specified="$TAIL"
10307         tool_basename="${tool_specified##*/}"
10308         if test "x$tool_basename" = "x$tool_specified"; then
10309           # A command without a complete path is provided, search $PATH.
10310           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
10311 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
10312           # Extract the first word of "$tool_basename", so it can be a program name with args.
10313 set dummy $tool_basename; ac_word=$2
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10315 $as_echo_n "checking for $ac_word... " >&6; }
10316 if ${ac_cv_path_TAIL+:} false; then :
10317   $as_echo_n "(cached) " >&6
10318 else
10319   case $TAIL in
10320   [\\/]* | ?:[\\/]*)
10321   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10322   ;;
10323   *)
10324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10325 for as_dir in $PATH
10326 do
10327   IFS=$as_save_IFS
10328   test -z "$as_dir" && as_dir=.
10329     for ac_exec_ext in '' $ac_executable_extensions; do
10330   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10331     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10333     break 2
10334   fi
10335 done
10336   done
10337 IFS=$as_save_IFS
10338 
10339   ;;
10340 esac
10341 fi
10342 TAIL=$ac_cv_path_TAIL
10343 if test -n "$TAIL"; then
10344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10345 $as_echo "$TAIL" >&6; }
10346 else
10347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10348 $as_echo "no" >&6; }
10349 fi
10350 
10351 
10352           if test "x$TAIL" = x; then
10353             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10354           fi
10355         else
10356           # Otherwise we believe it is a complete path. Use it as it is.
10357           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
10358 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
10359           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
10360 $as_echo_n "checking for TAIL... " >&6; }
10361           if test ! -x "$tool_specified"; then
10362             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10363 $as_echo "not found" >&6; }
10364             as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
10365           fi
10366           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10367 $as_echo "$tool_specified" >&6; }
10368         fi
10369       fi
10370     fi
10371 
10372   fi
10373 
10374 
10375 
10376   if test "x$TAIL" = x; then
10377     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
10378   fi
10379 
10380 
10381 
10382 
10383 
10384   # Publish this variable in the help.
10385 
10386 
10387   if [ -z "${TAR+x}" ]; then
10388     # The variable is not set by user, try to locate tool using the code snippet
10389     for ac_prog in tar
10390 do
10391   # Extract the first word of "$ac_prog", so it can be a program name with args.
10392 set dummy $ac_prog; ac_word=$2
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10394 $as_echo_n "checking for $ac_word... " >&6; }
10395 if ${ac_cv_path_TAR+:} false; then :
10396   $as_echo_n "(cached) " >&6
10397 else
10398   case $TAR in
10399   [\\/]* | ?:[\\/]*)
10400   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10401   ;;
10402   *)
10403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10404 for as_dir in $PATH
10405 do
10406   IFS=$as_save_IFS
10407   test -z "$as_dir" && as_dir=.
10408     for ac_exec_ext in '' $ac_executable_extensions; do
10409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10410     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10412     break 2
10413   fi
10414 done
10415   done
10416 IFS=$as_save_IFS
10417 
10418   ;;
10419 esac
10420 fi
10421 TAR=$ac_cv_path_TAR
10422 if test -n "$TAR"; then
10423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10424 $as_echo "$TAR" >&6; }
10425 else
10426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10427 $as_echo "no" >&6; }
10428 fi
10429 
10430 
10431   test -n "$TAR" && break
10432 done
10433 
10434   else
10435     # The variable is set, but is it from the command line or the environment?
10436 
10437     # Try to remove the string !TAR! from our list.
10438     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
10439     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10440       # If it failed, the variable was not from the command line. Ignore it,
10441       # but warn the user (except for BASH, which is always set by the calling BASH).
10442       if test "xTAR" != xBASH; then
10443         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
10444 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
10445       fi
10446       # Try to locate tool using the code snippet
10447       for ac_prog in tar
10448 do
10449   # Extract the first word of "$ac_prog", so it can be a program name with args.
10450 set dummy $ac_prog; ac_word=$2
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10452 $as_echo_n "checking for $ac_word... " >&6; }
10453 if ${ac_cv_path_TAR+:} false; then :
10454   $as_echo_n "(cached) " >&6
10455 else
10456   case $TAR in
10457   [\\/]* | ?:[\\/]*)
10458   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10459   ;;
10460   *)
10461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10462 for as_dir in $PATH
10463 do
10464   IFS=$as_save_IFS
10465   test -z "$as_dir" && as_dir=.
10466     for ac_exec_ext in '' $ac_executable_extensions; do
10467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10468     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10470     break 2
10471   fi
10472 done
10473   done
10474 IFS=$as_save_IFS
10475 
10476   ;;
10477 esac
10478 fi
10479 TAR=$ac_cv_path_TAR
10480 if test -n "$TAR"; then
10481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10482 $as_echo "$TAR" >&6; }
10483 else
10484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10485 $as_echo "no" >&6; }
10486 fi
10487 
10488 
10489   test -n "$TAR" && break
10490 done
10491 
10492     else
10493       # If it succeeded, then it was overridden by the user. We will use it
10494       # for the tool.
10495 
10496       # First remove it from the list of overridden variables, so we can test
10497       # for unknown variables in the end.
10498       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10499 
10500       # Check if we try to supply an empty value
10501       if test "x$TAR" = x; then
10502         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5
10503 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;}
10504         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
10505 $as_echo_n "checking for TAR... " >&6; }
10506         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10507 $as_echo "disabled" >&6; }
10508       else
10509         # Check if the provided tool contains a complete path.
10510         tool_specified="$TAR"
10511         tool_basename="${tool_specified##*/}"
10512         if test "x$tool_basename" = "x$tool_specified"; then
10513           # A command without a complete path is provided, search $PATH.
10514           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
10515 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
10516           # Extract the first word of "$tool_basename", so it can be a program name with args.
10517 set dummy $tool_basename; ac_word=$2
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10519 $as_echo_n "checking for $ac_word... " >&6; }
10520 if ${ac_cv_path_TAR+:} false; then :
10521   $as_echo_n "(cached) " >&6
10522 else
10523   case $TAR in
10524   [\\/]* | ?:[\\/]*)
10525   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10526   ;;
10527   *)
10528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10529 for as_dir in $PATH
10530 do
10531   IFS=$as_save_IFS
10532   test -z "$as_dir" && as_dir=.
10533     for ac_exec_ext in '' $ac_executable_extensions; do
10534   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10535     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10537     break 2
10538   fi
10539 done
10540   done
10541 IFS=$as_save_IFS
10542 
10543   ;;
10544 esac
10545 fi
10546 TAR=$ac_cv_path_TAR
10547 if test -n "$TAR"; then
10548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10549 $as_echo "$TAR" >&6; }
10550 else
10551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10552 $as_echo "no" >&6; }
10553 fi
10554 
10555 
10556           if test "x$TAR" = x; then
10557             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10558           fi
10559         else
10560           # Otherwise we believe it is a complete path. Use it as it is.
10561           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
10562 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
10563           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
10564 $as_echo_n "checking for TAR... " >&6; }
10565           if test ! -x "$tool_specified"; then
10566             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10567 $as_echo "not found" >&6; }
10568             as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
10569           fi
10570           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10571 $as_echo "$tool_specified" >&6; }
10572         fi
10573       fi
10574     fi
10575 
10576   fi
10577 
10578 
10579 
10580   if test "x$TAR" = x; then
10581     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
10582   fi
10583 
10584 
10585 
10586 
10587 
10588   # Publish this variable in the help.
10589 
10590 
10591   if [ -z "${TEE+x}" ]; then
10592     # The variable is not set by user, try to locate tool using the code snippet
10593     for ac_prog in tee
10594 do
10595   # Extract the first word of "$ac_prog", so it can be a program name with args.
10596 set dummy $ac_prog; ac_word=$2
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10598 $as_echo_n "checking for $ac_word... " >&6; }
10599 if ${ac_cv_path_TEE+:} false; then :
10600   $as_echo_n "(cached) " >&6
10601 else
10602   case $TEE in
10603   [\\/]* | ?:[\\/]*)
10604   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10605   ;;
10606   *)
10607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10608 for as_dir in $PATH
10609 do
10610   IFS=$as_save_IFS
10611   test -z "$as_dir" && as_dir=.
10612     for ac_exec_ext in '' $ac_executable_extensions; do
10613   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10614     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10616     break 2
10617   fi
10618 done
10619   done
10620 IFS=$as_save_IFS
10621 
10622   ;;
10623 esac
10624 fi
10625 TEE=$ac_cv_path_TEE
10626 if test -n "$TEE"; then
10627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10628 $as_echo "$TEE" >&6; }
10629 else
10630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10631 $as_echo "no" >&6; }
10632 fi
10633 
10634 
10635   test -n "$TEE" && break
10636 done
10637 
10638   else
10639     # The variable is set, but is it from the command line or the environment?
10640 
10641     # Try to remove the string !TEE! from our list.
10642     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
10643     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10644       # If it failed, the variable was not from the command line. Ignore it,
10645       # but warn the user (except for BASH, which is always set by the calling BASH).
10646       if test "xTEE" != xBASH; then
10647         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
10648 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
10649       fi
10650       # Try to locate tool using the code snippet
10651       for ac_prog in tee
10652 do
10653   # Extract the first word of "$ac_prog", so it can be a program name with args.
10654 set dummy $ac_prog; ac_word=$2
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10656 $as_echo_n "checking for $ac_word... " >&6; }
10657 if ${ac_cv_path_TEE+:} false; then :
10658   $as_echo_n "(cached) " >&6
10659 else
10660   case $TEE in
10661   [\\/]* | ?:[\\/]*)
10662   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10663   ;;
10664   *)
10665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10666 for as_dir in $PATH
10667 do
10668   IFS=$as_save_IFS
10669   test -z "$as_dir" && as_dir=.
10670     for ac_exec_ext in '' $ac_executable_extensions; do
10671   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10672     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10674     break 2
10675   fi
10676 done
10677   done
10678 IFS=$as_save_IFS
10679 
10680   ;;
10681 esac
10682 fi
10683 TEE=$ac_cv_path_TEE
10684 if test -n "$TEE"; then
10685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10686 $as_echo "$TEE" >&6; }
10687 else
10688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10689 $as_echo "no" >&6; }
10690 fi
10691 
10692 
10693   test -n "$TEE" && break
10694 done
10695 
10696     else
10697       # If it succeeded, then it was overridden by the user. We will use it
10698       # for the tool.
10699 
10700       # First remove it from the list of overridden variables, so we can test
10701       # for unknown variables in the end.
10702       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10703 
10704       # Check if we try to supply an empty value
10705       if test "x$TEE" = x; then
10706         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5
10707 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;}
10708         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
10709 $as_echo_n "checking for TEE... " >&6; }
10710         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10711 $as_echo "disabled" >&6; }
10712       else
10713         # Check if the provided tool contains a complete path.
10714         tool_specified="$TEE"
10715         tool_basename="${tool_specified##*/}"
10716         if test "x$tool_basename" = "x$tool_specified"; then
10717           # A command without a complete path is provided, search $PATH.
10718           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
10719 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
10720           # Extract the first word of "$tool_basename", so it can be a program name with args.
10721 set dummy $tool_basename; ac_word=$2
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10723 $as_echo_n "checking for $ac_word... " >&6; }
10724 if ${ac_cv_path_TEE+:} false; then :
10725   $as_echo_n "(cached) " >&6
10726 else
10727   case $TEE in
10728   [\\/]* | ?:[\\/]*)
10729   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10730   ;;
10731   *)
10732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10733 for as_dir in $PATH
10734 do
10735   IFS=$as_save_IFS
10736   test -z "$as_dir" && as_dir=.
10737     for ac_exec_ext in '' $ac_executable_extensions; do
10738   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10739     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10741     break 2
10742   fi
10743 done
10744   done
10745 IFS=$as_save_IFS
10746 
10747   ;;
10748 esac
10749 fi
10750 TEE=$ac_cv_path_TEE
10751 if test -n "$TEE"; then
10752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10753 $as_echo "$TEE" >&6; }
10754 else
10755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10756 $as_echo "no" >&6; }
10757 fi
10758 
10759 
10760           if test "x$TEE" = x; then
10761             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10762           fi
10763         else
10764           # Otherwise we believe it is a complete path. Use it as it is.
10765           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
10766 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
10767           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
10768 $as_echo_n "checking for TEE... " >&6; }
10769           if test ! -x "$tool_specified"; then
10770             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10771 $as_echo "not found" >&6; }
10772             as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
10773           fi
10774           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10775 $as_echo "$tool_specified" >&6; }
10776         fi
10777       fi
10778     fi
10779 
10780   fi
10781 
10782 
10783 
10784   if test "x$TEE" = x; then
10785     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
10786   fi
10787 
10788 
10789 
10790 
10791 
10792   # Publish this variable in the help.
10793 
10794 
10795   if [ -z "${TOUCH+x}" ]; then
10796     # The variable is not set by user, try to locate tool using the code snippet
10797     for ac_prog in touch
10798 do
10799   # Extract the first word of "$ac_prog", so it can be a program name with args.
10800 set dummy $ac_prog; ac_word=$2
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10802 $as_echo_n "checking for $ac_word... " >&6; }
10803 if ${ac_cv_path_TOUCH+:} false; then :
10804   $as_echo_n "(cached) " >&6
10805 else
10806   case $TOUCH in
10807   [\\/]* | ?:[\\/]*)
10808   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10809   ;;
10810   *)
10811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10812 for as_dir in $PATH
10813 do
10814   IFS=$as_save_IFS
10815   test -z "$as_dir" && as_dir=.
10816     for ac_exec_ext in '' $ac_executable_extensions; do
10817   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10818     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10820     break 2
10821   fi
10822 done
10823   done
10824 IFS=$as_save_IFS
10825 
10826   ;;
10827 esac
10828 fi
10829 TOUCH=$ac_cv_path_TOUCH
10830 if test -n "$TOUCH"; then
10831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10832 $as_echo "$TOUCH" >&6; }
10833 else
10834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10835 $as_echo "no" >&6; }
10836 fi
10837 
10838 
10839   test -n "$TOUCH" && break
10840 done
10841 
10842   else
10843     # The variable is set, but is it from the command line or the environment?
10844 
10845     # Try to remove the string !TOUCH! from our list.
10846     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
10847     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10848       # If it failed, the variable was not from the command line. Ignore it,
10849       # but warn the user (except for BASH, which is always set by the calling BASH).
10850       if test "xTOUCH" != xBASH; then
10851         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
10852 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
10853       fi
10854       # Try to locate tool using the code snippet
10855       for ac_prog in touch
10856 do
10857   # Extract the first word of "$ac_prog", so it can be a program name with args.
10858 set dummy $ac_prog; ac_word=$2
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10860 $as_echo_n "checking for $ac_word... " >&6; }
10861 if ${ac_cv_path_TOUCH+:} false; then :
10862   $as_echo_n "(cached) " >&6
10863 else
10864   case $TOUCH in
10865   [\\/]* | ?:[\\/]*)
10866   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10867   ;;
10868   *)
10869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10870 for as_dir in $PATH
10871 do
10872   IFS=$as_save_IFS
10873   test -z "$as_dir" && as_dir=.
10874     for ac_exec_ext in '' $ac_executable_extensions; do
10875   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10876     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10878     break 2
10879   fi
10880 done
10881   done
10882 IFS=$as_save_IFS
10883 
10884   ;;
10885 esac
10886 fi
10887 TOUCH=$ac_cv_path_TOUCH
10888 if test -n "$TOUCH"; then
10889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10890 $as_echo "$TOUCH" >&6; }
10891 else
10892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10893 $as_echo "no" >&6; }
10894 fi
10895 
10896 
10897   test -n "$TOUCH" && break
10898 done
10899 
10900     else
10901       # If it succeeded, then it was overridden by the user. We will use it
10902       # for the tool.
10903 
10904       # First remove it from the list of overridden variables, so we can test
10905       # for unknown variables in the end.
10906       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10907 
10908       # Check if we try to supply an empty value
10909       if test "x$TOUCH" = x; then
10910         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5
10911 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;}
10912         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10913 $as_echo_n "checking for TOUCH... " >&6; }
10914         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10915 $as_echo "disabled" >&6; }
10916       else
10917         # Check if the provided tool contains a complete path.
10918         tool_specified="$TOUCH"
10919         tool_basename="${tool_specified##*/}"
10920         if test "x$tool_basename" = "x$tool_specified"; then
10921           # A command without a complete path is provided, search $PATH.
10922           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
10923 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
10924           # Extract the first word of "$tool_basename", so it can be a program name with args.
10925 set dummy $tool_basename; 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_TOUCH+:} false; then :
10929   $as_echo_n "(cached) " >&6
10930 else
10931   case $TOUCH in
10932   [\\/]* | ?:[\\/]*)
10933   ac_cv_path_TOUCH="$TOUCH" # 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_TOUCH="$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 TOUCH=$ac_cv_path_TOUCH
10955 if test -n "$TOUCH"; then
10956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10957 $as_echo "$TOUCH" >&6; }
10958 else
10959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10960 $as_echo "no" >&6; }
10961 fi
10962 
10963 
10964           if test "x$TOUCH" = x; then
10965             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10966           fi
10967         else
10968           # Otherwise we believe it is a complete path. Use it as it is.
10969           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
10970 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
10971           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10972 $as_echo_n "checking for TOUCH... " >&6; }
10973           if test ! -x "$tool_specified"; then
10974             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10975 $as_echo "not found" >&6; }
10976             as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
10977           fi
10978           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10979 $as_echo "$tool_specified" >&6; }
10980         fi
10981       fi
10982     fi
10983 
10984   fi
10985 
10986 
10987 
10988   if test "x$TOUCH" = x; then
10989     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
10990   fi
10991 
10992 
10993 
10994 
10995 
10996   # Publish this variable in the help.
10997 
10998 
10999   if [ -z "${TR+x}" ]; then
11000     # The variable is not set by user, try to locate tool using the code snippet
11001     for ac_prog in tr
11002 do
11003   # Extract the first word of "$ac_prog", so it can be a program name with args.
11004 set dummy $ac_prog; ac_word=$2
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11006 $as_echo_n "checking for $ac_word... " >&6; }
11007 if ${ac_cv_path_TR+:} false; then :
11008   $as_echo_n "(cached) " >&6
11009 else
11010   case $TR in
11011   [\\/]* | ?:[\\/]*)
11012   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11013   ;;
11014   *)
11015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11016 for as_dir in $PATH
11017 do
11018   IFS=$as_save_IFS
11019   test -z "$as_dir" && as_dir=.
11020     for ac_exec_ext in '' $ac_executable_extensions; do
11021   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11022     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11024     break 2
11025   fi
11026 done
11027   done
11028 IFS=$as_save_IFS
11029 
11030   ;;
11031 esac
11032 fi
11033 TR=$ac_cv_path_TR
11034 if test -n "$TR"; then
11035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11036 $as_echo "$TR" >&6; }
11037 else
11038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11039 $as_echo "no" >&6; }
11040 fi
11041 
11042 
11043   test -n "$TR" && break
11044 done
11045 
11046   else
11047     # The variable is set, but is it from the command line or the environment?
11048 
11049     # Try to remove the string !TR! from our list.
11050     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
11051     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11052       # If it failed, the variable was not from the command line. Ignore it,
11053       # but warn the user (except for BASH, which is always set by the calling BASH).
11054       if test "xTR" != xBASH; then
11055         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
11056 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
11057       fi
11058       # Try to locate tool using the code snippet
11059       for ac_prog in tr
11060 do
11061   # Extract the first word of "$ac_prog", so it can be a program name with args.
11062 set dummy $ac_prog; ac_word=$2
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11064 $as_echo_n "checking for $ac_word... " >&6; }
11065 if ${ac_cv_path_TR+:} false; then :
11066   $as_echo_n "(cached) " >&6
11067 else
11068   case $TR in
11069   [\\/]* | ?:[\\/]*)
11070   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11071   ;;
11072   *)
11073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11074 for as_dir in $PATH
11075 do
11076   IFS=$as_save_IFS
11077   test -z "$as_dir" && as_dir=.
11078     for ac_exec_ext in '' $ac_executable_extensions; do
11079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11080     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11082     break 2
11083   fi
11084 done
11085   done
11086 IFS=$as_save_IFS
11087 
11088   ;;
11089 esac
11090 fi
11091 TR=$ac_cv_path_TR
11092 if test -n "$TR"; then
11093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11094 $as_echo "$TR" >&6; }
11095 else
11096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11097 $as_echo "no" >&6; }
11098 fi
11099 
11100 
11101   test -n "$TR" && break
11102 done
11103 
11104     else
11105       # If it succeeded, then it was overridden by the user. We will use it
11106       # for the tool.
11107 
11108       # First remove it from the list of overridden variables, so we can test
11109       # for unknown variables in the end.
11110       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11111 
11112       # Check if we try to supply an empty value
11113       if test "x$TR" = x; then
11114         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5
11115 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;}
11116         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
11117 $as_echo_n "checking for TR... " >&6; }
11118         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11119 $as_echo "disabled" >&6; }
11120       else
11121         # Check if the provided tool contains a complete path.
11122         tool_specified="$TR"
11123         tool_basename="${tool_specified##*/}"
11124         if test "x$tool_basename" = "x$tool_specified"; then
11125           # A command without a complete path is provided, search $PATH.
11126           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
11127 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
11128           # Extract the first word of "$tool_basename", so it can be a program name with args.
11129 set dummy $tool_basename; ac_word=$2
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11131 $as_echo_n "checking for $ac_word... " >&6; }
11132 if ${ac_cv_path_TR+:} false; then :
11133   $as_echo_n "(cached) " >&6
11134 else
11135   case $TR in
11136   [\\/]* | ?:[\\/]*)
11137   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11138   ;;
11139   *)
11140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11141 for as_dir in $PATH
11142 do
11143   IFS=$as_save_IFS
11144   test -z "$as_dir" && as_dir=.
11145     for ac_exec_ext in '' $ac_executable_extensions; do
11146   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11147     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11149     break 2
11150   fi
11151 done
11152   done
11153 IFS=$as_save_IFS
11154 
11155   ;;
11156 esac
11157 fi
11158 TR=$ac_cv_path_TR
11159 if test -n "$TR"; then
11160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11161 $as_echo "$TR" >&6; }
11162 else
11163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11164 $as_echo "no" >&6; }
11165 fi
11166 
11167 
11168           if test "x$TR" = x; then
11169             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11170           fi
11171         else
11172           # Otherwise we believe it is a complete path. Use it as it is.
11173           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
11174 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
11175           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
11176 $as_echo_n "checking for TR... " >&6; }
11177           if test ! -x "$tool_specified"; then
11178             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11179 $as_echo "not found" >&6; }
11180             as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
11181           fi
11182           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11183 $as_echo "$tool_specified" >&6; }
11184         fi
11185       fi
11186     fi
11187 
11188   fi
11189 
11190 
11191 
11192   if test "x$TR" = x; then
11193     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
11194   fi
11195 
11196 
11197 
11198 
11199 
11200   # Publish this variable in the help.
11201 
11202 
11203   if [ -z "${UNAME+x}" ]; then
11204     # The variable is not set by user, try to locate tool using the code snippet
11205     for ac_prog in uname
11206 do
11207   # Extract the first word of "$ac_prog", so it can be a program name with args.
11208 set dummy $ac_prog; ac_word=$2
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11210 $as_echo_n "checking for $ac_word... " >&6; }
11211 if ${ac_cv_path_UNAME+:} false; then :
11212   $as_echo_n "(cached) " >&6
11213 else
11214   case $UNAME in
11215   [\\/]* | ?:[\\/]*)
11216   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11217   ;;
11218   *)
11219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11220 for as_dir in $PATH
11221 do
11222   IFS=$as_save_IFS
11223   test -z "$as_dir" && as_dir=.
11224     for ac_exec_ext in '' $ac_executable_extensions; do
11225   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11226     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11228     break 2
11229   fi
11230 done
11231   done
11232 IFS=$as_save_IFS
11233 
11234   ;;
11235 esac
11236 fi
11237 UNAME=$ac_cv_path_UNAME
11238 if test -n "$UNAME"; then
11239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11240 $as_echo "$UNAME" >&6; }
11241 else
11242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243 $as_echo "no" >&6; }
11244 fi
11245 
11246 
11247   test -n "$UNAME" && break
11248 done
11249 
11250   else
11251     # The variable is set, but is it from the command line or the environment?
11252 
11253     # Try to remove the string !UNAME! from our list.
11254     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
11255     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11256       # If it failed, the variable was not from the command line. Ignore it,
11257       # but warn the user (except for BASH, which is always set by the calling BASH).
11258       if test "xUNAME" != xBASH; then
11259         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
11260 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
11261       fi
11262       # Try to locate tool using the code snippet
11263       for ac_prog in uname
11264 do
11265   # Extract the first word of "$ac_prog", so it can be a program name with args.
11266 set dummy $ac_prog; ac_word=$2
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11268 $as_echo_n "checking for $ac_word... " >&6; }
11269 if ${ac_cv_path_UNAME+:} false; then :
11270   $as_echo_n "(cached) " >&6
11271 else
11272   case $UNAME in
11273   [\\/]* | ?:[\\/]*)
11274   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11275   ;;
11276   *)
11277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11278 for as_dir in $PATH
11279 do
11280   IFS=$as_save_IFS
11281   test -z "$as_dir" && as_dir=.
11282     for ac_exec_ext in '' $ac_executable_extensions; do
11283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11284     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11286     break 2
11287   fi
11288 done
11289   done
11290 IFS=$as_save_IFS
11291 
11292   ;;
11293 esac
11294 fi
11295 UNAME=$ac_cv_path_UNAME
11296 if test -n "$UNAME"; then
11297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11298 $as_echo "$UNAME" >&6; }
11299 else
11300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11301 $as_echo "no" >&6; }
11302 fi
11303 
11304 
11305   test -n "$UNAME" && break
11306 done
11307 
11308     else
11309       # If it succeeded, then it was overridden by the user. We will use it
11310       # for the tool.
11311 
11312       # First remove it from the list of overridden variables, so we can test
11313       # for unknown variables in the end.
11314       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11315 
11316       # Check if we try to supply an empty value
11317       if test "x$UNAME" = x; then
11318         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5
11319 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;}
11320         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
11321 $as_echo_n "checking for UNAME... " >&6; }
11322         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11323 $as_echo "disabled" >&6; }
11324       else
11325         # Check if the provided tool contains a complete path.
11326         tool_specified="$UNAME"
11327         tool_basename="${tool_specified##*/}"
11328         if test "x$tool_basename" = "x$tool_specified"; then
11329           # A command without a complete path is provided, search $PATH.
11330           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
11331 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
11332           # Extract the first word of "$tool_basename", so it can be a program name with args.
11333 set dummy $tool_basename; ac_word=$2
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11335 $as_echo_n "checking for $ac_word... " >&6; }
11336 if ${ac_cv_path_UNAME+:} false; then :
11337   $as_echo_n "(cached) " >&6
11338 else
11339   case $UNAME in
11340   [\\/]* | ?:[\\/]*)
11341   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11342   ;;
11343   *)
11344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11345 for as_dir in $PATH
11346 do
11347   IFS=$as_save_IFS
11348   test -z "$as_dir" && as_dir=.
11349     for ac_exec_ext in '' $ac_executable_extensions; do
11350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11351     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11353     break 2
11354   fi
11355 done
11356   done
11357 IFS=$as_save_IFS
11358 
11359   ;;
11360 esac
11361 fi
11362 UNAME=$ac_cv_path_UNAME
11363 if test -n "$UNAME"; then
11364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11365 $as_echo "$UNAME" >&6; }
11366 else
11367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11368 $as_echo "no" >&6; }
11369 fi
11370 
11371 
11372           if test "x$UNAME" = x; then
11373             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11374           fi
11375         else
11376           # Otherwise we believe it is a complete path. Use it as it is.
11377           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
11378 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
11379           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
11380 $as_echo_n "checking for UNAME... " >&6; }
11381           if test ! -x "$tool_specified"; then
11382             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11383 $as_echo "not found" >&6; }
11384             as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
11385           fi
11386           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11387 $as_echo "$tool_specified" >&6; }
11388         fi
11389       fi
11390     fi
11391 
11392   fi
11393 
11394 
11395 
11396   if test "x$UNAME" = x; then
11397     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
11398   fi
11399 
11400 
11401 
11402 
11403 
11404   # Publish this variable in the help.
11405 
11406 
11407   if [ -z "${UNIQ+x}" ]; then
11408     # The variable is not set by user, try to locate tool using the code snippet
11409     for ac_prog in uniq
11410 do
11411   # Extract the first word of "$ac_prog", so it can be a program name with args.
11412 set dummy $ac_prog; ac_word=$2
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11414 $as_echo_n "checking for $ac_word... " >&6; }
11415 if ${ac_cv_path_UNIQ+:} false; then :
11416   $as_echo_n "(cached) " >&6
11417 else
11418   case $UNIQ in
11419   [\\/]* | ?:[\\/]*)
11420   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11421   ;;
11422   *)
11423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11424 for as_dir in $PATH
11425 do
11426   IFS=$as_save_IFS
11427   test -z "$as_dir" && as_dir=.
11428     for ac_exec_ext in '' $ac_executable_extensions; do
11429   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11430     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11432     break 2
11433   fi
11434 done
11435   done
11436 IFS=$as_save_IFS
11437 
11438   ;;
11439 esac
11440 fi
11441 UNIQ=$ac_cv_path_UNIQ
11442 if test -n "$UNIQ"; then
11443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11444 $as_echo "$UNIQ" >&6; }
11445 else
11446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11447 $as_echo "no" >&6; }
11448 fi
11449 
11450 
11451   test -n "$UNIQ" && break
11452 done
11453 
11454   else
11455     # The variable is set, but is it from the command line or the environment?
11456 
11457     # Try to remove the string !UNIQ! from our list.
11458     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
11459     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11460       # If it failed, the variable was not from the command line. Ignore it,
11461       # but warn the user (except for BASH, which is always set by the calling BASH).
11462       if test "xUNIQ" != xBASH; then
11463         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
11464 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
11465       fi
11466       # Try to locate tool using the code snippet
11467       for ac_prog in uniq
11468 do
11469   # Extract the first word of "$ac_prog", so it can be a program name with args.
11470 set dummy $ac_prog; ac_word=$2
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11472 $as_echo_n "checking for $ac_word... " >&6; }
11473 if ${ac_cv_path_UNIQ+:} false; then :
11474   $as_echo_n "(cached) " >&6
11475 else
11476   case $UNIQ in
11477   [\\/]* | ?:[\\/]*)
11478   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11479   ;;
11480   *)
11481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11482 for as_dir in $PATH
11483 do
11484   IFS=$as_save_IFS
11485   test -z "$as_dir" && as_dir=.
11486     for ac_exec_ext in '' $ac_executable_extensions; do
11487   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11488     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11490     break 2
11491   fi
11492 done
11493   done
11494 IFS=$as_save_IFS
11495 
11496   ;;
11497 esac
11498 fi
11499 UNIQ=$ac_cv_path_UNIQ
11500 if test -n "$UNIQ"; then
11501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11502 $as_echo "$UNIQ" >&6; }
11503 else
11504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11505 $as_echo "no" >&6; }
11506 fi
11507 
11508 
11509   test -n "$UNIQ" && break
11510 done
11511 
11512     else
11513       # If it succeeded, then it was overridden by the user. We will use it
11514       # for the tool.
11515 
11516       # First remove it from the list of overridden variables, so we can test
11517       # for unknown variables in the end.
11518       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11519 
11520       # Check if we try to supply an empty value
11521       if test "x$UNIQ" = x; then
11522         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5
11523 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;}
11524         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
11525 $as_echo_n "checking for UNIQ... " >&6; }
11526         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11527 $as_echo "disabled" >&6; }
11528       else
11529         # Check if the provided tool contains a complete path.
11530         tool_specified="$UNIQ"
11531         tool_basename="${tool_specified##*/}"
11532         if test "x$tool_basename" = "x$tool_specified"; then
11533           # A command without a complete path is provided, search $PATH.
11534           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
11535 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
11536           # Extract the first word of "$tool_basename", so it can be a program name with args.
11537 set dummy $tool_basename; ac_word=$2
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11539 $as_echo_n "checking for $ac_word... " >&6; }
11540 if ${ac_cv_path_UNIQ+:} false; then :
11541   $as_echo_n "(cached) " >&6
11542 else
11543   case $UNIQ in
11544   [\\/]* | ?:[\\/]*)
11545   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11546   ;;
11547   *)
11548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11549 for as_dir in $PATH
11550 do
11551   IFS=$as_save_IFS
11552   test -z "$as_dir" && as_dir=.
11553     for ac_exec_ext in '' $ac_executable_extensions; do
11554   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11555     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11557     break 2
11558   fi
11559 done
11560   done
11561 IFS=$as_save_IFS
11562 
11563   ;;
11564 esac
11565 fi
11566 UNIQ=$ac_cv_path_UNIQ
11567 if test -n "$UNIQ"; then
11568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11569 $as_echo "$UNIQ" >&6; }
11570 else
11571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11572 $as_echo "no" >&6; }
11573 fi
11574 
11575 
11576           if test "x$UNIQ" = x; then
11577             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11578           fi
11579         else
11580           # Otherwise we believe it is a complete path. Use it as it is.
11581           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
11582 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
11583           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
11584 $as_echo_n "checking for UNIQ... " >&6; }
11585           if test ! -x "$tool_specified"; then
11586             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11587 $as_echo "not found" >&6; }
11588             as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
11589           fi
11590           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11591 $as_echo "$tool_specified" >&6; }
11592         fi
11593       fi
11594     fi
11595 
11596   fi
11597 
11598 
11599 
11600   if test "x$UNIQ" = x; then
11601     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
11602   fi
11603 
11604 
11605 
11606 
11607 
11608   # Publish this variable in the help.
11609 
11610 
11611   if [ -z "${WC+x}" ]; then
11612     # The variable is not set by user, try to locate tool using the code snippet
11613     for ac_prog in wc
11614 do
11615   # Extract the first word of "$ac_prog", so it can be a program name with args.
11616 set dummy $ac_prog; ac_word=$2
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11618 $as_echo_n "checking for $ac_word... " >&6; }
11619 if ${ac_cv_path_WC+:} false; then :
11620   $as_echo_n "(cached) " >&6
11621 else
11622   case $WC in
11623   [\\/]* | ?:[\\/]*)
11624   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11625   ;;
11626   *)
11627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11628 for as_dir in $PATH
11629 do
11630   IFS=$as_save_IFS
11631   test -z "$as_dir" && as_dir=.
11632     for ac_exec_ext in '' $ac_executable_extensions; do
11633   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11634     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11636     break 2
11637   fi
11638 done
11639   done
11640 IFS=$as_save_IFS
11641 
11642   ;;
11643 esac
11644 fi
11645 WC=$ac_cv_path_WC
11646 if test -n "$WC"; then
11647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11648 $as_echo "$WC" >&6; }
11649 else
11650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11651 $as_echo "no" >&6; }
11652 fi
11653 
11654 
11655   test -n "$WC" && break
11656 done
11657 
11658   else
11659     # The variable is set, but is it from the command line or the environment?
11660 
11661     # Try to remove the string !WC! from our list.
11662     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
11663     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11664       # If it failed, the variable was not from the command line. Ignore it,
11665       # but warn the user (except for BASH, which is always set by the calling BASH).
11666       if test "xWC" != xBASH; then
11667         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
11668 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
11669       fi
11670       # Try to locate tool using the code snippet
11671       for ac_prog in wc
11672 do
11673   # Extract the first word of "$ac_prog", so it can be a program name with args.
11674 set dummy $ac_prog; ac_word=$2
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11676 $as_echo_n "checking for $ac_word... " >&6; }
11677 if ${ac_cv_path_WC+:} false; then :
11678   $as_echo_n "(cached) " >&6
11679 else
11680   case $WC in
11681   [\\/]* | ?:[\\/]*)
11682   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11683   ;;
11684   *)
11685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686 for as_dir in $PATH
11687 do
11688   IFS=$as_save_IFS
11689   test -z "$as_dir" && as_dir=.
11690     for ac_exec_ext in '' $ac_executable_extensions; do
11691   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11692     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11694     break 2
11695   fi
11696 done
11697   done
11698 IFS=$as_save_IFS
11699 
11700   ;;
11701 esac
11702 fi
11703 WC=$ac_cv_path_WC
11704 if test -n "$WC"; then
11705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11706 $as_echo "$WC" >&6; }
11707 else
11708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11709 $as_echo "no" >&6; }
11710 fi
11711 
11712 
11713   test -n "$WC" && break
11714 done
11715 
11716     else
11717       # If it succeeded, then it was overridden by the user. We will use it
11718       # for the tool.
11719 
11720       # First remove it from the list of overridden variables, so we can test
11721       # for unknown variables in the end.
11722       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11723 
11724       # Check if we try to supply an empty value
11725       if test "x$WC" = x; then
11726         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5
11727 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;}
11728         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
11729 $as_echo_n "checking for WC... " >&6; }
11730         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11731 $as_echo "disabled" >&6; }
11732       else
11733         # Check if the provided tool contains a complete path.
11734         tool_specified="$WC"
11735         tool_basename="${tool_specified##*/}"
11736         if test "x$tool_basename" = "x$tool_specified"; then
11737           # A command without a complete path is provided, search $PATH.
11738           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
11739 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
11740           # Extract the first word of "$tool_basename", so it can be a program name with args.
11741 set dummy $tool_basename; ac_word=$2
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11743 $as_echo_n "checking for $ac_word... " >&6; }
11744 if ${ac_cv_path_WC+:} false; then :
11745   $as_echo_n "(cached) " >&6
11746 else
11747   case $WC in
11748   [\\/]* | ?:[\\/]*)
11749   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11750   ;;
11751   *)
11752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11753 for as_dir in $PATH
11754 do
11755   IFS=$as_save_IFS
11756   test -z "$as_dir" && as_dir=.
11757     for ac_exec_ext in '' $ac_executable_extensions; do
11758   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11759     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11761     break 2
11762   fi
11763 done
11764   done
11765 IFS=$as_save_IFS
11766 
11767   ;;
11768 esac
11769 fi
11770 WC=$ac_cv_path_WC
11771 if test -n "$WC"; then
11772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11773 $as_echo "$WC" >&6; }
11774 else
11775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11776 $as_echo "no" >&6; }
11777 fi
11778 
11779 
11780           if test "x$WC" = x; then
11781             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11782           fi
11783         else
11784           # Otherwise we believe it is a complete path. Use it as it is.
11785           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
11786 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
11787           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
11788 $as_echo_n "checking for WC... " >&6; }
11789           if test ! -x "$tool_specified"; then
11790             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11791 $as_echo "not found" >&6; }
11792             as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
11793           fi
11794           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11795 $as_echo "$tool_specified" >&6; }
11796         fi
11797       fi
11798     fi
11799 
11800   fi
11801 
11802 
11803 
11804   if test "x$WC" = x; then
11805     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
11806   fi
11807 
11808 
11809 
11810 
11811 
11812   # Publish this variable in the help.
11813 
11814 
11815   if [ -z "${WHICH+x}" ]; then
11816     # The variable is not set by user, try to locate tool using the code snippet
11817     for ac_prog in which
11818 do
11819   # Extract the first word of "$ac_prog", so it can be a program name with args.
11820 set dummy $ac_prog; ac_word=$2
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11822 $as_echo_n "checking for $ac_word... " >&6; }
11823 if ${ac_cv_path_WHICH+:} false; then :
11824   $as_echo_n "(cached) " >&6
11825 else
11826   case $WHICH in
11827   [\\/]* | ?:[\\/]*)
11828   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11829   ;;
11830   *)
11831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11832 for as_dir in $PATH
11833 do
11834   IFS=$as_save_IFS
11835   test -z "$as_dir" && as_dir=.
11836     for ac_exec_ext in '' $ac_executable_extensions; do
11837   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11838     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11840     break 2
11841   fi
11842 done
11843   done
11844 IFS=$as_save_IFS
11845 
11846   ;;
11847 esac
11848 fi
11849 WHICH=$ac_cv_path_WHICH
11850 if test -n "$WHICH"; then
11851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11852 $as_echo "$WHICH" >&6; }
11853 else
11854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11855 $as_echo "no" >&6; }
11856 fi
11857 
11858 
11859   test -n "$WHICH" && break
11860 done
11861 
11862   else
11863     # The variable is set, but is it from the command line or the environment?
11864 
11865     # Try to remove the string !WHICH! from our list.
11866     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
11867     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11868       # If it failed, the variable was not from the command line. Ignore it,
11869       # but warn the user (except for BASH, which is always set by the calling BASH).
11870       if test "xWHICH" != xBASH; then
11871         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
11872 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
11873       fi
11874       # Try to locate tool using the code snippet
11875       for ac_prog in which
11876 do
11877   # Extract the first word of "$ac_prog", so it can be a program name with args.
11878 set dummy $ac_prog; ac_word=$2
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11880 $as_echo_n "checking for $ac_word... " >&6; }
11881 if ${ac_cv_path_WHICH+:} false; then :
11882   $as_echo_n "(cached) " >&6
11883 else
11884   case $WHICH in
11885   [\\/]* | ?:[\\/]*)
11886   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11887   ;;
11888   *)
11889   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11890 for as_dir in $PATH
11891 do
11892   IFS=$as_save_IFS
11893   test -z "$as_dir" && as_dir=.
11894     for ac_exec_ext in '' $ac_executable_extensions; do
11895   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11896     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11898     break 2
11899   fi
11900 done
11901   done
11902 IFS=$as_save_IFS
11903 
11904   ;;
11905 esac
11906 fi
11907 WHICH=$ac_cv_path_WHICH
11908 if test -n "$WHICH"; then
11909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11910 $as_echo "$WHICH" >&6; }
11911 else
11912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11913 $as_echo "no" >&6; }
11914 fi
11915 
11916 
11917   test -n "$WHICH" && break
11918 done
11919 
11920     else
11921       # If it succeeded, then it was overridden by the user. We will use it
11922       # for the tool.
11923 
11924       # First remove it from the list of overridden variables, so we can test
11925       # for unknown variables in the end.
11926       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11927 
11928       # Check if we try to supply an empty value
11929       if test "x$WHICH" = x; then
11930         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5
11931 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;}
11932         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11933 $as_echo_n "checking for WHICH... " >&6; }
11934         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11935 $as_echo "disabled" >&6; }
11936       else
11937         # Check if the provided tool contains a complete path.
11938         tool_specified="$WHICH"
11939         tool_basename="${tool_specified##*/}"
11940         if test "x$tool_basename" = "x$tool_specified"; then
11941           # A command without a complete path is provided, search $PATH.
11942           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
11943 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
11944           # Extract the first word of "$tool_basename", so it can be a program name with args.
11945 set dummy $tool_basename; ac_word=$2
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11947 $as_echo_n "checking for $ac_word... " >&6; }
11948 if ${ac_cv_path_WHICH+:} false; then :
11949   $as_echo_n "(cached) " >&6
11950 else
11951   case $WHICH in
11952   [\\/]* | ?:[\\/]*)
11953   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11954   ;;
11955   *)
11956   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11957 for as_dir in $PATH
11958 do
11959   IFS=$as_save_IFS
11960   test -z "$as_dir" && as_dir=.
11961     for ac_exec_ext in '' $ac_executable_extensions; do
11962   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11963     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11965     break 2
11966   fi
11967 done
11968   done
11969 IFS=$as_save_IFS
11970 
11971   ;;
11972 esac
11973 fi
11974 WHICH=$ac_cv_path_WHICH
11975 if test -n "$WHICH"; then
11976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11977 $as_echo "$WHICH" >&6; }
11978 else
11979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11980 $as_echo "no" >&6; }
11981 fi
11982 
11983 
11984           if test "x$WHICH" = x; then
11985             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11986           fi
11987         else
11988           # Otherwise we believe it is a complete path. Use it as it is.
11989           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
11990 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
11991           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11992 $as_echo_n "checking for WHICH... " >&6; }
11993           if test ! -x "$tool_specified"; then
11994             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11995 $as_echo "not found" >&6; }
11996             as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
11997           fi
11998           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11999 $as_echo "$tool_specified" >&6; }
12000         fi
12001       fi
12002     fi
12003 
12004   fi
12005 
12006 
12007 
12008   if test "x$WHICH" = x; then
12009     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
12010   fi
12011 
12012 
12013 
12014 
12015 
12016   # Publish this variable in the help.
12017 
12018 
12019   if [ -z "${XARGS+x}" ]; then
12020     # The variable is not set by user, try to locate tool using the code snippet
12021     for ac_prog in xargs
12022 do
12023   # Extract the first word of "$ac_prog", so it can be a program name with args.
12024 set dummy $ac_prog; ac_word=$2
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12026 $as_echo_n "checking for $ac_word... " >&6; }
12027 if ${ac_cv_path_XARGS+:} false; then :
12028   $as_echo_n "(cached) " >&6
12029 else
12030   case $XARGS in
12031   [\\/]* | ?:[\\/]*)
12032   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12033   ;;
12034   *)
12035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12036 for as_dir in $PATH
12037 do
12038   IFS=$as_save_IFS
12039   test -z "$as_dir" && as_dir=.
12040     for ac_exec_ext in '' $ac_executable_extensions; do
12041   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12042     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12044     break 2
12045   fi
12046 done
12047   done
12048 IFS=$as_save_IFS
12049 
12050   ;;
12051 esac
12052 fi
12053 XARGS=$ac_cv_path_XARGS
12054 if test -n "$XARGS"; then
12055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12056 $as_echo "$XARGS" >&6; }
12057 else
12058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12059 $as_echo "no" >&6; }
12060 fi
12061 
12062 
12063   test -n "$XARGS" && break
12064 done
12065 
12066   else
12067     # The variable is set, but is it from the command line or the environment?
12068 
12069     # Try to remove the string !XARGS! from our list.
12070     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
12071     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12072       # If it failed, the variable was not from the command line. Ignore it,
12073       # but warn the user (except for BASH, which is always set by the calling BASH).
12074       if test "xXARGS" != xBASH; then
12075         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
12076 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
12077       fi
12078       # Try to locate tool using the code snippet
12079       for ac_prog in xargs
12080 do
12081   # Extract the first word of "$ac_prog", so it can be a program name with args.
12082 set dummy $ac_prog; ac_word=$2
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12084 $as_echo_n "checking for $ac_word... " >&6; }
12085 if ${ac_cv_path_XARGS+:} false; then :
12086   $as_echo_n "(cached) " >&6
12087 else
12088   case $XARGS in
12089   [\\/]* | ?:[\\/]*)
12090   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12091   ;;
12092   *)
12093   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12094 for as_dir in $PATH
12095 do
12096   IFS=$as_save_IFS
12097   test -z "$as_dir" && as_dir=.
12098     for ac_exec_ext in '' $ac_executable_extensions; do
12099   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12100     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12102     break 2
12103   fi
12104 done
12105   done
12106 IFS=$as_save_IFS
12107 
12108   ;;
12109 esac
12110 fi
12111 XARGS=$ac_cv_path_XARGS
12112 if test -n "$XARGS"; then
12113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12114 $as_echo "$XARGS" >&6; }
12115 else
12116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117 $as_echo "no" >&6; }
12118 fi
12119 
12120 
12121   test -n "$XARGS" && break
12122 done
12123 
12124     else
12125       # If it succeeded, then it was overridden by the user. We will use it
12126       # for the tool.
12127 
12128       # First remove it from the list of overridden variables, so we can test
12129       # for unknown variables in the end.
12130       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12131 
12132       # Check if we try to supply an empty value
12133       if test "x$XARGS" = x; then
12134         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5
12135 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;}
12136         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
12137 $as_echo_n "checking for XARGS... " >&6; }
12138         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12139 $as_echo "disabled" >&6; }
12140       else
12141         # Check if the provided tool contains a complete path.
12142         tool_specified="$XARGS"
12143         tool_basename="${tool_specified##*/}"
12144         if test "x$tool_basename" = "x$tool_specified"; then
12145           # A command without a complete path is provided, search $PATH.
12146           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
12147 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
12148           # Extract the first word of "$tool_basename", so it can be a program name with args.
12149 set dummy $tool_basename; ac_word=$2
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12151 $as_echo_n "checking for $ac_word... " >&6; }
12152 if ${ac_cv_path_XARGS+:} false; then :
12153   $as_echo_n "(cached) " >&6
12154 else
12155   case $XARGS in
12156   [\\/]* | ?:[\\/]*)
12157   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12158   ;;
12159   *)
12160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12161 for as_dir in $PATH
12162 do
12163   IFS=$as_save_IFS
12164   test -z "$as_dir" && as_dir=.
12165     for ac_exec_ext in '' $ac_executable_extensions; do
12166   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12167     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12169     break 2
12170   fi
12171 done
12172   done
12173 IFS=$as_save_IFS
12174 
12175   ;;
12176 esac
12177 fi
12178 XARGS=$ac_cv_path_XARGS
12179 if test -n "$XARGS"; then
12180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12181 $as_echo "$XARGS" >&6; }
12182 else
12183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12184 $as_echo "no" >&6; }
12185 fi
12186 
12187 
12188           if test "x$XARGS" = x; then
12189             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12190           fi
12191         else
12192           # Otherwise we believe it is a complete path. Use it as it is.
12193           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
12194 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
12195           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
12196 $as_echo_n "checking for XARGS... " >&6; }
12197           if test ! -x "$tool_specified"; then
12198             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12199 $as_echo "not found" >&6; }
12200             as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
12201           fi
12202           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12203 $as_echo "$tool_specified" >&6; }
12204         fi
12205       fi
12206     fi
12207 
12208   fi
12209 
12210 
12211 
12212   if test "x$XARGS" = x; then
12213     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
12214   fi
12215 
12216 
12217 
12218   # Then required tools that require some special treatment.
12219 
12220 
12221   # Publish this variable in the help.
12222 
12223 
12224   if [ -z "${AWK+x}" ]; then
12225     # The variable is not set by user, try to locate tool using the code snippet
12226     for ac_prog in gawk mawk nawk awk
12227 do
12228   # Extract the first word of "$ac_prog", so it can be a program name with args.
12229 set dummy $ac_prog; ac_word=$2
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12231 $as_echo_n "checking for $ac_word... " >&6; }
12232 if ${ac_cv_prog_AWK+:} false; then :
12233   $as_echo_n "(cached) " >&6
12234 else
12235   if test -n "$AWK"; then
12236   ac_cv_prog_AWK="$AWK" # Let the user override the test.
12237 else
12238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12239 for as_dir in $PATH
12240 do
12241   IFS=$as_save_IFS
12242   test -z "$as_dir" && as_dir=.
12243     for ac_exec_ext in '' $ac_executable_extensions; do
12244   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12245     ac_cv_prog_AWK="$ac_prog"
12246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12247     break 2
12248   fi
12249 done
12250   done
12251 IFS=$as_save_IFS
12252 
12253 fi
12254 fi
12255 AWK=$ac_cv_prog_AWK
12256 if test -n "$AWK"; then
12257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12258 $as_echo "$AWK" >&6; }
12259 else
12260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12261 $as_echo "no" >&6; }
12262 fi
12263 
12264 
12265   test -n "$AWK" && break
12266 done
12267 
12268   else
12269     # The variable is set, but is it from the command line or the environment?
12270 
12271     # Try to remove the string !AWK! from our list.
12272     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
12273     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12274       # If it failed, the variable was not from the command line. Ignore it,
12275       # but warn the user (except for BASH, which is always set by the calling BASH).
12276       if test "xAWK" != xBASH; then
12277         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
12278 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
12279       fi
12280       # Try to locate tool using the code snippet
12281       for ac_prog in gawk mawk nawk awk
12282 do
12283   # Extract the first word of "$ac_prog", so it can be a program name with args.
12284 set dummy $ac_prog; ac_word=$2
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12286 $as_echo_n "checking for $ac_word... " >&6; }
12287 if ${ac_cv_prog_AWK+:} false; then :
12288   $as_echo_n "(cached) " >&6
12289 else
12290   if test -n "$AWK"; then
12291   ac_cv_prog_AWK="$AWK" # Let the user override the test.
12292 else
12293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12294 for as_dir in $PATH
12295 do
12296   IFS=$as_save_IFS
12297   test -z "$as_dir" && as_dir=.
12298     for ac_exec_ext in '' $ac_executable_extensions; do
12299   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12300     ac_cv_prog_AWK="$ac_prog"
12301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12302     break 2
12303   fi
12304 done
12305   done
12306 IFS=$as_save_IFS
12307 
12308 fi
12309 fi
12310 AWK=$ac_cv_prog_AWK
12311 if test -n "$AWK"; then
12312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12313 $as_echo "$AWK" >&6; }
12314 else
12315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12316 $as_echo "no" >&6; }
12317 fi
12318 
12319 
12320   test -n "$AWK" && break
12321 done
12322 
12323     else
12324       # If it succeeded, then it was overridden by the user. We will use it
12325       # for the tool.
12326 
12327       # First remove it from the list of overridden variables, so we can test
12328       # for unknown variables in the end.
12329       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12330 
12331       # Check if we try to supply an empty value
12332       if test "x$AWK" = x; then
12333         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5
12334 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;}
12335         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
12336 $as_echo_n "checking for AWK... " >&6; }
12337         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12338 $as_echo "disabled" >&6; }
12339       else
12340         # Check if the provided tool contains a complete path.
12341         tool_specified="$AWK"
12342         tool_basename="${tool_specified##*/}"
12343         if test "x$tool_basename" = "x$tool_specified"; then
12344           # A command without a complete path is provided, search $PATH.
12345           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
12346 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
12347           # Extract the first word of "$tool_basename", so it can be a program name with args.
12348 set dummy $tool_basename; ac_word=$2
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12350 $as_echo_n "checking for $ac_word... " >&6; }
12351 if ${ac_cv_path_AWK+:} false; then :
12352   $as_echo_n "(cached) " >&6
12353 else
12354   case $AWK in
12355   [\\/]* | ?:[\\/]*)
12356   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
12357   ;;
12358   *)
12359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12360 for as_dir in $PATH
12361 do
12362   IFS=$as_save_IFS
12363   test -z "$as_dir" && as_dir=.
12364     for ac_exec_ext in '' $ac_executable_extensions; do
12365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12366     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
12367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12368     break 2
12369   fi
12370 done
12371   done
12372 IFS=$as_save_IFS
12373 
12374   ;;
12375 esac
12376 fi
12377 AWK=$ac_cv_path_AWK
12378 if test -n "$AWK"; then
12379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12380 $as_echo "$AWK" >&6; }
12381 else
12382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12383 $as_echo "no" >&6; }
12384 fi
12385 
12386 
12387           if test "x$AWK" = x; then
12388             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12389           fi
12390         else
12391           # Otherwise we believe it is a complete path. Use it as it is.
12392           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
12393 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
12394           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
12395 $as_echo_n "checking for AWK... " >&6; }
12396           if test ! -x "$tool_specified"; then
12397             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12398 $as_echo "not found" >&6; }
12399             as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
12400           fi
12401           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12402 $as_echo "$tool_specified" >&6; }
12403         fi
12404       fi
12405     fi
12406 
12407   fi
12408 
12409 
12410   if test "x$AWK" = x; then
12411     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
12412   fi
12413 
12414 
12415 
12416 
12417   # Publish this variable in the help.
12418 
12419 
12420   if [ -z "${GREP+x}" ]; then
12421     # The variable is not set by user, try to locate tool using the code snippet
12422     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
12423 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
12424 if ${ac_cv_path_GREP+:} false; then :
12425   $as_echo_n "(cached) " >&6
12426 else
12427   if test -z "$GREP"; then
12428   ac_path_GREP_found=false
12429   # Loop through the user's path and test for each of PROGNAME-LIST
12430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12431 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12432 do
12433   IFS=$as_save_IFS
12434   test -z "$as_dir" && as_dir=.
12435     for ac_prog in grep ggrep; do
12436     for ac_exec_ext in '' $ac_executable_extensions; do
12437       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
12438       as_fn_executable_p "$ac_path_GREP" || continue
12439 # Check for GNU ac_path_GREP and select it if it is found.
12440   # Check for GNU $ac_path_GREP
12441 case `"$ac_path_GREP" --version 2>&1` in
12442 *GNU*)
12443   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
12444 *)
12445   ac_count=0
12446   $as_echo_n 0123456789 >"conftest.in"
12447   while :
12448   do
12449     cat "conftest.in" "conftest.in" >"conftest.tmp"
12450     mv "conftest.tmp" "conftest.in"
12451     cp "conftest.in" "conftest.nl"
12452     $as_echo 'GREP' >> "conftest.nl"
12453     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12454     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12455     as_fn_arith $ac_count + 1 && ac_count=$as_val
12456     if test $ac_count -gt ${ac_path_GREP_max-0}; then
12457       # Best one so far, save it but keep looking for a better one
12458       ac_cv_path_GREP="$ac_path_GREP"
12459       ac_path_GREP_max=$ac_count
12460     fi
12461     # 10*(2^10) chars as input seems more than enough
12462     test $ac_count -gt 10 && break
12463   done
12464   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12465 esac
12466 
12467       $ac_path_GREP_found && break 3
12468     done
12469   done
12470   done
12471 IFS=$as_save_IFS
12472   if test -z "$ac_cv_path_GREP"; then
12473     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12474   fi
12475 else
12476   ac_cv_path_GREP=$GREP
12477 fi
12478 
12479 fi
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
12481 $as_echo "$ac_cv_path_GREP" >&6; }
12482  GREP="$ac_cv_path_GREP"
12483 
12484 
12485   else
12486     # The variable is set, but is it from the command line or the environment?
12487 
12488     # Try to remove the string !GREP! from our list.
12489     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
12490     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12491       # If it failed, the variable was not from the command line. Ignore it,
12492       # but warn the user (except for BASH, which is always set by the calling BASH).
12493       if test "xGREP" != xBASH; then
12494         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
12495 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
12496       fi
12497       # Try to locate tool using the code snippet
12498       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
12499 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
12500 if ${ac_cv_path_GREP+:} false; then :
12501   $as_echo_n "(cached) " >&6
12502 else
12503   if test -z "$GREP"; then
12504   ac_path_GREP_found=false
12505   # Loop through the user's path and test for each of PROGNAME-LIST
12506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12507 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12508 do
12509   IFS=$as_save_IFS
12510   test -z "$as_dir" && as_dir=.
12511     for ac_prog in grep ggrep; do
12512     for ac_exec_ext in '' $ac_executable_extensions; do
12513       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
12514       as_fn_executable_p "$ac_path_GREP" || continue
12515 # Check for GNU ac_path_GREP and select it if it is found.
12516   # Check for GNU $ac_path_GREP
12517 case `"$ac_path_GREP" --version 2>&1` in
12518 *GNU*)
12519   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
12520 *)
12521   ac_count=0
12522   $as_echo_n 0123456789 >"conftest.in"
12523   while :
12524   do
12525     cat "conftest.in" "conftest.in" >"conftest.tmp"
12526     mv "conftest.tmp" "conftest.in"
12527     cp "conftest.in" "conftest.nl"
12528     $as_echo 'GREP' >> "conftest.nl"
12529     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12530     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12531     as_fn_arith $ac_count + 1 && ac_count=$as_val
12532     if test $ac_count -gt ${ac_path_GREP_max-0}; then
12533       # Best one so far, save it but keep looking for a better one
12534       ac_cv_path_GREP="$ac_path_GREP"
12535       ac_path_GREP_max=$ac_count
12536     fi
12537     # 10*(2^10) chars as input seems more than enough
12538     test $ac_count -gt 10 && break
12539   done
12540   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12541 esac
12542 
12543       $ac_path_GREP_found && break 3
12544     done
12545   done
12546   done
12547 IFS=$as_save_IFS
12548   if test -z "$ac_cv_path_GREP"; then
12549     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12550   fi
12551 else
12552   ac_cv_path_GREP=$GREP
12553 fi
12554 
12555 fi
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
12557 $as_echo "$ac_cv_path_GREP" >&6; }
12558  GREP="$ac_cv_path_GREP"
12559 
12560 
12561     else
12562       # If it succeeded, then it was overridden by the user. We will use it
12563       # for the tool.
12564 
12565       # First remove it from the list of overridden variables, so we can test
12566       # for unknown variables in the end.
12567       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12568 
12569       # Check if we try to supply an empty value
12570       if test "x$GREP" = x; then
12571         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5
12572 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;}
12573         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
12574 $as_echo_n "checking for GREP... " >&6; }
12575         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12576 $as_echo "disabled" >&6; }
12577       else
12578         # Check if the provided tool contains a complete path.
12579         tool_specified="$GREP"
12580         tool_basename="${tool_specified##*/}"
12581         if test "x$tool_basename" = "x$tool_specified"; then
12582           # A command without a complete path is provided, search $PATH.
12583           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
12584 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
12585           # Extract the first word of "$tool_basename", so it can be a program name with args.
12586 set dummy $tool_basename; ac_word=$2
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12588 $as_echo_n "checking for $ac_word... " >&6; }
12589 if ${ac_cv_path_GREP+:} false; then :
12590   $as_echo_n "(cached) " >&6
12591 else
12592   case $GREP in
12593   [\\/]* | ?:[\\/]*)
12594   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
12595   ;;
12596   *)
12597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12598 for as_dir in $PATH
12599 do
12600   IFS=$as_save_IFS
12601   test -z "$as_dir" && as_dir=.
12602     for ac_exec_ext in '' $ac_executable_extensions; do
12603   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12604     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
12605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12606     break 2
12607   fi
12608 done
12609   done
12610 IFS=$as_save_IFS
12611 
12612   ;;
12613 esac
12614 fi
12615 GREP=$ac_cv_path_GREP
12616 if test -n "$GREP"; then
12617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
12618 $as_echo "$GREP" >&6; }
12619 else
12620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12621 $as_echo "no" >&6; }
12622 fi
12623 
12624 
12625           if test "x$GREP" = x; then
12626             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12627           fi
12628         else
12629           # Otherwise we believe it is a complete path. Use it as it is.
12630           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
12631 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
12632           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
12633 $as_echo_n "checking for GREP... " >&6; }
12634           if test ! -x "$tool_specified"; then
12635             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12636 $as_echo "not found" >&6; }
12637             as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12638           fi
12639           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12640 $as_echo "$tool_specified" >&6; }
12641         fi
12642       fi
12643     fi
12644 
12645   fi
12646 
12647 
12648   if test "x$GREP" = x; then
12649     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
12650   fi
12651 
12652 
12653 
12654 
12655   # Publish this variable in the help.
12656 
12657 
12658   if [ -z "${EGREP+x}" ]; then
12659     # The variable is not set by user, try to locate tool using the code snippet
12660     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
12661 $as_echo_n "checking for egrep... " >&6; }
12662 if ${ac_cv_path_EGREP+:} false; then :
12663   $as_echo_n "(cached) " >&6
12664 else
12665   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
12666    then ac_cv_path_EGREP="$GREP -E"
12667    else
12668      if test -z "$EGREP"; then
12669   ac_path_EGREP_found=false
12670   # Loop through the user's path and test for each of PROGNAME-LIST
12671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12672 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12673 do
12674   IFS=$as_save_IFS
12675   test -z "$as_dir" && as_dir=.
12676     for ac_prog in egrep; do
12677     for ac_exec_ext in '' $ac_executable_extensions; do
12678       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
12679       as_fn_executable_p "$ac_path_EGREP" || continue
12680 # Check for GNU ac_path_EGREP and select it if it is found.
12681   # Check for GNU $ac_path_EGREP
12682 case `"$ac_path_EGREP" --version 2>&1` in
12683 *GNU*)
12684   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
12685 *)
12686   ac_count=0
12687   $as_echo_n 0123456789 >"conftest.in"
12688   while :
12689   do
12690     cat "conftest.in" "conftest.in" >"conftest.tmp"
12691     mv "conftest.tmp" "conftest.in"
12692     cp "conftest.in" "conftest.nl"
12693     $as_echo 'EGREP' >> "conftest.nl"
12694     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12695     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12696     as_fn_arith $ac_count + 1 && ac_count=$as_val
12697     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
12698       # Best one so far, save it but keep looking for a better one
12699       ac_cv_path_EGREP="$ac_path_EGREP"
12700       ac_path_EGREP_max=$ac_count
12701     fi
12702     # 10*(2^10) chars as input seems more than enough
12703     test $ac_count -gt 10 && break
12704   done
12705   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12706 esac
12707 
12708       $ac_path_EGREP_found && break 3
12709     done
12710   done
12711   done
12712 IFS=$as_save_IFS
12713   if test -z "$ac_cv_path_EGREP"; then
12714     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12715   fi
12716 else
12717   ac_cv_path_EGREP=$EGREP
12718 fi
12719 
12720    fi
12721 fi
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
12723 $as_echo "$ac_cv_path_EGREP" >&6; }
12724  EGREP="$ac_cv_path_EGREP"
12725 
12726 
12727   else
12728     # The variable is set, but is it from the command line or the environment?
12729 
12730     # Try to remove the string !EGREP! from our list.
12731     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
12732     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12733       # If it failed, the variable was not from the command line. Ignore it,
12734       # but warn the user (except for BASH, which is always set by the calling BASH).
12735       if test "xEGREP" != xBASH; then
12736         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
12737 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
12738       fi
12739       # Try to locate tool using the code snippet
12740       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
12741 $as_echo_n "checking for egrep... " >&6; }
12742 if ${ac_cv_path_EGREP+:} false; then :
12743   $as_echo_n "(cached) " >&6
12744 else
12745   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
12746    then ac_cv_path_EGREP="$GREP -E"
12747    else
12748      if test -z "$EGREP"; then
12749   ac_path_EGREP_found=false
12750   # Loop through the user's path and test for each of PROGNAME-LIST
12751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12752 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12753 do
12754   IFS=$as_save_IFS
12755   test -z "$as_dir" && as_dir=.
12756     for ac_prog in egrep; do
12757     for ac_exec_ext in '' $ac_executable_extensions; do
12758       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
12759       as_fn_executable_p "$ac_path_EGREP" || continue
12760 # Check for GNU ac_path_EGREP and select it if it is found.
12761   # Check for GNU $ac_path_EGREP
12762 case `"$ac_path_EGREP" --version 2>&1` in
12763 *GNU*)
12764   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
12765 *)
12766   ac_count=0
12767   $as_echo_n 0123456789 >"conftest.in"
12768   while :
12769   do
12770     cat "conftest.in" "conftest.in" >"conftest.tmp"
12771     mv "conftest.tmp" "conftest.in"
12772     cp "conftest.in" "conftest.nl"
12773     $as_echo 'EGREP' >> "conftest.nl"
12774     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12775     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12776     as_fn_arith $ac_count + 1 && ac_count=$as_val
12777     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
12778       # Best one so far, save it but keep looking for a better one
12779       ac_cv_path_EGREP="$ac_path_EGREP"
12780       ac_path_EGREP_max=$ac_count
12781     fi
12782     # 10*(2^10) chars as input seems more than enough
12783     test $ac_count -gt 10 && break
12784   done
12785   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12786 esac
12787 
12788       $ac_path_EGREP_found && break 3
12789     done
12790   done
12791   done
12792 IFS=$as_save_IFS
12793   if test -z "$ac_cv_path_EGREP"; then
12794     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12795   fi
12796 else
12797   ac_cv_path_EGREP=$EGREP
12798 fi
12799 
12800    fi
12801 fi
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
12803 $as_echo "$ac_cv_path_EGREP" >&6; }
12804  EGREP="$ac_cv_path_EGREP"
12805 
12806 
12807     else
12808       # If it succeeded, then it was overridden by the user. We will use it
12809       # for the tool.
12810 
12811       # First remove it from the list of overridden variables, so we can test
12812       # for unknown variables in the end.
12813       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12814 
12815       # Check if we try to supply an empty value
12816       if test "x$EGREP" = x; then
12817         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5
12818 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;}
12819         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
12820 $as_echo_n "checking for EGREP... " >&6; }
12821         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12822 $as_echo "disabled" >&6; }
12823       else
12824         # Check if the provided tool contains a complete path.
12825         tool_specified="$EGREP"
12826         tool_basename="${tool_specified##*/}"
12827         if test "x$tool_basename" = "x$tool_specified"; then
12828           # A command without a complete path is provided, search $PATH.
12829           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
12830 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
12831           # Extract the first word of "$tool_basename", so it can be a program name with args.
12832 set dummy $tool_basename; ac_word=$2
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12834 $as_echo_n "checking for $ac_word... " >&6; }
12835 if ${ac_cv_path_EGREP+:} false; then :
12836   $as_echo_n "(cached) " >&6
12837 else
12838   case $EGREP in
12839   [\\/]* | ?:[\\/]*)
12840   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
12841   ;;
12842   *)
12843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12844 for as_dir in $PATH
12845 do
12846   IFS=$as_save_IFS
12847   test -z "$as_dir" && as_dir=.
12848     for ac_exec_ext in '' $ac_executable_extensions; do
12849   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12850     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
12851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12852     break 2
12853   fi
12854 done
12855   done
12856 IFS=$as_save_IFS
12857 
12858   ;;
12859 esac
12860 fi
12861 EGREP=$ac_cv_path_EGREP
12862 if test -n "$EGREP"; then
12863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
12864 $as_echo "$EGREP" >&6; }
12865 else
12866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12867 $as_echo "no" >&6; }
12868 fi
12869 
12870 
12871           if test "x$EGREP" = x; then
12872             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12873           fi
12874         else
12875           # Otherwise we believe it is a complete path. Use it as it is.
12876           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
12877 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
12878           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
12879 $as_echo_n "checking for EGREP... " >&6; }
12880           if test ! -x "$tool_specified"; then
12881             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12882 $as_echo "not found" >&6; }
12883             as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12884           fi
12885           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12886 $as_echo "$tool_specified" >&6; }
12887         fi
12888       fi
12889     fi
12890 
12891   fi
12892 
12893 
12894   if test "x$EGREP" = x; then
12895     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
12896   fi
12897 
12898 
12899 
12900 
12901   # Publish this variable in the help.
12902 
12903 
12904   if [ -z "${FGREP+x}" ]; then
12905     # The variable is not set by user, try to locate tool using the code snippet
12906     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12907 $as_echo_n "checking for fgrep... " >&6; }
12908 if ${ac_cv_path_FGREP+:} false; then :
12909   $as_echo_n "(cached) " >&6
12910 else
12911   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12912    then ac_cv_path_FGREP="$GREP -F"
12913    else
12914      if test -z "$FGREP"; then
12915   ac_path_FGREP_found=false
12916   # Loop through the user's path and test for each of PROGNAME-LIST
12917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12918 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12919 do
12920   IFS=$as_save_IFS
12921   test -z "$as_dir" && as_dir=.
12922     for ac_prog in fgrep; do
12923     for ac_exec_ext in '' $ac_executable_extensions; do
12924       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12925       as_fn_executable_p "$ac_path_FGREP" || continue
12926 # Check for GNU ac_path_FGREP and select it if it is found.
12927   # Check for GNU $ac_path_FGREP
12928 case `"$ac_path_FGREP" --version 2>&1` in
12929 *GNU*)
12930   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12931 *)
12932   ac_count=0
12933   $as_echo_n 0123456789 >"conftest.in"
12934   while :
12935   do
12936     cat "conftest.in" "conftest.in" >"conftest.tmp"
12937     mv "conftest.tmp" "conftest.in"
12938     cp "conftest.in" "conftest.nl"
12939     $as_echo 'FGREP' >> "conftest.nl"
12940     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12941     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12942     as_fn_arith $ac_count + 1 && ac_count=$as_val
12943     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12944       # Best one so far, save it but keep looking for a better one
12945       ac_cv_path_FGREP="$ac_path_FGREP"
12946       ac_path_FGREP_max=$ac_count
12947     fi
12948     # 10*(2^10) chars as input seems more than enough
12949     test $ac_count -gt 10 && break
12950   done
12951   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12952 esac
12953 
12954       $ac_path_FGREP_found && break 3
12955     done
12956   done
12957   done
12958 IFS=$as_save_IFS
12959   if test -z "$ac_cv_path_FGREP"; then
12960     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12961   fi
12962 else
12963   ac_cv_path_FGREP=$FGREP
12964 fi
12965 
12966    fi
12967 fi
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12969 $as_echo "$ac_cv_path_FGREP" >&6; }
12970  FGREP="$ac_cv_path_FGREP"
12971 
12972 
12973   else
12974     # The variable is set, but is it from the command line or the environment?
12975 
12976     # Try to remove the string !FGREP! from our list.
12977     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
12978     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12979       # If it failed, the variable was not from the command line. Ignore it,
12980       # but warn the user (except for BASH, which is always set by the calling BASH).
12981       if test "xFGREP" != xBASH; then
12982         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
12983 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
12984       fi
12985       # Try to locate tool using the code snippet
12986       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12987 $as_echo_n "checking for fgrep... " >&6; }
12988 if ${ac_cv_path_FGREP+:} false; then :
12989   $as_echo_n "(cached) " >&6
12990 else
12991   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12992    then ac_cv_path_FGREP="$GREP -F"
12993    else
12994      if test -z "$FGREP"; then
12995   ac_path_FGREP_found=false
12996   # Loop through the user's path and test for each of PROGNAME-LIST
12997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12998 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12999 do
13000   IFS=$as_save_IFS
13001   test -z "$as_dir" && as_dir=.
13002     for ac_prog in fgrep; do
13003     for ac_exec_ext in '' $ac_executable_extensions; do
13004       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13005       as_fn_executable_p "$ac_path_FGREP" || continue
13006 # Check for GNU ac_path_FGREP and select it if it is found.
13007   # Check for GNU $ac_path_FGREP
13008 case `"$ac_path_FGREP" --version 2>&1` in
13009 *GNU*)
13010   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13011 *)
13012   ac_count=0
13013   $as_echo_n 0123456789 >"conftest.in"
13014   while :
13015   do
13016     cat "conftest.in" "conftest.in" >"conftest.tmp"
13017     mv "conftest.tmp" "conftest.in"
13018     cp "conftest.in" "conftest.nl"
13019     $as_echo 'FGREP' >> "conftest.nl"
13020     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13021     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13022     as_fn_arith $ac_count + 1 && ac_count=$as_val
13023     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13024       # Best one so far, save it but keep looking for a better one
13025       ac_cv_path_FGREP="$ac_path_FGREP"
13026       ac_path_FGREP_max=$ac_count
13027     fi
13028     # 10*(2^10) chars as input seems more than enough
13029     test $ac_count -gt 10 && break
13030   done
13031   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13032 esac
13033 
13034       $ac_path_FGREP_found && break 3
13035     done
13036   done
13037   done
13038 IFS=$as_save_IFS
13039   if test -z "$ac_cv_path_FGREP"; then
13040     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13041   fi
13042 else
13043   ac_cv_path_FGREP=$FGREP
13044 fi
13045 
13046    fi
13047 fi
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13049 $as_echo "$ac_cv_path_FGREP" >&6; }
13050  FGREP="$ac_cv_path_FGREP"
13051 
13052 
13053     else
13054       # If it succeeded, then it was overridden by the user. We will use it
13055       # for the tool.
13056 
13057       # First remove it from the list of overridden variables, so we can test
13058       # for unknown variables in the end.
13059       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13060 
13061       # Check if we try to supply an empty value
13062       if test "x$FGREP" = x; then
13063         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5
13064 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;}
13065         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
13066 $as_echo_n "checking for FGREP... " >&6; }
13067         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13068 $as_echo "disabled" >&6; }
13069       else
13070         # Check if the provided tool contains a complete path.
13071         tool_specified="$FGREP"
13072         tool_basename="${tool_specified##*/}"
13073         if test "x$tool_basename" = "x$tool_specified"; then
13074           # A command without a complete path is provided, search $PATH.
13075           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
13076 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
13077           # Extract the first word of "$tool_basename", so it can be a program name with args.
13078 set dummy $tool_basename; ac_word=$2
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13080 $as_echo_n "checking for $ac_word... " >&6; }
13081 if ${ac_cv_path_FGREP+:} false; then :
13082   $as_echo_n "(cached) " >&6
13083 else
13084   case $FGREP in
13085   [\\/]* | ?:[\\/]*)
13086   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
13087   ;;
13088   *)
13089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13090 for as_dir in $PATH
13091 do
13092   IFS=$as_save_IFS
13093   test -z "$as_dir" && as_dir=.
13094     for ac_exec_ext in '' $ac_executable_extensions; do
13095   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13096     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
13097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13098     break 2
13099   fi
13100 done
13101   done
13102 IFS=$as_save_IFS
13103 
13104   ;;
13105 esac
13106 fi
13107 FGREP=$ac_cv_path_FGREP
13108 if test -n "$FGREP"; then
13109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
13110 $as_echo "$FGREP" >&6; }
13111 else
13112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13113 $as_echo "no" >&6; }
13114 fi
13115 
13116 
13117           if test "x$FGREP" = x; then
13118             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13119           fi
13120         else
13121           # Otherwise we believe it is a complete path. Use it as it is.
13122           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
13123 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
13124           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
13125 $as_echo_n "checking for FGREP... " >&6; }
13126           if test ! -x "$tool_specified"; then
13127             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13128 $as_echo "not found" >&6; }
13129             as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13130           fi
13131           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13132 $as_echo "$tool_specified" >&6; }
13133         fi
13134       fi
13135     fi
13136 
13137   fi
13138 
13139 
13140   if test "x$FGREP" = x; then
13141     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
13142   fi
13143 
13144 
13145 
13146 
13147   # Publish this variable in the help.
13148 
13149 
13150   if [ -z "${SED+x}" ]; then
13151     # The variable is not set by user, try to locate tool using the code snippet
13152     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13153 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13154 if ${ac_cv_path_SED+:} false; then :
13155   $as_echo_n "(cached) " >&6
13156 else
13157             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13158      for ac_i in 1 2 3 4 5 6 7; do
13159        ac_script="$ac_script$as_nl$ac_script"
13160      done
13161      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13162      { ac_script=; unset ac_script;}
13163      if test -z "$SED"; then
13164   ac_path_SED_found=false
13165   # Loop through the user's path and test for each of PROGNAME-LIST
13166   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13167 for as_dir in $PATH
13168 do
13169   IFS=$as_save_IFS
13170   test -z "$as_dir" && as_dir=.
13171     for ac_prog in sed gsed; do
13172     for ac_exec_ext in '' $ac_executable_extensions; do
13173       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13174       as_fn_executable_p "$ac_path_SED" || continue
13175 # Check for GNU ac_path_SED and select it if it is found.
13176   # Check for GNU $ac_path_SED
13177 case `"$ac_path_SED" --version 2>&1` in
13178 *GNU*)
13179   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13180 *)
13181   ac_count=0
13182   $as_echo_n 0123456789 >"conftest.in"
13183   while :
13184   do
13185     cat "conftest.in" "conftest.in" >"conftest.tmp"
13186     mv "conftest.tmp" "conftest.in"
13187     cp "conftest.in" "conftest.nl"
13188     $as_echo '' >> "conftest.nl"
13189     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13190     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13191     as_fn_arith $ac_count + 1 && ac_count=$as_val
13192     if test $ac_count -gt ${ac_path_SED_max-0}; then
13193       # Best one so far, save it but keep looking for a better one
13194       ac_cv_path_SED="$ac_path_SED"
13195       ac_path_SED_max=$ac_count
13196     fi
13197     # 10*(2^10) chars as input seems more than enough
13198     test $ac_count -gt 10 && break
13199   done
13200   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13201 esac
13202 
13203       $ac_path_SED_found && break 3
13204     done
13205   done
13206   done
13207 IFS=$as_save_IFS
13208   if test -z "$ac_cv_path_SED"; then
13209     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13210   fi
13211 else
13212   ac_cv_path_SED=$SED
13213 fi
13214 
13215 fi
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13217 $as_echo "$ac_cv_path_SED" >&6; }
13218  SED="$ac_cv_path_SED"
13219   rm -f conftest.sed
13220 
13221   else
13222     # The variable is set, but is it from the command line or the environment?
13223 
13224     # Try to remove the string !SED! from our list.
13225     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
13226     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13227       # If it failed, the variable was not from the command line. Ignore it,
13228       # but warn the user (except for BASH, which is always set by the calling BASH).
13229       if test "xSED" != xBASH; then
13230         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
13231 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
13232       fi
13233       # Try to locate tool using the code snippet
13234       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13235 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13236 if ${ac_cv_path_SED+:} false; then :
13237   $as_echo_n "(cached) " >&6
13238 else
13239             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13240      for ac_i in 1 2 3 4 5 6 7; do
13241        ac_script="$ac_script$as_nl$ac_script"
13242      done
13243      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13244      { ac_script=; unset ac_script;}
13245      if test -z "$SED"; then
13246   ac_path_SED_found=false
13247   # Loop through the user's path and test for each of PROGNAME-LIST
13248   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13249 for as_dir in $PATH
13250 do
13251   IFS=$as_save_IFS
13252   test -z "$as_dir" && as_dir=.
13253     for ac_prog in sed gsed; do
13254     for ac_exec_ext in '' $ac_executable_extensions; do
13255       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13256       as_fn_executable_p "$ac_path_SED" || continue
13257 # Check for GNU ac_path_SED and select it if it is found.
13258   # Check for GNU $ac_path_SED
13259 case `"$ac_path_SED" --version 2>&1` in
13260 *GNU*)
13261   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13262 *)
13263   ac_count=0
13264   $as_echo_n 0123456789 >"conftest.in"
13265   while :
13266   do
13267     cat "conftest.in" "conftest.in" >"conftest.tmp"
13268     mv "conftest.tmp" "conftest.in"
13269     cp "conftest.in" "conftest.nl"
13270     $as_echo '' >> "conftest.nl"
13271     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13272     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13273     as_fn_arith $ac_count + 1 && ac_count=$as_val
13274     if test $ac_count -gt ${ac_path_SED_max-0}; then
13275       # Best one so far, save it but keep looking for a better one
13276       ac_cv_path_SED="$ac_path_SED"
13277       ac_path_SED_max=$ac_count
13278     fi
13279     # 10*(2^10) chars as input seems more than enough
13280     test $ac_count -gt 10 && break
13281   done
13282   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13283 esac
13284 
13285       $ac_path_SED_found && break 3
13286     done
13287   done
13288   done
13289 IFS=$as_save_IFS
13290   if test -z "$ac_cv_path_SED"; then
13291     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13292   fi
13293 else
13294   ac_cv_path_SED=$SED
13295 fi
13296 
13297 fi
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13299 $as_echo "$ac_cv_path_SED" >&6; }
13300  SED="$ac_cv_path_SED"
13301   rm -f conftest.sed
13302 
13303     else
13304       # If it succeeded, then it was overridden by the user. We will use it
13305       # for the tool.
13306 
13307       # First remove it from the list of overridden variables, so we can test
13308       # for unknown variables in the end.
13309       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13310 
13311       # Check if we try to supply an empty value
13312       if test "x$SED" = x; then
13313         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5
13314 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;}
13315         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
13316 $as_echo_n "checking for SED... " >&6; }
13317         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13318 $as_echo "disabled" >&6; }
13319       else
13320         # Check if the provided tool contains a complete path.
13321         tool_specified="$SED"
13322         tool_basename="${tool_specified##*/}"
13323         if test "x$tool_basename" = "x$tool_specified"; then
13324           # A command without a complete path is provided, search $PATH.
13325           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
13326 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
13327           # Extract the first word of "$tool_basename", so it can be a program name with args.
13328 set dummy $tool_basename; ac_word=$2
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13330 $as_echo_n "checking for $ac_word... " >&6; }
13331 if ${ac_cv_path_SED+:} false; then :
13332   $as_echo_n "(cached) " >&6
13333 else
13334   case $SED in
13335   [\\/]* | ?:[\\/]*)
13336   ac_cv_path_SED="$SED" # Let the user override the test with a path.
13337   ;;
13338   *)
13339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13340 for as_dir in $PATH
13341 do
13342   IFS=$as_save_IFS
13343   test -z "$as_dir" && as_dir=.
13344     for ac_exec_ext in '' $ac_executable_extensions; do
13345   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13346     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
13347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13348     break 2
13349   fi
13350 done
13351   done
13352 IFS=$as_save_IFS
13353 
13354   ;;
13355 esac
13356 fi
13357 SED=$ac_cv_path_SED
13358 if test -n "$SED"; then
13359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
13360 $as_echo "$SED" >&6; }
13361 else
13362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13363 $as_echo "no" >&6; }
13364 fi
13365 
13366 
13367           if test "x$SED" = x; then
13368             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13369           fi
13370         else
13371           # Otherwise we believe it is a complete path. Use it as it is.
13372           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
13373 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
13374           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
13375 $as_echo_n "checking for SED... " >&6; }
13376           if test ! -x "$tool_specified"; then
13377             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13378 $as_echo "not found" >&6; }
13379             as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
13380           fi
13381           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13382 $as_echo "$tool_specified" >&6; }
13383         fi
13384       fi
13385     fi
13386 
13387   fi
13388 
13389 
13390   if test "x$SED" = x; then
13391     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
13392   fi
13393 
13394 
13395 
13396   # Always force rm.
13397   RM="$RM -f"
13398 
13399   # pwd behaves differently on various platforms and some don't support the -L flag.
13400   # Always use the bash builtin pwd to get uniform behavior.
13401   THEPWDCMD=pwd
13402 
13403   # These are not required on all platforms
13404 
13405 
13406   # Publish this variable in the help.
13407 
13408 
13409   if [ -z "${CYGPATH+x}" ]; then
13410     # The variable is not set by user, try to locate tool using the code snippet
13411     for ac_prog in cygpath
13412 do
13413   # Extract the first word of "$ac_prog", so it can be a program name with args.
13414 set dummy $ac_prog; ac_word=$2
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13416 $as_echo_n "checking for $ac_word... " >&6; }
13417 if ${ac_cv_path_CYGPATH+:} false; then :
13418   $as_echo_n "(cached) " >&6
13419 else
13420   case $CYGPATH in
13421   [\\/]* | ?:[\\/]*)
13422   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13423   ;;
13424   *)
13425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13426 for as_dir in $PATH
13427 do
13428   IFS=$as_save_IFS
13429   test -z "$as_dir" && as_dir=.
13430     for ac_exec_ext in '' $ac_executable_extensions; do
13431   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13432     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
13433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13434     break 2
13435   fi
13436 done
13437   done
13438 IFS=$as_save_IFS
13439 
13440   ;;
13441 esac
13442 fi
13443 CYGPATH=$ac_cv_path_CYGPATH
13444 if test -n "$CYGPATH"; then
13445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13446 $as_echo "$CYGPATH" >&6; }
13447 else
13448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13449 $as_echo "no" >&6; }
13450 fi
13451 
13452 
13453   test -n "$CYGPATH" && break
13454 done
13455 
13456   else
13457     # The variable is set, but is it from the command line or the environment?
13458 
13459     # Try to remove the string !CYGPATH! from our list.
13460     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
13461     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13462       # If it failed, the variable was not from the command line. Ignore it,
13463       # but warn the user (except for BASH, which is always set by the calling BASH).
13464       if test "xCYGPATH" != xBASH; then
13465         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
13466 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
13467       fi
13468       # Try to locate tool using the code snippet
13469       for ac_prog in cygpath
13470 do
13471   # Extract the first word of "$ac_prog", so it can be a program name with args.
13472 set dummy $ac_prog; ac_word=$2
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13474 $as_echo_n "checking for $ac_word... " >&6; }
13475 if ${ac_cv_path_CYGPATH+:} false; then :
13476   $as_echo_n "(cached) " >&6
13477 else
13478   case $CYGPATH in
13479   [\\/]* | ?:[\\/]*)
13480   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13481   ;;
13482   *)
13483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13484 for as_dir in $PATH
13485 do
13486   IFS=$as_save_IFS
13487   test -z "$as_dir" && as_dir=.
13488     for ac_exec_ext in '' $ac_executable_extensions; do
13489   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13490     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
13491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13492     break 2
13493   fi
13494 done
13495   done
13496 IFS=$as_save_IFS
13497 
13498   ;;
13499 esac
13500 fi
13501 CYGPATH=$ac_cv_path_CYGPATH
13502 if test -n "$CYGPATH"; then
13503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13504 $as_echo "$CYGPATH" >&6; }
13505 else
13506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13507 $as_echo "no" >&6; }
13508 fi
13509 
13510 
13511   test -n "$CYGPATH" && break
13512 done
13513 
13514     else
13515       # If it succeeded, then it was overridden by the user. We will use it
13516       # for the tool.
13517 
13518       # First remove it from the list of overridden variables, so we can test
13519       # for unknown variables in the end.
13520       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13521 
13522       # Check if we try to supply an empty value
13523       if test "x$CYGPATH" = x; then
13524         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5
13525 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;}
13526         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
13527 $as_echo_n "checking for CYGPATH... " >&6; }
13528         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13529 $as_echo "disabled" >&6; }
13530       else
13531         # Check if the provided tool contains a complete path.
13532         tool_specified="$CYGPATH"
13533         tool_basename="${tool_specified##*/}"
13534         if test "x$tool_basename" = "x$tool_specified"; then
13535           # A command without a complete path is provided, search $PATH.
13536           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
13537 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
13538           # Extract the first word of "$tool_basename", so it can be a program name with args.
13539 set dummy $tool_basename; ac_word=$2
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13541 $as_echo_n "checking for $ac_word... " >&6; }
13542 if ${ac_cv_path_CYGPATH+:} false; then :
13543   $as_echo_n "(cached) " >&6
13544 else
13545   case $CYGPATH in
13546   [\\/]* | ?:[\\/]*)
13547   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13548   ;;
13549   *)
13550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13551 for as_dir in $PATH
13552 do
13553   IFS=$as_save_IFS
13554   test -z "$as_dir" && as_dir=.
13555     for ac_exec_ext in '' $ac_executable_extensions; do
13556   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13557     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
13558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13559     break 2
13560   fi
13561 done
13562   done
13563 IFS=$as_save_IFS
13564 
13565   ;;
13566 esac
13567 fi
13568 CYGPATH=$ac_cv_path_CYGPATH
13569 if test -n "$CYGPATH"; then
13570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13571 $as_echo "$CYGPATH" >&6; }
13572 else
13573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13574 $as_echo "no" >&6; }
13575 fi
13576 
13577 
13578           if test "x$CYGPATH" = x; then
13579             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13580           fi
13581         else
13582           # Otherwise we believe it is a complete path. Use it as it is.
13583           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
13584 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
13585           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
13586 $as_echo_n "checking for CYGPATH... " >&6; }
13587           if test ! -x "$tool_specified"; then
13588             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13589 $as_echo "not found" >&6; }
13590             as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
13591           fi
13592           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13593 $as_echo "$tool_specified" >&6; }
13594         fi
13595       fi
13596     fi
13597 
13598   fi
13599 
13600 
13601 
13602 
13603   # Publish this variable in the help.
13604 
13605 
13606   if [ -z "${READLINK+x}" ]; then
13607     # The variable is not set by user, try to locate tool using the code snippet
13608     for ac_prog in greadlink readlink
13609 do
13610   # Extract the first word of "$ac_prog", so it can be a program name with args.
13611 set dummy $ac_prog; ac_word=$2
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13613 $as_echo_n "checking for $ac_word... " >&6; }
13614 if ${ac_cv_path_READLINK+:} false; then :
13615   $as_echo_n "(cached) " >&6
13616 else
13617   case $READLINK in
13618   [\\/]* | ?:[\\/]*)
13619   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
13620   ;;
13621   *)
13622   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13623 for as_dir in $PATH
13624 do
13625   IFS=$as_save_IFS
13626   test -z "$as_dir" && as_dir=.
13627     for ac_exec_ext in '' $ac_executable_extensions; do
13628   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13629     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
13630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13631     break 2
13632   fi
13633 done
13634   done
13635 IFS=$as_save_IFS
13636 
13637   ;;
13638 esac
13639 fi
13640 READLINK=$ac_cv_path_READLINK
13641 if test -n "$READLINK"; then
13642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
13643 $as_echo "$READLINK" >&6; }
13644 else
13645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13646 $as_echo "no" >&6; }
13647 fi
13648 
13649 
13650   test -n "$READLINK" && break
13651 done
13652 
13653   else
13654     # The variable is set, but is it from the command line or the environment?
13655 
13656     # Try to remove the string !READLINK! from our list.
13657     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
13658     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13659       # If it failed, the variable was not from the command line. Ignore it,
13660       # but warn the user (except for BASH, which is always set by the calling BASH).
13661       if test "xREADLINK" != xBASH; then
13662         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
13663 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
13664       fi
13665       # Try to locate tool using the code snippet
13666       for ac_prog in greadlink readlink
13667 do
13668   # Extract the first word of "$ac_prog", so it can be a program name with args.
13669 set dummy $ac_prog; ac_word=$2
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13671 $as_echo_n "checking for $ac_word... " >&6; }
13672 if ${ac_cv_path_READLINK+:} false; then :
13673   $as_echo_n "(cached) " >&6
13674 else
13675   case $READLINK in
13676   [\\/]* | ?:[\\/]*)
13677   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
13678   ;;
13679   *)
13680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13681 for as_dir in $PATH
13682 do
13683   IFS=$as_save_IFS
13684   test -z "$as_dir" && as_dir=.
13685     for ac_exec_ext in '' $ac_executable_extensions; do
13686   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13687     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
13688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13689     break 2
13690   fi
13691 done
13692   done
13693 IFS=$as_save_IFS
13694 
13695   ;;
13696 esac
13697 fi
13698 READLINK=$ac_cv_path_READLINK
13699 if test -n "$READLINK"; then
13700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
13701 $as_echo "$READLINK" >&6; }
13702 else
13703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13704 $as_echo "no" >&6; }
13705 fi
13706 
13707 
13708   test -n "$READLINK" && break
13709 done
13710 
13711     else
13712       # If it succeeded, then it was overridden by the user. We will use it
13713       # for the tool.
13714 
13715       # First remove it from the list of overridden variables, so we can test
13716       # for unknown variables in the end.
13717       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13718 
13719       # Check if we try to supply an empty value
13720       if test "x$READLINK" = x; then
13721         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5
13722 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;}
13723         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
13724 $as_echo_n "checking for READLINK... " >&6; }
13725         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13726 $as_echo "disabled" >&6; }
13727       else
13728         # Check if the provided tool contains a complete path.
13729         tool_specified="$READLINK"
13730         tool_basename="${tool_specified##*/}"
13731         if test "x$tool_basename" = "x$tool_specified"; then
13732           # A command without a complete path is provided, search $PATH.
13733           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
13734 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
13735           # Extract the first word of "$tool_basename", so it can be a program name with args.
13736 set dummy $tool_basename; ac_word=$2
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13738 $as_echo_n "checking for $ac_word... " >&6; }
13739 if ${ac_cv_path_READLINK+:} false; then :
13740   $as_echo_n "(cached) " >&6
13741 else
13742   case $READLINK in
13743   [\\/]* | ?:[\\/]*)
13744   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
13745   ;;
13746   *)
13747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13748 for as_dir in $PATH
13749 do
13750   IFS=$as_save_IFS
13751   test -z "$as_dir" && as_dir=.
13752     for ac_exec_ext in '' $ac_executable_extensions; do
13753   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13754     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
13755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13756     break 2
13757   fi
13758 done
13759   done
13760 IFS=$as_save_IFS
13761 
13762   ;;
13763 esac
13764 fi
13765 READLINK=$ac_cv_path_READLINK
13766 if test -n "$READLINK"; then
13767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
13768 $as_echo "$READLINK" >&6; }
13769 else
13770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13771 $as_echo "no" >&6; }
13772 fi
13773 
13774 
13775           if test "x$READLINK" = x; then
13776             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13777           fi
13778         else
13779           # Otherwise we believe it is a complete path. Use it as it is.
13780           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
13781 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
13782           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
13783 $as_echo_n "checking for READLINK... " >&6; }
13784           if test ! -x "$tool_specified"; then
13785             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13786 $as_echo "not found" >&6; }
13787             as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
13788           fi
13789           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13790 $as_echo "$tool_specified" >&6; }
13791         fi
13792       fi
13793     fi
13794 
13795   fi
13796 
13797 
13798 
13799 
13800   # Publish this variable in the help.
13801 
13802 
13803   if [ -z "${DF+x}" ]; then
13804     # The variable is not set by user, try to locate tool using the code snippet
13805     for ac_prog in df
13806 do
13807   # Extract the first word of "$ac_prog", so it can be a program name with args.
13808 set dummy $ac_prog; ac_word=$2
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13810 $as_echo_n "checking for $ac_word... " >&6; }
13811 if ${ac_cv_path_DF+:} false; then :
13812   $as_echo_n "(cached) " >&6
13813 else
13814   case $DF in
13815   [\\/]* | ?:[\\/]*)
13816   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13817   ;;
13818   *)
13819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13820 for as_dir in $PATH
13821 do
13822   IFS=$as_save_IFS
13823   test -z "$as_dir" && as_dir=.
13824     for ac_exec_ext in '' $ac_executable_extensions; do
13825   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13826     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13828     break 2
13829   fi
13830 done
13831   done
13832 IFS=$as_save_IFS
13833 
13834   ;;
13835 esac
13836 fi
13837 DF=$ac_cv_path_DF
13838 if test -n "$DF"; then
13839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13840 $as_echo "$DF" >&6; }
13841 else
13842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13843 $as_echo "no" >&6; }
13844 fi
13845 
13846 
13847   test -n "$DF" && break
13848 done
13849 
13850   else
13851     # The variable is set, but is it from the command line or the environment?
13852 
13853     # Try to remove the string !DF! from our list.
13854     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
13855     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13856       # If it failed, the variable was not from the command line. Ignore it,
13857       # but warn the user (except for BASH, which is always set by the calling BASH).
13858       if test "xDF" != xBASH; then
13859         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
13860 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
13861       fi
13862       # Try to locate tool using the code snippet
13863       for ac_prog in df
13864 do
13865   # Extract the first word of "$ac_prog", so it can be a program name with args.
13866 set dummy $ac_prog; ac_word=$2
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13868 $as_echo_n "checking for $ac_word... " >&6; }
13869 if ${ac_cv_path_DF+:} false; then :
13870   $as_echo_n "(cached) " >&6
13871 else
13872   case $DF in
13873   [\\/]* | ?:[\\/]*)
13874   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13875   ;;
13876   *)
13877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13878 for as_dir in $PATH
13879 do
13880   IFS=$as_save_IFS
13881   test -z "$as_dir" && as_dir=.
13882     for ac_exec_ext in '' $ac_executable_extensions; do
13883   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13884     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13886     break 2
13887   fi
13888 done
13889   done
13890 IFS=$as_save_IFS
13891 
13892   ;;
13893 esac
13894 fi
13895 DF=$ac_cv_path_DF
13896 if test -n "$DF"; then
13897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13898 $as_echo "$DF" >&6; }
13899 else
13900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13901 $as_echo "no" >&6; }
13902 fi
13903 
13904 
13905   test -n "$DF" && break
13906 done
13907 
13908     else
13909       # If it succeeded, then it was overridden by the user. We will use it
13910       # for the tool.
13911 
13912       # First remove it from the list of overridden variables, so we can test
13913       # for unknown variables in the end.
13914       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13915 
13916       # Check if we try to supply an empty value
13917       if test "x$DF" = x; then
13918         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5
13919 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;}
13920         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
13921 $as_echo_n "checking for DF... " >&6; }
13922         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13923 $as_echo "disabled" >&6; }
13924       else
13925         # Check if the provided tool contains a complete path.
13926         tool_specified="$DF"
13927         tool_basename="${tool_specified##*/}"
13928         if test "x$tool_basename" = "x$tool_specified"; then
13929           # A command without a complete path is provided, search $PATH.
13930           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
13931 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
13932           # Extract the first word of "$tool_basename", so it can be a program name with args.
13933 set dummy $tool_basename; ac_word=$2
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13935 $as_echo_n "checking for $ac_word... " >&6; }
13936 if ${ac_cv_path_DF+:} false; then :
13937   $as_echo_n "(cached) " >&6
13938 else
13939   case $DF in
13940   [\\/]* | ?:[\\/]*)
13941   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13942   ;;
13943   *)
13944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13945 for as_dir in $PATH
13946 do
13947   IFS=$as_save_IFS
13948   test -z "$as_dir" && as_dir=.
13949     for ac_exec_ext in '' $ac_executable_extensions; do
13950   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13951     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13953     break 2
13954   fi
13955 done
13956   done
13957 IFS=$as_save_IFS
13958 
13959   ;;
13960 esac
13961 fi
13962 DF=$ac_cv_path_DF
13963 if test -n "$DF"; then
13964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13965 $as_echo "$DF" >&6; }
13966 else
13967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13968 $as_echo "no" >&6; }
13969 fi
13970 
13971 
13972           if test "x$DF" = x; then
13973             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13974           fi
13975         else
13976           # Otherwise we believe it is a complete path. Use it as it is.
13977           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
13978 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
13979           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
13980 $as_echo_n "checking for DF... " >&6; }
13981           if test ! -x "$tool_specified"; then
13982             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13983 $as_echo "not found" >&6; }
13984             as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
13985           fi
13986           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13987 $as_echo "$tool_specified" >&6; }
13988         fi
13989       fi
13990     fi
13991 
13992   fi
13993 
13994 
13995 
13996 
13997   # Publish this variable in the help.
13998 
13999 
14000   if [ -z "${CPIO+x}" ]; then
14001     # The variable is not set by user, try to locate tool using the code snippet
14002     for ac_prog in cpio bsdcpio
14003 do
14004   # Extract the first word of "$ac_prog", so it can be a program name with args.
14005 set dummy $ac_prog; ac_word=$2
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14007 $as_echo_n "checking for $ac_word... " >&6; }
14008 if ${ac_cv_path_CPIO+:} false; then :
14009   $as_echo_n "(cached) " >&6
14010 else
14011   case $CPIO in
14012   [\\/]* | ?:[\\/]*)
14013   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14014   ;;
14015   *)
14016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14017 for as_dir in $PATH
14018 do
14019   IFS=$as_save_IFS
14020   test -z "$as_dir" && as_dir=.
14021     for ac_exec_ext in '' $ac_executable_extensions; do
14022   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14023     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14025     break 2
14026   fi
14027 done
14028   done
14029 IFS=$as_save_IFS
14030 
14031   ;;
14032 esac
14033 fi
14034 CPIO=$ac_cv_path_CPIO
14035 if test -n "$CPIO"; then
14036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14037 $as_echo "$CPIO" >&6; }
14038 else
14039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14040 $as_echo "no" >&6; }
14041 fi
14042 
14043 
14044   test -n "$CPIO" && break
14045 done
14046 
14047   else
14048     # The variable is set, but is it from the command line or the environment?
14049 
14050     # Try to remove the string !CPIO! from our list.
14051     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
14052     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14053       # If it failed, the variable was not from the command line. Ignore it,
14054       # but warn the user (except for BASH, which is always set by the calling BASH).
14055       if test "xCPIO" != xBASH; then
14056         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
14057 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
14058       fi
14059       # Try to locate tool using the code snippet
14060       for ac_prog in cpio bsdcpio
14061 do
14062   # Extract the first word of "$ac_prog", so it can be a program name with args.
14063 set dummy $ac_prog; ac_word=$2
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14065 $as_echo_n "checking for $ac_word... " >&6; }
14066 if ${ac_cv_path_CPIO+:} false; then :
14067   $as_echo_n "(cached) " >&6
14068 else
14069   case $CPIO in
14070   [\\/]* | ?:[\\/]*)
14071   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14072   ;;
14073   *)
14074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14075 for as_dir in $PATH
14076 do
14077   IFS=$as_save_IFS
14078   test -z "$as_dir" && as_dir=.
14079     for ac_exec_ext in '' $ac_executable_extensions; do
14080   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14081     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14083     break 2
14084   fi
14085 done
14086   done
14087 IFS=$as_save_IFS
14088 
14089   ;;
14090 esac
14091 fi
14092 CPIO=$ac_cv_path_CPIO
14093 if test -n "$CPIO"; then
14094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14095 $as_echo "$CPIO" >&6; }
14096 else
14097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14098 $as_echo "no" >&6; }
14099 fi
14100 
14101 
14102   test -n "$CPIO" && break
14103 done
14104 
14105     else
14106       # If it succeeded, then it was overridden by the user. We will use it
14107       # for the tool.
14108 
14109       # First remove it from the list of overridden variables, so we can test
14110       # for unknown variables in the end.
14111       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14112 
14113       # Check if we try to supply an empty value
14114       if test "x$CPIO" = x; then
14115         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5
14116 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;}
14117         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
14118 $as_echo_n "checking for CPIO... " >&6; }
14119         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14120 $as_echo "disabled" >&6; }
14121       else
14122         # Check if the provided tool contains a complete path.
14123         tool_specified="$CPIO"
14124         tool_basename="${tool_specified##*/}"
14125         if test "x$tool_basename" = "x$tool_specified"; then
14126           # A command without a complete path is provided, search $PATH.
14127           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
14128 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
14129           # Extract the first word of "$tool_basename", so it can be a program name with args.
14130 set dummy $tool_basename; ac_word=$2
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14132 $as_echo_n "checking for $ac_word... " >&6; }
14133 if ${ac_cv_path_CPIO+:} false; then :
14134   $as_echo_n "(cached) " >&6
14135 else
14136   case $CPIO in
14137   [\\/]* | ?:[\\/]*)
14138   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14139   ;;
14140   *)
14141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14142 for as_dir in $PATH
14143 do
14144   IFS=$as_save_IFS
14145   test -z "$as_dir" && as_dir=.
14146     for ac_exec_ext in '' $ac_executable_extensions; do
14147   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14148     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14150     break 2
14151   fi
14152 done
14153   done
14154 IFS=$as_save_IFS
14155 
14156   ;;
14157 esac
14158 fi
14159 CPIO=$ac_cv_path_CPIO
14160 if test -n "$CPIO"; then
14161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14162 $as_echo "$CPIO" >&6; }
14163 else
14164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14165 $as_echo "no" >&6; }
14166 fi
14167 
14168 
14169           if test "x$CPIO" = x; then
14170             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14171           fi
14172         else
14173           # Otherwise we believe it is a complete path. Use it as it is.
14174           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
14175 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
14176           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
14177 $as_echo_n "checking for CPIO... " >&6; }
14178           if test ! -x "$tool_specified"; then
14179             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14180 $as_echo "not found" >&6; }
14181             as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
14182           fi
14183           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14184 $as_echo "$tool_specified" >&6; }
14185         fi
14186       fi
14187     fi
14188 
14189   fi
14190 
14191 
14192 
14193 
14194   # Publish this variable in the help.
14195 
14196 
14197   if [ -z "${NICE+x}" ]; then
14198     # The variable is not set by user, try to locate tool using the code snippet
14199     for ac_prog in nice
14200 do
14201   # Extract the first word of "$ac_prog", so it can be a program name with args.
14202 set dummy $ac_prog; ac_word=$2
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14204 $as_echo_n "checking for $ac_word... " >&6; }
14205 if ${ac_cv_path_NICE+:} false; then :
14206   $as_echo_n "(cached) " >&6
14207 else
14208   case $NICE in
14209   [\\/]* | ?:[\\/]*)
14210   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14211   ;;
14212   *)
14213   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14214 for as_dir in $PATH
14215 do
14216   IFS=$as_save_IFS
14217   test -z "$as_dir" && as_dir=.
14218     for ac_exec_ext in '' $ac_executable_extensions; do
14219   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14220     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14222     break 2
14223   fi
14224 done
14225   done
14226 IFS=$as_save_IFS
14227 
14228   ;;
14229 esac
14230 fi
14231 NICE=$ac_cv_path_NICE
14232 if test -n "$NICE"; then
14233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14234 $as_echo "$NICE" >&6; }
14235 else
14236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14237 $as_echo "no" >&6; }
14238 fi
14239 
14240 
14241   test -n "$NICE" && break
14242 done
14243 
14244   else
14245     # The variable is set, but is it from the command line or the environment?
14246 
14247     # Try to remove the string !NICE! from our list.
14248     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/}
14249     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14250       # If it failed, the variable was not from the command line. Ignore it,
14251       # but warn the user (except for BASH, which is always set by the calling BASH).
14252       if test "xNICE" != xBASH; then
14253         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5
14254 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;}
14255       fi
14256       # Try to locate tool using the code snippet
14257       for ac_prog in nice
14258 do
14259   # Extract the first word of "$ac_prog", so it can be a program name with args.
14260 set dummy $ac_prog; ac_word=$2
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14262 $as_echo_n "checking for $ac_word... " >&6; }
14263 if ${ac_cv_path_NICE+:} false; then :
14264   $as_echo_n "(cached) " >&6
14265 else
14266   case $NICE in
14267   [\\/]* | ?:[\\/]*)
14268   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14269   ;;
14270   *)
14271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14272 for as_dir in $PATH
14273 do
14274   IFS=$as_save_IFS
14275   test -z "$as_dir" && as_dir=.
14276     for ac_exec_ext in '' $ac_executable_extensions; do
14277   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14278     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14280     break 2
14281   fi
14282 done
14283   done
14284 IFS=$as_save_IFS
14285 
14286   ;;
14287 esac
14288 fi
14289 NICE=$ac_cv_path_NICE
14290 if test -n "$NICE"; then
14291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14292 $as_echo "$NICE" >&6; }
14293 else
14294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14295 $as_echo "no" >&6; }
14296 fi
14297 
14298 
14299   test -n "$NICE" && break
14300 done
14301 
14302     else
14303       # If it succeeded, then it was overridden by the user. We will use it
14304       # for the tool.
14305 
14306       # First remove it from the list of overridden variables, so we can test
14307       # for unknown variables in the end.
14308       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14309 
14310       # Check if we try to supply an empty value
14311       if test "x$NICE" = x; then
14312         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5
14313 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;}
14314         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
14315 $as_echo_n "checking for NICE... " >&6; }
14316         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14317 $as_echo "disabled" >&6; }
14318       else
14319         # Check if the provided tool contains a complete path.
14320         tool_specified="$NICE"
14321         tool_basename="${tool_specified##*/}"
14322         if test "x$tool_basename" = "x$tool_specified"; then
14323           # A command without a complete path is provided, search $PATH.
14324           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5
14325 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;}
14326           # Extract the first word of "$tool_basename", so it can be a program name with args.
14327 set dummy $tool_basename; ac_word=$2
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14329 $as_echo_n "checking for $ac_word... " >&6; }
14330 if ${ac_cv_path_NICE+:} false; then :
14331   $as_echo_n "(cached) " >&6
14332 else
14333   case $NICE in
14334   [\\/]* | ?:[\\/]*)
14335   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14336   ;;
14337   *)
14338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14339 for as_dir in $PATH
14340 do
14341   IFS=$as_save_IFS
14342   test -z "$as_dir" && as_dir=.
14343     for ac_exec_ext in '' $ac_executable_extensions; do
14344   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14345     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14347     break 2
14348   fi
14349 done
14350   done
14351 IFS=$as_save_IFS
14352 
14353   ;;
14354 esac
14355 fi
14356 NICE=$ac_cv_path_NICE
14357 if test -n "$NICE"; then
14358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14359 $as_echo "$NICE" >&6; }
14360 else
14361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14362 $as_echo "no" >&6; }
14363 fi
14364 
14365 
14366           if test "x$NICE" = x; then
14367             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14368           fi
14369         else
14370           # Otherwise we believe it is a complete path. Use it as it is.
14371           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5
14372 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;}
14373           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
14374 $as_echo_n "checking for NICE... " >&6; }
14375           if test ! -x "$tool_specified"; then
14376             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14377 $as_echo "not found" >&6; }
14378             as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5
14379           fi
14380           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14381 $as_echo "$tool_specified" >&6; }
14382         fi
14383       fi
14384     fi
14385 
14386   fi
14387 
14388 
14389 
14390 
14391 # Now we can determine OpenJDK build and target platforms. This is required to
14392 # have early on.
14393 # Make sure we can run config.sub.
14394 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
14395   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
14396 
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
14398 $as_echo_n "checking build system type... " >&6; }
14399 if ${ac_cv_build+:} false; then :
14400   $as_echo_n "(cached) " >&6
14401 else
14402   ac_build_alias=$build_alias
14403 test "x$ac_build_alias" = x &&
14404   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
14405 test "x$ac_build_alias" = x &&
14406   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
14407 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
14408   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
14409 
14410 fi
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
14412 $as_echo "$ac_cv_build" >&6; }
14413 case $ac_cv_build in
14414 *-*-*) ;;
14415 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
14416 esac
14417 build=$ac_cv_build
14418 ac_save_IFS=$IFS; IFS='-'
14419 set x $ac_cv_build
14420 shift
14421 build_cpu=$1
14422 build_vendor=$2
14423 shift; shift
14424 # Remember, the first character of IFS is used to create $*,
14425 # except with old shells:
14426 build_os=$*
14427 IFS=$ac_save_IFS
14428 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
14429 
14430 
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
14432 $as_echo_n "checking host system type... " >&6; }
14433 if ${ac_cv_host+:} false; then :
14434   $as_echo_n "(cached) " >&6
14435 else
14436   if test "x$host_alias" = x; then
14437   ac_cv_host=$ac_cv_build
14438 else
14439   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
14440     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
14441 fi
14442 
14443 fi
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
14445 $as_echo "$ac_cv_host" >&6; }
14446 case $ac_cv_host in
14447 *-*-*) ;;
14448 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
14449 esac
14450 host=$ac_cv_host
14451 ac_save_IFS=$IFS; IFS='-'
14452 set x $ac_cv_host
14453 shift
14454 host_cpu=$1
14455 host_vendor=$2
14456 shift; shift
14457 # Remember, the first character of IFS is used to create $*,
14458 # except with old shells:
14459 host_os=$*
14460 IFS=$ac_save_IFS
14461 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
14462 
14463 
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
14465 $as_echo_n "checking target system type... " >&6; }
14466 if ${ac_cv_target+:} false; then :
14467   $as_echo_n "(cached) " >&6
14468 else
14469   if test "x$target_alias" = x; then
14470   ac_cv_target=$ac_cv_host
14471 else
14472   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
14473     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
14474 fi
14475 
14476 fi
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
14478 $as_echo "$ac_cv_target" >&6; }
14479 case $ac_cv_target in
14480 *-*-*) ;;
14481 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
14482 esac
14483 target=$ac_cv_target
14484 ac_save_IFS=$IFS; IFS='-'
14485 set x $ac_cv_target
14486 shift
14487 target_cpu=$1
14488 target_vendor=$2
14489 shift; shift
14490 # Remember, the first character of IFS is used to create $*,
14491 # except with old shells:
14492 target_os=$*
14493 IFS=$ac_save_IFS
14494 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
14495 
14496 
14497 # The aliases save the names the user supplied, while $host etc.
14498 # will get canonicalized.
14499 test -n "$target_alias" &&
14500   test "$program_prefix$program_suffix$program_transform_name" = \
14501     NONENONEs,x,x, &&
14502   program_prefix=${target_alias}-
14503 
14504   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
14505   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
14506   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
14507   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
14508   # to use the configure naming style.
14509 
14510 
14511 
14512 
14513 
14514   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
14515   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
14516   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
14517   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
14518   OPENJDK_TARGET_AUTOCONF_NAME="$host"
14519   OPENJDK_BUILD_AUTOCONF_NAME="$build"
14520 
14521 
14522 
14523   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
14524 
14525   case "$build_os" in
14526     *linux*)
14527       VAR_OS=linux
14528       VAR_OS_TYPE=unix
14529       ;;
14530     *solaris*)
14531       VAR_OS=solaris
14532       VAR_OS_TYPE=unix
14533       ;;
14534     *darwin*)
14535       VAR_OS=macosx
14536       VAR_OS_TYPE=unix
14537       ;;
14538     *bsd*)
14539       VAR_OS=bsd
14540       VAR_OS_TYPE=unix
14541       ;;
14542     *cygwin*)
14543       VAR_OS=windows
14544       VAR_OS_ENV=windows.cygwin
14545       ;;
14546     *mingw*)
14547       VAR_OS=windows
14548       VAR_OS_ENV=windows.msys
14549       ;;
14550     *aix*)
14551       VAR_OS=aix
14552       VAR_OS_TYPE=unix
14553       ;;
14554     *)
14555       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
14556       ;;
14557   esac
14558 
14559 
14560   # First argument is the cpu name from the trip/quad
14561   case "$build_cpu" in
14562     x86_64)
14563       VAR_CPU=x86_64
14564       VAR_CPU_ARCH=x86
14565       VAR_CPU_BITS=64
14566       VAR_CPU_ENDIAN=little
14567       ;;
14568     i?86)
14569       VAR_CPU=x86
14570       VAR_CPU_ARCH=x86
14571       VAR_CPU_BITS=32
14572       VAR_CPU_ENDIAN=little
14573       ;;
14574     arm*)
14575       VAR_CPU=arm
14576       VAR_CPU_ARCH=arm
14577       VAR_CPU_BITS=32
14578       VAR_CPU_ENDIAN=little
14579       ;;
14580     aarch64)
14581       VAR_CPU=aarch64
14582       VAR_CPU_ARCH=aarch64
14583       VAR_CPU_BITS=64
14584       VAR_CPU_ENDIAN=little
14585       ;;
14586     powerpc)
14587       VAR_CPU=ppc
14588       VAR_CPU_ARCH=ppc
14589       VAR_CPU_BITS=32
14590       VAR_CPU_ENDIAN=big
14591       ;;
14592     powerpc64)
14593       VAR_CPU=ppc64
14594       VAR_CPU_ARCH=ppc
14595       VAR_CPU_BITS=64
14596       VAR_CPU_ENDIAN=big
14597       ;;
14598     powerpc64le)
14599       VAR_CPU=ppc64
14600       VAR_CPU_ARCH=ppc
14601       VAR_CPU_BITS=64
14602       VAR_CPU_ENDIAN=little
14603       ;;
14604     s390)
14605       VAR_CPU=s390
14606       VAR_CPU_ARCH=s390
14607       VAR_CPU_BITS=32
14608       VAR_CPU_ENDIAN=big
14609       ;;
14610     s390x)
14611       VAR_CPU=s390x
14612       VAR_CPU_ARCH=s390
14613       VAR_CPU_BITS=64
14614       VAR_CPU_ENDIAN=big
14615       ;;
14616     sparc)
14617       VAR_CPU=sparc
14618       VAR_CPU_ARCH=sparc
14619       VAR_CPU_BITS=32
14620       VAR_CPU_ENDIAN=big
14621       ;;
14622     sparcv9|sparc64)
14623       VAR_CPU=sparcv9
14624       VAR_CPU_ARCH=sparc
14625       VAR_CPU_BITS=64
14626       VAR_CPU_ENDIAN=big
14627       ;;
14628     *)
14629       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
14630       ;;
14631   esac
14632 
14633   # ..and setup our own variables. (Do this explicitely to facilitate searching)
14634   OPENJDK_BUILD_OS="$VAR_OS"
14635   if test "x$VAR_OS_TYPE" != x; then
14636     OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE"
14637   else
14638     OPENJDK_BUILD_OS_TYPE="$VAR_OS"
14639   fi
14640   if test "x$VAR_OS_ENV" != x; then
14641     OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
14642   else
14643     OPENJDK_BUILD_OS_ENV="$VAR_OS"
14644   fi
14645   OPENJDK_BUILD_CPU="$VAR_CPU"
14646   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
14647   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
14648   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
14649 
14650 
14651 
14652 
14653 
14654 
14655 
14656 
14657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
14658 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
14659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
14660 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
14661 
14662   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
14663 
14664   case "$host_os" in
14665     *linux*)
14666       VAR_OS=linux
14667       VAR_OS_TYPE=unix
14668       ;;
14669     *solaris*)
14670       VAR_OS=solaris
14671       VAR_OS_TYPE=unix
14672       ;;
14673     *darwin*)
14674       VAR_OS=macosx
14675       VAR_OS_TYPE=unix
14676       ;;
14677     *bsd*)
14678       VAR_OS=bsd
14679       VAR_OS_TYPE=unix
14680       ;;
14681     *cygwin*)
14682       VAR_OS=windows
14683       VAR_OS_ENV=windows.cygwin
14684       ;;
14685     *mingw*)
14686       VAR_OS=windows
14687       VAR_OS_ENV=windows.msys
14688       ;;
14689     *aix*)
14690       VAR_OS=aix
14691       VAR_OS_TYPE=unix
14692       ;;
14693     *)
14694       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
14695       ;;
14696   esac
14697 
14698 
14699   # First argument is the cpu name from the trip/quad
14700   case "$host_cpu" in
14701     x86_64)
14702       VAR_CPU=x86_64
14703       VAR_CPU_ARCH=x86
14704       VAR_CPU_BITS=64
14705       VAR_CPU_ENDIAN=little
14706       ;;
14707     i?86)
14708       VAR_CPU=x86
14709       VAR_CPU_ARCH=x86
14710       VAR_CPU_BITS=32
14711       VAR_CPU_ENDIAN=little
14712       ;;
14713     arm*)
14714       VAR_CPU=arm
14715       VAR_CPU_ARCH=arm
14716       VAR_CPU_BITS=32
14717       VAR_CPU_ENDIAN=little
14718       ;;
14719     aarch64)
14720       VAR_CPU=aarch64
14721       VAR_CPU_ARCH=aarch64
14722       VAR_CPU_BITS=64
14723       VAR_CPU_ENDIAN=little
14724       ;;
14725     powerpc)
14726       VAR_CPU=ppc
14727       VAR_CPU_ARCH=ppc
14728       VAR_CPU_BITS=32
14729       VAR_CPU_ENDIAN=big
14730       ;;
14731     powerpc64)
14732       VAR_CPU=ppc64
14733       VAR_CPU_ARCH=ppc
14734       VAR_CPU_BITS=64
14735       VAR_CPU_ENDIAN=big
14736       ;;
14737     powerpc64le)
14738       VAR_CPU=ppc64
14739       VAR_CPU_ARCH=ppc
14740       VAR_CPU_BITS=64
14741       VAR_CPU_ENDIAN=little
14742       ;;
14743     s390)
14744       VAR_CPU=s390
14745       VAR_CPU_ARCH=s390
14746       VAR_CPU_BITS=32
14747       VAR_CPU_ENDIAN=big
14748       ;;
14749     s390x)
14750       VAR_CPU=s390x
14751       VAR_CPU_ARCH=s390
14752       VAR_CPU_BITS=64
14753       VAR_CPU_ENDIAN=big
14754       ;;
14755     sparc)
14756       VAR_CPU=sparc
14757       VAR_CPU_ARCH=sparc
14758       VAR_CPU_BITS=32
14759       VAR_CPU_ENDIAN=big
14760       ;;
14761     sparcv9|sparc64)
14762       VAR_CPU=sparcv9
14763       VAR_CPU_ARCH=sparc
14764       VAR_CPU_BITS=64
14765       VAR_CPU_ENDIAN=big
14766       ;;
14767     *)
14768       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
14769       ;;
14770   esac
14771 
14772   # ... and setup our own variables. (Do this explicitely to facilitate searching)
14773   OPENJDK_TARGET_OS="$VAR_OS"
14774   if test "x$VAR_OS_TYPE" != x; then
14775     OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE"
14776   else
14777     OPENJDK_TARGET_OS_TYPE="$VAR_OS"
14778   fi
14779   if test "x$VAR_OS_ENV" != x; then
14780     OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
14781   else
14782     OPENJDK_TARGET_OS_ENV="$VAR_OS"
14783   fi
14784   OPENJDK_TARGET_CPU="$VAR_CPU"
14785   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
14786   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
14787   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
14788 
14789 
14790 
14791 
14792 
14793 
14794 
14795 
14796   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
14797 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
14798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
14799 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
14800 
14801 
14802 
14803 # Check whether --with-target-bits was given.
14804 if test "${with_target_bits+set}" = set; then :
14805   withval=$with_target_bits;
14806 fi
14807 
14808 
14809   # We have three types of compiles:
14810   # native  == normal compilation, target system == build system
14811   # cross   == traditional cross compilation, target system != build system; special toolchain needed
14812   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
14813   #
14814   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
14815     # We're doing a proper cross-compilation
14816     COMPILE_TYPE="cross"
14817   else
14818     COMPILE_TYPE="native"
14819   fi
14820 
14821   if test "x$with_target_bits" != x; then
14822     if test "x$COMPILE_TYPE" = "xcross"; then
14823       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
14824     fi
14825 
14826     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14827       # A reduced build is requested
14828       COMPILE_TYPE="reduced"
14829       OPENJDK_TARGET_CPU_BITS=32
14830       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
14831         OPENJDK_TARGET_CPU=x86
14832       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
14833         OPENJDK_TARGET_CPU=sparc
14834       else
14835         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
14836       fi
14837     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
14838       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
14839     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
14840       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
14841 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
14842     else
14843       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
14844     fi
14845   fi
14846 
14847 
14848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
14849 $as_echo_n "checking compilation type... " >&6; }
14850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
14851 $as_echo "$COMPILE_TYPE" >&6; }
14852 
14853 
14854   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
14855     REQUIRED_OS_NAME=SunOS
14856     REQUIRED_OS_VERSION=5.10
14857   fi
14858   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
14859     REQUIRED_OS_NAME=Linux
14860     REQUIRED_OS_VERSION=2.6
14861   fi
14862   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
14863     REQUIRED_OS_NAME=Windows
14864     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
14865       REQUIRED_OS_VERSION=5.2
14866     else
14867       REQUIRED_OS_VERSION=5.1
14868     fi
14869   fi
14870   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14871     REQUIRED_OS_NAME=Darwin
14872     REQUIRED_OS_VERSION=11.2
14873   fi
14874 
14875 
14876 
14877 
14878 
14879   # Also store the legacy naming of the cpu.
14880   # Ie i586 and amd64 instead of x86 and x86_64
14881   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
14882   if test "x$OPENJDK_TARGET_CPU" = xx86; then
14883     OPENJDK_TARGET_CPU_LEGACY="i586"
14884   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14885     # On all platforms except MacOSX replace x86_64 with amd64.
14886     OPENJDK_TARGET_CPU_LEGACY="amd64"
14887   fi
14888 
14889 
14890   # And the second legacy naming of the cpu.
14891   # Ie i386 and amd64 instead of x86 and x86_64.
14892   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
14893   if test "x$OPENJDK_TARGET_CPU" = xx86; then
14894     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
14895   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14896     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
14897   fi
14898 
14899 
14900   # This is the name of the cpu (but using i386 and amd64 instead of
14901   # x86 and x86_64, respectively), preceeded by a /, to be used when
14902   # locating libraries. On macosx, it's empty, though.
14903   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
14904   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
14905     OPENJDK_TARGET_CPU_LIBDIR=""
14906   fi
14907 
14908 
14909   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
14910   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
14911   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
14912   OPENJDK_TARGET_CPU_ISADIR=""
14913   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
14914     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14915       OPENJDK_TARGET_CPU_ISADIR="/amd64"
14916     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
14917       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
14918     fi
14919   fi
14920 
14921 
14922   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
14923   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
14924   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
14925     # On linux only, we replace x86 with i386.
14926     OPENJDK_TARGET_CPU_OSARCH="i386"
14927   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14928     # On all platforms except macosx, we replace x86_64 with amd64.
14929     OPENJDK_TARGET_CPU_OSARCH="amd64"
14930   fi
14931 
14932 
14933   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
14934   if test "x$OPENJDK_TARGET_CPU" = xx86; then
14935     OPENJDK_TARGET_CPU_JLI="i386"
14936   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14937     # On all platforms except macosx, we replace x86_64 with amd64.
14938     OPENJDK_TARGET_CPU_JLI="amd64"
14939   fi
14940   # Now setup the -D flags for building libjli.
14941   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
14942   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
14943     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
14944       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
14945     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
14946       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
14947     fi
14948   fi
14949 
14950 
14951   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
14952       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
14953   else
14954       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE}
14955   fi
14956 
14957 
14958   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14959     A_LP64="LP64:="
14960     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
14961     # unpack200.exe
14962     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
14963       ADD_LP64="-D_LP64=1"
14964     fi
14965   fi
14966   LP64=$A_LP64
14967 
14968 
14969   if test "x$COMPILE_TYPE" = "xcross"; then
14970     # FIXME: ... or should this include reduced builds..?
14971     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
14972   else
14973     DEFINE_CROSS_COMPILE_ARCH=""
14974   fi
14975 
14976 
14977   # ZERO_ARCHDEF is used to enable architecture-specific code
14978   case "${OPENJDK_TARGET_CPU}" in
14979     ppc)     ZERO_ARCHDEF=PPC32 ;;
14980     ppc64)   ZERO_ARCHDEF=PPC64 ;;
14981     s390*)   ZERO_ARCHDEF=S390  ;;
14982     sparc*)  ZERO_ARCHDEF=SPARC ;;
14983     x86_64*) ZERO_ARCHDEF=AMD64 ;;
14984     x86)     ZERO_ARCHDEF=IA32  ;;
14985     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
14986   esac
14987 
14988 
14989 
14990 
14991 # Continue setting up basic stuff. Most remaining code require fundamental tools.
14992 
14993   # Save the current directory this script was started from
14994   CURDIR="$PWD"
14995 
14996   # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them
14997   # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED
14998   # was not available at that time.
14999   REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'`
15000   if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then
15001     ORIGINAL_PATH="$REWRITTEN_PATH"
15002     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5
15003 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;}
15004   fi
15005 
15006   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
15007     PATH_SEP=";"
15008 
15009   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
15010   if test $SRC_ROOT_LENGTH -gt 100; then
15011     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
15012   fi
15013 
15014   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15015     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
15016 $as_echo_n "checking cygwin release... " >&6; }
15017     CYGWIN_VERSION=`$UNAME -r`
15018     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
15019 $as_echo "$CYGWIN_VERSION" >&6; }
15020     WINDOWS_ENV_VENDOR='cygwin'
15021     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
15022 
15023     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
15024     if test "x$CYGWIN_VERSION_OLD" != x; then
15025       { $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
15026 $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;}
15027       as_fn_error $? "Cannot continue" "$LINENO" 5
15028     fi
15029     if test "x$CYGPATH" = x; then
15030       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
15031     fi
15032     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
15033 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
15034     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
15035     cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"`
15036     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
15037     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
15038     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
15039 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
15040     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
15041     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
15042     if test "x$test_cygdrive_prefix" = x; then
15043       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
15044     fi
15045   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15046     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
15047 $as_echo_n "checking msys release... " >&6; }
15048     MSYS_VERSION=`$UNAME -r`
15049     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
15050 $as_echo "$MSYS_VERSION" >&6; }
15051 
15052     WINDOWS_ENV_VENDOR='msys'
15053     WINDOWS_ENV_VERSION="$MSYS_VERSION"
15054 
15055     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
15056 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
15057     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
15058     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
15059 
15060   windows_path="$MSYS_ROOT_PATH"
15061   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15062     unix_path=`$CYGPATH -u "$windows_path"`
15063     MSYS_ROOT_PATH="$unix_path"
15064   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15065     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15066     MSYS_ROOT_PATH="$unix_path"
15067   fi
15068 
15069     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
15070 $as_echo "$MSYS_ROOT_PATH" >&6; }
15071     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
15072   else
15073     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
15074   fi
15075 
15076   # Test if windows or unix (cygwin/msys) find is first in path.
15077   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
15078 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
15079   FIND_BINARY_OUTPUT=`find --version 2>&1`
15080   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
15081     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
15082 $as_echo "unix style" >&6; }
15083   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
15084     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
15085 $as_echo "Windows" >&6; }
15086     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
15087 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
15088     { $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
15089 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
15090     as_fn_error $? "Cannot continue" "$LINENO" 5
15091   else
15092     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
15093 $as_echo "unknown" >&6; }
15094     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
15095 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
15096   fi
15097 
15098   else
15099     PATH_SEP=":"
15100   fi
15101 
15102 
15103   # We get the top-level directory from the supporting wrappers.
15104   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
15105 $as_echo_n "checking for top-level directory... " >&6; }
15106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
15107 $as_echo "$TOPDIR" >&6; }
15108 
15109 
15110   # Save the original version of TOPDIR for string comparisons
15111   ORIGINAL_TOPDIR="$TOPDIR"
15112 
15113 
15114   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
15115 
15116   # Only process if variable expands to non-empty
15117 
15118   if test "x$CURDIR" != x; then
15119     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15120 
15121   # Input might be given as Windows format, start by converting to
15122   # unix format.
15123   path="$CURDIR"
15124   new_path=`$CYGPATH -u "$path"`
15125 
15126   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15127   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15128   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15129   # "foo.exe" is OK but "foo" is an error.
15130   #
15131   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15132   # It is also a way to make sure we got the proper file name for the real test later on.
15133   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15134   if test "x$test_shortpath" = x; then
15135     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
15136 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
15137     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
15138   fi
15139 
15140   # Call helper function which possibly converts this using DOS-style short mode.
15141   # If so, the updated path is stored in $new_path.
15142 
15143   input_path="$new_path"
15144   # Check if we need to convert this using DOS-style short mode. If the path
15145   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15146   # take no chances and rewrite it.
15147   # Note: m4 eats our [], so we need to use [ and ] instead.
15148   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15149   if test "x$has_forbidden_chars" != x; then
15150     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15151     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15152     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15153     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15154       # Going to short mode and back again did indeed matter. Since short mode is
15155       # case insensitive, let's make it lowercase to improve readability.
15156       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15157       # Now convert it back to Unix-style (cygpath)
15158       input_path=`$CYGPATH -u "$shortmode_path"`
15159       new_path="$input_path"
15160     fi
15161   fi
15162 
15163   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15164   if test "x$test_cygdrive_prefix" = x; then
15165     # As a simple fix, exclude /usr/bin since it's not a real path.
15166     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15167       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15168       # a path prefixed by /cygdrive for fixpath to work.
15169       new_path="$CYGWIN_ROOT_PATH$input_path"
15170     fi
15171   fi
15172 
15173 
15174   if test "x$path" != "x$new_path"; then
15175     CURDIR="$new_path"
15176     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
15177 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
15178   fi
15179 
15180     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15181 
15182   path="$CURDIR"
15183   has_colon=`$ECHO $path | $GREP ^.:`
15184   new_path="$path"
15185   if test "x$has_colon" = x; then
15186     # Not in mixed or Windows style, start by that.
15187     new_path=`cmd //c echo $path`
15188   fi
15189 
15190 
15191   input_path="$new_path"
15192   # Check if we need to convert this using DOS-style short mode. If the path
15193   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15194   # take no chances and rewrite it.
15195   # Note: m4 eats our [], so we need to use [ and ] instead.
15196   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15197   if test "x$has_forbidden_chars" != x; then
15198     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15199     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15200   fi
15201 
15202 
15203   windows_path="$new_path"
15204   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15205     unix_path=`$CYGPATH -u "$windows_path"`
15206     new_path="$unix_path"
15207   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15208     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15209     new_path="$unix_path"
15210   fi
15211 
15212   if test "x$path" != "x$new_path"; then
15213     CURDIR="$new_path"
15214     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
15215 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
15216   fi
15217 
15218   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15219   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15220 
15221     else
15222       # We're on a unix platform. Hooray! :)
15223       path="$CURDIR"
15224       has_space=`$ECHO "$path" | $GREP " "`
15225       if test "x$has_space" != x; then
15226         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
15227 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
15228         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15229       fi
15230 
15231       # Use eval to expand a potential ~
15232       eval path="$path"
15233       if test ! -f "$path" && test ! -d "$path"; then
15234         as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
15235       fi
15236 
15237       CURDIR="`cd "$path"; $THEPWDCMD -L`"
15238     fi
15239   fi
15240 
15241 
15242   # Only process if variable expands to non-empty
15243 
15244   if test "x$TOPDIR" != x; then
15245     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15246 
15247   # Input might be given as Windows format, start by converting to
15248   # unix format.
15249   path="$TOPDIR"
15250   new_path=`$CYGPATH -u "$path"`
15251 
15252   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15253   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15254   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15255   # "foo.exe" is OK but "foo" is an error.
15256   #
15257   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15258   # It is also a way to make sure we got the proper file name for the real test later on.
15259   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15260   if test "x$test_shortpath" = x; then
15261     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
15262 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
15263     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
15264   fi
15265 
15266   # Call helper function which possibly converts this using DOS-style short mode.
15267   # If so, the updated path is stored in $new_path.
15268 
15269   input_path="$new_path"
15270   # Check if we need to convert this using DOS-style short mode. If the path
15271   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15272   # take no chances and rewrite it.
15273   # Note: m4 eats our [], so we need to use [ and ] instead.
15274   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15275   if test "x$has_forbidden_chars" != x; then
15276     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15277     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15278     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15279     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15280       # Going to short mode and back again did indeed matter. Since short mode is
15281       # case insensitive, let's make it lowercase to improve readability.
15282       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15283       # Now convert it back to Unix-style (cygpath)
15284       input_path=`$CYGPATH -u "$shortmode_path"`
15285       new_path="$input_path"
15286     fi
15287   fi
15288 
15289   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15290   if test "x$test_cygdrive_prefix" = x; then
15291     # As a simple fix, exclude /usr/bin since it's not a real path.
15292     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15293       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15294       # a path prefixed by /cygdrive for fixpath to work.
15295       new_path="$CYGWIN_ROOT_PATH$input_path"
15296     fi
15297   fi
15298 
15299 
15300   if test "x$path" != "x$new_path"; then
15301     TOPDIR="$new_path"
15302     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
15303 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
15304   fi
15305 
15306     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15307 
15308   path="$TOPDIR"
15309   has_colon=`$ECHO $path | $GREP ^.:`
15310   new_path="$path"
15311   if test "x$has_colon" = x; then
15312     # Not in mixed or Windows style, start by that.
15313     new_path=`cmd //c echo $path`
15314   fi
15315 
15316 
15317   input_path="$new_path"
15318   # Check if we need to convert this using DOS-style short mode. If the path
15319   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15320   # take no chances and rewrite it.
15321   # Note: m4 eats our [], so we need to use [ and ] instead.
15322   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15323   if test "x$has_forbidden_chars" != x; then
15324     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15325     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15326   fi
15327 
15328 
15329   windows_path="$new_path"
15330   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15331     unix_path=`$CYGPATH -u "$windows_path"`
15332     new_path="$unix_path"
15333   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15334     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15335     new_path="$unix_path"
15336   fi
15337 
15338   if test "x$path" != "x$new_path"; then
15339     TOPDIR="$new_path"
15340     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
15341 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
15342   fi
15343 
15344   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15345   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15346 
15347     else
15348       # We're on a unix platform. Hooray! :)
15349       path="$TOPDIR"
15350       has_space=`$ECHO "$path" | $GREP " "`
15351       if test "x$has_space" != x; then
15352         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
15353 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
15354         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15355       fi
15356 
15357       # Use eval to expand a potential ~
15358       eval path="$path"
15359       if test ! -f "$path" && test ! -d "$path"; then
15360         as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
15361       fi
15362 
15363       TOPDIR="`cd "$path"; $THEPWDCMD -L`"
15364     fi
15365   fi
15366 
15367   # SRC_ROOT is a traditional alias for TOPDIR.
15368   SRC_ROOT=$TOPDIR
15369 
15370   # Calculate a canonical version of TOPDIR for string comparisons
15371   CANONICAL_TOPDIR=$TOPDIR
15372 
15373   if test "x$OPENJDK_BUILD_OS" != xwindows; then
15374     # Follow a chain of symbolic links. Use readlink
15375     # where it exists, else fall back to horribly
15376     # complicated shell code.
15377     if test "x$READLINK_TESTED" != yes; then
15378       # On MacOSX there is a readlink tool with a different
15379       # purpose than the GNU readlink tool. Check the found readlink.
15380       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
15381       if test "x$ISGNU" = x; then
15382         # A readlink that we do not know how to use.
15383         # Are there other non-GNU readlinks out there?
15384         READLINK_TESTED=yes
15385         READLINK=
15386       fi
15387     fi
15388 
15389     if test "x$READLINK" != x; then
15390       CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR`
15391     else
15392       # Save the current directory for restoring afterwards
15393       STARTDIR=$PWD
15394       COUNTER=0
15395       sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR`
15396       sym_link_file=`$BASENAME $CANONICAL_TOPDIR`
15397       cd $sym_link_dir
15398       # Use -P flag to resolve symlinks in directories.
15399       cd `$THEPWDCMD -P`
15400       sym_link_dir=`$THEPWDCMD -P`
15401       # Resolve file symlinks
15402       while test $COUNTER -lt 20; do
15403         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
15404         if test "x$ISLINK" == x; then
15405           # This is not a symbolic link! We are done!
15406           break
15407         fi
15408         # Again resolve directory symlinks since the target of the just found
15409         # link could be in a different directory
15410         cd `$DIRNAME $ISLINK`
15411         sym_link_dir=`$THEPWDCMD -P`
15412         sym_link_file=`$BASENAME $ISLINK`
15413         let COUNTER=COUNTER+1
15414       done
15415       cd $STARTDIR
15416       CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file
15417     fi
15418   fi
15419 
15420 
15421 
15422   # Locate the directory of this script.
15423   AUTOCONF_DIR=$TOPDIR/common/autoconf
15424 
15425 
15426 # Check if it's a pure open build or if custom sources are to be used.
15427 
15428   # Check whether --enable-openjdk-only was given.
15429 if test "${enable_openjdk_only+set}" = set; then :
15430   enableval=$enable_openjdk_only;
15431 else
15432   enable_openjdk_only="no"
15433 fi
15434 
15435 
15436   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
15437 $as_echo_n "checking for presence of closed sources... " >&6; }
15438   if test -d "$SRC_ROOT/jdk/src/closed"; then
15439     CLOSED_SOURCE_PRESENT=yes
15440   else
15441     CLOSED_SOURCE_PRESENT=no
15442   fi
15443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
15444 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
15445 
15446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
15447 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
15448   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
15449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
15450 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
15451 
15452   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
15453     OPENJDK=true
15454     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
15455       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
15456 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
15457     fi
15458   else
15459     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
15460       OPENJDK=true
15461     else
15462       OPENJDK=false
15463     fi
15464   fi
15465 
15466   if test "x$OPENJDK" = "xtrue"; then
15467     SET_OPENJDK="OPENJDK=true"
15468   fi
15469 
15470 
15471 
15472   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
15473   # the IncludeCustomExtension macro.
15474 
15475 
15476 # Check whether --with-custom-make-dir was given.
15477 if test "${with_custom_make_dir+set}" = set; then :
15478   withval=$with_custom_make_dir; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&5
15479 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
15480 fi
15481 
15482 
15483 
15484 
15485 # These are needed to be able to create a configuration name (and thus the output directory)
15486 
15487   ###############################################################################
15488   #
15489   # Check which variant of the JDK that we want to build.
15490   # Currently we have:
15491   #    normal:   standard edition
15492   # but the custom make system may add other variants
15493   #
15494   # Effectively the JDK variant gives a name to a specific set of
15495   # modules to compile into the JDK. In the future, these modules
15496   # might even be Jigsaw modules.
15497   #
15498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
15499 $as_echo_n "checking which variant of the JDK to build... " >&6; }
15500 
15501 # Check whether --with-jdk-variant was given.
15502 if test "${with_jdk_variant+set}" = set; then :
15503   withval=$with_jdk_variant;
15504 fi
15505 
15506 
15507   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
15508     JDK_VARIANT="normal"
15509   else
15510     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
15511   fi
15512 
15513 
15514 
15515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
15516 $as_echo "$JDK_VARIANT" >&6; }
15517 
15518 
15519 ###############################################################################
15520 #
15521 # Check which interpreter of the JVM we want to build.
15522 # Currently we have:
15523 #    template: Template interpreter (the default)
15524 #    cpp     : C++ interpreter
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
15526 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
15527 
15528 # Check whether --with-jvm-interpreter was given.
15529 if test "${with_jvm_interpreter+set}" = set; then :
15530   withval=$with_jvm_interpreter;
15531 fi
15532 
15533 
15534 if test "x$with_jvm_interpreter" = x; then
15535      with_jvm_interpreter="template"
15536 fi
15537 
15538 JVM_INTERPRETER="$with_jvm_interpreter"
15539 
15540 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
15541    as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
15542 fi
15543 
15544 
15545 
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
15547 $as_echo "$with_jvm_interpreter" >&6; }
15548 
15549 
15550 
15551   ###############################################################################
15552   #
15553   # Check which variants of the JVM that we want to build.
15554   # Currently we have:
15555   #    server: normal interpreter and a tiered C1/C2 compiler
15556   #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
15557   #    minimal1: reduced form of client with optional VM services and features stripped out
15558   #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
15559   #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
15560   #    zero: no machine code interpreter, no compiler
15561   #    zeroshark: zero interpreter and shark/llvm compiler backend
15562 #    core: interpreter only, no compiler (only works on some platforms)
15563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
15564 $as_echo_n "checking which variants of the JVM to build... " >&6; }
15565 
15566 # Check whether --with-jvm-variants was given.
15567 if test "${with_jvm_variants+set}" = set; then :
15568   withval=$with_jvm_variants;
15569 fi
15570 
15571 
15572   if test "x$with_jvm_variants" = x; then
15573     with_jvm_variants="server"
15574   fi
15575 
15576   JVM_VARIANTS=",$with_jvm_variants,"
15577   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,//'`
15578 
15579   if test "x$TEST_VARIANTS" != "x,"; then
15580      as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
15581   fi
15582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
15583 $as_echo "$with_jvm_variants" >&6; }
15584 
15585   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
15586   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
15587   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
15588   JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
15589   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
15590   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
15591   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
15592 
15593   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
15594     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15595       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
15596     fi
15597   fi
15598   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
15599     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15600       as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
15601     fi
15602   fi
15603   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
15604     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15605       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
15606     fi
15607   fi
15608 
15609   # Replace the commas with AND for use in the build directory name.
15610   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
15611   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/'`
15612   if test "x$COUNT_VARIANTS" != "x,1"; then
15613     BUILDING_MULTIPLE_JVM_VARIANTS=yes
15614   else
15615     BUILDING_MULTIPLE_JVM_VARIANTS=no
15616   fi
15617 
15618 
15619 
15620 
15621 
15622 
15623 
15624 
15625 
15626 
15627   INCLUDE_SA=true
15628   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
15629     INCLUDE_SA=false
15630   fi
15631   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
15632     INCLUDE_SA=false
15633   fi
15634   if test "x$OPENJDK_TARGET_OS" = xaix ; then
15635     INCLUDE_SA=false
15636   fi
15637   if test "x$OPENJDK_TARGET_CPU" = xaarch64; then
15638     INCLUDE_SA=false
15639   fi
15640 
15641 
15642   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
15643     MACOSX_UNIVERSAL="true"
15644   fi
15645 
15646 
15647 
15648 
15649   ###############################################################################
15650   #
15651   # Set the debug level
15652   #    release: no debug information, all optimizations, no asserts.
15653   #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
15654   #    fastdebug: debug information (-g), all optimizations, all asserts
15655   #    slowdebug: debug information (-g), no optimizations, all asserts
15656   #
15657   DEBUG_LEVEL="release"
15658   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
15659 $as_echo_n "checking which debug level to use... " >&6; }
15660   # Check whether --enable-debug was given.
15661 if test "${enable_debug+set}" = set; then :
15662   enableval=$enable_debug;
15663         ENABLE_DEBUG="${enableval}"
15664         DEBUG_LEVEL="fastdebug"
15665 
15666 else
15667   ENABLE_DEBUG="no"
15668 fi
15669 
15670 
15671 
15672 # Check whether --with-debug-level was given.
15673 if test "${with_debug_level+set}" = set; then :
15674   withval=$with_debug_level;
15675         DEBUG_LEVEL="${withval}"
15676         if test "x$ENABLE_DEBUG" = xyes; then
15677           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
15678         fi
15679 
15680 fi
15681 
15682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
15683 $as_echo "$DEBUG_LEVEL" >&6; }
15684 
15685   if test "x$DEBUG_LEVEL" != xrelease && \
15686       test "x$DEBUG_LEVEL" != xoptimized && \
15687       test "x$DEBUG_LEVEL" != xfastdebug && \
15688       test "x$DEBUG_LEVEL" != xslowdebug; then
15689     as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
15690   fi
15691 
15692 
15693   ###############################################################################
15694   #
15695   # Setup legacy vars/targets and new vars to deal with different debug levels.
15696   #
15697 
15698   case $DEBUG_LEVEL in
15699     release )
15700       VARIANT="OPT"
15701       FASTDEBUG="false"
15702       DEBUG_CLASSFILES="false"
15703       BUILD_VARIANT_RELEASE=""
15704       HOTSPOT_DEBUG_LEVEL="product"
15705       HOTSPOT_EXPORT="product"
15706       ;;
15707     fastdebug )
15708       VARIANT="DBG"
15709       FASTDEBUG="true"
15710       DEBUG_CLASSFILES="true"
15711       BUILD_VARIANT_RELEASE="-fastdebug"
15712       HOTSPOT_DEBUG_LEVEL="fastdebug"
15713       HOTSPOT_EXPORT="fastdebug"
15714       ;;
15715     slowdebug )
15716       VARIANT="DBG"
15717       FASTDEBUG="false"
15718       DEBUG_CLASSFILES="true"
15719       BUILD_VARIANT_RELEASE="-debug"
15720       HOTSPOT_DEBUG_LEVEL="debug"
15721       HOTSPOT_EXPORT="debug"
15722       ;;
15723     optimized )
15724       VARIANT="OPT"
15725       FASTDEBUG="false"
15726       DEBUG_CLASSFILES="false"
15727       BUILD_VARIANT_RELEASE="-optimized"
15728       HOTSPOT_DEBUG_LEVEL="optimized"
15729       HOTSPOT_EXPORT="optimized"
15730       ;;
15731   esac
15732 
15733   # The debug level 'optimized' is a little special because it is currently only
15734   # applicable to the HotSpot build where it means to build a completely
15735   # optimized version of the VM without any debugging code (like for the
15736   # 'release' debug level which is called 'product' in the HotSpot build) but
15737   # with the exception that it can contain additional code which is otherwise
15738   # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to
15739   # test new and/or experimental features which are not intended for customer
15740   # shipment. Because these new features need to be tested and benchmarked in
15741   # real world scenarios, we want to build the containing JDK at the 'release'
15742   # debug level.
15743   if test "x$DEBUG_LEVEL" = xoptimized; then
15744     DEBUG_LEVEL="release"
15745   fi
15746 
15747   #####
15748   # Generate the legacy makefile targets for hotspot.
15749   # The hotspot api for selecting the build artifacts, really, needs to be improved.
15750   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
15751   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
15752   # But until then ...
15753   HOTSPOT_TARGET=""
15754 
15755   if test "x$JVM_VARIANT_SERVER" = xtrue; then
15756     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
15757   fi
15758 
15759   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
15760     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
15761   fi
15762 
15763   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
15764     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
15765   fi
15766 
15767   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
15768     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
15769   fi
15770 
15771   if test "x$JVM_VARIANT_ZERO" = xtrue; then
15772     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
15773   fi
15774 
15775   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
15776     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
15777   fi
15778 
15779   if test "x$JVM_VARIANT_CORE" = xtrue; then
15780     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
15781   fi
15782 
15783   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
15784 
15785   # On Macosx universal binaries are produced, but they only contain
15786   # 64 bit intel. This invalidates control of which jvms are built
15787   # from configure, but only server is valid anyway. Fix this
15788   # when hotspot makefiles are rewritten.
15789   if test "x$MACOSX_UNIVERSAL" = xtrue; then
15790     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
15791   fi
15792 
15793   #####
15794 
15795 
15796 
15797 
15798 
15799 
15800 
15801 
15802 # With basic setup done, call the custom early hook.
15803 
15804 
15805 # Check if we have devkits, extra paths or sysroot set.
15806 
15807 
15808 # Check whether --with-devkit was given.
15809 if test "${with_devkit+set}" = set; then :
15810   withval=$with_devkit;
15811 
15812   # Only process if variable expands to non-empty
15813 
15814   if test "x$with_devkit" != x; then
15815     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15816 
15817   # Input might be given as Windows format, start by converting to
15818   # unix format.
15819   path="$with_devkit"
15820   new_path=`$CYGPATH -u "$path"`
15821 
15822   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15823   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15824   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15825   # "foo.exe" is OK but "foo" is an error.
15826   #
15827   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15828   # It is also a way to make sure we got the proper file name for the real test later on.
15829   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15830   if test "x$test_shortpath" = x; then
15831     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
15832 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
15833     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
15834   fi
15835 
15836   # Call helper function which possibly converts this using DOS-style short mode.
15837   # If so, the updated path is stored in $new_path.
15838 
15839   input_path="$new_path"
15840   # Check if we need to convert this using DOS-style short mode. If the path
15841   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15842   # take no chances and rewrite it.
15843   # Note: m4 eats our [], so we need to use [ and ] instead.
15844   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15845   if test "x$has_forbidden_chars" != x; then
15846     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15847     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15848     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15849     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15850       # Going to short mode and back again did indeed matter. Since short mode is
15851       # case insensitive, let's make it lowercase to improve readability.
15852       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15853       # Now convert it back to Unix-style (cygpath)
15854       input_path=`$CYGPATH -u "$shortmode_path"`
15855       new_path="$input_path"
15856     fi
15857   fi
15858 
15859   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15860   if test "x$test_cygdrive_prefix" = x; then
15861     # As a simple fix, exclude /usr/bin since it's not a real path.
15862     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15863       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15864       # a path prefixed by /cygdrive for fixpath to work.
15865       new_path="$CYGWIN_ROOT_PATH$input_path"
15866     fi
15867   fi
15868 
15869 
15870   if test "x$path" != "x$new_path"; then
15871     with_devkit="$new_path"
15872     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
15873 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
15874   fi
15875 
15876     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15877 
15878   path="$with_devkit"
15879   has_colon=`$ECHO $path | $GREP ^.:`
15880   new_path="$path"
15881   if test "x$has_colon" = x; then
15882     # Not in mixed or Windows style, start by that.
15883     new_path=`cmd //c echo $path`
15884   fi
15885 
15886 
15887   input_path="$new_path"
15888   # Check if we need to convert this using DOS-style short mode. If the path
15889   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15890   # take no chances and rewrite it.
15891   # Note: m4 eats our [], so we need to use [ and ] instead.
15892   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15893   if test "x$has_forbidden_chars" != x; then
15894     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15895     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15896   fi
15897 
15898 
15899   windows_path="$new_path"
15900   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15901     unix_path=`$CYGPATH -u "$windows_path"`
15902     new_path="$unix_path"
15903   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15904     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15905     new_path="$unix_path"
15906   fi
15907 
15908   if test "x$path" != "x$new_path"; then
15909     with_devkit="$new_path"
15910     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
15911 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
15912   fi
15913 
15914   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15915   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15916 
15917     else
15918       # We're on a unix platform. Hooray! :)
15919       path="$with_devkit"
15920       has_space=`$ECHO "$path" | $GREP " "`
15921       if test "x$has_space" != x; then
15922         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
15923 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
15924         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15925       fi
15926 
15927       # Use eval to expand a potential ~
15928       eval path="$path"
15929       if test ! -f "$path" && test ! -d "$path"; then
15930         as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
15931       fi
15932 
15933       with_devkit="`cd "$path"; $THEPWDCMD -L`"
15934     fi
15935   fi
15936 
15937         DEVKIT_ROOT="$with_devkit"
15938         # Check for a meta data info file in the root of the devkit
15939         if test -f "$DEVKIT_ROOT/devkit.info"; then
15940           . $DEVKIT_ROOT/devkit.info
15941           # This potentially sets the following:
15942           # A descriptive name of the devkit
15943 
15944   if test "x$DEVKIT_NAME" = x; then
15945     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
15946   fi
15947 
15948           # Corresponds to --with-extra-path
15949 
15950   if test "x$DEVKIT_EXTRA_PATH" = x; then
15951     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
15952   fi
15953 
15954           # Corresponds to --with-toolchain-path
15955 
15956   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
15957     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
15958   fi
15959 
15960           # Corresponds to --with-sysroot
15961 
15962   if test "x$DEVKIT_SYSROOT" = x; then
15963     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
15964   fi
15965 
15966 
15967           # Identifies the Visual Studio version in the devkit
15968 
15969   if test "x$DEVKIT_VS_VERSION" = x; then
15970     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
15971   fi
15972 
15973           # The Visual Studio include environment variable
15974 
15975   if test "x$DEVKIT_VS_INCLUDE" = x; then
15976     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
15977   fi
15978 
15979           # The Visual Studio lib environment variable
15980 
15981   if test "x$DEVKIT_VS_LIB" = x; then
15982     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
15983   fi
15984 
15985           # Corresponds to --with-msvcr-dll
15986 
15987   if test "x$DEVKIT_MSVCR_DLL" = x; then
15988     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
15989   fi
15990 
15991           # Corresponds to --with-msvcp-dll
15992 
15993   if test "x$DEVKIT_MSVCP_DLL" = x; then
15994     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
15995   fi
15996 
15997         fi
15998 
15999         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
16000 $as_echo_n "checking for devkit... " >&6; }
16001         if test "x$DEVKIT_NAME" != x; then
16002           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
16003 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
16004         else
16005           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
16006 $as_echo "$DEVKIT_ROOT" >&6; }
16007         fi
16008 
16009 
16010   if test "x$DEVKIT_EXTRA_PATH" != x; then
16011     if test "x$EXTRA_PATH" = x; then
16012       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
16013     else
16014       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
16015     fi
16016   fi
16017 
16018 
16019         # Fallback default of just /bin if DEVKIT_PATH is not defined
16020         if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
16021           DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
16022         fi
16023 
16024   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
16025     if test "x$TOOLCHAIN_PATH" = x; then
16026       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
16027     else
16028       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
16029     fi
16030   fi
16031 
16032 
16033         # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
16034         # places for backwards compatiblity.
16035         if test "x$DEVKIT_SYSROOT" != x; then
16036           SYSROOT="$DEVKIT_SYSROOT"
16037         elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
16038           SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
16039         elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
16040           SYSROOT="$DEVKIT_ROOT/$host/sys-root"
16041         fi
16042 
16043 
16044 fi
16045 
16046 
16047   # You can force the sysroot if the sysroot encoded into the compiler tools
16048   # is not correct.
16049 
16050 # Check whether --with-sys-root was given.
16051 if test "${with_sys_root+set}" = set; then :
16052   withval=$with_sys_root; SYSROOT=$with_sys_root
16053 
16054 fi
16055 
16056 
16057 
16058 # Check whether --with-sysroot was given.
16059 if test "${with_sysroot+set}" = set; then :
16060   withval=$with_sysroot; SYSROOT=$with_sysroot
16061 
16062 fi
16063 
16064 
16065 
16066 # Check whether --with-tools-dir was given.
16067 if test "${with_tools_dir+set}" = set; then :
16068   withval=$with_tools_dir;
16069   if test "x$with_tools_dir" != x; then
16070     if test "x$TOOLCHAIN_PATH" = x; then
16071       TOOLCHAIN_PATH="$with_tools_dir"
16072     else
16073       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
16074     fi
16075   fi
16076 
16077 
16078 fi
16079 
16080 
16081 
16082 # Check whether --with-toolchain-path was given.
16083 if test "${with_toolchain_path+set}" = set; then :
16084   withval=$with_toolchain_path;
16085   if test "x$with_toolchain_path" != x; then
16086     if test "x$TOOLCHAIN_PATH" = x; then
16087       TOOLCHAIN_PATH="$with_toolchain_path"
16088     else
16089       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
16090     fi
16091   fi
16092 
16093 
16094 fi
16095 
16096 
16097 
16098 # Check whether --with-extra-path was given.
16099 if test "${with_extra_path+set}" = set; then :
16100   withval=$with_extra_path;
16101   if test "x$with_extra_path" != x; then
16102     if test "x$EXTRA_PATH" = x; then
16103       EXTRA_PATH="$with_extra_path"
16104     else
16105       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
16106     fi
16107   fi
16108 
16109 
16110 fi
16111 
16112 
16113   if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then
16114     # If a devkit has been supplied, find xcodebuild in the toolchain_path.
16115     # If not, detect if Xcode is installed by running xcodebuild -version
16116     # if no Xcode installed, xcodebuild exits with 1
16117     # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0
16118     if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then
16119       # We need to use xcodebuild in the toolchain dir provided by the user, this will
16120       # fall back on the stub binary in /usr/bin/xcodebuild
16121       # Extract the first word of "xcodebuild", so it can be a program name with args.
16122 set dummy xcodebuild; ac_word=$2
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16124 $as_echo_n "checking for $ac_word... " >&6; }
16125 if ${ac_cv_path_XCODEBUILD+:} false; then :
16126   $as_echo_n "(cached) " >&6
16127 else
16128   case $XCODEBUILD in
16129   [\\/]* | ?:[\\/]*)
16130   ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
16131   ;;
16132   *)
16133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16134 for as_dir in $TOOLCHAIN_PATH
16135 do
16136   IFS=$as_save_IFS
16137   test -z "$as_dir" && as_dir=.
16138     for ac_exec_ext in '' $ac_executable_extensions; do
16139   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16140     ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
16141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16142     break 2
16143   fi
16144 done
16145   done
16146 IFS=$as_save_IFS
16147 
16148   test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild"
16149   ;;
16150 esac
16151 fi
16152 XCODEBUILD=$ac_cv_path_XCODEBUILD
16153 if test -n "$XCODEBUILD"; then
16154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
16155 $as_echo "$XCODEBUILD" >&6; }
16156 else
16157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16158 $as_echo "no" >&6; }
16159 fi
16160 
16161 
16162     else
16163       # this should result in SYSROOT being empty, unless --with-sysroot is provided
16164       # when only the command line tools are installed there are no SDKs, so headers
16165       # are copied into the system frameworks
16166       XCODEBUILD=
16167 
16168     fi
16169 
16170     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5
16171 $as_echo_n "checking for sdk name... " >&6; }
16172 
16173 # Check whether --with-sdk-name was given.
16174 if test "${with_sdk_name+set}" = set; then :
16175   withval=$with_sdk_name; SDKNAME=$with_sdk_name
16176 
16177 fi
16178 
16179     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5
16180 $as_echo "$SDKNAME" >&6; }
16181 
16182     # if toolchain path is specified then don't rely on system headers, they may not compile
16183     HAVE_SYSTEM_FRAMEWORK_HEADERS=0
16184     test -z "$TOOLCHAIN_PATH" && \
16185       HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?`
16186 
16187     if test -z "$SYSROOT"; then
16188       if test -n "$XCODEBUILD"; then
16189         # if we don't have system headers, use default SDK name (last resort)
16190         if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
16191           SDKNAME=${SDKNAME:-macosx}
16192         fi
16193 
16194         if test -n "$SDKNAME"; then
16195           # Call xcodebuild to determine SYSROOT
16196           SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | grep '^Path: ' | sed 's/Path: //'`
16197         fi
16198       else
16199         if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
16200           as_fn_error $? "No xcodebuild tool and no system framework headers found, use --with-sysroot or --with-sdk-name to provide a path to a valid SDK" "$LINENO" 5
16201         fi
16202       fi
16203     else
16204       # warn user if --with-sdk-name was also set
16205       if test -n "$with_sdk_name"; then
16206         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5
16207 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;}
16208       fi
16209     fi
16210 
16211     if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then
16212       # If no system framework headers, then SYSROOT must be set, or we won't build
16213       as_fn_error $? "Unable to determine SYSROOT and no headers found in /System/Library/Frameworks. Check Xcode configuration, --with-sysroot or --with-sdk-name arguments." "$LINENO" 5
16214     fi
16215 
16216     # Perform a basic sanity test
16217     if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then
16218       if test -z "$SYSROOT"; then
16219         as_fn_error $? "Unable to find required framework headers, provide a path to an SDK via --with-sysroot or --with-sdk-name and be sure Xcode is installed properly" "$LINENO" 5
16220       else
16221         as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5
16222       fi
16223     fi
16224 
16225     # set SDKROOT too, Xcode tools will pick it up
16226     SDKROOT=$SYSROOT
16227 
16228   fi
16229 
16230   # Prepend the extra path to the global path
16231 
16232   if test "x$EXTRA_PATH" != x; then
16233     if test "x$PATH" = x; then
16234       PATH="$EXTRA_PATH"
16235     else
16236       PATH="$EXTRA_PATH:$PATH"
16237     fi
16238   fi
16239 
16240 
16241   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
16242     # Add extra search paths on solaris for utilities like ar and as etc...
16243     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
16244   fi
16245 
16246   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
16247 $as_echo_n "checking for sysroot... " >&6; }
16248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
16249 $as_echo "$SYSROOT" >&6; }
16250   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
16251 $as_echo_n "checking for toolchain path... " >&6; }
16252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
16253 $as_echo "$TOOLCHAIN_PATH" >&6; }
16254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
16255 $as_echo_n "checking for extra path... " >&6; }
16256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
16257 $as_echo "$EXTRA_PATH" >&6; }
16258 
16259 
16260 # To properly create a configuration name, we need to have the OpenJDK target
16261 # and options (variants and debug level) parsed.
16262 
16263 
16264 
16265 # Check whether --with-conf-name was given.
16266 if test "${with_conf_name+set}" = set; then :
16267   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
16268 fi
16269 
16270 
16271   # Test from where we are running configure, in or outside of src root.
16272   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
16273 $as_echo_n "checking where to store configuration... " >&6; }
16274   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
16275       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
16276       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
16277     # We are running configure from the src root.
16278     # Create a default ./build/target-variant-debuglevel output root.
16279     if test "x${CONF_NAME}" = x; then
16280       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
16281 $as_echo "in default location" >&6; }
16282       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
16283     else
16284       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
16285 $as_echo "in build directory with custom name" >&6; }
16286     fi
16287     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
16288     $MKDIR -p "$OUTPUT_ROOT"
16289     if test ! -d "$OUTPUT_ROOT"; then
16290       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
16291     fi
16292   else
16293     # We are running configure from outside of the src dir.
16294     # Then use the current directory as output dir!
16295     # If configuration is situated in normal build directory, just use the build
16296     # directory name as configuration name, otherwise use the complete path.
16297     if test "x${CONF_NAME}" = x; then
16298       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
16299     fi
16300     OUTPUT_ROOT="$CURDIR"
16301     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
16302 $as_echo "in current directory" >&6; }
16303 
16304     # WARNING: This might be a bad thing to do. You need to be sure you want to
16305     # have a configuration in this directory. Do some sanity checks!
16306 
16307     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
16308       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
16309       # other files
16310       files_present=`$LS $OUTPUT_ROOT`
16311       # Configure has already touched config.log and confdefs.h in the current dir when this check
16312       # is performed.
16313       filtered_files=`$ECHO "$files_present" \
16314           | $SED -e 's/config.log//g' \
16315               -e 's/configure.log//g' \
16316               -e 's/confdefs.h//g' \
16317               -e 's/ //g' \
16318           | $TR -d '\n'`
16319       if test "x$filtered_files" != x; then
16320         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
16321 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
16322         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
16323 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
16324         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
16325 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
16326         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
16327 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
16328         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
16329 $as_echo "$as_me: seriously mess up just about everything." >&6;}
16330         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
16331 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
16332         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
16333 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
16334         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
16335       fi
16336     fi
16337   fi
16338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
16339 $as_echo_n "checking what configuration name to use... " >&6; }
16340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
16341 $as_echo "$CONF_NAME" >&6; }
16342 
16343 
16344   # Only process if variable expands to non-empty
16345 
16346   if test "x$OUTPUT_ROOT" != x; then
16347     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16348 
16349   # Input might be given as Windows format, start by converting to
16350   # unix format.
16351   path="$OUTPUT_ROOT"
16352   new_path=`$CYGPATH -u "$path"`
16353 
16354   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16355   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16356   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16357   # "foo.exe" is OK but "foo" is an error.
16358   #
16359   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16360   # It is also a way to make sure we got the proper file name for the real test later on.
16361   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16362   if test "x$test_shortpath" = x; then
16363     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
16364 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
16365     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
16366   fi
16367 
16368   # Call helper function which possibly converts this using DOS-style short mode.
16369   # If so, the updated path is stored in $new_path.
16370 
16371   input_path="$new_path"
16372   # Check if we need to convert this using DOS-style short mode. If the path
16373   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16374   # take no chances and rewrite it.
16375   # Note: m4 eats our [], so we need to use [ and ] instead.
16376   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16377   if test "x$has_forbidden_chars" != x; then
16378     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16379     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16380     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16381     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16382       # Going to short mode and back again did indeed matter. Since short mode is
16383       # case insensitive, let's make it lowercase to improve readability.
16384       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16385       # Now convert it back to Unix-style (cygpath)
16386       input_path=`$CYGPATH -u "$shortmode_path"`
16387       new_path="$input_path"
16388     fi
16389   fi
16390 
16391   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16392   if test "x$test_cygdrive_prefix" = x; then
16393     # As a simple fix, exclude /usr/bin since it's not a real path.
16394     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16395       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16396       # a path prefixed by /cygdrive for fixpath to work.
16397       new_path="$CYGWIN_ROOT_PATH$input_path"
16398     fi
16399   fi
16400 
16401 
16402   if test "x$path" != "x$new_path"; then
16403     OUTPUT_ROOT="$new_path"
16404     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
16405 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
16406   fi
16407 
16408     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16409 
16410   path="$OUTPUT_ROOT"
16411   has_colon=`$ECHO $path | $GREP ^.:`
16412   new_path="$path"
16413   if test "x$has_colon" = x; then
16414     # Not in mixed or Windows style, start by that.
16415     new_path=`cmd //c echo $path`
16416   fi
16417 
16418 
16419   input_path="$new_path"
16420   # Check if we need to convert this using DOS-style short mode. If the path
16421   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16422   # take no chances and rewrite it.
16423   # Note: m4 eats our [], so we need to use [ and ] instead.
16424   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16425   if test "x$has_forbidden_chars" != x; then
16426     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16427     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16428   fi
16429 
16430 
16431   windows_path="$new_path"
16432   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16433     unix_path=`$CYGPATH -u "$windows_path"`
16434     new_path="$unix_path"
16435   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16436     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16437     new_path="$unix_path"
16438   fi
16439 
16440   if test "x$path" != "x$new_path"; then
16441     OUTPUT_ROOT="$new_path"
16442     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
16443 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
16444   fi
16445 
16446   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16447   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16448 
16449     else
16450       # We're on a unix platform. Hooray! :)
16451       path="$OUTPUT_ROOT"
16452       has_space=`$ECHO "$path" | $GREP " "`
16453       if test "x$has_space" != x; then
16454         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
16455 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
16456         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16457       fi
16458 
16459       # Use eval to expand a potential ~
16460       eval path="$path"
16461       if test ! -f "$path" && test ! -d "$path"; then
16462         as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
16463       fi
16464 
16465       OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
16466     fi
16467   fi
16468 
16469 
16470   CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support"
16471   $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR"
16472 
16473   SPEC=$OUTPUT_ROOT/spec.gmk
16474 
16475   CONF_NAME=$CONF_NAME
16476 
16477   OUTPUT_ROOT=$OUTPUT_ROOT
16478 
16479 
16480 
16481   # The spec.gmk file contains all variables for the make system.
16482   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
16483 
16484   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
16485   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
16486 
16487   # The bootcycle-spec.gmk file contains support for boot cycle builds.
16488   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
16489 
16490   # The compare.sh is used to compare the build output to other builds.
16491   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
16492 
16493   # The generated Makefile knows where the spec.gmk is and where the source is.
16494   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
16495   # which will look for generated configurations
16496   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
16497 
16498 
16499 
16500 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
16501 
16502   for ac_prog in apt-get yum port pkgutil pkgadd
16503 do
16504   # Extract the first word of "$ac_prog", so it can be a program name with args.
16505 set dummy $ac_prog; ac_word=$2
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16507 $as_echo_n "checking for $ac_word... " >&6; }
16508 if ${ac_cv_prog_PKGHANDLER+:} false; then :
16509   $as_echo_n "(cached) " >&6
16510 else
16511   if test -n "$PKGHANDLER"; then
16512   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
16513 else
16514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16515 for as_dir in $PATH
16516 do
16517   IFS=$as_save_IFS
16518   test -z "$as_dir" && as_dir=.
16519     for ac_exec_ext in '' $ac_executable_extensions; do
16520   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16521     ac_cv_prog_PKGHANDLER="$ac_prog"
16522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16523     break 2
16524   fi
16525 done
16526   done
16527 IFS=$as_save_IFS
16528 
16529 fi
16530 fi
16531 PKGHANDLER=$ac_cv_prog_PKGHANDLER
16532 if test -n "$PKGHANDLER"; then
16533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
16534 $as_echo "$PKGHANDLER" >&6; }
16535 else
16536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16537 $as_echo "no" >&6; }
16538 fi
16539 
16540 
16541   test -n "$PKGHANDLER" && break
16542 done
16543 
16544 
16545 
16546 # Setup tools that requires more complex handling, or that is not needed by the configure script.
16547 
16548 
16549 
16550   # Publish this variable in the help.
16551 
16552 
16553   if [ -z "${MAKE+x}" ]; then
16554     # The variable is not set by user, try to locate tool using the code snippet
16555 
16556     # Try our hardest to locate a correct version of GNU make
16557     for ac_prog in gmake
16558 do
16559   # Extract the first word of "$ac_prog", so it can be a program name with args.
16560 set dummy $ac_prog; ac_word=$2
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16562 $as_echo_n "checking for $ac_word... " >&6; }
16563 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
16564   $as_echo_n "(cached) " >&6
16565 else
16566   case $CHECK_GMAKE in
16567   [\\/]* | ?:[\\/]*)
16568   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
16569   ;;
16570   *)
16571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16572 for as_dir in $PATH
16573 do
16574   IFS=$as_save_IFS
16575   test -z "$as_dir" && as_dir=.
16576     for ac_exec_ext in '' $ac_executable_extensions; do
16577   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16578     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
16579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16580     break 2
16581   fi
16582 done
16583   done
16584 IFS=$as_save_IFS
16585 
16586   ;;
16587 esac
16588 fi
16589 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
16590 if test -n "$CHECK_GMAKE"; then
16591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
16592 $as_echo "$CHECK_GMAKE" >&6; }
16593 else
16594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16595 $as_echo "no" >&6; }
16596 fi
16597 
16598 
16599   test -n "$CHECK_GMAKE" && break
16600 done
16601 
16602 
16603   MAKE_CANDIDATE=""$CHECK_GMAKE""
16604   DESCRIPTION="gmake in PATH"
16605 
16606   # On Cygwin, we require a newer version of make than on other platforms
16607   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16608     MAKE_VERSION_EXPR="-e 4\."
16609     MAKE_REQUIRED_VERSION="4.0"
16610    else
16611     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
16612     MAKE_REQUIRED_VERSION="3.81"
16613   fi
16614 
16615   if test "x$MAKE_CANDIDATE" != x; then
16616     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16617 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16618     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16619     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16620     if test "x$IS_GNU_MAKE" = x; then
16621       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16622 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16623     else
16624       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
16625       if test "x$IS_MODERN_MAKE" = x; then
16626         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
16627 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
16628       else
16629         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16630           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16631             MAKE_EXPECTED_ENV='cygwin'
16632           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16633             MAKE_EXPECTED_ENV='msys'
16634           else
16635             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16636           fi
16637           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16638           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16639         else
16640           # Not relevant for non-Windows
16641           IS_MAKE_CORRECT_ENV=true
16642         fi
16643         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16644           { $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
16645 $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;}
16646         else
16647           FOUND_MAKE=$MAKE_CANDIDATE
16648 
16649   # Only process if variable expands to non-empty
16650 
16651   if test "x$FOUND_MAKE" != x; then
16652     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16653 
16654   # First separate the path from the arguments. This will split at the first
16655   # space.
16656   complete="$FOUND_MAKE"
16657   path="${complete%% *}"
16658   tmp="$complete EOL"
16659   arguments="${tmp#* }"
16660 
16661   # Input might be given as Windows format, start by converting to
16662   # unix format.
16663   new_path=`$CYGPATH -u "$path"`
16664 
16665   # Now try to locate executable using which
16666   new_path=`$WHICH "$new_path" 2> /dev/null`
16667   # bat and cmd files are not always considered executable in cygwin causing which
16668   # to not find them
16669   if test "x$new_path" = x \
16670       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16671       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16672     new_path=`$CYGPATH -u "$path"`
16673   fi
16674   if test "x$new_path" = x; then
16675     # Oops. Which didn't find the executable.
16676     # The splitting of arguments from the executable at a space might have been incorrect,
16677     # since paths with space are more likely in Windows. Give it another try with the whole
16678     # argument.
16679     path="$complete"
16680     arguments="EOL"
16681     new_path=`$CYGPATH -u "$path"`
16682     new_path=`$WHICH "$new_path" 2> /dev/null`
16683     # bat and cmd files are not always considered executable in cygwin causing which
16684     # to not find them
16685     if test "x$new_path" = x \
16686         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16687         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16688       new_path=`$CYGPATH -u "$path"`
16689     fi
16690     if test "x$new_path" = x; then
16691       # It's still not found. Now this is an unrecoverable error.
16692       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16693 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16694       has_space=`$ECHO "$complete" | $GREP " "`
16695       if test "x$has_space" != x; then
16696         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16697 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16698       fi
16699       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16700     fi
16701   fi
16702 
16703   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16704   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16705   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16706   # "foo.exe" is OK but "foo" is an error.
16707   #
16708   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16709   # It is also a way to make sure we got the proper file name for the real test later on.
16710   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16711   if test "x$test_shortpath" = x; then
16712     # Short path failed, file does not exist as specified.
16713     # Try adding .exe or .cmd
16714     if test -f "${new_path}.exe"; then
16715       input_to_shortpath="${new_path}.exe"
16716     elif test -f "${new_path}.cmd"; then
16717       input_to_shortpath="${new_path}.cmd"
16718     else
16719       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16720 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16721       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16722 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16723       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16724     fi
16725   else
16726     input_to_shortpath="$new_path"
16727   fi
16728 
16729   # Call helper function which possibly converts this using DOS-style short mode.
16730   # If so, the updated path is stored in $new_path.
16731   new_path="$input_to_shortpath"
16732 
16733   input_path="$input_to_shortpath"
16734   # Check if we need to convert this using DOS-style short mode. If the path
16735   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16736   # take no chances and rewrite it.
16737   # Note: m4 eats our [], so we need to use [ and ] instead.
16738   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16739   if test "x$has_forbidden_chars" != x; then
16740     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16741     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16742     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16743     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16744       # Going to short mode and back again did indeed matter. Since short mode is
16745       # case insensitive, let's make it lowercase to improve readability.
16746       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16747       # Now convert it back to Unix-style (cygpath)
16748       input_path=`$CYGPATH -u "$shortmode_path"`
16749       new_path="$input_path"
16750     fi
16751   fi
16752 
16753   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16754   if test "x$test_cygdrive_prefix" = x; then
16755     # As a simple fix, exclude /usr/bin since it's not a real path.
16756     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16757       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16758       # a path prefixed by /cygdrive for fixpath to work.
16759       new_path="$CYGWIN_ROOT_PATH$input_path"
16760     fi
16761   fi
16762 
16763   # remove trailing .exe if any
16764   new_path="${new_path/%.exe/}"
16765 
16766     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16767 
16768   # First separate the path from the arguments. This will split at the first
16769   # space.
16770   complete="$FOUND_MAKE"
16771   path="${complete%% *}"
16772   tmp="$complete EOL"
16773   arguments="${tmp#* }"
16774 
16775   # Input might be given as Windows format, start by converting to
16776   # unix format.
16777   new_path="$path"
16778 
16779   windows_path="$new_path"
16780   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16781     unix_path=`$CYGPATH -u "$windows_path"`
16782     new_path="$unix_path"
16783   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16784     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16785     new_path="$unix_path"
16786   fi
16787 
16788 
16789   # Now try to locate executable using which
16790   new_path=`$WHICH "$new_path" 2> /dev/null`
16791 
16792   if test "x$new_path" = x; then
16793     # Oops. Which didn't find the executable.
16794     # The splitting of arguments from the executable at a space might have been incorrect,
16795     # since paths with space are more likely in Windows. Give it another try with the whole
16796     # argument.
16797     path="$complete"
16798     arguments="EOL"
16799     new_path="$path"
16800 
16801   windows_path="$new_path"
16802   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16803     unix_path=`$CYGPATH -u "$windows_path"`
16804     new_path="$unix_path"
16805   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16806     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16807     new_path="$unix_path"
16808   fi
16809 
16810 
16811     new_path=`$WHICH "$new_path" 2> /dev/null`
16812     # bat and cmd files are not always considered executable in MSYS causing which
16813     # to not find them
16814     if test "x$new_path" = x \
16815         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16816         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16817       new_path="$path"
16818 
16819   windows_path="$new_path"
16820   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16821     unix_path=`$CYGPATH -u "$windows_path"`
16822     new_path="$unix_path"
16823   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16824     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16825     new_path="$unix_path"
16826   fi
16827 
16828     fi
16829 
16830     if test "x$new_path" = x; then
16831       # It's still not found. Now this is an unrecoverable error.
16832       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16833 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16834       has_space=`$ECHO "$complete" | $GREP " "`
16835       if test "x$has_space" != x; then
16836         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16837 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16838       fi
16839       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16840     fi
16841   fi
16842 
16843   # Now new_path has a complete unix path to the binary
16844   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16845     # Keep paths in /bin as-is, but remove trailing .exe if any
16846     new_path="${new_path/%.exe/}"
16847     # Do not save /bin paths to all_fixpath_prefixes!
16848   else
16849     # Not in mixed or Windows style, start by that.
16850     new_path=`cmd //c echo $new_path`
16851 
16852   input_path="$new_path"
16853   # Check if we need to convert this using DOS-style short mode. If the path
16854   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16855   # take no chances and rewrite it.
16856   # Note: m4 eats our [], so we need to use [ and ] instead.
16857   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16858   if test "x$has_forbidden_chars" != x; then
16859     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16860     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16861   fi
16862 
16863     # Output is in $new_path
16864 
16865   windows_path="$new_path"
16866   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16867     unix_path=`$CYGPATH -u "$windows_path"`
16868     new_path="$unix_path"
16869   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16870     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16871     new_path="$unix_path"
16872   fi
16873 
16874     # remove trailing .exe if any
16875     new_path="${new_path/%.exe/}"
16876 
16877     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16878     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16879   fi
16880 
16881     else
16882       # We're on a unix platform. Hooray! :)
16883       # First separate the path from the arguments. This will split at the first
16884       # space.
16885       complete="$FOUND_MAKE"
16886       path="${complete%% *}"
16887       tmp="$complete EOL"
16888       arguments="${tmp#* }"
16889 
16890       # Cannot rely on the command "which" here since it doesn't always work.
16891       is_absolute_path=`$ECHO "$path" | $GREP ^/`
16892       if test -z "$is_absolute_path"; then
16893         # Path to executable is not absolute. Find it.
16894         IFS_save="$IFS"
16895         IFS=:
16896         for p in $PATH; do
16897           if test -f "$p/$path" && test -x "$p/$path"; then
16898             new_path="$p/$path"
16899             break
16900           fi
16901         done
16902         IFS="$IFS_save"
16903       else
16904         # This is an absolute path, we can use it without further modifications.
16905         new_path="$path"
16906       fi
16907 
16908       if test "x$new_path" = x; then
16909         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16910 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16911         has_space=`$ECHO "$complete" | $GREP " "`
16912         if test "x$has_space" != x; then
16913           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16914 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16915         fi
16916         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16917       fi
16918     fi
16919 
16920     # Now join together the path and the arguments once again
16921     if test "x$arguments" != xEOL; then
16922       new_complete="$new_path ${arguments% *}"
16923     else
16924       new_complete="$new_path"
16925     fi
16926 
16927     if test "x$complete" != "x$new_complete"; then
16928       FOUND_MAKE="$new_complete"
16929       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16930 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16931     fi
16932   fi
16933 
16934         fi
16935       fi
16936     fi
16937   fi
16938 
16939 
16940     if test "x$FOUND_MAKE" = x; then
16941       for ac_prog in make
16942 do
16943   # Extract the first word of "$ac_prog", so it can be a program name with args.
16944 set dummy $ac_prog; ac_word=$2
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16946 $as_echo_n "checking for $ac_word... " >&6; }
16947 if ${ac_cv_path_CHECK_MAKE+:} false; then :
16948   $as_echo_n "(cached) " >&6
16949 else
16950   case $CHECK_MAKE in
16951   [\\/]* | ?:[\\/]*)
16952   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
16953   ;;
16954   *)
16955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16956 for as_dir in $PATH
16957 do
16958   IFS=$as_save_IFS
16959   test -z "$as_dir" && as_dir=.
16960     for ac_exec_ext in '' $ac_executable_extensions; do
16961   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16962     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
16963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16964     break 2
16965   fi
16966 done
16967   done
16968 IFS=$as_save_IFS
16969 
16970   ;;
16971 esac
16972 fi
16973 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
16974 if test -n "$CHECK_MAKE"; then
16975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
16976 $as_echo "$CHECK_MAKE" >&6; }
16977 else
16978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16979 $as_echo "no" >&6; }
16980 fi
16981 
16982 
16983   test -n "$CHECK_MAKE" && break
16984 done
16985 
16986 
16987   MAKE_CANDIDATE=""$CHECK_MAKE""
16988   DESCRIPTION="make in PATH"
16989 
16990   # On Cygwin, we require a newer version of make than on other platforms
16991   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16992     MAKE_VERSION_EXPR="-e 4\."
16993     MAKE_REQUIRED_VERSION="4.0"
16994    else
16995     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
16996     MAKE_REQUIRED_VERSION="3.81"
16997   fi
16998 
16999   if test "x$MAKE_CANDIDATE" != x; then
17000     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17001 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17002     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17003     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17004     if test "x$IS_GNU_MAKE" = x; then
17005       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17006 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17007     else
17008       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17009       if test "x$IS_MODERN_MAKE" = x; then
17010         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
17011 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
17012       else
17013         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17014           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17015             MAKE_EXPECTED_ENV='cygwin'
17016           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17017             MAKE_EXPECTED_ENV='msys'
17018           else
17019             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17020           fi
17021           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17022           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17023         else
17024           # Not relevant for non-Windows
17025           IS_MAKE_CORRECT_ENV=true
17026         fi
17027         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17028           { $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
17029 $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;}
17030         else
17031           FOUND_MAKE=$MAKE_CANDIDATE
17032 
17033   # Only process if variable expands to non-empty
17034 
17035   if test "x$FOUND_MAKE" != x; then
17036     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17037 
17038   # First separate the path from the arguments. This will split at the first
17039   # space.
17040   complete="$FOUND_MAKE"
17041   path="${complete%% *}"
17042   tmp="$complete EOL"
17043   arguments="${tmp#* }"
17044 
17045   # Input might be given as Windows format, start by converting to
17046   # unix format.
17047   new_path=`$CYGPATH -u "$path"`
17048 
17049   # Now try to locate executable using which
17050   new_path=`$WHICH "$new_path" 2> /dev/null`
17051   # bat and cmd files are not always considered executable in cygwin causing which
17052   # to not find them
17053   if test "x$new_path" = x \
17054       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17055       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17056     new_path=`$CYGPATH -u "$path"`
17057   fi
17058   if test "x$new_path" = x; then
17059     # Oops. Which didn't find the executable.
17060     # The splitting of arguments from the executable at a space might have been incorrect,
17061     # since paths with space are more likely in Windows. Give it another try with the whole
17062     # argument.
17063     path="$complete"
17064     arguments="EOL"
17065     new_path=`$CYGPATH -u "$path"`
17066     new_path=`$WHICH "$new_path" 2> /dev/null`
17067     # bat and cmd files are not always considered executable in cygwin causing which
17068     # to not find them
17069     if test "x$new_path" = x \
17070         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17071         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17072       new_path=`$CYGPATH -u "$path"`
17073     fi
17074     if test "x$new_path" = x; then
17075       # It's still not found. Now this is an unrecoverable error.
17076       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17077 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17078       has_space=`$ECHO "$complete" | $GREP " "`
17079       if test "x$has_space" != x; then
17080         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17081 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17082       fi
17083       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17084     fi
17085   fi
17086 
17087   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17088   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17089   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17090   # "foo.exe" is OK but "foo" is an error.
17091   #
17092   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17093   # It is also a way to make sure we got the proper file name for the real test later on.
17094   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17095   if test "x$test_shortpath" = x; then
17096     # Short path failed, file does not exist as specified.
17097     # Try adding .exe or .cmd
17098     if test -f "${new_path}.exe"; then
17099       input_to_shortpath="${new_path}.exe"
17100     elif test -f "${new_path}.cmd"; then
17101       input_to_shortpath="${new_path}.cmd"
17102     else
17103       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17104 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17105       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17106 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17107       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17108     fi
17109   else
17110     input_to_shortpath="$new_path"
17111   fi
17112 
17113   # Call helper function which possibly converts this using DOS-style short mode.
17114   # If so, the updated path is stored in $new_path.
17115   new_path="$input_to_shortpath"
17116 
17117   input_path="$input_to_shortpath"
17118   # Check if we need to convert this using DOS-style short mode. If the path
17119   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17120   # take no chances and rewrite it.
17121   # Note: m4 eats our [], so we need to use [ and ] instead.
17122   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17123   if test "x$has_forbidden_chars" != x; then
17124     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17125     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17126     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17127     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17128       # Going to short mode and back again did indeed matter. Since short mode is
17129       # case insensitive, let's make it lowercase to improve readability.
17130       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17131       # Now convert it back to Unix-style (cygpath)
17132       input_path=`$CYGPATH -u "$shortmode_path"`
17133       new_path="$input_path"
17134     fi
17135   fi
17136 
17137   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17138   if test "x$test_cygdrive_prefix" = x; then
17139     # As a simple fix, exclude /usr/bin since it's not a real path.
17140     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17141       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17142       # a path prefixed by /cygdrive for fixpath to work.
17143       new_path="$CYGWIN_ROOT_PATH$input_path"
17144     fi
17145   fi
17146 
17147   # remove trailing .exe if any
17148   new_path="${new_path/%.exe/}"
17149 
17150     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17151 
17152   # First separate the path from the arguments. This will split at the first
17153   # space.
17154   complete="$FOUND_MAKE"
17155   path="${complete%% *}"
17156   tmp="$complete EOL"
17157   arguments="${tmp#* }"
17158 
17159   # Input might be given as Windows format, start by converting to
17160   # unix format.
17161   new_path="$path"
17162 
17163   windows_path="$new_path"
17164   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17165     unix_path=`$CYGPATH -u "$windows_path"`
17166     new_path="$unix_path"
17167   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17168     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17169     new_path="$unix_path"
17170   fi
17171 
17172 
17173   # Now try to locate executable using which
17174   new_path=`$WHICH "$new_path" 2> /dev/null`
17175 
17176   if test "x$new_path" = x; then
17177     # Oops. Which didn't find the executable.
17178     # The splitting of arguments from the executable at a space might have been incorrect,
17179     # since paths with space are more likely in Windows. Give it another try with the whole
17180     # argument.
17181     path="$complete"
17182     arguments="EOL"
17183     new_path="$path"
17184 
17185   windows_path="$new_path"
17186   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17187     unix_path=`$CYGPATH -u "$windows_path"`
17188     new_path="$unix_path"
17189   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17190     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17191     new_path="$unix_path"
17192   fi
17193 
17194 
17195     new_path=`$WHICH "$new_path" 2> /dev/null`
17196     # bat and cmd files are not always considered executable in MSYS causing which
17197     # to not find them
17198     if test "x$new_path" = x \
17199         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17200         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17201       new_path="$path"
17202 
17203   windows_path="$new_path"
17204   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17205     unix_path=`$CYGPATH -u "$windows_path"`
17206     new_path="$unix_path"
17207   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17208     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17209     new_path="$unix_path"
17210   fi
17211 
17212     fi
17213 
17214     if test "x$new_path" = x; then
17215       # It's still not found. Now this is an unrecoverable error.
17216       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17217 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17218       has_space=`$ECHO "$complete" | $GREP " "`
17219       if test "x$has_space" != x; then
17220         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17221 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17222       fi
17223       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17224     fi
17225   fi
17226 
17227   # Now new_path has a complete unix path to the binary
17228   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17229     # Keep paths in /bin as-is, but remove trailing .exe if any
17230     new_path="${new_path/%.exe/}"
17231     # Do not save /bin paths to all_fixpath_prefixes!
17232   else
17233     # Not in mixed or Windows style, start by that.
17234     new_path=`cmd //c echo $new_path`
17235 
17236   input_path="$new_path"
17237   # Check if we need to convert this using DOS-style short mode. If the path
17238   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17239   # take no chances and rewrite it.
17240   # Note: m4 eats our [], so we need to use [ and ] instead.
17241   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17242   if test "x$has_forbidden_chars" != x; then
17243     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17244     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17245   fi
17246 
17247     # Output is in $new_path
17248 
17249   windows_path="$new_path"
17250   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17251     unix_path=`$CYGPATH -u "$windows_path"`
17252     new_path="$unix_path"
17253   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17254     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17255     new_path="$unix_path"
17256   fi
17257 
17258     # remove trailing .exe if any
17259     new_path="${new_path/%.exe/}"
17260 
17261     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17262     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17263   fi
17264 
17265     else
17266       # We're on a unix platform. Hooray! :)
17267       # First separate the path from the arguments. This will split at the first
17268       # space.
17269       complete="$FOUND_MAKE"
17270       path="${complete%% *}"
17271       tmp="$complete EOL"
17272       arguments="${tmp#* }"
17273 
17274       # Cannot rely on the command "which" here since it doesn't always work.
17275       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17276       if test -z "$is_absolute_path"; then
17277         # Path to executable is not absolute. Find it.
17278         IFS_save="$IFS"
17279         IFS=:
17280         for p in $PATH; do
17281           if test -f "$p/$path" && test -x "$p/$path"; then
17282             new_path="$p/$path"
17283             break
17284           fi
17285         done
17286         IFS="$IFS_save"
17287       else
17288         # This is an absolute path, we can use it without further modifications.
17289         new_path="$path"
17290       fi
17291 
17292       if test "x$new_path" = x; then
17293         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17294 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17295         has_space=`$ECHO "$complete" | $GREP " "`
17296         if test "x$has_space" != x; then
17297           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17298 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17299         fi
17300         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17301       fi
17302     fi
17303 
17304     # Now join together the path and the arguments once again
17305     if test "x$arguments" != xEOL; then
17306       new_complete="$new_path ${arguments% *}"
17307     else
17308       new_complete="$new_path"
17309     fi
17310 
17311     if test "x$complete" != "x$new_complete"; then
17312       FOUND_MAKE="$new_complete"
17313       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17314 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17315     fi
17316   fi
17317 
17318         fi
17319       fi
17320     fi
17321   fi
17322 
17323     fi
17324 
17325     if test "x$FOUND_MAKE" = x; then
17326       if test "x$TOOLCHAIN_PATH" != x; then
17327         # We have a toolchain path, check that as well before giving up.
17328         OLD_PATH=$PATH
17329         PATH=$TOOLCHAIN_PATH:$PATH
17330         for ac_prog in gmake
17331 do
17332   # Extract the first word of "$ac_prog", so it can be a program name with args.
17333 set dummy $ac_prog; ac_word=$2
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17335 $as_echo_n "checking for $ac_word... " >&6; }
17336 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
17337   $as_echo_n "(cached) " >&6
17338 else
17339   case $CHECK_TOOLSDIR_GMAKE in
17340   [\\/]* | ?:[\\/]*)
17341   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
17342   ;;
17343   *)
17344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17345 for as_dir in $PATH
17346 do
17347   IFS=$as_save_IFS
17348   test -z "$as_dir" && as_dir=.
17349     for ac_exec_ext in '' $ac_executable_extensions; do
17350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17351     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
17352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17353     break 2
17354   fi
17355 done
17356   done
17357 IFS=$as_save_IFS
17358 
17359   ;;
17360 esac
17361 fi
17362 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
17363 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
17364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
17365 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
17366 else
17367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17368 $as_echo "no" >&6; }
17369 fi
17370 
17371 
17372   test -n "$CHECK_TOOLSDIR_GMAKE" && break
17373 done
17374 
17375 
17376   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
17377   DESCRIPTION="gmake in tools-dir"
17378 
17379   # On Cygwin, we require a newer version of make than on other platforms
17380   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17381     MAKE_VERSION_EXPR="-e 4\."
17382     MAKE_REQUIRED_VERSION="4.0"
17383    else
17384     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17385     MAKE_REQUIRED_VERSION="3.81"
17386   fi
17387 
17388   if test "x$MAKE_CANDIDATE" != x; then
17389     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17390 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17391     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17392     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17393     if test "x$IS_GNU_MAKE" = x; then
17394       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17395 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17396     else
17397       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17398       if test "x$IS_MODERN_MAKE" = x; then
17399         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
17400 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
17401       else
17402         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17403           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17404             MAKE_EXPECTED_ENV='cygwin'
17405           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17406             MAKE_EXPECTED_ENV='msys'
17407           else
17408             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17409           fi
17410           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17411           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17412         else
17413           # Not relevant for non-Windows
17414           IS_MAKE_CORRECT_ENV=true
17415         fi
17416         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17417           { $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
17418 $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;}
17419         else
17420           FOUND_MAKE=$MAKE_CANDIDATE
17421 
17422   # Only process if variable expands to non-empty
17423 
17424   if test "x$FOUND_MAKE" != x; then
17425     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17426 
17427   # First separate the path from the arguments. This will split at the first
17428   # space.
17429   complete="$FOUND_MAKE"
17430   path="${complete%% *}"
17431   tmp="$complete EOL"
17432   arguments="${tmp#* }"
17433 
17434   # Input might be given as Windows format, start by converting to
17435   # unix format.
17436   new_path=`$CYGPATH -u "$path"`
17437 
17438   # Now try to locate executable using which
17439   new_path=`$WHICH "$new_path" 2> /dev/null`
17440   # bat and cmd files are not always considered executable in cygwin causing which
17441   # to not find them
17442   if test "x$new_path" = x \
17443       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17444       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17445     new_path=`$CYGPATH -u "$path"`
17446   fi
17447   if test "x$new_path" = x; then
17448     # Oops. Which didn't find the executable.
17449     # The splitting of arguments from the executable at a space might have been incorrect,
17450     # since paths with space are more likely in Windows. Give it another try with the whole
17451     # argument.
17452     path="$complete"
17453     arguments="EOL"
17454     new_path=`$CYGPATH -u "$path"`
17455     new_path=`$WHICH "$new_path" 2> /dev/null`
17456     # bat and cmd files are not always considered executable in cygwin causing which
17457     # to not find them
17458     if test "x$new_path" = x \
17459         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17460         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17461       new_path=`$CYGPATH -u "$path"`
17462     fi
17463     if test "x$new_path" = x; then
17464       # It's still not found. Now this is an unrecoverable error.
17465       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17466 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17467       has_space=`$ECHO "$complete" | $GREP " "`
17468       if test "x$has_space" != x; then
17469         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17470 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17471       fi
17472       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17473     fi
17474   fi
17475 
17476   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17477   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17478   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17479   # "foo.exe" is OK but "foo" is an error.
17480   #
17481   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17482   # It is also a way to make sure we got the proper file name for the real test later on.
17483   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17484   if test "x$test_shortpath" = x; then
17485     # Short path failed, file does not exist as specified.
17486     # Try adding .exe or .cmd
17487     if test -f "${new_path}.exe"; then
17488       input_to_shortpath="${new_path}.exe"
17489     elif test -f "${new_path}.cmd"; then
17490       input_to_shortpath="${new_path}.cmd"
17491     else
17492       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17493 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17494       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17495 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17496       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17497     fi
17498   else
17499     input_to_shortpath="$new_path"
17500   fi
17501 
17502   # Call helper function which possibly converts this using DOS-style short mode.
17503   # If so, the updated path is stored in $new_path.
17504   new_path="$input_to_shortpath"
17505 
17506   input_path="$input_to_shortpath"
17507   # Check if we need to convert this using DOS-style short mode. If the path
17508   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17509   # take no chances and rewrite it.
17510   # Note: m4 eats our [], so we need to use [ and ] instead.
17511   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17512   if test "x$has_forbidden_chars" != x; then
17513     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17514     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17515     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17516     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17517       # Going to short mode and back again did indeed matter. Since short mode is
17518       # case insensitive, let's make it lowercase to improve readability.
17519       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17520       # Now convert it back to Unix-style (cygpath)
17521       input_path=`$CYGPATH -u "$shortmode_path"`
17522       new_path="$input_path"
17523     fi
17524   fi
17525 
17526   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17527   if test "x$test_cygdrive_prefix" = x; then
17528     # As a simple fix, exclude /usr/bin since it's not a real path.
17529     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17530       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17531       # a path prefixed by /cygdrive for fixpath to work.
17532       new_path="$CYGWIN_ROOT_PATH$input_path"
17533     fi
17534   fi
17535 
17536   # remove trailing .exe if any
17537   new_path="${new_path/%.exe/}"
17538 
17539     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17540 
17541   # First separate the path from the arguments. This will split at the first
17542   # space.
17543   complete="$FOUND_MAKE"
17544   path="${complete%% *}"
17545   tmp="$complete EOL"
17546   arguments="${tmp#* }"
17547 
17548   # Input might be given as Windows format, start by converting to
17549   # unix format.
17550   new_path="$path"
17551 
17552   windows_path="$new_path"
17553   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17554     unix_path=`$CYGPATH -u "$windows_path"`
17555     new_path="$unix_path"
17556   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17557     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17558     new_path="$unix_path"
17559   fi
17560 
17561 
17562   # Now try to locate executable using which
17563   new_path=`$WHICH "$new_path" 2> /dev/null`
17564 
17565   if test "x$new_path" = x; then
17566     # Oops. Which didn't find the executable.
17567     # The splitting of arguments from the executable at a space might have been incorrect,
17568     # since paths with space are more likely in Windows. Give it another try with the whole
17569     # argument.
17570     path="$complete"
17571     arguments="EOL"
17572     new_path="$path"
17573 
17574   windows_path="$new_path"
17575   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17576     unix_path=`$CYGPATH -u "$windows_path"`
17577     new_path="$unix_path"
17578   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17579     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17580     new_path="$unix_path"
17581   fi
17582 
17583 
17584     new_path=`$WHICH "$new_path" 2> /dev/null`
17585     # bat and cmd files are not always considered executable in MSYS causing which
17586     # to not find them
17587     if test "x$new_path" = x \
17588         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17589         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17590       new_path="$path"
17591 
17592   windows_path="$new_path"
17593   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17594     unix_path=`$CYGPATH -u "$windows_path"`
17595     new_path="$unix_path"
17596   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17597     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17598     new_path="$unix_path"
17599   fi
17600 
17601     fi
17602 
17603     if test "x$new_path" = x; then
17604       # It's still not found. Now this is an unrecoverable error.
17605       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17606 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17607       has_space=`$ECHO "$complete" | $GREP " "`
17608       if test "x$has_space" != x; then
17609         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17610 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17611       fi
17612       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17613     fi
17614   fi
17615 
17616   # Now new_path has a complete unix path to the binary
17617   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17618     # Keep paths in /bin as-is, but remove trailing .exe if any
17619     new_path="${new_path/%.exe/}"
17620     # Do not save /bin paths to all_fixpath_prefixes!
17621   else
17622     # Not in mixed or Windows style, start by that.
17623     new_path=`cmd //c echo $new_path`
17624 
17625   input_path="$new_path"
17626   # Check if we need to convert this using DOS-style short mode. If the path
17627   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17628   # take no chances and rewrite it.
17629   # Note: m4 eats our [], so we need to use [ and ] instead.
17630   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17631   if test "x$has_forbidden_chars" != x; then
17632     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17633     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17634   fi
17635 
17636     # Output is in $new_path
17637 
17638   windows_path="$new_path"
17639   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17640     unix_path=`$CYGPATH -u "$windows_path"`
17641     new_path="$unix_path"
17642   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17643     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17644     new_path="$unix_path"
17645   fi
17646 
17647     # remove trailing .exe if any
17648     new_path="${new_path/%.exe/}"
17649 
17650     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17651     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17652   fi
17653 
17654     else
17655       # We're on a unix platform. Hooray! :)
17656       # First separate the path from the arguments. This will split at the first
17657       # space.
17658       complete="$FOUND_MAKE"
17659       path="${complete%% *}"
17660       tmp="$complete EOL"
17661       arguments="${tmp#* }"
17662 
17663       # Cannot rely on the command "which" here since it doesn't always work.
17664       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17665       if test -z "$is_absolute_path"; then
17666         # Path to executable is not absolute. Find it.
17667         IFS_save="$IFS"
17668         IFS=:
17669         for p in $PATH; do
17670           if test -f "$p/$path" && test -x "$p/$path"; then
17671             new_path="$p/$path"
17672             break
17673           fi
17674         done
17675         IFS="$IFS_save"
17676       else
17677         # This is an absolute path, we can use it without further modifications.
17678         new_path="$path"
17679       fi
17680 
17681       if test "x$new_path" = x; then
17682         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17683 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17684         has_space=`$ECHO "$complete" | $GREP " "`
17685         if test "x$has_space" != x; then
17686           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17687 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17688         fi
17689         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17690       fi
17691     fi
17692 
17693     # Now join together the path and the arguments once again
17694     if test "x$arguments" != xEOL; then
17695       new_complete="$new_path ${arguments% *}"
17696     else
17697       new_complete="$new_path"
17698     fi
17699 
17700     if test "x$complete" != "x$new_complete"; then
17701       FOUND_MAKE="$new_complete"
17702       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17703 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17704     fi
17705   fi
17706 
17707         fi
17708       fi
17709     fi
17710   fi
17711 
17712         if test "x$FOUND_MAKE" = x; then
17713           for ac_prog in make
17714 do
17715   # Extract the first word of "$ac_prog", so it can be a program name with args.
17716 set dummy $ac_prog; ac_word=$2
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17718 $as_echo_n "checking for $ac_word... " >&6; }
17719 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
17720   $as_echo_n "(cached) " >&6
17721 else
17722   case $CHECK_TOOLSDIR_MAKE in
17723   [\\/]* | ?:[\\/]*)
17724   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
17725   ;;
17726   *)
17727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17728 for as_dir in $PATH
17729 do
17730   IFS=$as_save_IFS
17731   test -z "$as_dir" && as_dir=.
17732     for ac_exec_ext in '' $ac_executable_extensions; do
17733   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17734     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
17735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17736     break 2
17737   fi
17738 done
17739   done
17740 IFS=$as_save_IFS
17741 
17742   ;;
17743 esac
17744 fi
17745 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
17746 if test -n "$CHECK_TOOLSDIR_MAKE"; then
17747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
17748 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
17749 else
17750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17751 $as_echo "no" >&6; }
17752 fi
17753 
17754 
17755   test -n "$CHECK_TOOLSDIR_MAKE" && break
17756 done
17757 
17758 
17759   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
17760   DESCRIPTION="make in tools-dir"
17761 
17762   # On Cygwin, we require a newer version of make than on other platforms
17763   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17764     MAKE_VERSION_EXPR="-e 4\."
17765     MAKE_REQUIRED_VERSION="4.0"
17766    else
17767     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17768     MAKE_REQUIRED_VERSION="3.81"
17769   fi
17770 
17771   if test "x$MAKE_CANDIDATE" != x; then
17772     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17773 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17774     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17775     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17776     if test "x$IS_GNU_MAKE" = x; then
17777       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17778 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17779     else
17780       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17781       if test "x$IS_MODERN_MAKE" = x; then
17782         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
17783 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
17784       else
17785         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17786           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17787             MAKE_EXPECTED_ENV='cygwin'
17788           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17789             MAKE_EXPECTED_ENV='msys'
17790           else
17791             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17792           fi
17793           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17794           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17795         else
17796           # Not relevant for non-Windows
17797           IS_MAKE_CORRECT_ENV=true
17798         fi
17799         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17800           { $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
17801 $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;}
17802         else
17803           FOUND_MAKE=$MAKE_CANDIDATE
17804 
17805   # Only process if variable expands to non-empty
17806 
17807   if test "x$FOUND_MAKE" != x; then
17808     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17809 
17810   # First separate the path from the arguments. This will split at the first
17811   # space.
17812   complete="$FOUND_MAKE"
17813   path="${complete%% *}"
17814   tmp="$complete EOL"
17815   arguments="${tmp#* }"
17816 
17817   # Input might be given as Windows format, start by converting to
17818   # unix format.
17819   new_path=`$CYGPATH -u "$path"`
17820 
17821   # Now try to locate executable using which
17822   new_path=`$WHICH "$new_path" 2> /dev/null`
17823   # bat and cmd files are not always considered executable in cygwin causing which
17824   # to not find them
17825   if test "x$new_path" = x \
17826       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17827       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17828     new_path=`$CYGPATH -u "$path"`
17829   fi
17830   if test "x$new_path" = x; then
17831     # Oops. Which didn't find the executable.
17832     # The splitting of arguments from the executable at a space might have been incorrect,
17833     # since paths with space are more likely in Windows. Give it another try with the whole
17834     # argument.
17835     path="$complete"
17836     arguments="EOL"
17837     new_path=`$CYGPATH -u "$path"`
17838     new_path=`$WHICH "$new_path" 2> /dev/null`
17839     # bat and cmd files are not always considered executable in cygwin causing which
17840     # to not find them
17841     if test "x$new_path" = x \
17842         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17843         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17844       new_path=`$CYGPATH -u "$path"`
17845     fi
17846     if test "x$new_path" = x; then
17847       # It's still not found. Now this is an unrecoverable error.
17848       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17849 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17850       has_space=`$ECHO "$complete" | $GREP " "`
17851       if test "x$has_space" != x; then
17852         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17853 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17854       fi
17855       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17856     fi
17857   fi
17858 
17859   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17860   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17861   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17862   # "foo.exe" is OK but "foo" is an error.
17863   #
17864   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17865   # It is also a way to make sure we got the proper file name for the real test later on.
17866   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17867   if test "x$test_shortpath" = x; then
17868     # Short path failed, file does not exist as specified.
17869     # Try adding .exe or .cmd
17870     if test -f "${new_path}.exe"; then
17871       input_to_shortpath="${new_path}.exe"
17872     elif test -f "${new_path}.cmd"; then
17873       input_to_shortpath="${new_path}.cmd"
17874     else
17875       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17876 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17877       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17878 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17879       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17880     fi
17881   else
17882     input_to_shortpath="$new_path"
17883   fi
17884 
17885   # Call helper function which possibly converts this using DOS-style short mode.
17886   # If so, the updated path is stored in $new_path.
17887   new_path="$input_to_shortpath"
17888 
17889   input_path="$input_to_shortpath"
17890   # Check if we need to convert this using DOS-style short mode. If the path
17891   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17892   # take no chances and rewrite it.
17893   # Note: m4 eats our [], so we need to use [ and ] instead.
17894   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17895   if test "x$has_forbidden_chars" != x; then
17896     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17897     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17898     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17899     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17900       # Going to short mode and back again did indeed matter. Since short mode is
17901       # case insensitive, let's make it lowercase to improve readability.
17902       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17903       # Now convert it back to Unix-style (cygpath)
17904       input_path=`$CYGPATH -u "$shortmode_path"`
17905       new_path="$input_path"
17906     fi
17907   fi
17908 
17909   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17910   if test "x$test_cygdrive_prefix" = x; then
17911     # As a simple fix, exclude /usr/bin since it's not a real path.
17912     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17913       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17914       # a path prefixed by /cygdrive for fixpath to work.
17915       new_path="$CYGWIN_ROOT_PATH$input_path"
17916     fi
17917   fi
17918 
17919   # remove trailing .exe if any
17920   new_path="${new_path/%.exe/}"
17921 
17922     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17923 
17924   # First separate the path from the arguments. This will split at the first
17925   # space.
17926   complete="$FOUND_MAKE"
17927   path="${complete%% *}"
17928   tmp="$complete EOL"
17929   arguments="${tmp#* }"
17930 
17931   # Input might be given as Windows format, start by converting to
17932   # unix format.
17933   new_path="$path"
17934 
17935   windows_path="$new_path"
17936   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17937     unix_path=`$CYGPATH -u "$windows_path"`
17938     new_path="$unix_path"
17939   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17940     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17941     new_path="$unix_path"
17942   fi
17943 
17944 
17945   # Now try to locate executable using which
17946   new_path=`$WHICH "$new_path" 2> /dev/null`
17947 
17948   if test "x$new_path" = x; then
17949     # Oops. Which didn't find the executable.
17950     # The splitting of arguments from the executable at a space might have been incorrect,
17951     # since paths with space are more likely in Windows. Give it another try with the whole
17952     # argument.
17953     path="$complete"
17954     arguments="EOL"
17955     new_path="$path"
17956 
17957   windows_path="$new_path"
17958   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17959     unix_path=`$CYGPATH -u "$windows_path"`
17960     new_path="$unix_path"
17961   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17962     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17963     new_path="$unix_path"
17964   fi
17965 
17966 
17967     new_path=`$WHICH "$new_path" 2> /dev/null`
17968     # bat and cmd files are not always considered executable in MSYS causing which
17969     # to not find them
17970     if test "x$new_path" = x \
17971         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17972         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17973       new_path="$path"
17974 
17975   windows_path="$new_path"
17976   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17977     unix_path=`$CYGPATH -u "$windows_path"`
17978     new_path="$unix_path"
17979   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17980     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17981     new_path="$unix_path"
17982   fi
17983 
17984     fi
17985 
17986     if test "x$new_path" = x; then
17987       # It's still not found. Now this is an unrecoverable error.
17988       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17989 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17990       has_space=`$ECHO "$complete" | $GREP " "`
17991       if test "x$has_space" != x; then
17992         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17993 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17994       fi
17995       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17996     fi
17997   fi
17998 
17999   # Now new_path has a complete unix path to the binary
18000   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18001     # Keep paths in /bin as-is, but remove trailing .exe if any
18002     new_path="${new_path/%.exe/}"
18003     # Do not save /bin paths to all_fixpath_prefixes!
18004   else
18005     # Not in mixed or Windows style, start by that.
18006     new_path=`cmd //c echo $new_path`
18007 
18008   input_path="$new_path"
18009   # Check if we need to convert this using DOS-style short mode. If the path
18010   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18011   # take no chances and rewrite it.
18012   # Note: m4 eats our [], so we need to use [ and ] instead.
18013   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18014   if test "x$has_forbidden_chars" != x; then
18015     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18016     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18017   fi
18018 
18019     # Output is in $new_path
18020 
18021   windows_path="$new_path"
18022   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18023     unix_path=`$CYGPATH -u "$windows_path"`
18024     new_path="$unix_path"
18025   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18026     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18027     new_path="$unix_path"
18028   fi
18029 
18030     # remove trailing .exe if any
18031     new_path="${new_path/%.exe/}"
18032 
18033     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18034     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18035   fi
18036 
18037     else
18038       # We're on a unix platform. Hooray! :)
18039       # First separate the path from the arguments. This will split at the first
18040       # space.
18041       complete="$FOUND_MAKE"
18042       path="${complete%% *}"
18043       tmp="$complete EOL"
18044       arguments="${tmp#* }"
18045 
18046       # Cannot rely on the command "which" here since it doesn't always work.
18047       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18048       if test -z "$is_absolute_path"; then
18049         # Path to executable is not absolute. Find it.
18050         IFS_save="$IFS"
18051         IFS=:
18052         for p in $PATH; do
18053           if test -f "$p/$path" && test -x "$p/$path"; then
18054             new_path="$p/$path"
18055             break
18056           fi
18057         done
18058         IFS="$IFS_save"
18059       else
18060         # This is an absolute path, we can use it without further modifications.
18061         new_path="$path"
18062       fi
18063 
18064       if test "x$new_path" = x; then
18065         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18066 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18067         has_space=`$ECHO "$complete" | $GREP " "`
18068         if test "x$has_space" != x; then
18069           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18070 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18071         fi
18072         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18073       fi
18074     fi
18075 
18076     # Now join together the path and the arguments once again
18077     if test "x$arguments" != xEOL; then
18078       new_complete="$new_path ${arguments% *}"
18079     else
18080       new_complete="$new_path"
18081     fi
18082 
18083     if test "x$complete" != "x$new_complete"; then
18084       FOUND_MAKE="$new_complete"
18085       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18086 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18087     fi
18088   fi
18089 
18090         fi
18091       fi
18092     fi
18093   fi
18094 
18095         fi
18096         PATH=$OLD_PATH
18097       fi
18098     fi
18099 
18100     if test "x$FOUND_MAKE" = x; then
18101       as_fn_error $? "Cannot find GNU make $MAKE_REQUIRED_VERSION or newer! Please put it in the path, or add e.g. MAKE=/opt/gmake3.81/make as argument to configure." "$LINENO" 5
18102     fi
18103 
18104   else
18105     # The variable is set, but is it from the command line or the environment?
18106 
18107     # Try to remove the string !MAKE! from our list.
18108     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/}
18109     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18110       # If it failed, the variable was not from the command line. Ignore it,
18111       # but warn the user (except for BASH, which is always set by the calling BASH).
18112       if test "xMAKE" != xBASH; then
18113         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5
18114 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;}
18115       fi
18116       # Try to locate tool using the code snippet
18117 
18118     # Try our hardest to locate a correct version of GNU make
18119     for ac_prog in gmake
18120 do
18121   # Extract the first word of "$ac_prog", so it can be a program name with args.
18122 set dummy $ac_prog; ac_word=$2
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18124 $as_echo_n "checking for $ac_word... " >&6; }
18125 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
18126   $as_echo_n "(cached) " >&6
18127 else
18128   case $CHECK_GMAKE in
18129   [\\/]* | ?:[\\/]*)
18130   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
18131   ;;
18132   *)
18133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18134 for as_dir in $PATH
18135 do
18136   IFS=$as_save_IFS
18137   test -z "$as_dir" && as_dir=.
18138     for ac_exec_ext in '' $ac_executable_extensions; do
18139   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18140     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
18141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18142     break 2
18143   fi
18144 done
18145   done
18146 IFS=$as_save_IFS
18147 
18148   ;;
18149 esac
18150 fi
18151 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
18152 if test -n "$CHECK_GMAKE"; then
18153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
18154 $as_echo "$CHECK_GMAKE" >&6; }
18155 else
18156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18157 $as_echo "no" >&6; }
18158 fi
18159 
18160 
18161   test -n "$CHECK_GMAKE" && break
18162 done
18163 
18164 
18165   MAKE_CANDIDATE=""$CHECK_GMAKE""
18166   DESCRIPTION="gmake in PATH"
18167 
18168   # On Cygwin, we require a newer version of make than on other platforms
18169   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18170     MAKE_VERSION_EXPR="-e 4\."
18171     MAKE_REQUIRED_VERSION="4.0"
18172    else
18173     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18174     MAKE_REQUIRED_VERSION="3.81"
18175   fi
18176 
18177   if test "x$MAKE_CANDIDATE" != x; then
18178     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18179 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18180     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18181     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18182     if test "x$IS_GNU_MAKE" = x; then
18183       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18184 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18185     else
18186       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18187       if test "x$IS_MODERN_MAKE" = x; then
18188         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
18189 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
18190       else
18191         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18192           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18193             MAKE_EXPECTED_ENV='cygwin'
18194           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18195             MAKE_EXPECTED_ENV='msys'
18196           else
18197             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18198           fi
18199           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18200           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18201         else
18202           # Not relevant for non-Windows
18203           IS_MAKE_CORRECT_ENV=true
18204         fi
18205         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18206           { $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
18207 $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;}
18208         else
18209           FOUND_MAKE=$MAKE_CANDIDATE
18210 
18211   # Only process if variable expands to non-empty
18212 
18213   if test "x$FOUND_MAKE" != x; then
18214     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18215 
18216   # First separate the path from the arguments. This will split at the first
18217   # space.
18218   complete="$FOUND_MAKE"
18219   path="${complete%% *}"
18220   tmp="$complete EOL"
18221   arguments="${tmp#* }"
18222 
18223   # Input might be given as Windows format, start by converting to
18224   # unix format.
18225   new_path=`$CYGPATH -u "$path"`
18226 
18227   # Now try to locate executable using which
18228   new_path=`$WHICH "$new_path" 2> /dev/null`
18229   # bat and cmd files are not always considered executable in cygwin causing which
18230   # to not find them
18231   if test "x$new_path" = x \
18232       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18233       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18234     new_path=`$CYGPATH -u "$path"`
18235   fi
18236   if test "x$new_path" = x; then
18237     # Oops. Which didn't find the executable.
18238     # The splitting of arguments from the executable at a space might have been incorrect,
18239     # since paths with space are more likely in Windows. Give it another try with the whole
18240     # argument.
18241     path="$complete"
18242     arguments="EOL"
18243     new_path=`$CYGPATH -u "$path"`
18244     new_path=`$WHICH "$new_path" 2> /dev/null`
18245     # bat and cmd files are not always considered executable in cygwin causing which
18246     # to not find them
18247     if test "x$new_path" = x \
18248         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18249         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18250       new_path=`$CYGPATH -u "$path"`
18251     fi
18252     if test "x$new_path" = x; then
18253       # It's still not found. Now this is an unrecoverable error.
18254       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18255 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18256       has_space=`$ECHO "$complete" | $GREP " "`
18257       if test "x$has_space" != x; then
18258         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18259 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18260       fi
18261       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18262     fi
18263   fi
18264 
18265   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18266   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18267   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18268   # "foo.exe" is OK but "foo" is an error.
18269   #
18270   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18271   # It is also a way to make sure we got the proper file name for the real test later on.
18272   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18273   if test "x$test_shortpath" = x; then
18274     # Short path failed, file does not exist as specified.
18275     # Try adding .exe or .cmd
18276     if test -f "${new_path}.exe"; then
18277       input_to_shortpath="${new_path}.exe"
18278     elif test -f "${new_path}.cmd"; then
18279       input_to_shortpath="${new_path}.cmd"
18280     else
18281       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18282 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18283       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18284 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18285       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18286     fi
18287   else
18288     input_to_shortpath="$new_path"
18289   fi
18290 
18291   # Call helper function which possibly converts this using DOS-style short mode.
18292   # If so, the updated path is stored in $new_path.
18293   new_path="$input_to_shortpath"
18294 
18295   input_path="$input_to_shortpath"
18296   # Check if we need to convert this using DOS-style short mode. If the path
18297   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18298   # take no chances and rewrite it.
18299   # Note: m4 eats our [], so we need to use [ and ] instead.
18300   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18301   if test "x$has_forbidden_chars" != x; then
18302     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18303     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18304     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18305     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18306       # Going to short mode and back again did indeed matter. Since short mode is
18307       # case insensitive, let's make it lowercase to improve readability.
18308       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18309       # Now convert it back to Unix-style (cygpath)
18310       input_path=`$CYGPATH -u "$shortmode_path"`
18311       new_path="$input_path"
18312     fi
18313   fi
18314 
18315   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18316   if test "x$test_cygdrive_prefix" = x; then
18317     # As a simple fix, exclude /usr/bin since it's not a real path.
18318     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18319       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18320       # a path prefixed by /cygdrive for fixpath to work.
18321       new_path="$CYGWIN_ROOT_PATH$input_path"
18322     fi
18323   fi
18324 
18325   # remove trailing .exe if any
18326   new_path="${new_path/%.exe/}"
18327 
18328     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18329 
18330   # First separate the path from the arguments. This will split at the first
18331   # space.
18332   complete="$FOUND_MAKE"
18333   path="${complete%% *}"
18334   tmp="$complete EOL"
18335   arguments="${tmp#* }"
18336 
18337   # Input might be given as Windows format, start by converting to
18338   # unix format.
18339   new_path="$path"
18340 
18341   windows_path="$new_path"
18342   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18343     unix_path=`$CYGPATH -u "$windows_path"`
18344     new_path="$unix_path"
18345   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18346     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18347     new_path="$unix_path"
18348   fi
18349 
18350 
18351   # Now try to locate executable using which
18352   new_path=`$WHICH "$new_path" 2> /dev/null`
18353 
18354   if test "x$new_path" = x; then
18355     # Oops. Which didn't find the executable.
18356     # The splitting of arguments from the executable at a space might have been incorrect,
18357     # since paths with space are more likely in Windows. Give it another try with the whole
18358     # argument.
18359     path="$complete"
18360     arguments="EOL"
18361     new_path="$path"
18362 
18363   windows_path="$new_path"
18364   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18365     unix_path=`$CYGPATH -u "$windows_path"`
18366     new_path="$unix_path"
18367   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18368     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18369     new_path="$unix_path"
18370   fi
18371 
18372 
18373     new_path=`$WHICH "$new_path" 2> /dev/null`
18374     # bat and cmd files are not always considered executable in MSYS causing which
18375     # to not find them
18376     if test "x$new_path" = x \
18377         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18378         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18379       new_path="$path"
18380 
18381   windows_path="$new_path"
18382   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18383     unix_path=`$CYGPATH -u "$windows_path"`
18384     new_path="$unix_path"
18385   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18386     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18387     new_path="$unix_path"
18388   fi
18389 
18390     fi
18391 
18392     if test "x$new_path" = x; then
18393       # It's still not found. Now this is an unrecoverable error.
18394       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18395 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18396       has_space=`$ECHO "$complete" | $GREP " "`
18397       if test "x$has_space" != x; then
18398         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18399 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18400       fi
18401       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18402     fi
18403   fi
18404 
18405   # Now new_path has a complete unix path to the binary
18406   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18407     # Keep paths in /bin as-is, but remove trailing .exe if any
18408     new_path="${new_path/%.exe/}"
18409     # Do not save /bin paths to all_fixpath_prefixes!
18410   else
18411     # Not in mixed or Windows style, start by that.
18412     new_path=`cmd //c echo $new_path`
18413 
18414   input_path="$new_path"
18415   # Check if we need to convert this using DOS-style short mode. If the path
18416   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18417   # take no chances and rewrite it.
18418   # Note: m4 eats our [], so we need to use [ and ] instead.
18419   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18420   if test "x$has_forbidden_chars" != x; then
18421     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18422     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18423   fi
18424 
18425     # Output is in $new_path
18426 
18427   windows_path="$new_path"
18428   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18429     unix_path=`$CYGPATH -u "$windows_path"`
18430     new_path="$unix_path"
18431   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18432     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18433     new_path="$unix_path"
18434   fi
18435 
18436     # remove trailing .exe if any
18437     new_path="${new_path/%.exe/}"
18438 
18439     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18440     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18441   fi
18442 
18443     else
18444       # We're on a unix platform. Hooray! :)
18445       # First separate the path from the arguments. This will split at the first
18446       # space.
18447       complete="$FOUND_MAKE"
18448       path="${complete%% *}"
18449       tmp="$complete EOL"
18450       arguments="${tmp#* }"
18451 
18452       # Cannot rely on the command "which" here since it doesn't always work.
18453       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18454       if test -z "$is_absolute_path"; then
18455         # Path to executable is not absolute. Find it.
18456         IFS_save="$IFS"
18457         IFS=:
18458         for p in $PATH; do
18459           if test -f "$p/$path" && test -x "$p/$path"; then
18460             new_path="$p/$path"
18461             break
18462           fi
18463         done
18464         IFS="$IFS_save"
18465       else
18466         # This is an absolute path, we can use it without further modifications.
18467         new_path="$path"
18468       fi
18469 
18470       if test "x$new_path" = x; then
18471         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18472 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18473         has_space=`$ECHO "$complete" | $GREP " "`
18474         if test "x$has_space" != x; then
18475           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18476 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18477         fi
18478         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18479       fi
18480     fi
18481 
18482     # Now join together the path and the arguments once again
18483     if test "x$arguments" != xEOL; then
18484       new_complete="$new_path ${arguments% *}"
18485     else
18486       new_complete="$new_path"
18487     fi
18488 
18489     if test "x$complete" != "x$new_complete"; then
18490       FOUND_MAKE="$new_complete"
18491       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18492 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18493     fi
18494   fi
18495 
18496         fi
18497       fi
18498     fi
18499   fi
18500 
18501 
18502     if test "x$FOUND_MAKE" = x; then
18503       for ac_prog in make
18504 do
18505   # Extract the first word of "$ac_prog", so it can be a program name with args.
18506 set dummy $ac_prog; ac_word=$2
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18508 $as_echo_n "checking for $ac_word... " >&6; }
18509 if ${ac_cv_path_CHECK_MAKE+:} false; then :
18510   $as_echo_n "(cached) " >&6
18511 else
18512   case $CHECK_MAKE in
18513   [\\/]* | ?:[\\/]*)
18514   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
18515   ;;
18516   *)
18517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18518 for as_dir in $PATH
18519 do
18520   IFS=$as_save_IFS
18521   test -z "$as_dir" && as_dir=.
18522     for ac_exec_ext in '' $ac_executable_extensions; do
18523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18524     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
18525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18526     break 2
18527   fi
18528 done
18529   done
18530 IFS=$as_save_IFS
18531 
18532   ;;
18533 esac
18534 fi
18535 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
18536 if test -n "$CHECK_MAKE"; then
18537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
18538 $as_echo "$CHECK_MAKE" >&6; }
18539 else
18540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18541 $as_echo "no" >&6; }
18542 fi
18543 
18544 
18545   test -n "$CHECK_MAKE" && break
18546 done
18547 
18548 
18549   MAKE_CANDIDATE=""$CHECK_MAKE""
18550   DESCRIPTION="make in PATH"
18551 
18552   # On Cygwin, we require a newer version of make than on other platforms
18553   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18554     MAKE_VERSION_EXPR="-e 4\."
18555     MAKE_REQUIRED_VERSION="4.0"
18556    else
18557     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18558     MAKE_REQUIRED_VERSION="3.81"
18559   fi
18560 
18561   if test "x$MAKE_CANDIDATE" != x; then
18562     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18563 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18564     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18565     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18566     if test "x$IS_GNU_MAKE" = x; then
18567       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18568 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18569     else
18570       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18571       if test "x$IS_MODERN_MAKE" = x; then
18572         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
18573 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
18574       else
18575         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18576           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18577             MAKE_EXPECTED_ENV='cygwin'
18578           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18579             MAKE_EXPECTED_ENV='msys'
18580           else
18581             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18582           fi
18583           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18584           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18585         else
18586           # Not relevant for non-Windows
18587           IS_MAKE_CORRECT_ENV=true
18588         fi
18589         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18590           { $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
18591 $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;}
18592         else
18593           FOUND_MAKE=$MAKE_CANDIDATE
18594 
18595   # Only process if variable expands to non-empty
18596 
18597   if test "x$FOUND_MAKE" != x; then
18598     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18599 
18600   # First separate the path from the arguments. This will split at the first
18601   # space.
18602   complete="$FOUND_MAKE"
18603   path="${complete%% *}"
18604   tmp="$complete EOL"
18605   arguments="${tmp#* }"
18606 
18607   # Input might be given as Windows format, start by converting to
18608   # unix format.
18609   new_path=`$CYGPATH -u "$path"`
18610 
18611   # Now try to locate executable using which
18612   new_path=`$WHICH "$new_path" 2> /dev/null`
18613   # bat and cmd files are not always considered executable in cygwin causing which
18614   # to not find them
18615   if test "x$new_path" = x \
18616       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18617       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18618     new_path=`$CYGPATH -u "$path"`
18619   fi
18620   if test "x$new_path" = x; then
18621     # Oops. Which didn't find the executable.
18622     # The splitting of arguments from the executable at a space might have been incorrect,
18623     # since paths with space are more likely in Windows. Give it another try with the whole
18624     # argument.
18625     path="$complete"
18626     arguments="EOL"
18627     new_path=`$CYGPATH -u "$path"`
18628     new_path=`$WHICH "$new_path" 2> /dev/null`
18629     # bat and cmd files are not always considered executable in cygwin causing which
18630     # to not find them
18631     if test "x$new_path" = x \
18632         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18633         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18634       new_path=`$CYGPATH -u "$path"`
18635     fi
18636     if test "x$new_path" = x; then
18637       # It's still not found. Now this is an unrecoverable error.
18638       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18639 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18640       has_space=`$ECHO "$complete" | $GREP " "`
18641       if test "x$has_space" != x; then
18642         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18643 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18644       fi
18645       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18646     fi
18647   fi
18648 
18649   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18650   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18651   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18652   # "foo.exe" is OK but "foo" is an error.
18653   #
18654   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18655   # It is also a way to make sure we got the proper file name for the real test later on.
18656   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18657   if test "x$test_shortpath" = x; then
18658     # Short path failed, file does not exist as specified.
18659     # Try adding .exe or .cmd
18660     if test -f "${new_path}.exe"; then
18661       input_to_shortpath="${new_path}.exe"
18662     elif test -f "${new_path}.cmd"; then
18663       input_to_shortpath="${new_path}.cmd"
18664     else
18665       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18666 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18667       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18668 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18669       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18670     fi
18671   else
18672     input_to_shortpath="$new_path"
18673   fi
18674 
18675   # Call helper function which possibly converts this using DOS-style short mode.
18676   # If so, the updated path is stored in $new_path.
18677   new_path="$input_to_shortpath"
18678 
18679   input_path="$input_to_shortpath"
18680   # Check if we need to convert this using DOS-style short mode. If the path
18681   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18682   # take no chances and rewrite it.
18683   # Note: m4 eats our [], so we need to use [ and ] instead.
18684   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18685   if test "x$has_forbidden_chars" != x; then
18686     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18687     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18688     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18689     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18690       # Going to short mode and back again did indeed matter. Since short mode is
18691       # case insensitive, let's make it lowercase to improve readability.
18692       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18693       # Now convert it back to Unix-style (cygpath)
18694       input_path=`$CYGPATH -u "$shortmode_path"`
18695       new_path="$input_path"
18696     fi
18697   fi
18698 
18699   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18700   if test "x$test_cygdrive_prefix" = x; then
18701     # As a simple fix, exclude /usr/bin since it's not a real path.
18702     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18703       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18704       # a path prefixed by /cygdrive for fixpath to work.
18705       new_path="$CYGWIN_ROOT_PATH$input_path"
18706     fi
18707   fi
18708 
18709   # remove trailing .exe if any
18710   new_path="${new_path/%.exe/}"
18711 
18712     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18713 
18714   # First separate the path from the arguments. This will split at the first
18715   # space.
18716   complete="$FOUND_MAKE"
18717   path="${complete%% *}"
18718   tmp="$complete EOL"
18719   arguments="${tmp#* }"
18720 
18721   # Input might be given as Windows format, start by converting to
18722   # unix format.
18723   new_path="$path"
18724 
18725   windows_path="$new_path"
18726   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18727     unix_path=`$CYGPATH -u "$windows_path"`
18728     new_path="$unix_path"
18729   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18730     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18731     new_path="$unix_path"
18732   fi
18733 
18734 
18735   # Now try to locate executable using which
18736   new_path=`$WHICH "$new_path" 2> /dev/null`
18737 
18738   if test "x$new_path" = x; then
18739     # Oops. Which didn't find the executable.
18740     # The splitting of arguments from the executable at a space might have been incorrect,
18741     # since paths with space are more likely in Windows. Give it another try with the whole
18742     # argument.
18743     path="$complete"
18744     arguments="EOL"
18745     new_path="$path"
18746 
18747   windows_path="$new_path"
18748   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18749     unix_path=`$CYGPATH -u "$windows_path"`
18750     new_path="$unix_path"
18751   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18752     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18753     new_path="$unix_path"
18754   fi
18755 
18756 
18757     new_path=`$WHICH "$new_path" 2> /dev/null`
18758     # bat and cmd files are not always considered executable in MSYS causing which
18759     # to not find them
18760     if test "x$new_path" = x \
18761         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18762         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18763       new_path="$path"
18764 
18765   windows_path="$new_path"
18766   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18767     unix_path=`$CYGPATH -u "$windows_path"`
18768     new_path="$unix_path"
18769   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18770     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18771     new_path="$unix_path"
18772   fi
18773 
18774     fi
18775 
18776     if test "x$new_path" = x; then
18777       # It's still not found. Now this is an unrecoverable error.
18778       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18779 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18780       has_space=`$ECHO "$complete" | $GREP " "`
18781       if test "x$has_space" != x; then
18782         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18783 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18784       fi
18785       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18786     fi
18787   fi
18788 
18789   # Now new_path has a complete unix path to the binary
18790   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18791     # Keep paths in /bin as-is, but remove trailing .exe if any
18792     new_path="${new_path/%.exe/}"
18793     # Do not save /bin paths to all_fixpath_prefixes!
18794   else
18795     # Not in mixed or Windows style, start by that.
18796     new_path=`cmd //c echo $new_path`
18797 
18798   input_path="$new_path"
18799   # Check if we need to convert this using DOS-style short mode. If the path
18800   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18801   # take no chances and rewrite it.
18802   # Note: m4 eats our [], so we need to use [ and ] instead.
18803   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18804   if test "x$has_forbidden_chars" != x; then
18805     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18806     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18807   fi
18808 
18809     # Output is in $new_path
18810 
18811   windows_path="$new_path"
18812   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18813     unix_path=`$CYGPATH -u "$windows_path"`
18814     new_path="$unix_path"
18815   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18816     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18817     new_path="$unix_path"
18818   fi
18819 
18820     # remove trailing .exe if any
18821     new_path="${new_path/%.exe/}"
18822 
18823     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18824     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18825   fi
18826 
18827     else
18828       # We're on a unix platform. Hooray! :)
18829       # First separate the path from the arguments. This will split at the first
18830       # space.
18831       complete="$FOUND_MAKE"
18832       path="${complete%% *}"
18833       tmp="$complete EOL"
18834       arguments="${tmp#* }"
18835 
18836       # Cannot rely on the command "which" here since it doesn't always work.
18837       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18838       if test -z "$is_absolute_path"; then
18839         # Path to executable is not absolute. Find it.
18840         IFS_save="$IFS"
18841         IFS=:
18842         for p in $PATH; do
18843           if test -f "$p/$path" && test -x "$p/$path"; then
18844             new_path="$p/$path"
18845             break
18846           fi
18847         done
18848         IFS="$IFS_save"
18849       else
18850         # This is an absolute path, we can use it without further modifications.
18851         new_path="$path"
18852       fi
18853 
18854       if test "x$new_path" = x; then
18855         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18856 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18857         has_space=`$ECHO "$complete" | $GREP " "`
18858         if test "x$has_space" != x; then
18859           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18860 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18861         fi
18862         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18863       fi
18864     fi
18865 
18866     # Now join together the path and the arguments once again
18867     if test "x$arguments" != xEOL; then
18868       new_complete="$new_path ${arguments% *}"
18869     else
18870       new_complete="$new_path"
18871     fi
18872 
18873     if test "x$complete" != "x$new_complete"; then
18874       FOUND_MAKE="$new_complete"
18875       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18876 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18877     fi
18878   fi
18879 
18880         fi
18881       fi
18882     fi
18883   fi
18884 
18885     fi
18886 
18887     if test "x$FOUND_MAKE" = x; then
18888       if test "x$TOOLCHAIN_PATH" != x; then
18889         # We have a toolchain path, check that as well before giving up.
18890         OLD_PATH=$PATH
18891         PATH=$TOOLCHAIN_PATH:$PATH
18892         for ac_prog in gmake
18893 do
18894   # Extract the first word of "$ac_prog", so it can be a program name with args.
18895 set dummy $ac_prog; ac_word=$2
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18897 $as_echo_n "checking for $ac_word... " >&6; }
18898 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
18899   $as_echo_n "(cached) " >&6
18900 else
18901   case $CHECK_TOOLSDIR_GMAKE in
18902   [\\/]* | ?:[\\/]*)
18903   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
18904   ;;
18905   *)
18906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18907 for as_dir in $PATH
18908 do
18909   IFS=$as_save_IFS
18910   test -z "$as_dir" && as_dir=.
18911     for ac_exec_ext in '' $ac_executable_extensions; do
18912   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18913     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
18914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18915     break 2
18916   fi
18917 done
18918   done
18919 IFS=$as_save_IFS
18920 
18921   ;;
18922 esac
18923 fi
18924 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
18925 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
18926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
18927 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
18928 else
18929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18930 $as_echo "no" >&6; }
18931 fi
18932 
18933 
18934   test -n "$CHECK_TOOLSDIR_GMAKE" && break
18935 done
18936 
18937 
18938   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
18939   DESCRIPTION="gmake in tools-dir"
18940 
18941   # On Cygwin, we require a newer version of make than on other platforms
18942   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18943     MAKE_VERSION_EXPR="-e 4\."
18944     MAKE_REQUIRED_VERSION="4.0"
18945    else
18946     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18947     MAKE_REQUIRED_VERSION="3.81"
18948   fi
18949 
18950   if test "x$MAKE_CANDIDATE" != x; then
18951     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18952 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18953     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18954     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18955     if test "x$IS_GNU_MAKE" = x; then
18956       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18957 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18958     else
18959       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18960       if test "x$IS_MODERN_MAKE" = x; then
18961         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
18962 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
18963       else
18964         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18965           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18966             MAKE_EXPECTED_ENV='cygwin'
18967           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18968             MAKE_EXPECTED_ENV='msys'
18969           else
18970             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18971           fi
18972           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18973           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18974         else
18975           # Not relevant for non-Windows
18976           IS_MAKE_CORRECT_ENV=true
18977         fi
18978         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18979           { $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
18980 $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;}
18981         else
18982           FOUND_MAKE=$MAKE_CANDIDATE
18983 
18984   # Only process if variable expands to non-empty
18985 
18986   if test "x$FOUND_MAKE" != x; then
18987     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18988 
18989   # First separate the path from the arguments. This will split at the first
18990   # space.
18991   complete="$FOUND_MAKE"
18992   path="${complete%% *}"
18993   tmp="$complete EOL"
18994   arguments="${tmp#* }"
18995 
18996   # Input might be given as Windows format, start by converting to
18997   # unix format.
18998   new_path=`$CYGPATH -u "$path"`
18999 
19000   # Now try to locate executable using which
19001   new_path=`$WHICH "$new_path" 2> /dev/null`
19002   # bat and cmd files are not always considered executable in cygwin causing which
19003   # to not find them
19004   if test "x$new_path" = x \
19005       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19006       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19007     new_path=`$CYGPATH -u "$path"`
19008   fi
19009   if test "x$new_path" = x; then
19010     # Oops. Which didn't find the executable.
19011     # The splitting of arguments from the executable at a space might have been incorrect,
19012     # since paths with space are more likely in Windows. Give it another try with the whole
19013     # argument.
19014     path="$complete"
19015     arguments="EOL"
19016     new_path=`$CYGPATH -u "$path"`
19017     new_path=`$WHICH "$new_path" 2> /dev/null`
19018     # bat and cmd files are not always considered executable in cygwin causing which
19019     # to not find them
19020     if test "x$new_path" = x \
19021         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19022         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19023       new_path=`$CYGPATH -u "$path"`
19024     fi
19025     if test "x$new_path" = x; then
19026       # It's still not found. Now this is an unrecoverable error.
19027       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19028 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19029       has_space=`$ECHO "$complete" | $GREP " "`
19030       if test "x$has_space" != x; then
19031         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19032 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19033       fi
19034       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19035     fi
19036   fi
19037 
19038   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19039   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19040   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19041   # "foo.exe" is OK but "foo" is an error.
19042   #
19043   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19044   # It is also a way to make sure we got the proper file name for the real test later on.
19045   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19046   if test "x$test_shortpath" = x; then
19047     # Short path failed, file does not exist as specified.
19048     # Try adding .exe or .cmd
19049     if test -f "${new_path}.exe"; then
19050       input_to_shortpath="${new_path}.exe"
19051     elif test -f "${new_path}.cmd"; then
19052       input_to_shortpath="${new_path}.cmd"
19053     else
19054       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19055 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19056       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19057 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19058       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19059     fi
19060   else
19061     input_to_shortpath="$new_path"
19062   fi
19063 
19064   # Call helper function which possibly converts this using DOS-style short mode.
19065   # If so, the updated path is stored in $new_path.
19066   new_path="$input_to_shortpath"
19067 
19068   input_path="$input_to_shortpath"
19069   # Check if we need to convert this using DOS-style short mode. If the path
19070   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19071   # take no chances and rewrite it.
19072   # Note: m4 eats our [], so we need to use [ and ] instead.
19073   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19074   if test "x$has_forbidden_chars" != x; then
19075     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19076     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19077     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19078     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19079       # Going to short mode and back again did indeed matter. Since short mode is
19080       # case insensitive, let's make it lowercase to improve readability.
19081       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19082       # Now convert it back to Unix-style (cygpath)
19083       input_path=`$CYGPATH -u "$shortmode_path"`
19084       new_path="$input_path"
19085     fi
19086   fi
19087 
19088   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19089   if test "x$test_cygdrive_prefix" = x; then
19090     # As a simple fix, exclude /usr/bin since it's not a real path.
19091     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19092       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19093       # a path prefixed by /cygdrive for fixpath to work.
19094       new_path="$CYGWIN_ROOT_PATH$input_path"
19095     fi
19096   fi
19097 
19098   # remove trailing .exe if any
19099   new_path="${new_path/%.exe/}"
19100 
19101     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19102 
19103   # First separate the path from the arguments. This will split at the first
19104   # space.
19105   complete="$FOUND_MAKE"
19106   path="${complete%% *}"
19107   tmp="$complete EOL"
19108   arguments="${tmp#* }"
19109 
19110   # Input might be given as Windows format, start by converting to
19111   # unix format.
19112   new_path="$path"
19113 
19114   windows_path="$new_path"
19115   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19116     unix_path=`$CYGPATH -u "$windows_path"`
19117     new_path="$unix_path"
19118   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19119     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19120     new_path="$unix_path"
19121   fi
19122 
19123 
19124   # Now try to locate executable using which
19125   new_path=`$WHICH "$new_path" 2> /dev/null`
19126 
19127   if test "x$new_path" = x; then
19128     # Oops. Which didn't find the executable.
19129     # The splitting of arguments from the executable at a space might have been incorrect,
19130     # since paths with space are more likely in Windows. Give it another try with the whole
19131     # argument.
19132     path="$complete"
19133     arguments="EOL"
19134     new_path="$path"
19135 
19136   windows_path="$new_path"
19137   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19138     unix_path=`$CYGPATH -u "$windows_path"`
19139     new_path="$unix_path"
19140   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19141     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19142     new_path="$unix_path"
19143   fi
19144 
19145 
19146     new_path=`$WHICH "$new_path" 2> /dev/null`
19147     # bat and cmd files are not always considered executable in MSYS causing which
19148     # to not find them
19149     if test "x$new_path" = x \
19150         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19151         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19152       new_path="$path"
19153 
19154   windows_path="$new_path"
19155   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19156     unix_path=`$CYGPATH -u "$windows_path"`
19157     new_path="$unix_path"
19158   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19159     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19160     new_path="$unix_path"
19161   fi
19162 
19163     fi
19164 
19165     if test "x$new_path" = x; then
19166       # It's still not found. Now this is an unrecoverable error.
19167       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19168 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19169       has_space=`$ECHO "$complete" | $GREP " "`
19170       if test "x$has_space" != x; then
19171         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19172 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19173       fi
19174       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19175     fi
19176   fi
19177 
19178   # Now new_path has a complete unix path to the binary
19179   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19180     # Keep paths in /bin as-is, but remove trailing .exe if any
19181     new_path="${new_path/%.exe/}"
19182     # Do not save /bin paths to all_fixpath_prefixes!
19183   else
19184     # Not in mixed or Windows style, start by that.
19185     new_path=`cmd //c echo $new_path`
19186 
19187   input_path="$new_path"
19188   # Check if we need to convert this using DOS-style short mode. If the path
19189   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19190   # take no chances and rewrite it.
19191   # Note: m4 eats our [], so we need to use [ and ] instead.
19192   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19193   if test "x$has_forbidden_chars" != x; then
19194     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19195     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19196   fi
19197 
19198     # Output is in $new_path
19199 
19200   windows_path="$new_path"
19201   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19202     unix_path=`$CYGPATH -u "$windows_path"`
19203     new_path="$unix_path"
19204   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19205     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19206     new_path="$unix_path"
19207   fi
19208 
19209     # remove trailing .exe if any
19210     new_path="${new_path/%.exe/}"
19211 
19212     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19213     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19214   fi
19215 
19216     else
19217       # We're on a unix platform. Hooray! :)
19218       # First separate the path from the arguments. This will split at the first
19219       # space.
19220       complete="$FOUND_MAKE"
19221       path="${complete%% *}"
19222       tmp="$complete EOL"
19223       arguments="${tmp#* }"
19224 
19225       # Cannot rely on the command "which" here since it doesn't always work.
19226       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19227       if test -z "$is_absolute_path"; then
19228         # Path to executable is not absolute. Find it.
19229         IFS_save="$IFS"
19230         IFS=:
19231         for p in $PATH; do
19232           if test -f "$p/$path" && test -x "$p/$path"; then
19233             new_path="$p/$path"
19234             break
19235           fi
19236         done
19237         IFS="$IFS_save"
19238       else
19239         # This is an absolute path, we can use it without further modifications.
19240         new_path="$path"
19241       fi
19242 
19243       if test "x$new_path" = x; then
19244         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19245 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19246         has_space=`$ECHO "$complete" | $GREP " "`
19247         if test "x$has_space" != x; then
19248           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19249 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19250         fi
19251         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19252       fi
19253     fi
19254 
19255     # Now join together the path and the arguments once again
19256     if test "x$arguments" != xEOL; then
19257       new_complete="$new_path ${arguments% *}"
19258     else
19259       new_complete="$new_path"
19260     fi
19261 
19262     if test "x$complete" != "x$new_complete"; then
19263       FOUND_MAKE="$new_complete"
19264       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19265 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19266     fi
19267   fi
19268 
19269         fi
19270       fi
19271     fi
19272   fi
19273 
19274         if test "x$FOUND_MAKE" = x; then
19275           for ac_prog in make
19276 do
19277   # Extract the first word of "$ac_prog", so it can be a program name with args.
19278 set dummy $ac_prog; ac_word=$2
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19280 $as_echo_n "checking for $ac_word... " >&6; }
19281 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
19282   $as_echo_n "(cached) " >&6
19283 else
19284   case $CHECK_TOOLSDIR_MAKE in
19285   [\\/]* | ?:[\\/]*)
19286   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
19287   ;;
19288   *)
19289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19290 for as_dir in $PATH
19291 do
19292   IFS=$as_save_IFS
19293   test -z "$as_dir" && as_dir=.
19294     for ac_exec_ext in '' $ac_executable_extensions; do
19295   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19296     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
19297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19298     break 2
19299   fi
19300 done
19301   done
19302 IFS=$as_save_IFS
19303 
19304   ;;
19305 esac
19306 fi
19307 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
19308 if test -n "$CHECK_TOOLSDIR_MAKE"; then
19309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
19310 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
19311 else
19312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19313 $as_echo "no" >&6; }
19314 fi
19315 
19316 
19317   test -n "$CHECK_TOOLSDIR_MAKE" && break
19318 done
19319 
19320 
19321   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
19322   DESCRIPTION="make in tools-dir"
19323 
19324   # On Cygwin, we require a newer version of make than on other platforms
19325   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19326     MAKE_VERSION_EXPR="-e 4\."
19327     MAKE_REQUIRED_VERSION="4.0"
19328    else
19329     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19330     MAKE_REQUIRED_VERSION="3.81"
19331   fi
19332 
19333   if test "x$MAKE_CANDIDATE" != x; then
19334     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19335 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19336     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19337     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19338     if test "x$IS_GNU_MAKE" = x; then
19339       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19340 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19341     else
19342       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19343       if test "x$IS_MODERN_MAKE" = x; then
19344         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
19345 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
19346       else
19347         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19348           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19349             MAKE_EXPECTED_ENV='cygwin'
19350           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19351             MAKE_EXPECTED_ENV='msys'
19352           else
19353             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19354           fi
19355           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19356           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19357         else
19358           # Not relevant for non-Windows
19359           IS_MAKE_CORRECT_ENV=true
19360         fi
19361         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19362           { $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
19363 $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;}
19364         else
19365           FOUND_MAKE=$MAKE_CANDIDATE
19366 
19367   # Only process if variable expands to non-empty
19368 
19369   if test "x$FOUND_MAKE" != x; then
19370     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19371 
19372   # First separate the path from the arguments. This will split at the first
19373   # space.
19374   complete="$FOUND_MAKE"
19375   path="${complete%% *}"
19376   tmp="$complete EOL"
19377   arguments="${tmp#* }"
19378 
19379   # Input might be given as Windows format, start by converting to
19380   # unix format.
19381   new_path=`$CYGPATH -u "$path"`
19382 
19383   # Now try to locate executable using which
19384   new_path=`$WHICH "$new_path" 2> /dev/null`
19385   # bat and cmd files are not always considered executable in cygwin causing which
19386   # to not find them
19387   if test "x$new_path" = x \
19388       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19389       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19390     new_path=`$CYGPATH -u "$path"`
19391   fi
19392   if test "x$new_path" = x; then
19393     # Oops. Which didn't find the executable.
19394     # The splitting of arguments from the executable at a space might have been incorrect,
19395     # since paths with space are more likely in Windows. Give it another try with the whole
19396     # argument.
19397     path="$complete"
19398     arguments="EOL"
19399     new_path=`$CYGPATH -u "$path"`
19400     new_path=`$WHICH "$new_path" 2> /dev/null`
19401     # bat and cmd files are not always considered executable in cygwin causing which
19402     # to not find them
19403     if test "x$new_path" = x \
19404         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19405         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19406       new_path=`$CYGPATH -u "$path"`
19407     fi
19408     if test "x$new_path" = x; then
19409       # It's still not found. Now this is an unrecoverable error.
19410       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19411 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19412       has_space=`$ECHO "$complete" | $GREP " "`
19413       if test "x$has_space" != x; then
19414         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19415 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19416       fi
19417       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19418     fi
19419   fi
19420 
19421   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19422   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19423   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19424   # "foo.exe" is OK but "foo" is an error.
19425   #
19426   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19427   # It is also a way to make sure we got the proper file name for the real test later on.
19428   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19429   if test "x$test_shortpath" = x; then
19430     # Short path failed, file does not exist as specified.
19431     # Try adding .exe or .cmd
19432     if test -f "${new_path}.exe"; then
19433       input_to_shortpath="${new_path}.exe"
19434     elif test -f "${new_path}.cmd"; then
19435       input_to_shortpath="${new_path}.cmd"
19436     else
19437       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19438 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19439       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19440 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19441       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19442     fi
19443   else
19444     input_to_shortpath="$new_path"
19445   fi
19446 
19447   # Call helper function which possibly converts this using DOS-style short mode.
19448   # If so, the updated path is stored in $new_path.
19449   new_path="$input_to_shortpath"
19450 
19451   input_path="$input_to_shortpath"
19452   # Check if we need to convert this using DOS-style short mode. If the path
19453   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19454   # take no chances and rewrite it.
19455   # Note: m4 eats our [], so we need to use [ and ] instead.
19456   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19457   if test "x$has_forbidden_chars" != x; then
19458     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19459     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19460     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19461     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19462       # Going to short mode and back again did indeed matter. Since short mode is
19463       # case insensitive, let's make it lowercase to improve readability.
19464       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19465       # Now convert it back to Unix-style (cygpath)
19466       input_path=`$CYGPATH -u "$shortmode_path"`
19467       new_path="$input_path"
19468     fi
19469   fi
19470 
19471   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19472   if test "x$test_cygdrive_prefix" = x; then
19473     # As a simple fix, exclude /usr/bin since it's not a real path.
19474     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19475       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19476       # a path prefixed by /cygdrive for fixpath to work.
19477       new_path="$CYGWIN_ROOT_PATH$input_path"
19478     fi
19479   fi
19480 
19481   # remove trailing .exe if any
19482   new_path="${new_path/%.exe/}"
19483 
19484     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19485 
19486   # First separate the path from the arguments. This will split at the first
19487   # space.
19488   complete="$FOUND_MAKE"
19489   path="${complete%% *}"
19490   tmp="$complete EOL"
19491   arguments="${tmp#* }"
19492 
19493   # Input might be given as Windows format, start by converting to
19494   # unix format.
19495   new_path="$path"
19496 
19497   windows_path="$new_path"
19498   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19499     unix_path=`$CYGPATH -u "$windows_path"`
19500     new_path="$unix_path"
19501   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19502     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19503     new_path="$unix_path"
19504   fi
19505 
19506 
19507   # Now try to locate executable using which
19508   new_path=`$WHICH "$new_path" 2> /dev/null`
19509 
19510   if test "x$new_path" = x; then
19511     # Oops. Which didn't find the executable.
19512     # The splitting of arguments from the executable at a space might have been incorrect,
19513     # since paths with space are more likely in Windows. Give it another try with the whole
19514     # argument.
19515     path="$complete"
19516     arguments="EOL"
19517     new_path="$path"
19518 
19519   windows_path="$new_path"
19520   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19521     unix_path=`$CYGPATH -u "$windows_path"`
19522     new_path="$unix_path"
19523   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19524     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19525     new_path="$unix_path"
19526   fi
19527 
19528 
19529     new_path=`$WHICH "$new_path" 2> /dev/null`
19530     # bat and cmd files are not always considered executable in MSYS causing which
19531     # to not find them
19532     if test "x$new_path" = x \
19533         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19534         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19535       new_path="$path"
19536 
19537   windows_path="$new_path"
19538   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19539     unix_path=`$CYGPATH -u "$windows_path"`
19540     new_path="$unix_path"
19541   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19542     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19543     new_path="$unix_path"
19544   fi
19545 
19546     fi
19547 
19548     if test "x$new_path" = x; then
19549       # It's still not found. Now this is an unrecoverable error.
19550       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19551 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19552       has_space=`$ECHO "$complete" | $GREP " "`
19553       if test "x$has_space" != x; then
19554         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19555 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19556       fi
19557       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19558     fi
19559   fi
19560 
19561   # Now new_path has a complete unix path to the binary
19562   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19563     # Keep paths in /bin as-is, but remove trailing .exe if any
19564     new_path="${new_path/%.exe/}"
19565     # Do not save /bin paths to all_fixpath_prefixes!
19566   else
19567     # Not in mixed or Windows style, start by that.
19568     new_path=`cmd //c echo $new_path`
19569 
19570   input_path="$new_path"
19571   # Check if we need to convert this using DOS-style short mode. If the path
19572   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19573   # take no chances and rewrite it.
19574   # Note: m4 eats our [], so we need to use [ and ] instead.
19575   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19576   if test "x$has_forbidden_chars" != x; then
19577     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19578     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19579   fi
19580 
19581     # Output is in $new_path
19582 
19583   windows_path="$new_path"
19584   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19585     unix_path=`$CYGPATH -u "$windows_path"`
19586     new_path="$unix_path"
19587   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19588     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19589     new_path="$unix_path"
19590   fi
19591 
19592     # remove trailing .exe if any
19593     new_path="${new_path/%.exe/}"
19594 
19595     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19596     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19597   fi
19598 
19599     else
19600       # We're on a unix platform. Hooray! :)
19601       # First separate the path from the arguments. This will split at the first
19602       # space.
19603       complete="$FOUND_MAKE"
19604       path="${complete%% *}"
19605       tmp="$complete EOL"
19606       arguments="${tmp#* }"
19607 
19608       # Cannot rely on the command "which" here since it doesn't always work.
19609       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19610       if test -z "$is_absolute_path"; then
19611         # Path to executable is not absolute. Find it.
19612         IFS_save="$IFS"
19613         IFS=:
19614         for p in $PATH; do
19615           if test -f "$p/$path" && test -x "$p/$path"; then
19616             new_path="$p/$path"
19617             break
19618           fi
19619         done
19620         IFS="$IFS_save"
19621       else
19622         # This is an absolute path, we can use it without further modifications.
19623         new_path="$path"
19624       fi
19625 
19626       if test "x$new_path" = x; then
19627         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19628 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19629         has_space=`$ECHO "$complete" | $GREP " "`
19630         if test "x$has_space" != x; then
19631           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19632 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19633         fi
19634         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19635       fi
19636     fi
19637 
19638     # Now join together the path and the arguments once again
19639     if test "x$arguments" != xEOL; then
19640       new_complete="$new_path ${arguments% *}"
19641     else
19642       new_complete="$new_path"
19643     fi
19644 
19645     if test "x$complete" != "x$new_complete"; then
19646       FOUND_MAKE="$new_complete"
19647       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19648 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19649     fi
19650   fi
19651 
19652         fi
19653       fi
19654     fi
19655   fi
19656 
19657         fi
19658         PATH=$OLD_PATH
19659       fi
19660     fi
19661 
19662     if test "x$FOUND_MAKE" = x; then
19663       as_fn_error $? "Cannot find GNU make $MAKE_REQUIRED_VERSION or newer! Please put it in the path, or add e.g. MAKE=/opt/gmake3.81/make as argument to configure." "$LINENO" 5
19664     fi
19665 
19666     else
19667       # If it succeeded, then it was overridden by the user. We will use it
19668       # for the tool.
19669 
19670       # First remove it from the list of overridden variables, so we can test
19671       # for unknown variables in the end.
19672       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19673 
19674       # Check if we try to supply an empty value
19675       if test "x$MAKE" = x; then
19676         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5
19677 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;}
19678         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
19679 $as_echo_n "checking for MAKE... " >&6; }
19680         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
19681 $as_echo "disabled" >&6; }
19682       else
19683         # Check if the provided tool contains a complete path.
19684         tool_specified="$MAKE"
19685         tool_basename="${tool_specified##*/}"
19686         if test "x$tool_basename" = "x$tool_specified"; then
19687           # A command without a complete path is provided, search $PATH.
19688           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5
19689 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;}
19690           # Extract the first word of "$tool_basename", so it can be a program name with args.
19691 set dummy $tool_basename; ac_word=$2
19692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19693 $as_echo_n "checking for $ac_word... " >&6; }
19694 if ${ac_cv_path_MAKE+:} false; then :
19695   $as_echo_n "(cached) " >&6
19696 else
19697   case $MAKE in
19698   [\\/]* | ?:[\\/]*)
19699   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
19700   ;;
19701   *)
19702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19703 for as_dir in $PATH
19704 do
19705   IFS=$as_save_IFS
19706   test -z "$as_dir" && as_dir=.
19707     for ac_exec_ext in '' $ac_executable_extensions; do
19708   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19709     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
19710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19711     break 2
19712   fi
19713 done
19714   done
19715 IFS=$as_save_IFS
19716 
19717   ;;
19718 esac
19719 fi
19720 MAKE=$ac_cv_path_MAKE
19721 if test -n "$MAKE"; then
19722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
19723 $as_echo "$MAKE" >&6; }
19724 else
19725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19726 $as_echo "no" >&6; }
19727 fi
19728 
19729 
19730           if test "x$MAKE" = x; then
19731             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19732           fi
19733         else
19734           # Otherwise we believe it is a complete path. Use it as it is.
19735           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5
19736 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;}
19737           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
19738 $as_echo_n "checking for MAKE... " >&6; }
19739           if test ! -x "$tool_specified"; then
19740             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19741 $as_echo "not found" >&6; }
19742             as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5
19743           fi
19744           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19745 $as_echo "$tool_specified" >&6; }
19746         fi
19747       fi
19748     fi
19749 
19750     # If MAKE was set by user, verify the version
19751 
19752   MAKE_CANDIDATE=""$MAKE""
19753   DESCRIPTION="user supplied MAKE=$MAKE"
19754 
19755   # On Cygwin, we require a newer version of make than on other platforms
19756   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19757     MAKE_VERSION_EXPR="-e 4\."
19758     MAKE_REQUIRED_VERSION="4.0"
19759    else
19760     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19761     MAKE_REQUIRED_VERSION="3.81"
19762   fi
19763 
19764   if test "x$MAKE_CANDIDATE" != x; then
19765     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19766 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19767     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19768     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19769     if test "x$IS_GNU_MAKE" = x; then
19770       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19771 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19772     else
19773       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19774       if test "x$IS_MODERN_MAKE" = x; then
19775         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
19776 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
19777       else
19778         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19779           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19780             MAKE_EXPECTED_ENV='cygwin'
19781           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19782             MAKE_EXPECTED_ENV='msys'
19783           else
19784             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19785           fi
19786           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19787           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19788         else
19789           # Not relevant for non-Windows
19790           IS_MAKE_CORRECT_ENV=true
19791         fi
19792         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19793           { $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
19794 $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;}
19795         else
19796           FOUND_MAKE=$MAKE_CANDIDATE
19797 
19798   # Only process if variable expands to non-empty
19799 
19800   if test "x$FOUND_MAKE" != x; then
19801     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19802 
19803   # First separate the path from the arguments. This will split at the first
19804   # space.
19805   complete="$FOUND_MAKE"
19806   path="${complete%% *}"
19807   tmp="$complete EOL"
19808   arguments="${tmp#* }"
19809 
19810   # Input might be given as Windows format, start by converting to
19811   # unix format.
19812   new_path=`$CYGPATH -u "$path"`
19813 
19814   # Now try to locate executable using which
19815   new_path=`$WHICH "$new_path" 2> /dev/null`
19816   # bat and cmd files are not always considered executable in cygwin causing which
19817   # to not find them
19818   if test "x$new_path" = x \
19819       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19820       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19821     new_path=`$CYGPATH -u "$path"`
19822   fi
19823   if test "x$new_path" = x; then
19824     # Oops. Which didn't find the executable.
19825     # The splitting of arguments from the executable at a space might have been incorrect,
19826     # since paths with space are more likely in Windows. Give it another try with the whole
19827     # argument.
19828     path="$complete"
19829     arguments="EOL"
19830     new_path=`$CYGPATH -u "$path"`
19831     new_path=`$WHICH "$new_path" 2> /dev/null`
19832     # bat and cmd files are not always considered executable in cygwin causing which
19833     # to not find them
19834     if test "x$new_path" = x \
19835         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19836         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19837       new_path=`$CYGPATH -u "$path"`
19838     fi
19839     if test "x$new_path" = x; then
19840       # It's still not found. Now this is an unrecoverable error.
19841       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19842 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19843       has_space=`$ECHO "$complete" | $GREP " "`
19844       if test "x$has_space" != x; then
19845         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19846 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19847       fi
19848       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19849     fi
19850   fi
19851 
19852   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19853   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19854   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19855   # "foo.exe" is OK but "foo" is an error.
19856   #
19857   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19858   # It is also a way to make sure we got the proper file name for the real test later on.
19859   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19860   if test "x$test_shortpath" = x; then
19861     # Short path failed, file does not exist as specified.
19862     # Try adding .exe or .cmd
19863     if test -f "${new_path}.exe"; then
19864       input_to_shortpath="${new_path}.exe"
19865     elif test -f "${new_path}.cmd"; then
19866       input_to_shortpath="${new_path}.cmd"
19867     else
19868       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19869 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19870       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19871 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19872       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19873     fi
19874   else
19875     input_to_shortpath="$new_path"
19876   fi
19877 
19878   # Call helper function which possibly converts this using DOS-style short mode.
19879   # If so, the updated path is stored in $new_path.
19880   new_path="$input_to_shortpath"
19881 
19882   input_path="$input_to_shortpath"
19883   # Check if we need to convert this using DOS-style short mode. If the path
19884   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19885   # take no chances and rewrite it.
19886   # Note: m4 eats our [], so we need to use [ and ] instead.
19887   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19888   if test "x$has_forbidden_chars" != x; then
19889     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19890     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19891     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19892     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19893       # Going to short mode and back again did indeed matter. Since short mode is
19894       # case insensitive, let's make it lowercase to improve readability.
19895       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19896       # Now convert it back to Unix-style (cygpath)
19897       input_path=`$CYGPATH -u "$shortmode_path"`
19898       new_path="$input_path"
19899     fi
19900   fi
19901 
19902   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19903   if test "x$test_cygdrive_prefix" = x; then
19904     # As a simple fix, exclude /usr/bin since it's not a real path.
19905     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19906       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19907       # a path prefixed by /cygdrive for fixpath to work.
19908       new_path="$CYGWIN_ROOT_PATH$input_path"
19909     fi
19910   fi
19911 
19912   # remove trailing .exe if any
19913   new_path="${new_path/%.exe/}"
19914 
19915     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19916 
19917   # First separate the path from the arguments. This will split at the first
19918   # space.
19919   complete="$FOUND_MAKE"
19920   path="${complete%% *}"
19921   tmp="$complete EOL"
19922   arguments="${tmp#* }"
19923 
19924   # Input might be given as Windows format, start by converting to
19925   # unix format.
19926   new_path="$path"
19927 
19928   windows_path="$new_path"
19929   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19930     unix_path=`$CYGPATH -u "$windows_path"`
19931     new_path="$unix_path"
19932   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19933     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19934     new_path="$unix_path"
19935   fi
19936 
19937 
19938   # Now try to locate executable using which
19939   new_path=`$WHICH "$new_path" 2> /dev/null`
19940 
19941   if test "x$new_path" = x; then
19942     # Oops. Which didn't find the executable.
19943     # The splitting of arguments from the executable at a space might have been incorrect,
19944     # since paths with space are more likely in Windows. Give it another try with the whole
19945     # argument.
19946     path="$complete"
19947     arguments="EOL"
19948     new_path="$path"
19949 
19950   windows_path="$new_path"
19951   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19952     unix_path=`$CYGPATH -u "$windows_path"`
19953     new_path="$unix_path"
19954   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19955     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19956     new_path="$unix_path"
19957   fi
19958 
19959 
19960     new_path=`$WHICH "$new_path" 2> /dev/null`
19961     # bat and cmd files are not always considered executable in MSYS causing which
19962     # to not find them
19963     if test "x$new_path" = x \
19964         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19965         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19966       new_path="$path"
19967 
19968   windows_path="$new_path"
19969   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19970     unix_path=`$CYGPATH -u "$windows_path"`
19971     new_path="$unix_path"
19972   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19973     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19974     new_path="$unix_path"
19975   fi
19976 
19977     fi
19978 
19979     if test "x$new_path" = x; then
19980       # It's still not found. Now this is an unrecoverable error.
19981       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19982 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19983       has_space=`$ECHO "$complete" | $GREP " "`
19984       if test "x$has_space" != x; then
19985         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19986 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19987       fi
19988       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19989     fi
19990   fi
19991 
19992   # Now new_path has a complete unix path to the binary
19993   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19994     # Keep paths in /bin as-is, but remove trailing .exe if any
19995     new_path="${new_path/%.exe/}"
19996     # Do not save /bin paths to all_fixpath_prefixes!
19997   else
19998     # Not in mixed or Windows style, start by that.
19999     new_path=`cmd //c echo $new_path`
20000 
20001   input_path="$new_path"
20002   # Check if we need to convert this using DOS-style short mode. If the path
20003   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20004   # take no chances and rewrite it.
20005   # Note: m4 eats our [], so we need to use [ and ] instead.
20006   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20007   if test "x$has_forbidden_chars" != x; then
20008     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20009     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20010   fi
20011 
20012     # Output is in $new_path
20013 
20014   windows_path="$new_path"
20015   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20016     unix_path=`$CYGPATH -u "$windows_path"`
20017     new_path="$unix_path"
20018   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20019     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20020     new_path="$unix_path"
20021   fi
20022 
20023     # remove trailing .exe if any
20024     new_path="${new_path/%.exe/}"
20025 
20026     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20027     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20028   fi
20029 
20030     else
20031       # We're on a unix platform. Hooray! :)
20032       # First separate the path from the arguments. This will split at the first
20033       # space.
20034       complete="$FOUND_MAKE"
20035       path="${complete%% *}"
20036       tmp="$complete EOL"
20037       arguments="${tmp#* }"
20038 
20039       # Cannot rely on the command "which" here since it doesn't always work.
20040       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20041       if test -z "$is_absolute_path"; then
20042         # Path to executable is not absolute. Find it.
20043         IFS_save="$IFS"
20044         IFS=:
20045         for p in $PATH; do
20046           if test -f "$p/$path" && test -x "$p/$path"; then
20047             new_path="$p/$path"
20048             break
20049           fi
20050         done
20051         IFS="$IFS_save"
20052       else
20053         # This is an absolute path, we can use it without further modifications.
20054         new_path="$path"
20055       fi
20056 
20057       if test "x$new_path" = x; then
20058         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20059 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20060         has_space=`$ECHO "$complete" | $GREP " "`
20061         if test "x$has_space" != x; then
20062           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20063 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20064         fi
20065         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20066       fi
20067     fi
20068 
20069     # Now join together the path and the arguments once again
20070     if test "x$arguments" != xEOL; then
20071       new_complete="$new_path ${arguments% *}"
20072     else
20073       new_complete="$new_path"
20074     fi
20075 
20076     if test "x$complete" != "x$new_complete"; then
20077       FOUND_MAKE="$new_complete"
20078       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20079 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20080     fi
20081   fi
20082 
20083         fi
20084       fi
20085     fi
20086   fi
20087 
20088     if test "x$FOUND_MAKE" = x; then
20089       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5
20090     fi
20091 
20092   fi
20093 
20094 
20095   MAKE=$FOUND_MAKE
20096 
20097   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
20098 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
20099 
20100 
20101   # Check if make supports the output sync option and if so, setup using it.
20102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5
20103 $as_echo_n "checking if make --output-sync is supported... " >&6; }
20104   if $MAKE --version -O > /dev/null 2>&1; then
20105     OUTPUT_SYNC_SUPPORTED=true
20106     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20107 $as_echo "yes" >&6; }
20108     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5
20109 $as_echo_n "checking for output-sync value... " >&6; }
20110 
20111 # Check whether --with-output-sync was given.
20112 if test "${with_output_sync+set}" = set; then :
20113   withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync
20114 fi
20115 
20116     if test "x$OUTPUT_SYNC" = "x"; then
20117       OUTPUT_SYNC=none
20118     fi
20119     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5
20120 $as_echo "$OUTPUT_SYNC" >&6; }
20121     if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then
20122       as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5
20123     fi
20124   else
20125     OUTPUT_SYNC_SUPPORTED=false
20126     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20127 $as_echo "no" >&6; }
20128   fi
20129 
20130 
20131 
20132 
20133 
20134 
20135   # Test if find supports -delete
20136   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
20137 $as_echo_n "checking if find supports -delete... " >&6; }
20138   FIND_DELETE="-delete"
20139 
20140   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
20141 
20142   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
20143 
20144   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
20145   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
20146     # No, it does not.
20147     rm $DELETEDIR/TestIfFindSupportsDelete
20148     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
20149       # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list
20150       FIND_DELETE="-print | xargs rm"
20151     else
20152       FIND_DELETE="-exec rm \{\} \+"
20153     fi
20154     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20155 $as_echo "no" >&6; }
20156   else
20157     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20158 $as_echo "yes" >&6; }
20159   fi
20160   rmdir $DELETEDIR
20161 
20162 
20163 
20164   # These tools might not be installed by default,
20165   # need hint on how to install them.
20166 
20167 
20168 
20169   # Publish this variable in the help.
20170 
20171 
20172   if [ -z "${UNZIP+x}" ]; then
20173     # The variable is not set by user, try to locate tool using the code snippet
20174     for ac_prog in unzip
20175 do
20176   # Extract the first word of "$ac_prog", so it can be a program name with args.
20177 set dummy $ac_prog; ac_word=$2
20178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20179 $as_echo_n "checking for $ac_word... " >&6; }
20180 if ${ac_cv_path_UNZIP+:} false; then :
20181   $as_echo_n "(cached) " >&6
20182 else
20183   case $UNZIP in
20184   [\\/]* | ?:[\\/]*)
20185   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20186   ;;
20187   *)
20188   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20189 for as_dir in $PATH
20190 do
20191   IFS=$as_save_IFS
20192   test -z "$as_dir" && as_dir=.
20193     for ac_exec_ext in '' $ac_executable_extensions; do
20194   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20195     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20197     break 2
20198   fi
20199 done
20200   done
20201 IFS=$as_save_IFS
20202 
20203   ;;
20204 esac
20205 fi
20206 UNZIP=$ac_cv_path_UNZIP
20207 if test -n "$UNZIP"; then
20208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20209 $as_echo "$UNZIP" >&6; }
20210 else
20211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20212 $as_echo "no" >&6; }
20213 fi
20214 
20215 
20216   test -n "$UNZIP" && break
20217 done
20218 
20219   else
20220     # The variable is set, but is it from the command line or the environment?
20221 
20222     # Try to remove the string !UNZIP! from our list.
20223     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
20224     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20225       # If it failed, the variable was not from the command line. Ignore it,
20226       # but warn the user (except for BASH, which is always set by the calling BASH).
20227       if test "xUNZIP" != xBASH; then
20228         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
20229 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
20230       fi
20231       # Try to locate tool using the code snippet
20232       for ac_prog in unzip
20233 do
20234   # Extract the first word of "$ac_prog", so it can be a program name with args.
20235 set dummy $ac_prog; ac_word=$2
20236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20237 $as_echo_n "checking for $ac_word... " >&6; }
20238 if ${ac_cv_path_UNZIP+:} false; then :
20239   $as_echo_n "(cached) " >&6
20240 else
20241   case $UNZIP in
20242   [\\/]* | ?:[\\/]*)
20243   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20244   ;;
20245   *)
20246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20247 for as_dir in $PATH
20248 do
20249   IFS=$as_save_IFS
20250   test -z "$as_dir" && as_dir=.
20251     for ac_exec_ext in '' $ac_executable_extensions; do
20252   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20253     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20255     break 2
20256   fi
20257 done
20258   done
20259 IFS=$as_save_IFS
20260 
20261   ;;
20262 esac
20263 fi
20264 UNZIP=$ac_cv_path_UNZIP
20265 if test -n "$UNZIP"; then
20266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20267 $as_echo "$UNZIP" >&6; }
20268 else
20269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20270 $as_echo "no" >&6; }
20271 fi
20272 
20273 
20274   test -n "$UNZIP" && break
20275 done
20276 
20277     else
20278       # If it succeeded, then it was overridden by the user. We will use it
20279       # for the tool.
20280 
20281       # First remove it from the list of overridden variables, so we can test
20282       # for unknown variables in the end.
20283       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20284 
20285       # Check if we try to supply an empty value
20286       if test "x$UNZIP" = x; then
20287         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5
20288 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;}
20289         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
20290 $as_echo_n "checking for UNZIP... " >&6; }
20291         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20292 $as_echo "disabled" >&6; }
20293       else
20294         # Check if the provided tool contains a complete path.
20295         tool_specified="$UNZIP"
20296         tool_basename="${tool_specified##*/}"
20297         if test "x$tool_basename" = "x$tool_specified"; then
20298           # A command without a complete path is provided, search $PATH.
20299           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
20300 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
20301           # Extract the first word of "$tool_basename", so it can be a program name with args.
20302 set dummy $tool_basename; ac_word=$2
20303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20304 $as_echo_n "checking for $ac_word... " >&6; }
20305 if ${ac_cv_path_UNZIP+:} false; then :
20306   $as_echo_n "(cached) " >&6
20307 else
20308   case $UNZIP in
20309   [\\/]* | ?:[\\/]*)
20310   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20311   ;;
20312   *)
20313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20314 for as_dir in $PATH
20315 do
20316   IFS=$as_save_IFS
20317   test -z "$as_dir" && as_dir=.
20318     for ac_exec_ext in '' $ac_executable_extensions; do
20319   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20320     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20322     break 2
20323   fi
20324 done
20325   done
20326 IFS=$as_save_IFS
20327 
20328   ;;
20329 esac
20330 fi
20331 UNZIP=$ac_cv_path_UNZIP
20332 if test -n "$UNZIP"; then
20333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20334 $as_echo "$UNZIP" >&6; }
20335 else
20336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20337 $as_echo "no" >&6; }
20338 fi
20339 
20340 
20341           if test "x$UNZIP" = x; then
20342             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20343           fi
20344         else
20345           # Otherwise we believe it is a complete path. Use it as it is.
20346           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
20347 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
20348           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
20349 $as_echo_n "checking for UNZIP... " >&6; }
20350           if test ! -x "$tool_specified"; then
20351             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20352 $as_echo "not found" >&6; }
20353             as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
20354           fi
20355           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20356 $as_echo "$tool_specified" >&6; }
20357         fi
20358       fi
20359     fi
20360 
20361   fi
20362 
20363 
20364 
20365   if test "x$UNZIP" = x; then
20366     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
20367   fi
20368 
20369 
20370 
20371 
20372 
20373   # Publish this variable in the help.
20374 
20375 
20376   if [ -z "${ZIP+x}" ]; then
20377     # The variable is not set by user, try to locate tool using the code snippet
20378     for ac_prog in zip
20379 do
20380   # Extract the first word of "$ac_prog", so it can be a program name with args.
20381 set dummy $ac_prog; ac_word=$2
20382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20383 $as_echo_n "checking for $ac_word... " >&6; }
20384 if ${ac_cv_path_ZIP+:} false; then :
20385   $as_echo_n "(cached) " >&6
20386 else
20387   case $ZIP in
20388   [\\/]* | ?:[\\/]*)
20389   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20390   ;;
20391   *)
20392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20393 for as_dir in $PATH
20394 do
20395   IFS=$as_save_IFS
20396   test -z "$as_dir" && as_dir=.
20397     for ac_exec_ext in '' $ac_executable_extensions; do
20398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20399     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20401     break 2
20402   fi
20403 done
20404   done
20405 IFS=$as_save_IFS
20406 
20407   ;;
20408 esac
20409 fi
20410 ZIP=$ac_cv_path_ZIP
20411 if test -n "$ZIP"; then
20412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
20413 $as_echo "$ZIP" >&6; }
20414 else
20415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20416 $as_echo "no" >&6; }
20417 fi
20418 
20419 
20420   test -n "$ZIP" && break
20421 done
20422 
20423   else
20424     # The variable is set, but is it from the command line or the environment?
20425 
20426     # Try to remove the string !ZIP! from our list.
20427     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
20428     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20429       # If it failed, the variable was not from the command line. Ignore it,
20430       # but warn the user (except for BASH, which is always set by the calling BASH).
20431       if test "xZIP" != xBASH; then
20432         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
20433 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
20434       fi
20435       # Try to locate tool using the code snippet
20436       for ac_prog in zip
20437 do
20438   # Extract the first word of "$ac_prog", so it can be a program name with args.
20439 set dummy $ac_prog; ac_word=$2
20440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20441 $as_echo_n "checking for $ac_word... " >&6; }
20442 if ${ac_cv_path_ZIP+:} false; then :
20443   $as_echo_n "(cached) " >&6
20444 else
20445   case $ZIP in
20446   [\\/]* | ?:[\\/]*)
20447   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20448   ;;
20449   *)
20450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20451 for as_dir in $PATH
20452 do
20453   IFS=$as_save_IFS
20454   test -z "$as_dir" && as_dir=.
20455     for ac_exec_ext in '' $ac_executable_extensions; do
20456   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20457     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20459     break 2
20460   fi
20461 done
20462   done
20463 IFS=$as_save_IFS
20464 
20465   ;;
20466 esac
20467 fi
20468 ZIP=$ac_cv_path_ZIP
20469 if test -n "$ZIP"; then
20470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
20471 $as_echo "$ZIP" >&6; }
20472 else
20473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20474 $as_echo "no" >&6; }
20475 fi
20476 
20477 
20478   test -n "$ZIP" && break
20479 done
20480 
20481     else
20482       # If it succeeded, then it was overridden by the user. We will use it
20483       # for the tool.
20484 
20485       # First remove it from the list of overridden variables, so we can test
20486       # for unknown variables in the end.
20487       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20488 
20489       # Check if we try to supply an empty value
20490       if test "x$ZIP" = x; then
20491         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIP= (no value)" >&5
20492 $as_echo "$as_me: Setting user supplied tool ZIP= (no value)" >&6;}
20493         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
20494 $as_echo_n "checking for ZIP... " >&6; }
20495         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20496 $as_echo "disabled" >&6; }
20497       else
20498         # Check if the provided tool contains a complete path.
20499         tool_specified="$ZIP"
20500         tool_basename="${tool_specified##*/}"
20501         if test "x$tool_basename" = "x$tool_specified"; then
20502           # A command without a complete path is provided, search $PATH.
20503           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
20504 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
20505           # Extract the first word of "$tool_basename", so it can be a program name with args.
20506 set dummy $tool_basename; ac_word=$2
20507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20508 $as_echo_n "checking for $ac_word... " >&6; }
20509 if ${ac_cv_path_ZIP+:} false; then :
20510   $as_echo_n "(cached) " >&6
20511 else
20512   case $ZIP in
20513   [\\/]* | ?:[\\/]*)
20514   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20515   ;;
20516   *)
20517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20518 for as_dir in $PATH
20519 do
20520   IFS=$as_save_IFS
20521   test -z "$as_dir" && as_dir=.
20522     for ac_exec_ext in '' $ac_executable_extensions; do
20523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20524     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20526     break 2
20527   fi
20528 done
20529   done
20530 IFS=$as_save_IFS
20531 
20532   ;;
20533 esac
20534 fi
20535 ZIP=$ac_cv_path_ZIP
20536 if test -n "$ZIP"; then
20537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
20538 $as_echo "$ZIP" >&6; }
20539 else
20540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20541 $as_echo "no" >&6; }
20542 fi
20543 
20544 
20545           if test "x$ZIP" = x; then
20546             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20547           fi
20548         else
20549           # Otherwise we believe it is a complete path. Use it as it is.
20550           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
20551 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
20552           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
20553 $as_echo_n "checking for ZIP... " >&6; }
20554           if test ! -x "$tool_specified"; then
20555             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20556 $as_echo "not found" >&6; }
20557             as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
20558           fi
20559           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20560 $as_echo "$tool_specified" >&6; }
20561         fi
20562       fi
20563     fi
20564 
20565   fi
20566 
20567 
20568 
20569   if test "x$ZIP" = x; then
20570     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
20571   fi
20572 
20573 
20574 
20575   # Non-required basic tools
20576 
20577 
20578 
20579   # Publish this variable in the help.
20580 
20581 
20582   if [ -z "${LDD+x}" ]; then
20583     # The variable is not set by user, try to locate tool using the code snippet
20584     for ac_prog in ldd
20585 do
20586   # Extract the first word of "$ac_prog", so it can be a program name with args.
20587 set dummy $ac_prog; ac_word=$2
20588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20589 $as_echo_n "checking for $ac_word... " >&6; }
20590 if ${ac_cv_path_LDD+:} false; then :
20591   $as_echo_n "(cached) " >&6
20592 else
20593   case $LDD in
20594   [\\/]* | ?:[\\/]*)
20595   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
20596   ;;
20597   *)
20598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20599 for as_dir in $PATH
20600 do
20601   IFS=$as_save_IFS
20602   test -z "$as_dir" && as_dir=.
20603     for ac_exec_ext in '' $ac_executable_extensions; do
20604   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20605     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
20606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20607     break 2
20608   fi
20609 done
20610   done
20611 IFS=$as_save_IFS
20612 
20613   ;;
20614 esac
20615 fi
20616 LDD=$ac_cv_path_LDD
20617 if test -n "$LDD"; then
20618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
20619 $as_echo "$LDD" >&6; }
20620 else
20621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20622 $as_echo "no" >&6; }
20623 fi
20624 
20625 
20626   test -n "$LDD" && break
20627 done
20628 
20629   else
20630     # The variable is set, but is it from the command line or the environment?
20631 
20632     # Try to remove the string !LDD! from our list.
20633     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
20634     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20635       # If it failed, the variable was not from the command line. Ignore it,
20636       # but warn the user (except for BASH, which is always set by the calling BASH).
20637       if test "xLDD" != xBASH; then
20638         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
20639 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
20640       fi
20641       # Try to locate tool using the code snippet
20642       for ac_prog in ldd
20643 do
20644   # Extract the first word of "$ac_prog", so it can be a program name with args.
20645 set dummy $ac_prog; ac_word=$2
20646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20647 $as_echo_n "checking for $ac_word... " >&6; }
20648 if ${ac_cv_path_LDD+:} false; then :
20649   $as_echo_n "(cached) " >&6
20650 else
20651   case $LDD in
20652   [\\/]* | ?:[\\/]*)
20653   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
20654   ;;
20655   *)
20656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20657 for as_dir in $PATH
20658 do
20659   IFS=$as_save_IFS
20660   test -z "$as_dir" && as_dir=.
20661     for ac_exec_ext in '' $ac_executable_extensions; do
20662   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20663     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
20664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20665     break 2
20666   fi
20667 done
20668   done
20669 IFS=$as_save_IFS
20670 
20671   ;;
20672 esac
20673 fi
20674 LDD=$ac_cv_path_LDD
20675 if test -n "$LDD"; then
20676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
20677 $as_echo "$LDD" >&6; }
20678 else
20679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20680 $as_echo "no" >&6; }
20681 fi
20682 
20683 
20684   test -n "$LDD" && break
20685 done
20686 
20687     else
20688       # If it succeeded, then it was overridden by the user. We will use it
20689       # for the tool.
20690 
20691       # First remove it from the list of overridden variables, so we can test
20692       # for unknown variables in the end.
20693       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20694 
20695       # Check if we try to supply an empty value
20696       if test "x$LDD" = x; then
20697         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5
20698 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;}
20699         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
20700 $as_echo_n "checking for LDD... " >&6; }
20701         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20702 $as_echo "disabled" >&6; }
20703       else
20704         # Check if the provided tool contains a complete path.
20705         tool_specified="$LDD"
20706         tool_basename="${tool_specified##*/}"
20707         if test "x$tool_basename" = "x$tool_specified"; then
20708           # A command without a complete path is provided, search $PATH.
20709           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
20710 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
20711           # Extract the first word of "$tool_basename", so it can be a program name with args.
20712 set dummy $tool_basename; ac_word=$2
20713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20714 $as_echo_n "checking for $ac_word... " >&6; }
20715 if ${ac_cv_path_LDD+:} false; then :
20716   $as_echo_n "(cached) " >&6
20717 else
20718   case $LDD in
20719   [\\/]* | ?:[\\/]*)
20720   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
20721   ;;
20722   *)
20723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20724 for as_dir in $PATH
20725 do
20726   IFS=$as_save_IFS
20727   test -z "$as_dir" && as_dir=.
20728     for ac_exec_ext in '' $ac_executable_extensions; do
20729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20730     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
20731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20732     break 2
20733   fi
20734 done
20735   done
20736 IFS=$as_save_IFS
20737 
20738   ;;
20739 esac
20740 fi
20741 LDD=$ac_cv_path_LDD
20742 if test -n "$LDD"; then
20743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
20744 $as_echo "$LDD" >&6; }
20745 else
20746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20747 $as_echo "no" >&6; }
20748 fi
20749 
20750 
20751           if test "x$LDD" = x; then
20752             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20753           fi
20754         else
20755           # Otherwise we believe it is a complete path. Use it as it is.
20756           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
20757 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
20758           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
20759 $as_echo_n "checking for LDD... " >&6; }
20760           if test ! -x "$tool_specified"; then
20761             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20762 $as_echo "not found" >&6; }
20763             as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
20764           fi
20765           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20766 $as_echo "$tool_specified" >&6; }
20767         fi
20768       fi
20769     fi
20770 
20771   fi
20772 
20773 
20774   if test "x$LDD" = "x"; then
20775     # List shared lib dependencies is used for
20776     # debug output and checking for forbidden dependencies.
20777     # We can build without it.
20778     LDD="true"
20779   fi
20780 
20781 
20782   # Publish this variable in the help.
20783 
20784 
20785   if [ -z "${OTOOL+x}" ]; then
20786     # The variable is not set by user, try to locate tool using the code snippet
20787     for ac_prog in otool
20788 do
20789   # Extract the first word of "$ac_prog", so it can be a program name with args.
20790 set dummy $ac_prog; ac_word=$2
20791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20792 $as_echo_n "checking for $ac_word... " >&6; }
20793 if ${ac_cv_path_OTOOL+:} false; then :
20794   $as_echo_n "(cached) " >&6
20795 else
20796   case $OTOOL in
20797   [\\/]* | ?:[\\/]*)
20798   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
20799   ;;
20800   *)
20801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20802 for as_dir in $PATH
20803 do
20804   IFS=$as_save_IFS
20805   test -z "$as_dir" && as_dir=.
20806     for ac_exec_ext in '' $ac_executable_extensions; do
20807   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20808     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
20809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20810     break 2
20811   fi
20812 done
20813   done
20814 IFS=$as_save_IFS
20815 
20816   ;;
20817 esac
20818 fi
20819 OTOOL=$ac_cv_path_OTOOL
20820 if test -n "$OTOOL"; then
20821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
20822 $as_echo "$OTOOL" >&6; }
20823 else
20824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20825 $as_echo "no" >&6; }
20826 fi
20827 
20828 
20829   test -n "$OTOOL" && break
20830 done
20831 
20832   else
20833     # The variable is set, but is it from the command line or the environment?
20834 
20835     # Try to remove the string !OTOOL! from our list.
20836     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
20837     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20838       # If it failed, the variable was not from the command line. Ignore it,
20839       # but warn the user (except for BASH, which is always set by the calling BASH).
20840       if test "xOTOOL" != xBASH; then
20841         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
20842 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
20843       fi
20844       # Try to locate tool using the code snippet
20845       for ac_prog in otool
20846 do
20847   # Extract the first word of "$ac_prog", so it can be a program name with args.
20848 set dummy $ac_prog; ac_word=$2
20849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20850 $as_echo_n "checking for $ac_word... " >&6; }
20851 if ${ac_cv_path_OTOOL+:} false; then :
20852   $as_echo_n "(cached) " >&6
20853 else
20854   case $OTOOL in
20855   [\\/]* | ?:[\\/]*)
20856   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
20857   ;;
20858   *)
20859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20860 for as_dir in $PATH
20861 do
20862   IFS=$as_save_IFS
20863   test -z "$as_dir" && as_dir=.
20864     for ac_exec_ext in '' $ac_executable_extensions; do
20865   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20866     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
20867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20868     break 2
20869   fi
20870 done
20871   done
20872 IFS=$as_save_IFS
20873 
20874   ;;
20875 esac
20876 fi
20877 OTOOL=$ac_cv_path_OTOOL
20878 if test -n "$OTOOL"; then
20879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
20880 $as_echo "$OTOOL" >&6; }
20881 else
20882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20883 $as_echo "no" >&6; }
20884 fi
20885 
20886 
20887   test -n "$OTOOL" && break
20888 done
20889 
20890     else
20891       # If it succeeded, then it was overridden by the user. We will use it
20892       # for the tool.
20893 
20894       # First remove it from the list of overridden variables, so we can test
20895       # for unknown variables in the end.
20896       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20897 
20898       # Check if we try to supply an empty value
20899       if test "x$OTOOL" = x; then
20900         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5
20901 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;}
20902         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
20903 $as_echo_n "checking for OTOOL... " >&6; }
20904         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20905 $as_echo "disabled" >&6; }
20906       else
20907         # Check if the provided tool contains a complete path.
20908         tool_specified="$OTOOL"
20909         tool_basename="${tool_specified##*/}"
20910         if test "x$tool_basename" = "x$tool_specified"; then
20911           # A command without a complete path is provided, search $PATH.
20912           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
20913 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
20914           # Extract the first word of "$tool_basename", so it can be a program name with args.
20915 set dummy $tool_basename; ac_word=$2
20916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20917 $as_echo_n "checking for $ac_word... " >&6; }
20918 if ${ac_cv_path_OTOOL+:} false; then :
20919   $as_echo_n "(cached) " >&6
20920 else
20921   case $OTOOL in
20922   [\\/]* | ?:[\\/]*)
20923   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
20924   ;;
20925   *)
20926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20927 for as_dir in $PATH
20928 do
20929   IFS=$as_save_IFS
20930   test -z "$as_dir" && as_dir=.
20931     for ac_exec_ext in '' $ac_executable_extensions; do
20932   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20933     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
20934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20935     break 2
20936   fi
20937 done
20938   done
20939 IFS=$as_save_IFS
20940 
20941   ;;
20942 esac
20943 fi
20944 OTOOL=$ac_cv_path_OTOOL
20945 if test -n "$OTOOL"; then
20946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
20947 $as_echo "$OTOOL" >&6; }
20948 else
20949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20950 $as_echo "no" >&6; }
20951 fi
20952 
20953 
20954           if test "x$OTOOL" = x; then
20955             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20956           fi
20957         else
20958           # Otherwise we believe it is a complete path. Use it as it is.
20959           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
20960 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
20961           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
20962 $as_echo_n "checking for OTOOL... " >&6; }
20963           if test ! -x "$tool_specified"; then
20964             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20965 $as_echo "not found" >&6; }
20966             as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
20967           fi
20968           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20969 $as_echo "$tool_specified" >&6; }
20970         fi
20971       fi
20972     fi
20973 
20974   fi
20975 
20976 
20977   if test "x$OTOOL" = "x"; then
20978     OTOOL="true"
20979   fi
20980 
20981 
20982   # Publish this variable in the help.
20983 
20984 
20985   if [ -z "${READELF+x}" ]; then
20986     # The variable is not set by user, try to locate tool using the code snippet
20987     for ac_prog in greadelf readelf
20988 do
20989   # Extract the first word of "$ac_prog", so it can be a program name with args.
20990 set dummy $ac_prog; ac_word=$2
20991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20992 $as_echo_n "checking for $ac_word... " >&6; }
20993 if ${ac_cv_path_READELF+:} false; then :
20994   $as_echo_n "(cached) " >&6
20995 else
20996   case $READELF in
20997   [\\/]* | ?:[\\/]*)
20998   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
20999   ;;
21000   *)
21001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21002 for as_dir in $PATH
21003 do
21004   IFS=$as_save_IFS
21005   test -z "$as_dir" && as_dir=.
21006     for ac_exec_ext in '' $ac_executable_extensions; do
21007   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21008     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21010     break 2
21011   fi
21012 done
21013   done
21014 IFS=$as_save_IFS
21015 
21016   ;;
21017 esac
21018 fi
21019 READELF=$ac_cv_path_READELF
21020 if test -n "$READELF"; then
21021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21022 $as_echo "$READELF" >&6; }
21023 else
21024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21025 $as_echo "no" >&6; }
21026 fi
21027 
21028 
21029   test -n "$READELF" && break
21030 done
21031 
21032   else
21033     # The variable is set, but is it from the command line or the environment?
21034 
21035     # Try to remove the string !READELF! from our list.
21036     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
21037     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21038       # If it failed, the variable was not from the command line. Ignore it,
21039       # but warn the user (except for BASH, which is always set by the calling BASH).
21040       if test "xREADELF" != xBASH; then
21041         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
21042 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
21043       fi
21044       # Try to locate tool using the code snippet
21045       for ac_prog in greadelf readelf
21046 do
21047   # Extract the first word of "$ac_prog", so it can be a program name with args.
21048 set dummy $ac_prog; ac_word=$2
21049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21050 $as_echo_n "checking for $ac_word... " >&6; }
21051 if ${ac_cv_path_READELF+:} false; then :
21052   $as_echo_n "(cached) " >&6
21053 else
21054   case $READELF in
21055   [\\/]* | ?:[\\/]*)
21056   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
21057   ;;
21058   *)
21059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21060 for as_dir in $PATH
21061 do
21062   IFS=$as_save_IFS
21063   test -z "$as_dir" && as_dir=.
21064     for ac_exec_ext in '' $ac_executable_extensions; do
21065   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21066     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21068     break 2
21069   fi
21070 done
21071   done
21072 IFS=$as_save_IFS
21073 
21074   ;;
21075 esac
21076 fi
21077 READELF=$ac_cv_path_READELF
21078 if test -n "$READELF"; then
21079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21080 $as_echo "$READELF" >&6; }
21081 else
21082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21083 $as_echo "no" >&6; }
21084 fi
21085 
21086 
21087   test -n "$READELF" && break
21088 done
21089 
21090     else
21091       # If it succeeded, then it was overridden by the user. We will use it
21092       # for the tool.
21093 
21094       # First remove it from the list of overridden variables, so we can test
21095       # for unknown variables in the end.
21096       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21097 
21098       # Check if we try to supply an empty value
21099       if test "x$READELF" = x; then
21100         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5
21101 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;}
21102         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
21103 $as_echo_n "checking for READELF... " >&6; }
21104         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21105 $as_echo "disabled" >&6; }
21106       else
21107         # Check if the provided tool contains a complete path.
21108         tool_specified="$READELF"
21109         tool_basename="${tool_specified##*/}"
21110         if test "x$tool_basename" = "x$tool_specified"; then
21111           # A command without a complete path is provided, search $PATH.
21112           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
21113 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
21114           # Extract the first word of "$tool_basename", so it can be a program name with args.
21115 set dummy $tool_basename; ac_word=$2
21116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21117 $as_echo_n "checking for $ac_word... " >&6; }
21118 if ${ac_cv_path_READELF+:} false; then :
21119   $as_echo_n "(cached) " >&6
21120 else
21121   case $READELF in
21122   [\\/]* | ?:[\\/]*)
21123   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
21124   ;;
21125   *)
21126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21127 for as_dir in $PATH
21128 do
21129   IFS=$as_save_IFS
21130   test -z "$as_dir" && as_dir=.
21131     for ac_exec_ext in '' $ac_executable_extensions; do
21132   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21133     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21135     break 2
21136   fi
21137 done
21138   done
21139 IFS=$as_save_IFS
21140 
21141   ;;
21142 esac
21143 fi
21144 READELF=$ac_cv_path_READELF
21145 if test -n "$READELF"; then
21146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21147 $as_echo "$READELF" >&6; }
21148 else
21149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21150 $as_echo "no" >&6; }
21151 fi
21152 
21153 
21154           if test "x$READELF" = x; then
21155             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21156           fi
21157         else
21158           # Otherwise we believe it is a complete path. Use it as it is.
21159           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
21160 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
21161           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
21162 $as_echo_n "checking for READELF... " >&6; }
21163           if test ! -x "$tool_specified"; then
21164             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21165 $as_echo "not found" >&6; }
21166             as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
21167           fi
21168           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21169 $as_echo "$tool_specified" >&6; }
21170         fi
21171       fi
21172     fi
21173 
21174   fi
21175 
21176 
21177 
21178 
21179   # Publish this variable in the help.
21180 
21181 
21182   if [ -z "${HG+x}" ]; then
21183     # The variable is not set by user, try to locate tool using the code snippet
21184     for ac_prog in hg
21185 do
21186   # Extract the first word of "$ac_prog", so it can be a program name with args.
21187 set dummy $ac_prog; ac_word=$2
21188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21189 $as_echo_n "checking for $ac_word... " >&6; }
21190 if ${ac_cv_path_HG+:} false; then :
21191   $as_echo_n "(cached) " >&6
21192 else
21193   case $HG in
21194   [\\/]* | ?:[\\/]*)
21195   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21196   ;;
21197   *)
21198   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21199 for as_dir in $PATH
21200 do
21201   IFS=$as_save_IFS
21202   test -z "$as_dir" && as_dir=.
21203     for ac_exec_ext in '' $ac_executable_extensions; do
21204   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21205     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21207     break 2
21208   fi
21209 done
21210   done
21211 IFS=$as_save_IFS
21212 
21213   ;;
21214 esac
21215 fi
21216 HG=$ac_cv_path_HG
21217 if test -n "$HG"; then
21218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21219 $as_echo "$HG" >&6; }
21220 else
21221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21222 $as_echo "no" >&6; }
21223 fi
21224 
21225 
21226   test -n "$HG" && break
21227 done
21228 
21229   else
21230     # The variable is set, but is it from the command line or the environment?
21231 
21232     # Try to remove the string !HG! from our list.
21233     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
21234     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21235       # If it failed, the variable was not from the command line. Ignore it,
21236       # but warn the user (except for BASH, which is always set by the calling BASH).
21237       if test "xHG" != xBASH; then
21238         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
21239 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
21240       fi
21241       # Try to locate tool using the code snippet
21242       for ac_prog in hg
21243 do
21244   # Extract the first word of "$ac_prog", so it can be a program name with args.
21245 set dummy $ac_prog; ac_word=$2
21246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21247 $as_echo_n "checking for $ac_word... " >&6; }
21248 if ${ac_cv_path_HG+:} false; then :
21249   $as_echo_n "(cached) " >&6
21250 else
21251   case $HG in
21252   [\\/]* | ?:[\\/]*)
21253   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21254   ;;
21255   *)
21256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21257 for as_dir in $PATH
21258 do
21259   IFS=$as_save_IFS
21260   test -z "$as_dir" && as_dir=.
21261     for ac_exec_ext in '' $ac_executable_extensions; do
21262   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21263     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21265     break 2
21266   fi
21267 done
21268   done
21269 IFS=$as_save_IFS
21270 
21271   ;;
21272 esac
21273 fi
21274 HG=$ac_cv_path_HG
21275 if test -n "$HG"; then
21276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21277 $as_echo "$HG" >&6; }
21278 else
21279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21280 $as_echo "no" >&6; }
21281 fi
21282 
21283 
21284   test -n "$HG" && break
21285 done
21286 
21287     else
21288       # If it succeeded, then it was overridden by the user. We will use it
21289       # for the tool.
21290 
21291       # First remove it from the list of overridden variables, so we can test
21292       # for unknown variables in the end.
21293       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21294 
21295       # Check if we try to supply an empty value
21296       if test "x$HG" = x; then
21297         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5
21298 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;}
21299         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
21300 $as_echo_n "checking for HG... " >&6; }
21301         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21302 $as_echo "disabled" >&6; }
21303       else
21304         # Check if the provided tool contains a complete path.
21305         tool_specified="$HG"
21306         tool_basename="${tool_specified##*/}"
21307         if test "x$tool_basename" = "x$tool_specified"; then
21308           # A command without a complete path is provided, search $PATH.
21309           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
21310 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
21311           # Extract the first word of "$tool_basename", so it can be a program name with args.
21312 set dummy $tool_basename; ac_word=$2
21313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21314 $as_echo_n "checking for $ac_word... " >&6; }
21315 if ${ac_cv_path_HG+:} false; then :
21316   $as_echo_n "(cached) " >&6
21317 else
21318   case $HG in
21319   [\\/]* | ?:[\\/]*)
21320   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21321   ;;
21322   *)
21323   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21324 for as_dir in $PATH
21325 do
21326   IFS=$as_save_IFS
21327   test -z "$as_dir" && as_dir=.
21328     for ac_exec_ext in '' $ac_executable_extensions; do
21329   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21330     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21332     break 2
21333   fi
21334 done
21335   done
21336 IFS=$as_save_IFS
21337 
21338   ;;
21339 esac
21340 fi
21341 HG=$ac_cv_path_HG
21342 if test -n "$HG"; then
21343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21344 $as_echo "$HG" >&6; }
21345 else
21346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21347 $as_echo "no" >&6; }
21348 fi
21349 
21350 
21351           if test "x$HG" = x; then
21352             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21353           fi
21354         else
21355           # Otherwise we believe it is a complete path. Use it as it is.
21356           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
21357 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
21358           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
21359 $as_echo_n "checking for HG... " >&6; }
21360           if test ! -x "$tool_specified"; then
21361             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21362 $as_echo "not found" >&6; }
21363             as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
21364           fi
21365           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21366 $as_echo "$tool_specified" >&6; }
21367         fi
21368       fi
21369     fi
21370 
21371   fi
21372 
21373 
21374 
21375 
21376   # Publish this variable in the help.
21377 
21378 
21379   if [ -z "${STAT+x}" ]; then
21380     # The variable is not set by user, try to locate tool using the code snippet
21381     for ac_prog in stat
21382 do
21383   # Extract the first word of "$ac_prog", so it can be a program name with args.
21384 set dummy $ac_prog; ac_word=$2
21385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21386 $as_echo_n "checking for $ac_word... " >&6; }
21387 if ${ac_cv_path_STAT+:} false; then :
21388   $as_echo_n "(cached) " >&6
21389 else
21390   case $STAT in
21391   [\\/]* | ?:[\\/]*)
21392   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
21393   ;;
21394   *)
21395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21396 for as_dir in $PATH
21397 do
21398   IFS=$as_save_IFS
21399   test -z "$as_dir" && as_dir=.
21400     for ac_exec_ext in '' $ac_executable_extensions; do
21401   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21402     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
21403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21404     break 2
21405   fi
21406 done
21407   done
21408 IFS=$as_save_IFS
21409 
21410   ;;
21411 esac
21412 fi
21413 STAT=$ac_cv_path_STAT
21414 if test -n "$STAT"; then
21415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
21416 $as_echo "$STAT" >&6; }
21417 else
21418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21419 $as_echo "no" >&6; }
21420 fi
21421 
21422 
21423   test -n "$STAT" && break
21424 done
21425 
21426   else
21427     # The variable is set, but is it from the command line or the environment?
21428 
21429     # Try to remove the string !STAT! from our list.
21430     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
21431     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21432       # If it failed, the variable was not from the command line. Ignore it,
21433       # but warn the user (except for BASH, which is always set by the calling BASH).
21434       if test "xSTAT" != xBASH; then
21435         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
21436 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
21437       fi
21438       # Try to locate tool using the code snippet
21439       for ac_prog in stat
21440 do
21441   # Extract the first word of "$ac_prog", so it can be a program name with args.
21442 set dummy $ac_prog; ac_word=$2
21443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21444 $as_echo_n "checking for $ac_word... " >&6; }
21445 if ${ac_cv_path_STAT+:} false; then :
21446   $as_echo_n "(cached) " >&6
21447 else
21448   case $STAT in
21449   [\\/]* | ?:[\\/]*)
21450   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
21451   ;;
21452   *)
21453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21454 for as_dir in $PATH
21455 do
21456   IFS=$as_save_IFS
21457   test -z "$as_dir" && as_dir=.
21458     for ac_exec_ext in '' $ac_executable_extensions; do
21459   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21460     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
21461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21462     break 2
21463   fi
21464 done
21465   done
21466 IFS=$as_save_IFS
21467 
21468   ;;
21469 esac
21470 fi
21471 STAT=$ac_cv_path_STAT
21472 if test -n "$STAT"; then
21473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
21474 $as_echo "$STAT" >&6; }
21475 else
21476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21477 $as_echo "no" >&6; }
21478 fi
21479 
21480 
21481   test -n "$STAT" && break
21482 done
21483 
21484     else
21485       # If it succeeded, then it was overridden by the user. We will use it
21486       # for the tool.
21487 
21488       # First remove it from the list of overridden variables, so we can test
21489       # for unknown variables in the end.
21490       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21491 
21492       # Check if we try to supply an empty value
21493       if test "x$STAT" = x; then
21494         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5
21495 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;}
21496         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
21497 $as_echo_n "checking for STAT... " >&6; }
21498         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21499 $as_echo "disabled" >&6; }
21500       else
21501         # Check if the provided tool contains a complete path.
21502         tool_specified="$STAT"
21503         tool_basename="${tool_specified##*/}"
21504         if test "x$tool_basename" = "x$tool_specified"; then
21505           # A command without a complete path is provided, search $PATH.
21506           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
21507 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
21508           # Extract the first word of "$tool_basename", so it can be a program name with args.
21509 set dummy $tool_basename; ac_word=$2
21510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21511 $as_echo_n "checking for $ac_word... " >&6; }
21512 if ${ac_cv_path_STAT+:} false; then :
21513   $as_echo_n "(cached) " >&6
21514 else
21515   case $STAT in
21516   [\\/]* | ?:[\\/]*)
21517   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
21518   ;;
21519   *)
21520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21521 for as_dir in $PATH
21522 do
21523   IFS=$as_save_IFS
21524   test -z "$as_dir" && as_dir=.
21525     for ac_exec_ext in '' $ac_executable_extensions; do
21526   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21527     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
21528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21529     break 2
21530   fi
21531 done
21532   done
21533 IFS=$as_save_IFS
21534 
21535   ;;
21536 esac
21537 fi
21538 STAT=$ac_cv_path_STAT
21539 if test -n "$STAT"; then
21540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
21541 $as_echo "$STAT" >&6; }
21542 else
21543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21544 $as_echo "no" >&6; }
21545 fi
21546 
21547 
21548           if test "x$STAT" = x; then
21549             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21550           fi
21551         else
21552           # Otherwise we believe it is a complete path. Use it as it is.
21553           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
21554 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
21555           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
21556 $as_echo_n "checking for STAT... " >&6; }
21557           if test ! -x "$tool_specified"; then
21558             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21559 $as_echo "not found" >&6; }
21560             as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
21561           fi
21562           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21563 $as_echo "$tool_specified" >&6; }
21564         fi
21565       fi
21566     fi
21567 
21568   fi
21569 
21570 
21571 
21572 
21573   # Publish this variable in the help.
21574 
21575 
21576   if [ -z "${TIME+x}" ]; then
21577     # The variable is not set by user, try to locate tool using the code snippet
21578     for ac_prog in time
21579 do
21580   # Extract the first word of "$ac_prog", so it can be a program name with args.
21581 set dummy $ac_prog; ac_word=$2
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21583 $as_echo_n "checking for $ac_word... " >&6; }
21584 if ${ac_cv_path_TIME+:} false; then :
21585   $as_echo_n "(cached) " >&6
21586 else
21587   case $TIME in
21588   [\\/]* | ?:[\\/]*)
21589   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
21590   ;;
21591   *)
21592   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21593 for as_dir in $PATH
21594 do
21595   IFS=$as_save_IFS
21596   test -z "$as_dir" && as_dir=.
21597     for ac_exec_ext in '' $ac_executable_extensions; do
21598   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21599     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
21600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21601     break 2
21602   fi
21603 done
21604   done
21605 IFS=$as_save_IFS
21606 
21607   ;;
21608 esac
21609 fi
21610 TIME=$ac_cv_path_TIME
21611 if test -n "$TIME"; then
21612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
21613 $as_echo "$TIME" >&6; }
21614 else
21615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21616 $as_echo "no" >&6; }
21617 fi
21618 
21619 
21620   test -n "$TIME" && break
21621 done
21622 
21623   else
21624     # The variable is set, but is it from the command line or the environment?
21625 
21626     # Try to remove the string !TIME! from our list.
21627     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
21628     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21629       # If it failed, the variable was not from the command line. Ignore it,
21630       # but warn the user (except for BASH, which is always set by the calling BASH).
21631       if test "xTIME" != xBASH; then
21632         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
21633 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
21634       fi
21635       # Try to locate tool using the code snippet
21636       for ac_prog in time
21637 do
21638   # Extract the first word of "$ac_prog", so it can be a program name with args.
21639 set dummy $ac_prog; ac_word=$2
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21641 $as_echo_n "checking for $ac_word... " >&6; }
21642 if ${ac_cv_path_TIME+:} false; then :
21643   $as_echo_n "(cached) " >&6
21644 else
21645   case $TIME in
21646   [\\/]* | ?:[\\/]*)
21647   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
21648   ;;
21649   *)
21650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21651 for as_dir in $PATH
21652 do
21653   IFS=$as_save_IFS
21654   test -z "$as_dir" && as_dir=.
21655     for ac_exec_ext in '' $ac_executable_extensions; do
21656   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21657     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
21658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21659     break 2
21660   fi
21661 done
21662   done
21663 IFS=$as_save_IFS
21664 
21665   ;;
21666 esac
21667 fi
21668 TIME=$ac_cv_path_TIME
21669 if test -n "$TIME"; then
21670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
21671 $as_echo "$TIME" >&6; }
21672 else
21673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21674 $as_echo "no" >&6; }
21675 fi
21676 
21677 
21678   test -n "$TIME" && break
21679 done
21680 
21681     else
21682       # If it succeeded, then it was overridden by the user. We will use it
21683       # for the tool.
21684 
21685       # First remove it from the list of overridden variables, so we can test
21686       # for unknown variables in the end.
21687       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21688 
21689       # Check if we try to supply an empty value
21690       if test "x$TIME" = x; then
21691         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5
21692 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;}
21693         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
21694 $as_echo_n "checking for TIME... " >&6; }
21695         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21696 $as_echo "disabled" >&6; }
21697       else
21698         # Check if the provided tool contains a complete path.
21699         tool_specified="$TIME"
21700         tool_basename="${tool_specified##*/}"
21701         if test "x$tool_basename" = "x$tool_specified"; then
21702           # A command without a complete path is provided, search $PATH.
21703           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
21704 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
21705           # Extract the first word of "$tool_basename", so it can be a program name with args.
21706 set dummy $tool_basename; ac_word=$2
21707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21708 $as_echo_n "checking for $ac_word... " >&6; }
21709 if ${ac_cv_path_TIME+:} false; then :
21710   $as_echo_n "(cached) " >&6
21711 else
21712   case $TIME in
21713   [\\/]* | ?:[\\/]*)
21714   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
21715   ;;
21716   *)
21717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21718 for as_dir in $PATH
21719 do
21720   IFS=$as_save_IFS
21721   test -z "$as_dir" && as_dir=.
21722     for ac_exec_ext in '' $ac_executable_extensions; do
21723   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21724     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
21725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21726     break 2
21727   fi
21728 done
21729   done
21730 IFS=$as_save_IFS
21731 
21732   ;;
21733 esac
21734 fi
21735 TIME=$ac_cv_path_TIME
21736 if test -n "$TIME"; then
21737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
21738 $as_echo "$TIME" >&6; }
21739 else
21740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21741 $as_echo "no" >&6; }
21742 fi
21743 
21744 
21745           if test "x$TIME" = x; then
21746             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21747           fi
21748         else
21749           # Otherwise we believe it is a complete path. Use it as it is.
21750           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
21751 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
21752           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
21753 $as_echo_n "checking for TIME... " >&6; }
21754           if test ! -x "$tool_specified"; then
21755             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21756 $as_echo "not found" >&6; }
21757             as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
21758           fi
21759           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21760 $as_echo "$tool_specified" >&6; }
21761         fi
21762       fi
21763     fi
21764 
21765   fi
21766 
21767 
21768 
21769 
21770   # Publish this variable in the help.
21771 
21772 
21773   if [ -z "${PATCH+x}" ]; then
21774     # The variable is not set by user, try to locate tool using the code snippet
21775     for ac_prog in gpatch patch
21776 do
21777   # Extract the first word of "$ac_prog", so it can be a program name with args.
21778 set dummy $ac_prog; ac_word=$2
21779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21780 $as_echo_n "checking for $ac_word... " >&6; }
21781 if ${ac_cv_path_PATCH+:} false; then :
21782   $as_echo_n "(cached) " >&6
21783 else
21784   case $PATCH in
21785   [\\/]* | ?:[\\/]*)
21786   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
21787   ;;
21788   *)
21789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21790 for as_dir in $PATH
21791 do
21792   IFS=$as_save_IFS
21793   test -z "$as_dir" && as_dir=.
21794     for ac_exec_ext in '' $ac_executable_extensions; do
21795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21796     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
21797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21798     break 2
21799   fi
21800 done
21801   done
21802 IFS=$as_save_IFS
21803 
21804   ;;
21805 esac
21806 fi
21807 PATCH=$ac_cv_path_PATCH
21808 if test -n "$PATCH"; then
21809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
21810 $as_echo "$PATCH" >&6; }
21811 else
21812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21813 $as_echo "no" >&6; }
21814 fi
21815 
21816 
21817   test -n "$PATCH" && break
21818 done
21819 
21820   else
21821     # The variable is set, but is it from the command line or the environment?
21822 
21823     # Try to remove the string !PATCH! from our list.
21824     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/}
21825     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21826       # If it failed, the variable was not from the command line. Ignore it,
21827       # but warn the user (except for BASH, which is always set by the calling BASH).
21828       if test "xPATCH" != xBASH; then
21829         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5
21830 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;}
21831       fi
21832       # Try to locate tool using the code snippet
21833       for ac_prog in gpatch patch
21834 do
21835   # Extract the first word of "$ac_prog", so it can be a program name with args.
21836 set dummy $ac_prog; ac_word=$2
21837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21838 $as_echo_n "checking for $ac_word... " >&6; }
21839 if ${ac_cv_path_PATCH+:} false; then :
21840   $as_echo_n "(cached) " >&6
21841 else
21842   case $PATCH in
21843   [\\/]* | ?:[\\/]*)
21844   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
21845   ;;
21846   *)
21847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21848 for as_dir in $PATH
21849 do
21850   IFS=$as_save_IFS
21851   test -z "$as_dir" && as_dir=.
21852     for ac_exec_ext in '' $ac_executable_extensions; do
21853   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21854     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
21855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21856     break 2
21857   fi
21858 done
21859   done
21860 IFS=$as_save_IFS
21861 
21862   ;;
21863 esac
21864 fi
21865 PATCH=$ac_cv_path_PATCH
21866 if test -n "$PATCH"; then
21867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
21868 $as_echo "$PATCH" >&6; }
21869 else
21870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21871 $as_echo "no" >&6; }
21872 fi
21873 
21874 
21875   test -n "$PATCH" && break
21876 done
21877 
21878     else
21879       # If it succeeded, then it was overridden by the user. We will use it
21880       # for the tool.
21881 
21882       # First remove it from the list of overridden variables, so we can test
21883       # for unknown variables in the end.
21884       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21885 
21886       # Check if we try to supply an empty value
21887       if test "x$PATCH" = x; then
21888         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5
21889 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;}
21890         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
21891 $as_echo_n "checking for PATCH... " >&6; }
21892         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21893 $as_echo "disabled" >&6; }
21894       else
21895         # Check if the provided tool contains a complete path.
21896         tool_specified="$PATCH"
21897         tool_basename="${tool_specified##*/}"
21898         if test "x$tool_basename" = "x$tool_specified"; then
21899           # A command without a complete path is provided, search $PATH.
21900           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5
21901 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;}
21902           # Extract the first word of "$tool_basename", so it can be a program name with args.
21903 set dummy $tool_basename; ac_word=$2
21904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21905 $as_echo_n "checking for $ac_word... " >&6; }
21906 if ${ac_cv_path_PATCH+:} false; then :
21907   $as_echo_n "(cached) " >&6
21908 else
21909   case $PATCH in
21910   [\\/]* | ?:[\\/]*)
21911   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
21912   ;;
21913   *)
21914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21915 for as_dir in $PATH
21916 do
21917   IFS=$as_save_IFS
21918   test -z "$as_dir" && as_dir=.
21919     for ac_exec_ext in '' $ac_executable_extensions; do
21920   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21921     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
21922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21923     break 2
21924   fi
21925 done
21926   done
21927 IFS=$as_save_IFS
21928 
21929   ;;
21930 esac
21931 fi
21932 PATCH=$ac_cv_path_PATCH
21933 if test -n "$PATCH"; then
21934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
21935 $as_echo "$PATCH" >&6; }
21936 else
21937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21938 $as_echo "no" >&6; }
21939 fi
21940 
21941 
21942           if test "x$PATCH" = x; then
21943             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21944           fi
21945         else
21946           # Otherwise we believe it is a complete path. Use it as it is.
21947           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5
21948 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;}
21949           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
21950 $as_echo_n "checking for PATCH... " >&6; }
21951           if test ! -x "$tool_specified"; then
21952             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21953 $as_echo "not found" >&6; }
21954             as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5
21955           fi
21956           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21957 $as_echo "$tool_specified" >&6; }
21958         fi
21959       fi
21960     fi
21961 
21962   fi
21963 
21964 
21965   # Check if it's GNU time
21966   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
21967   if test "x$IS_GNU_TIME" != x; then
21968     IS_GNU_TIME=yes
21969   else
21970     IS_GNU_TIME=no
21971   fi
21972 
21973 
21974   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
21975 
21976 
21977 
21978   # Publish this variable in the help.
21979 
21980 
21981   if [ -z "${DSYMUTIL+x}" ]; then
21982     # The variable is not set by user, try to locate tool using the code snippet
21983     for ac_prog in dsymutil
21984 do
21985   # Extract the first word of "$ac_prog", so it can be a program name with args.
21986 set dummy $ac_prog; ac_word=$2
21987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21988 $as_echo_n "checking for $ac_word... " >&6; }
21989 if ${ac_cv_path_DSYMUTIL+:} false; then :
21990   $as_echo_n "(cached) " >&6
21991 else
21992   case $DSYMUTIL in
21993   [\\/]* | ?:[\\/]*)
21994   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
21995   ;;
21996   *)
21997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21998 for as_dir in $PATH
21999 do
22000   IFS=$as_save_IFS
22001   test -z "$as_dir" && as_dir=.
22002     for ac_exec_ext in '' $ac_executable_extensions; do
22003   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22004     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22006     break 2
22007   fi
22008 done
22009   done
22010 IFS=$as_save_IFS
22011 
22012   ;;
22013 esac
22014 fi
22015 DSYMUTIL=$ac_cv_path_DSYMUTIL
22016 if test -n "$DSYMUTIL"; then
22017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22018 $as_echo "$DSYMUTIL" >&6; }
22019 else
22020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22021 $as_echo "no" >&6; }
22022 fi
22023 
22024 
22025   test -n "$DSYMUTIL" && break
22026 done
22027 
22028   else
22029     # The variable is set, but is it from the command line or the environment?
22030 
22031     # Try to remove the string !DSYMUTIL! from our list.
22032     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
22033     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22034       # If it failed, the variable was not from the command line. Ignore it,
22035       # but warn the user (except for BASH, which is always set by the calling BASH).
22036       if test "xDSYMUTIL" != xBASH; then
22037         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
22038 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
22039       fi
22040       # Try to locate tool using the code snippet
22041       for ac_prog in dsymutil
22042 do
22043   # Extract the first word of "$ac_prog", so it can be a program name with args.
22044 set dummy $ac_prog; ac_word=$2
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22046 $as_echo_n "checking for $ac_word... " >&6; }
22047 if ${ac_cv_path_DSYMUTIL+:} false; then :
22048   $as_echo_n "(cached) " >&6
22049 else
22050   case $DSYMUTIL in
22051   [\\/]* | ?:[\\/]*)
22052   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
22053   ;;
22054   *)
22055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22056 for as_dir in $PATH
22057 do
22058   IFS=$as_save_IFS
22059   test -z "$as_dir" && as_dir=.
22060     for ac_exec_ext in '' $ac_executable_extensions; do
22061   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22062     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22064     break 2
22065   fi
22066 done
22067   done
22068 IFS=$as_save_IFS
22069 
22070   ;;
22071 esac
22072 fi
22073 DSYMUTIL=$ac_cv_path_DSYMUTIL
22074 if test -n "$DSYMUTIL"; then
22075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22076 $as_echo "$DSYMUTIL" >&6; }
22077 else
22078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22079 $as_echo "no" >&6; }
22080 fi
22081 
22082 
22083   test -n "$DSYMUTIL" && break
22084 done
22085 
22086     else
22087       # If it succeeded, then it was overridden by the user. We will use it
22088       # for the tool.
22089 
22090       # First remove it from the list of overridden variables, so we can test
22091       # for unknown variables in the end.
22092       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22093 
22094       # Check if we try to supply an empty value
22095       if test "x$DSYMUTIL" = x; then
22096         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5
22097 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;}
22098         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
22099 $as_echo_n "checking for DSYMUTIL... " >&6; }
22100         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22101 $as_echo "disabled" >&6; }
22102       else
22103         # Check if the provided tool contains a complete path.
22104         tool_specified="$DSYMUTIL"
22105         tool_basename="${tool_specified##*/}"
22106         if test "x$tool_basename" = "x$tool_specified"; then
22107           # A command without a complete path is provided, search $PATH.
22108           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
22109 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
22110           # Extract the first word of "$tool_basename", so it can be a program name with args.
22111 set dummy $tool_basename; ac_word=$2
22112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22113 $as_echo_n "checking for $ac_word... " >&6; }
22114 if ${ac_cv_path_DSYMUTIL+:} false; then :
22115   $as_echo_n "(cached) " >&6
22116 else
22117   case $DSYMUTIL in
22118   [\\/]* | ?:[\\/]*)
22119   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
22120   ;;
22121   *)
22122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22123 for as_dir in $PATH
22124 do
22125   IFS=$as_save_IFS
22126   test -z "$as_dir" && as_dir=.
22127     for ac_exec_ext in '' $ac_executable_extensions; do
22128   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22129     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22131     break 2
22132   fi
22133 done
22134   done
22135 IFS=$as_save_IFS
22136 
22137   ;;
22138 esac
22139 fi
22140 DSYMUTIL=$ac_cv_path_DSYMUTIL
22141 if test -n "$DSYMUTIL"; then
22142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22143 $as_echo "$DSYMUTIL" >&6; }
22144 else
22145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22146 $as_echo "no" >&6; }
22147 fi
22148 
22149 
22150           if test "x$DSYMUTIL" = x; then
22151             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22152           fi
22153         else
22154           # Otherwise we believe it is a complete path. Use it as it is.
22155           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
22156 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
22157           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
22158 $as_echo_n "checking for DSYMUTIL... " >&6; }
22159           if test ! -x "$tool_specified"; then
22160             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22161 $as_echo "not found" >&6; }
22162             as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
22163           fi
22164           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22165 $as_echo "$tool_specified" >&6; }
22166         fi
22167       fi
22168     fi
22169 
22170   fi
22171 
22172 
22173 
22174   if test "x$DSYMUTIL" = x; then
22175     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
22176   fi
22177 
22178 
22179 
22180 
22181 
22182   # Publish this variable in the help.
22183 
22184 
22185   if [ -z "${XATTR+x}" ]; then
22186     # The variable is not set by user, try to locate tool using the code snippet
22187     for ac_prog in xattr
22188 do
22189   # Extract the first word of "$ac_prog", so it can be a program name with args.
22190 set dummy $ac_prog; ac_word=$2
22191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22192 $as_echo_n "checking for $ac_word... " >&6; }
22193 if ${ac_cv_path_XATTR+:} false; then :
22194   $as_echo_n "(cached) " >&6
22195 else
22196   case $XATTR in
22197   [\\/]* | ?:[\\/]*)
22198   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
22199   ;;
22200   *)
22201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22202 for as_dir in $PATH
22203 do
22204   IFS=$as_save_IFS
22205   test -z "$as_dir" && as_dir=.
22206     for ac_exec_ext in '' $ac_executable_extensions; do
22207   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22208     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
22209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22210     break 2
22211   fi
22212 done
22213   done
22214 IFS=$as_save_IFS
22215 
22216   ;;
22217 esac
22218 fi
22219 XATTR=$ac_cv_path_XATTR
22220 if test -n "$XATTR"; then
22221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
22222 $as_echo "$XATTR" >&6; }
22223 else
22224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22225 $as_echo "no" >&6; }
22226 fi
22227 
22228 
22229   test -n "$XATTR" && break
22230 done
22231 
22232   else
22233     # The variable is set, but is it from the command line or the environment?
22234 
22235     # Try to remove the string !XATTR! from our list.
22236     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
22237     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22238       # If it failed, the variable was not from the command line. Ignore it,
22239       # but warn the user (except for BASH, which is always set by the calling BASH).
22240       if test "xXATTR" != xBASH; then
22241         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
22242 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
22243       fi
22244       # Try to locate tool using the code snippet
22245       for ac_prog in xattr
22246 do
22247   # Extract the first word of "$ac_prog", so it can be a program name with args.
22248 set dummy $ac_prog; ac_word=$2
22249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22250 $as_echo_n "checking for $ac_word... " >&6; }
22251 if ${ac_cv_path_XATTR+:} false; then :
22252   $as_echo_n "(cached) " >&6
22253 else
22254   case $XATTR in
22255   [\\/]* | ?:[\\/]*)
22256   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
22257   ;;
22258   *)
22259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22260 for as_dir in $PATH
22261 do
22262   IFS=$as_save_IFS
22263   test -z "$as_dir" && as_dir=.
22264     for ac_exec_ext in '' $ac_executable_extensions; do
22265   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22266     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
22267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22268     break 2
22269   fi
22270 done
22271   done
22272 IFS=$as_save_IFS
22273 
22274   ;;
22275 esac
22276 fi
22277 XATTR=$ac_cv_path_XATTR
22278 if test -n "$XATTR"; then
22279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
22280 $as_echo "$XATTR" >&6; }
22281 else
22282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22283 $as_echo "no" >&6; }
22284 fi
22285 
22286 
22287   test -n "$XATTR" && break
22288 done
22289 
22290     else
22291       # If it succeeded, then it was overridden by the user. We will use it
22292       # for the tool.
22293 
22294       # First remove it from the list of overridden variables, so we can test
22295       # for unknown variables in the end.
22296       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22297 
22298       # Check if we try to supply an empty value
22299       if test "x$XATTR" = x; then
22300         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5
22301 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;}
22302         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
22303 $as_echo_n "checking for XATTR... " >&6; }
22304         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22305 $as_echo "disabled" >&6; }
22306       else
22307         # Check if the provided tool contains a complete path.
22308         tool_specified="$XATTR"
22309         tool_basename="${tool_specified##*/}"
22310         if test "x$tool_basename" = "x$tool_specified"; then
22311           # A command without a complete path is provided, search $PATH.
22312           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
22313 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
22314           # Extract the first word of "$tool_basename", so it can be a program name with args.
22315 set dummy $tool_basename; ac_word=$2
22316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22317 $as_echo_n "checking for $ac_word... " >&6; }
22318 if ${ac_cv_path_XATTR+:} false; then :
22319   $as_echo_n "(cached) " >&6
22320 else
22321   case $XATTR in
22322   [\\/]* | ?:[\\/]*)
22323   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
22324   ;;
22325   *)
22326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22327 for as_dir in $PATH
22328 do
22329   IFS=$as_save_IFS
22330   test -z "$as_dir" && as_dir=.
22331     for ac_exec_ext in '' $ac_executable_extensions; do
22332   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22333     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
22334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22335     break 2
22336   fi
22337 done
22338   done
22339 IFS=$as_save_IFS
22340 
22341   ;;
22342 esac
22343 fi
22344 XATTR=$ac_cv_path_XATTR
22345 if test -n "$XATTR"; then
22346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
22347 $as_echo "$XATTR" >&6; }
22348 else
22349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22350 $as_echo "no" >&6; }
22351 fi
22352 
22353 
22354           if test "x$XATTR" = x; then
22355             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22356           fi
22357         else
22358           # Otherwise we believe it is a complete path. Use it as it is.
22359           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
22360 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
22361           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
22362 $as_echo_n "checking for XATTR... " >&6; }
22363           if test ! -x "$tool_specified"; then
22364             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22365 $as_echo "not found" >&6; }
22366             as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
22367           fi
22368           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22369 $as_echo "$tool_specified" >&6; }
22370         fi
22371       fi
22372     fi
22373 
22374   fi
22375 
22376 
22377 
22378   if test "x$XATTR" = x; then
22379     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
22380   fi
22381 
22382 
22383 
22384 
22385   # Publish this variable in the help.
22386 
22387 
22388   if [ -z "${CODESIGN+x}" ]; then
22389     # The variable is not set by user, try to locate tool using the code snippet
22390     for ac_prog in codesign
22391 do
22392   # Extract the first word of "$ac_prog", so it can be a program name with args.
22393 set dummy $ac_prog; ac_word=$2
22394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22395 $as_echo_n "checking for $ac_word... " >&6; }
22396 if ${ac_cv_path_CODESIGN+:} false; then :
22397   $as_echo_n "(cached) " >&6
22398 else
22399   case $CODESIGN in
22400   [\\/]* | ?:[\\/]*)
22401   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
22402   ;;
22403   *)
22404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22405 for as_dir in $PATH
22406 do
22407   IFS=$as_save_IFS
22408   test -z "$as_dir" && as_dir=.
22409     for ac_exec_ext in '' $ac_executable_extensions; do
22410   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22411     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
22412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22413     break 2
22414   fi
22415 done
22416   done
22417 IFS=$as_save_IFS
22418 
22419   ;;
22420 esac
22421 fi
22422 CODESIGN=$ac_cv_path_CODESIGN
22423 if test -n "$CODESIGN"; then
22424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
22425 $as_echo "$CODESIGN" >&6; }
22426 else
22427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22428 $as_echo "no" >&6; }
22429 fi
22430 
22431 
22432   test -n "$CODESIGN" && break
22433 done
22434 
22435   else
22436     # The variable is set, but is it from the command line or the environment?
22437 
22438     # Try to remove the string !CODESIGN! from our list.
22439     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
22440     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22441       # If it failed, the variable was not from the command line. Ignore it,
22442       # but warn the user (except for BASH, which is always set by the calling BASH).
22443       if test "xCODESIGN" != xBASH; then
22444         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
22445 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
22446       fi
22447       # Try to locate tool using the code snippet
22448       for ac_prog in codesign
22449 do
22450   # Extract the first word of "$ac_prog", so it can be a program name with args.
22451 set dummy $ac_prog; ac_word=$2
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22453 $as_echo_n "checking for $ac_word... " >&6; }
22454 if ${ac_cv_path_CODESIGN+:} false; then :
22455   $as_echo_n "(cached) " >&6
22456 else
22457   case $CODESIGN in
22458   [\\/]* | ?:[\\/]*)
22459   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
22460   ;;
22461   *)
22462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22463 for as_dir in $PATH
22464 do
22465   IFS=$as_save_IFS
22466   test -z "$as_dir" && as_dir=.
22467     for ac_exec_ext in '' $ac_executable_extensions; do
22468   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22469     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
22470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22471     break 2
22472   fi
22473 done
22474   done
22475 IFS=$as_save_IFS
22476 
22477   ;;
22478 esac
22479 fi
22480 CODESIGN=$ac_cv_path_CODESIGN
22481 if test -n "$CODESIGN"; then
22482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
22483 $as_echo "$CODESIGN" >&6; }
22484 else
22485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22486 $as_echo "no" >&6; }
22487 fi
22488 
22489 
22490   test -n "$CODESIGN" && break
22491 done
22492 
22493     else
22494       # If it succeeded, then it was overridden by the user. We will use it
22495       # for the tool.
22496 
22497       # First remove it from the list of overridden variables, so we can test
22498       # for unknown variables in the end.
22499       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22500 
22501       # Check if we try to supply an empty value
22502       if test "x$CODESIGN" = x; then
22503         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5
22504 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;}
22505         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
22506 $as_echo_n "checking for CODESIGN... " >&6; }
22507         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22508 $as_echo "disabled" >&6; }
22509       else
22510         # Check if the provided tool contains a complete path.
22511         tool_specified="$CODESIGN"
22512         tool_basename="${tool_specified##*/}"
22513         if test "x$tool_basename" = "x$tool_specified"; then
22514           # A command without a complete path is provided, search $PATH.
22515           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
22516 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
22517           # Extract the first word of "$tool_basename", so it can be a program name with args.
22518 set dummy $tool_basename; ac_word=$2
22519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22520 $as_echo_n "checking for $ac_word... " >&6; }
22521 if ${ac_cv_path_CODESIGN+:} false; then :
22522   $as_echo_n "(cached) " >&6
22523 else
22524   case $CODESIGN in
22525   [\\/]* | ?:[\\/]*)
22526   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
22527   ;;
22528   *)
22529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22530 for as_dir in $PATH
22531 do
22532   IFS=$as_save_IFS
22533   test -z "$as_dir" && as_dir=.
22534     for ac_exec_ext in '' $ac_executable_extensions; do
22535   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22536     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
22537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22538     break 2
22539   fi
22540 done
22541   done
22542 IFS=$as_save_IFS
22543 
22544   ;;
22545 esac
22546 fi
22547 CODESIGN=$ac_cv_path_CODESIGN
22548 if test -n "$CODESIGN"; then
22549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
22550 $as_echo "$CODESIGN" >&6; }
22551 else
22552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22553 $as_echo "no" >&6; }
22554 fi
22555 
22556 
22557           if test "x$CODESIGN" = x; then
22558             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22559           fi
22560         else
22561           # Otherwise we believe it is a complete path. Use it as it is.
22562           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
22563 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
22564           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
22565 $as_echo_n "checking for CODESIGN... " >&6; }
22566           if test ! -x "$tool_specified"; then
22567             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22568 $as_echo "not found" >&6; }
22569             as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
22570           fi
22571           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22572 $as_echo "$tool_specified" >&6; }
22573         fi
22574       fi
22575     fi
22576 
22577   fi
22578 
22579 
22580     if test "x$CODESIGN" != "x"; then
22581       # Verify that the openjdk_codesign certificate is present
22582       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
22583 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
22584       rm -f codesign-testfile
22585       touch codesign-testfile
22586       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
22587       rm -f codesign-testfile
22588       if test "x$CODESIGN" = x; then
22589         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22590 $as_echo "no" >&6; }
22591       else
22592         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22593 $as_echo "yes" >&6; }
22594       fi
22595     fi
22596 
22597 
22598 
22599   # Publish this variable in the help.
22600 
22601 
22602   if [ -z "${SETFILE+x}" ]; then
22603     # The variable is not set by user, try to locate tool using the code snippet
22604     for ac_prog in SetFile
22605 do
22606   # Extract the first word of "$ac_prog", so it can be a program name with args.
22607 set dummy $ac_prog; ac_word=$2
22608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22609 $as_echo_n "checking for $ac_word... " >&6; }
22610 if ${ac_cv_path_SETFILE+:} false; then :
22611   $as_echo_n "(cached) " >&6
22612 else
22613   case $SETFILE in
22614   [\\/]* | ?:[\\/]*)
22615   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
22616   ;;
22617   *)
22618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22619 for as_dir in $PATH
22620 do
22621   IFS=$as_save_IFS
22622   test -z "$as_dir" && as_dir=.
22623     for ac_exec_ext in '' $ac_executable_extensions; do
22624   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22625     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
22626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22627     break 2
22628   fi
22629 done
22630   done
22631 IFS=$as_save_IFS
22632 
22633   ;;
22634 esac
22635 fi
22636 SETFILE=$ac_cv_path_SETFILE
22637 if test -n "$SETFILE"; then
22638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
22639 $as_echo "$SETFILE" >&6; }
22640 else
22641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22642 $as_echo "no" >&6; }
22643 fi
22644 
22645 
22646   test -n "$SETFILE" && break
22647 done
22648 
22649   else
22650     # The variable is set, but is it from the command line or the environment?
22651 
22652     # Try to remove the string !SETFILE! from our list.
22653     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
22654     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22655       # If it failed, the variable was not from the command line. Ignore it,
22656       # but warn the user (except for BASH, which is always set by the calling BASH).
22657       if test "xSETFILE" != xBASH; then
22658         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
22659 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
22660       fi
22661       # Try to locate tool using the code snippet
22662       for ac_prog in SetFile
22663 do
22664   # Extract the first word of "$ac_prog", so it can be a program name with args.
22665 set dummy $ac_prog; ac_word=$2
22666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22667 $as_echo_n "checking for $ac_word... " >&6; }
22668 if ${ac_cv_path_SETFILE+:} false; then :
22669   $as_echo_n "(cached) " >&6
22670 else
22671   case $SETFILE in
22672   [\\/]* | ?:[\\/]*)
22673   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
22674   ;;
22675   *)
22676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22677 for as_dir in $PATH
22678 do
22679   IFS=$as_save_IFS
22680   test -z "$as_dir" && as_dir=.
22681     for ac_exec_ext in '' $ac_executable_extensions; do
22682   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22683     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
22684     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22685     break 2
22686   fi
22687 done
22688   done
22689 IFS=$as_save_IFS
22690 
22691   ;;
22692 esac
22693 fi
22694 SETFILE=$ac_cv_path_SETFILE
22695 if test -n "$SETFILE"; then
22696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
22697 $as_echo "$SETFILE" >&6; }
22698 else
22699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22700 $as_echo "no" >&6; }
22701 fi
22702 
22703 
22704   test -n "$SETFILE" && break
22705 done
22706 
22707     else
22708       # If it succeeded, then it was overridden by the user. We will use it
22709       # for the tool.
22710 
22711       # First remove it from the list of overridden variables, so we can test
22712       # for unknown variables in the end.
22713       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22714 
22715       # Check if we try to supply an empty value
22716       if test "x$SETFILE" = x; then
22717         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5
22718 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;}
22719         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
22720 $as_echo_n "checking for SETFILE... " >&6; }
22721         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22722 $as_echo "disabled" >&6; }
22723       else
22724         # Check if the provided tool contains a complete path.
22725         tool_specified="$SETFILE"
22726         tool_basename="${tool_specified##*/}"
22727         if test "x$tool_basename" = "x$tool_specified"; then
22728           # A command without a complete path is provided, search $PATH.
22729           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
22730 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
22731           # Extract the first word of "$tool_basename", so it can be a program name with args.
22732 set dummy $tool_basename; ac_word=$2
22733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22734 $as_echo_n "checking for $ac_word... " >&6; }
22735 if ${ac_cv_path_SETFILE+:} false; then :
22736   $as_echo_n "(cached) " >&6
22737 else
22738   case $SETFILE in
22739   [\\/]* | ?:[\\/]*)
22740   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
22741   ;;
22742   *)
22743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22744 for as_dir in $PATH
22745 do
22746   IFS=$as_save_IFS
22747   test -z "$as_dir" && as_dir=.
22748     for ac_exec_ext in '' $ac_executable_extensions; do
22749   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22750     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
22751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22752     break 2
22753   fi
22754 done
22755   done
22756 IFS=$as_save_IFS
22757 
22758   ;;
22759 esac
22760 fi
22761 SETFILE=$ac_cv_path_SETFILE
22762 if test -n "$SETFILE"; then
22763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
22764 $as_echo "$SETFILE" >&6; }
22765 else
22766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22767 $as_echo "no" >&6; }
22768 fi
22769 
22770 
22771           if test "x$SETFILE" = x; then
22772             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22773           fi
22774         else
22775           # Otherwise we believe it is a complete path. Use it as it is.
22776           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
22777 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
22778           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
22779 $as_echo_n "checking for SETFILE... " >&6; }
22780           if test ! -x "$tool_specified"; then
22781             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22782 $as_echo "not found" >&6; }
22783             as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
22784           fi
22785           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22786 $as_echo "$tool_specified" >&6; }
22787         fi
22788       fi
22789     fi
22790 
22791   fi
22792 
22793 
22794 
22795   if test "x$SETFILE" = x; then
22796     as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5
22797   fi
22798 
22799 
22800   fi
22801 
22802 
22803   # Test if bash supports pipefail.
22804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5
22805 $as_echo_n "checking if bash supports pipefail... " >&6; }
22806   if ${BASH} -c 'set -o pipefail'; then
22807     BASH_ARGS="$BASH_ARGS -o pipefail"
22808     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22809 $as_echo "yes" >&6; }
22810   else
22811     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22812 $as_echo "no" >&6; }
22813   fi
22814 
22815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5
22816 $as_echo_n "checking if bash supports errexit (-e)... " >&6; }
22817   if ${BASH} -e -c 'true'; then
22818     BASH_ARGS="$BASH_ARGS -e"
22819     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22820 $as_echo "yes" >&6; }
22821   else
22822     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22823 $as_echo "no" >&6; }
22824   fi
22825 
22826 
22827 
22828 
22829 # Check if pkg-config is available.
22830 
22831 
22832 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22833         if test -n "$ac_tool_prefix"; then
22834   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22835 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22837 $as_echo_n "checking for $ac_word... " >&6; }
22838 if ${ac_cv_path_PKG_CONFIG+:} false; then :
22839   $as_echo_n "(cached) " >&6
22840 else
22841   case $PKG_CONFIG in
22842   [\\/]* | ?:[\\/]*)
22843   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22844   ;;
22845   *)
22846   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22847 for as_dir in $PATH
22848 do
22849   IFS=$as_save_IFS
22850   test -z "$as_dir" && as_dir=.
22851     for ac_exec_ext in '' $ac_executable_extensions; do
22852   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22853     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22855     break 2
22856   fi
22857 done
22858   done
22859 IFS=$as_save_IFS
22860 
22861   ;;
22862 esac
22863 fi
22864 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22865 if test -n "$PKG_CONFIG"; then
22866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22867 $as_echo "$PKG_CONFIG" >&6; }
22868 else
22869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22870 $as_echo "no" >&6; }
22871 fi
22872 
22873 
22874 fi
22875 if test -z "$ac_cv_path_PKG_CONFIG"; then
22876   ac_pt_PKG_CONFIG=$PKG_CONFIG
22877   # Extract the first word of "pkg-config", so it can be a program name with args.
22878 set dummy pkg-config; ac_word=$2
22879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22880 $as_echo_n "checking for $ac_word... " >&6; }
22881 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
22882   $as_echo_n "(cached) " >&6
22883 else
22884   case $ac_pt_PKG_CONFIG in
22885   [\\/]* | ?:[\\/]*)
22886   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22887   ;;
22888   *)
22889   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22890 for as_dir in $PATH
22891 do
22892   IFS=$as_save_IFS
22893   test -z "$as_dir" && as_dir=.
22894     for ac_exec_ext in '' $ac_executable_extensions; do
22895   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22896     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22898     break 2
22899   fi
22900 done
22901   done
22902 IFS=$as_save_IFS
22903 
22904   ;;
22905 esac
22906 fi
22907 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22908 if test -n "$ac_pt_PKG_CONFIG"; then
22909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22910 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
22911 else
22912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22913 $as_echo "no" >&6; }
22914 fi
22915 
22916   if test "x$ac_pt_PKG_CONFIG" = x; then
22917     PKG_CONFIG=""
22918   else
22919     case $cross_compiling:$ac_tool_warned in
22920 yes:)
22921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22923 ac_tool_warned=yes ;;
22924 esac
22925     PKG_CONFIG=$ac_pt_PKG_CONFIG
22926   fi
22927 else
22928   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22929 fi
22930 
22931 fi
22932 if test -n "$PKG_CONFIG"; then
22933         _pkg_min_version=0.9.0
22934         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
22935 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
22936         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22937                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22938 $as_echo "yes" >&6; }
22939         else
22940                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22941 $as_echo "no" >&6; }
22942                 PKG_CONFIG=""
22943         fi
22944 
22945 fi
22946 
22947 # After basic tools have been setup, we can check build os specific details.
22948 
22949   ###############################################################################
22950 
22951   # Note that this is the build platform OS version!
22952 
22953   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
22954   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
22955   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
22956   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
22957 
22958 
22959 
22960 
22961 
22962 ###############################################################################
22963 #
22964 # Determine OpenJDK variants, options and version numbers.
22965 #
22966 ###############################################################################
22967 
22968 # We need build & target for this.
22969 
22970 
22971   ###############################################################################
22972   #
22973   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
22974   # We always build headless support.
22975   #
22976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
22977 $as_echo_n "checking headful support... " >&6; }
22978   # Check whether --enable-headful was given.
22979 if test "${enable_headful+set}" = set; then :
22980   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
22981 else
22982   SUPPORT_HEADFUL=yes
22983 fi
22984 
22985 
22986   SUPPORT_HEADLESS=yes
22987   BUILD_HEADLESS="BUILD_HEADLESS:=true"
22988 
22989   if test "x$SUPPORT_HEADFUL" = xyes; then
22990     # We are building both headful and headless.
22991     headful_msg="include support for both headful and headless"
22992   fi
22993 
22994   if test "x$SUPPORT_HEADFUL" = xno; then
22995     # Thus we are building headless only.
22996     BUILD_HEADLESS="BUILD_HEADLESS:=true"
22997     headful_msg="headless only"
22998   fi
22999 
23000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
23001 $as_echo "$headful_msg" >&6; }
23002 
23003 
23004 
23005 
23006 
23007   # Control wether Hotspot runs Queens test after build.
23008   # Check whether --enable-hotspot-test-in-build was given.
23009 if test "${enable_hotspot_test_in_build+set}" = set; then :
23010   enableval=$enable_hotspot_test_in_build;
23011 else
23012   enable_hotspot_test_in_build=no
23013 fi
23014 
23015   if test "x$enable_hotspot_test_in_build" = "xyes"; then
23016     TEST_IN_BUILD=true
23017   else
23018     TEST_IN_BUILD=false
23019   fi
23020 
23021 
23022   ###############################################################################
23023   #
23024   # Choose cacerts source file
23025   #
23026 
23027 # Check whether --with-cacerts-file was given.
23028 if test "${with_cacerts_file+set}" = set; then :
23029   withval=$with_cacerts_file;
23030 fi
23031 
23032   if test "x$with_cacerts_file" != x; then
23033     CACERTS_FILE=$with_cacerts_file
23034   fi
23035 
23036 
23037   ###############################################################################
23038   #
23039   # Enable or disable unlimited crypto
23040   #
23041   # Check whether --enable-unlimited-crypto was given.
23042 if test "${enable_unlimited_crypto+set}" = set; then :
23043   enableval=$enable_unlimited_crypto;
23044 else
23045   enable_unlimited_crypto=no
23046 fi
23047 
23048   if test "x$enable_unlimited_crypto" = "xyes"; then
23049     UNLIMITED_CRYPTO=true
23050   else
23051     UNLIMITED_CRYPTO=false
23052   fi
23053 
23054 
23055   ###############################################################################
23056   #
23057   # Enable or disable the elliptic curve crypto implementation
23058   #
23059 
23060 
23061   ###############################################################################
23062   #
23063   # Compress jars
23064   #
23065   COMPRESS_JARS=false
23066 
23067 
23068 
23069 
23070   # Source the version numbers
23071   . $AUTOCONF_DIR/version-numbers
23072 
23073   # Get the settings from parameters
23074 
23075 # Check whether --with-milestone was given.
23076 if test "${with_milestone+set}" = set; then :
23077   withval=$with_milestone;
23078 fi
23079 
23080   if test "x$with_milestone" = xyes; then
23081     as_fn_error $? "Milestone must have a value" "$LINENO" 5
23082   elif test "x$with_milestone" != x; then
23083     MILESTONE="$with_milestone"
23084   fi
23085   if test "x$MILESTONE" = x; then
23086     MILESTONE=internal
23087   fi
23088 
23089 
23090 # Check whether --with-update-version was given.
23091 if test "${with_update_version+set}" = set; then :
23092   withval=$with_update_version;
23093 fi
23094 
23095   if test "x$with_update_version" = xyes; then
23096     as_fn_error $? "Update version must have a value" "$LINENO" 5
23097   elif test "x$with_update_version" != x; then
23098     JDK_UPDATE_VERSION="$with_update_version"
23099     # On macosx 10.7, it's not possible to set --with-update-version=0X due
23100     # to a bug in expr (which reduces it to just X). To work around this, we
23101     # always add a 0 to one digit update versions.
23102     if test "${#JDK_UPDATE_VERSION}" = "1"; then
23103       JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
23104     fi
23105   fi
23106 
23107 
23108 # Check whether --with-user-release-suffix was given.
23109 if test "${with_user_release_suffix+set}" = set; then :
23110   withval=$with_user_release_suffix;
23111 fi
23112 
23113   if test "x$with_user_release_suffix" = xyes; then
23114     as_fn_error $? "Release suffix must have a value" "$LINENO" 5
23115   elif test "x$with_user_release_suffix" != x; then
23116     USER_RELEASE_SUFFIX="$with_user_release_suffix"
23117   fi
23118 
23119 
23120 # Check whether --with-build-number was given.
23121 if test "${with_build_number+set}" = set; then :
23122   withval=$with_build_number;
23123 fi
23124 
23125   if test "x$with_build_number" = xyes; then
23126     as_fn_error $? "Build number must have a value" "$LINENO" 5
23127   elif test "x$with_build_number" != x; then
23128     JDK_BUILD_NUMBER="$with_build_number"
23129   fi
23130   # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
23131   if test "x$JDK_BUILD_NUMBER" = x; then
23132     JDK_BUILD_NUMBER=b00
23133     if test "x$USER_RELEASE_SUFFIX" = x; then
23134       BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
23135       # Avoid [:alnum:] since it depends on the locale.
23136       CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
23137       USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23138     fi
23139   fi
23140 
23141   # Now set the JDK version, milestone, build number etc.
23142 
23143 
23144 
23145 
23146 
23147 
23148 
23149 
23150 
23151 
23152 
23153 
23154 
23155 
23156 
23157 
23158 # Check whether --with-copyright-year was given.
23159 if test "${with_copyright_year+set}" = set; then :
23160   withval=$with_copyright_year;
23161 fi
23162 
23163   if test "x$with_copyright_year" = xyes; then
23164     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
23165   elif test "x$with_copyright_year" != x; then
23166     COPYRIGHT_YEAR="$with_copyright_year"
23167   else
23168     COPYRIGHT_YEAR=`date +'%Y'`
23169   fi
23170 
23171 
23172   if test "x$JDK_UPDATE_VERSION" != x; then
23173     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
23174   else
23175     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
23176   fi
23177 
23178 
23179   COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
23180 
23181 
23182 
23183 ###############################################################################
23184 #
23185 # Setup BootJDK, used to bootstrap the build.
23186 #
23187 ###############################################################################
23188 
23189 
23190   BOOT_JDK_FOUND=no
23191 
23192 # Check whether --with-boot-jdk was given.
23193 if test "${with_boot_jdk+set}" = set; then :
23194   withval=$with_boot_jdk;
23195 fi
23196 
23197 
23198   # We look for the Boot JDK through various means, going from more certain to
23199   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
23200   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
23201   # must check if this is indeed valid; otherwise we'll continue looking.
23202 
23203   # Test: Is bootjdk explicitely set by command line arguments?
23204 
23205   if test "x$BOOT_JDK_FOUND" = xno; then
23206     # Now execute the test
23207 
23208   if test "x$with_boot_jdk" != x; then
23209     BOOT_JDK=$with_boot_jdk
23210     BOOT_JDK_FOUND=maybe
23211     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
23212 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
23213   fi
23214 
23215 
23216     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23217     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23218       # Do we have a bin/java?
23219       if test ! -x "$BOOT_JDK/bin/java"; then
23220         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23221 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23222         BOOT_JDK_FOUND=no
23223       else
23224         # Do we have a bin/javac?
23225         if test ! -x "$BOOT_JDK/bin/javac"; then
23226           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23227 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23228           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23229 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23230           BOOT_JDK_FOUND=no
23231         else
23232           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23233           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23234 
23235           # Extra M4 quote needed to protect [] in grep expression.
23236           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23237           if test "x$FOUND_CORRECT_VERSION" = x; then
23238             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23239 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23240             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23241 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23242             BOOT_JDK_FOUND=no
23243           else
23244             # We're done! :-)
23245             BOOT_JDK_FOUND=yes
23246 
23247   # Only process if variable expands to non-empty
23248 
23249   if test "x$BOOT_JDK" != x; then
23250     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23251 
23252   # Input might be given as Windows format, start by converting to
23253   # unix format.
23254   path="$BOOT_JDK"
23255   new_path=`$CYGPATH -u "$path"`
23256 
23257   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23258   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23259   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23260   # "foo.exe" is OK but "foo" is an error.
23261   #
23262   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23263   # It is also a way to make sure we got the proper file name for the real test later on.
23264   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23265   if test "x$test_shortpath" = x; then
23266     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23267 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23268     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23269   fi
23270 
23271   # Call helper function which possibly converts this using DOS-style short mode.
23272   # If so, the updated path is stored in $new_path.
23273 
23274   input_path="$new_path"
23275   # Check if we need to convert this using DOS-style short mode. If the path
23276   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23277   # take no chances and rewrite it.
23278   # Note: m4 eats our [], so we need to use [ and ] instead.
23279   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23280   if test "x$has_forbidden_chars" != x; then
23281     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23282     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23283     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23284     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23285       # Going to short mode and back again did indeed matter. Since short mode is
23286       # case insensitive, let's make it lowercase to improve readability.
23287       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23288       # Now convert it back to Unix-style (cygpath)
23289       input_path=`$CYGPATH -u "$shortmode_path"`
23290       new_path="$input_path"
23291     fi
23292   fi
23293 
23294   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23295   if test "x$test_cygdrive_prefix" = x; then
23296     # As a simple fix, exclude /usr/bin since it's not a real path.
23297     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23298       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23299       # a path prefixed by /cygdrive for fixpath to work.
23300       new_path="$CYGWIN_ROOT_PATH$input_path"
23301     fi
23302   fi
23303 
23304 
23305   if test "x$path" != "x$new_path"; then
23306     BOOT_JDK="$new_path"
23307     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23308 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23309   fi
23310 
23311     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23312 
23313   path="$BOOT_JDK"
23314   has_colon=`$ECHO $path | $GREP ^.:`
23315   new_path="$path"
23316   if test "x$has_colon" = x; then
23317     # Not in mixed or Windows style, start by that.
23318     new_path=`cmd //c echo $path`
23319   fi
23320 
23321 
23322   input_path="$new_path"
23323   # Check if we need to convert this using DOS-style short mode. If the path
23324   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23325   # take no chances and rewrite it.
23326   # Note: m4 eats our [], so we need to use [ and ] instead.
23327   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23328   if test "x$has_forbidden_chars" != x; then
23329     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23330     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23331   fi
23332 
23333 
23334   windows_path="$new_path"
23335   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23336     unix_path=`$CYGPATH -u "$windows_path"`
23337     new_path="$unix_path"
23338   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23339     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23340     new_path="$unix_path"
23341   fi
23342 
23343   if test "x$path" != "x$new_path"; then
23344     BOOT_JDK="$new_path"
23345     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23346 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23347   fi
23348 
23349   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23350   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23351 
23352     else
23353       # We're on a unix platform. Hooray! :)
23354       path="$BOOT_JDK"
23355       has_space=`$ECHO "$path" | $GREP " "`
23356       if test "x$has_space" != x; then
23357         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23358 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23359         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23360       fi
23361 
23362       # Use eval to expand a potential ~
23363       eval path="$path"
23364       if test ! -f "$path" && test ! -d "$path"; then
23365         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23366       fi
23367 
23368       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23369     fi
23370   fi
23371 
23372             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23373 $as_echo_n "checking for Boot JDK... " >&6; }
23374             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23375 $as_echo "$BOOT_JDK" >&6; }
23376             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23377 $as_echo_n "checking Boot JDK version... " >&6; }
23378             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23379             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23380 $as_echo "$BOOT_JDK_VERSION" >&6; }
23381           fi # end check jdk version
23382         fi # end check javac
23383       fi # end check java
23384     fi # end check boot jdk found
23385   fi
23386 
23387   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
23388     # Having specified an argument which is incorrect will produce an instant failure;
23389     # we should not go on looking
23390     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
23391   fi
23392 
23393   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
23394 
23395   if test "x$BOOT_JDK_FOUND" = xno; then
23396     # Now execute the test
23397 
23398   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
23399     # First check at user selected default
23400 
23401   if test "x$BOOT_JDK_FOUND" = xno; then
23402     # Now execute the test
23403 
23404   if test -x /usr/libexec/java_home; then
23405     BOOT_JDK=`/usr/libexec/java_home `
23406     BOOT_JDK_FOUND=maybe
23407     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
23408 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
23409   fi
23410 
23411 
23412     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23413     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23414       # Do we have a bin/java?
23415       if test ! -x "$BOOT_JDK/bin/java"; then
23416         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23417 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23418         BOOT_JDK_FOUND=no
23419       else
23420         # Do we have a bin/javac?
23421         if test ! -x "$BOOT_JDK/bin/javac"; then
23422           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23423 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23424           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23425 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23426           BOOT_JDK_FOUND=no
23427         else
23428           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23429           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23430 
23431           # Extra M4 quote needed to protect [] in grep expression.
23432           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23433           if test "x$FOUND_CORRECT_VERSION" = x; then
23434             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23435 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23436             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23437 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23438             BOOT_JDK_FOUND=no
23439           else
23440             # We're done! :-)
23441             BOOT_JDK_FOUND=yes
23442 
23443   # Only process if variable expands to non-empty
23444 
23445   if test "x$BOOT_JDK" != x; then
23446     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23447 
23448   # Input might be given as Windows format, start by converting to
23449   # unix format.
23450   path="$BOOT_JDK"
23451   new_path=`$CYGPATH -u "$path"`
23452 
23453   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23454   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23455   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23456   # "foo.exe" is OK but "foo" is an error.
23457   #
23458   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23459   # It is also a way to make sure we got the proper file name for the real test later on.
23460   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23461   if test "x$test_shortpath" = x; then
23462     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23463 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23464     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23465   fi
23466 
23467   # Call helper function which possibly converts this using DOS-style short mode.
23468   # If so, the updated path is stored in $new_path.
23469 
23470   input_path="$new_path"
23471   # Check if we need to convert this using DOS-style short mode. If the path
23472   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23473   # take no chances and rewrite it.
23474   # Note: m4 eats our [], so we need to use [ and ] instead.
23475   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23476   if test "x$has_forbidden_chars" != x; then
23477     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23478     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23479     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23480     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23481       # Going to short mode and back again did indeed matter. Since short mode is
23482       # case insensitive, let's make it lowercase to improve readability.
23483       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23484       # Now convert it back to Unix-style (cygpath)
23485       input_path=`$CYGPATH -u "$shortmode_path"`
23486       new_path="$input_path"
23487     fi
23488   fi
23489 
23490   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23491   if test "x$test_cygdrive_prefix" = x; then
23492     # As a simple fix, exclude /usr/bin since it's not a real path.
23493     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23494       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23495       # a path prefixed by /cygdrive for fixpath to work.
23496       new_path="$CYGWIN_ROOT_PATH$input_path"
23497     fi
23498   fi
23499 
23500 
23501   if test "x$path" != "x$new_path"; then
23502     BOOT_JDK="$new_path"
23503     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23504 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23505   fi
23506 
23507     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23508 
23509   path="$BOOT_JDK"
23510   has_colon=`$ECHO $path | $GREP ^.:`
23511   new_path="$path"
23512   if test "x$has_colon" = x; then
23513     # Not in mixed or Windows style, start by that.
23514     new_path=`cmd //c echo $path`
23515   fi
23516 
23517 
23518   input_path="$new_path"
23519   # Check if we need to convert this using DOS-style short mode. If the path
23520   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23521   # take no chances and rewrite it.
23522   # Note: m4 eats our [], so we need to use [ and ] instead.
23523   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23524   if test "x$has_forbidden_chars" != x; then
23525     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23526     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23527   fi
23528 
23529 
23530   windows_path="$new_path"
23531   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23532     unix_path=`$CYGPATH -u "$windows_path"`
23533     new_path="$unix_path"
23534   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23535     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23536     new_path="$unix_path"
23537   fi
23538 
23539   if test "x$path" != "x$new_path"; then
23540     BOOT_JDK="$new_path"
23541     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23542 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23543   fi
23544 
23545   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23546   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23547 
23548     else
23549       # We're on a unix platform. Hooray! :)
23550       path="$BOOT_JDK"
23551       has_space=`$ECHO "$path" | $GREP " "`
23552       if test "x$has_space" != x; then
23553         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23554 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23555         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23556       fi
23557 
23558       # Use eval to expand a potential ~
23559       eval path="$path"
23560       if test ! -f "$path" && test ! -d "$path"; then
23561         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23562       fi
23563 
23564       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23565     fi
23566   fi
23567 
23568             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23569 $as_echo_n "checking for Boot JDK... " >&6; }
23570             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23571 $as_echo "$BOOT_JDK" >&6; }
23572             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23573 $as_echo_n "checking Boot JDK version... " >&6; }
23574             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23575             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23576 $as_echo "$BOOT_JDK_VERSION" >&6; }
23577           fi # end check jdk version
23578         fi # end check javac
23579       fi # end check java
23580     fi # end check boot jdk found
23581   fi
23582 
23583     # If that did not work out (e.g. too old), try explicit versions instead
23584 
23585   if test "x$BOOT_JDK_FOUND" = xno; then
23586     # Now execute the test
23587 
23588   if test -x /usr/libexec/java_home; then
23589     BOOT_JDK=`/usr/libexec/java_home -v 1.9`
23590     BOOT_JDK_FOUND=maybe
23591     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5
23592 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;}
23593   fi
23594 
23595 
23596     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23597     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23598       # Do we have a bin/java?
23599       if test ! -x "$BOOT_JDK/bin/java"; then
23600         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23601 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23602         BOOT_JDK_FOUND=no
23603       else
23604         # Do we have a bin/javac?
23605         if test ! -x "$BOOT_JDK/bin/javac"; then
23606           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23607 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23608           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23609 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23610           BOOT_JDK_FOUND=no
23611         else
23612           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23613           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23614 
23615           # Extra M4 quote needed to protect [] in grep expression.
23616           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23617           if test "x$FOUND_CORRECT_VERSION" = x; then
23618             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23619 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23620             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23621 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23622             BOOT_JDK_FOUND=no
23623           else
23624             # We're done! :-)
23625             BOOT_JDK_FOUND=yes
23626 
23627   # Only process if variable expands to non-empty
23628 
23629   if test "x$BOOT_JDK" != x; then
23630     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23631 
23632   # Input might be given as Windows format, start by converting to
23633   # unix format.
23634   path="$BOOT_JDK"
23635   new_path=`$CYGPATH -u "$path"`
23636 
23637   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23638   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23639   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23640   # "foo.exe" is OK but "foo" is an error.
23641   #
23642   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23643   # It is also a way to make sure we got the proper file name for the real test later on.
23644   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23645   if test "x$test_shortpath" = x; then
23646     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23647 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23648     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23649   fi
23650 
23651   # Call helper function which possibly converts this using DOS-style short mode.
23652   # If so, the updated path is stored in $new_path.
23653 
23654   input_path="$new_path"
23655   # Check if we need to convert this using DOS-style short mode. If the path
23656   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23657   # take no chances and rewrite it.
23658   # Note: m4 eats our [], so we need to use [ and ] instead.
23659   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23660   if test "x$has_forbidden_chars" != x; then
23661     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23662     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23663     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23664     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23665       # Going to short mode and back again did indeed matter. Since short mode is
23666       # case insensitive, let's make it lowercase to improve readability.
23667       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23668       # Now convert it back to Unix-style (cygpath)
23669       input_path=`$CYGPATH -u "$shortmode_path"`
23670       new_path="$input_path"
23671     fi
23672   fi
23673 
23674   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23675   if test "x$test_cygdrive_prefix" = x; then
23676     # As a simple fix, exclude /usr/bin since it's not a real path.
23677     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23678       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23679       # a path prefixed by /cygdrive for fixpath to work.
23680       new_path="$CYGWIN_ROOT_PATH$input_path"
23681     fi
23682   fi
23683 
23684 
23685   if test "x$path" != "x$new_path"; then
23686     BOOT_JDK="$new_path"
23687     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23688 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23689   fi
23690 
23691     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23692 
23693   path="$BOOT_JDK"
23694   has_colon=`$ECHO $path | $GREP ^.:`
23695   new_path="$path"
23696   if test "x$has_colon" = x; then
23697     # Not in mixed or Windows style, start by that.
23698     new_path=`cmd //c echo $path`
23699   fi
23700 
23701 
23702   input_path="$new_path"
23703   # Check if we need to convert this using DOS-style short mode. If the path
23704   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23705   # take no chances and rewrite it.
23706   # Note: m4 eats our [], so we need to use [ and ] instead.
23707   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23708   if test "x$has_forbidden_chars" != x; then
23709     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23710     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23711   fi
23712 
23713 
23714   windows_path="$new_path"
23715   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23716     unix_path=`$CYGPATH -u "$windows_path"`
23717     new_path="$unix_path"
23718   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23719     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23720     new_path="$unix_path"
23721   fi
23722 
23723   if test "x$path" != "x$new_path"; then
23724     BOOT_JDK="$new_path"
23725     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23726 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23727   fi
23728 
23729   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23730   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23731 
23732     else
23733       # We're on a unix platform. Hooray! :)
23734       path="$BOOT_JDK"
23735       has_space=`$ECHO "$path" | $GREP " "`
23736       if test "x$has_space" != x; then
23737         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23738 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23739         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23740       fi
23741 
23742       # Use eval to expand a potential ~
23743       eval path="$path"
23744       if test ! -f "$path" && test ! -d "$path"; then
23745         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23746       fi
23747 
23748       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23749     fi
23750   fi
23751 
23752             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23753 $as_echo_n "checking for Boot JDK... " >&6; }
23754             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23755 $as_echo "$BOOT_JDK" >&6; }
23756             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23757 $as_echo_n "checking Boot JDK version... " >&6; }
23758             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23759             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23760 $as_echo "$BOOT_JDK_VERSION" >&6; }
23761           fi # end check jdk version
23762         fi # end check javac
23763       fi # end check java
23764     fi # end check boot jdk found
23765   fi
23766 
23767 
23768   if test "x$BOOT_JDK_FOUND" = xno; then
23769     # Now execute the test
23770 
23771   if test -x /usr/libexec/java_home; then
23772     BOOT_JDK=`/usr/libexec/java_home -v 1.8`
23773     BOOT_JDK_FOUND=maybe
23774     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5
23775 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;}
23776   fi
23777 
23778 
23779     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23780     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23781       # Do we have a bin/java?
23782       if test ! -x "$BOOT_JDK/bin/java"; then
23783         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23784 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23785         BOOT_JDK_FOUND=no
23786       else
23787         # Do we have a bin/javac?
23788         if test ! -x "$BOOT_JDK/bin/javac"; then
23789           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23790 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23791           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23792 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23793           BOOT_JDK_FOUND=no
23794         else
23795           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23796           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23797 
23798           # Extra M4 quote needed to protect [] in grep expression.
23799           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23800           if test "x$FOUND_CORRECT_VERSION" = x; then
23801             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23802 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23803             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23804 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23805             BOOT_JDK_FOUND=no
23806           else
23807             # We're done! :-)
23808             BOOT_JDK_FOUND=yes
23809 
23810   # Only process if variable expands to non-empty
23811 
23812   if test "x$BOOT_JDK" != x; then
23813     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23814 
23815   # Input might be given as Windows format, start by converting to
23816   # unix format.
23817   path="$BOOT_JDK"
23818   new_path=`$CYGPATH -u "$path"`
23819 
23820   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23821   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23822   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23823   # "foo.exe" is OK but "foo" is an error.
23824   #
23825   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23826   # It is also a way to make sure we got the proper file name for the real test later on.
23827   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23828   if test "x$test_shortpath" = x; then
23829     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23830 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23831     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23832   fi
23833 
23834   # Call helper function which possibly converts this using DOS-style short mode.
23835   # If so, the updated path is stored in $new_path.
23836 
23837   input_path="$new_path"
23838   # Check if we need to convert this using DOS-style short mode. If the path
23839   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23840   # take no chances and rewrite it.
23841   # Note: m4 eats our [], so we need to use [ and ] instead.
23842   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23843   if test "x$has_forbidden_chars" != x; then
23844     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23845     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23846     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23847     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23848       # Going to short mode and back again did indeed matter. Since short mode is
23849       # case insensitive, let's make it lowercase to improve readability.
23850       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23851       # Now convert it back to Unix-style (cygpath)
23852       input_path=`$CYGPATH -u "$shortmode_path"`
23853       new_path="$input_path"
23854     fi
23855   fi
23856 
23857   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23858   if test "x$test_cygdrive_prefix" = x; then
23859     # As a simple fix, exclude /usr/bin since it's not a real path.
23860     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23861       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23862       # a path prefixed by /cygdrive for fixpath to work.
23863       new_path="$CYGWIN_ROOT_PATH$input_path"
23864     fi
23865   fi
23866 
23867 
23868   if test "x$path" != "x$new_path"; then
23869     BOOT_JDK="$new_path"
23870     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23871 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23872   fi
23873 
23874     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23875 
23876   path="$BOOT_JDK"
23877   has_colon=`$ECHO $path | $GREP ^.:`
23878   new_path="$path"
23879   if test "x$has_colon" = x; then
23880     # Not in mixed or Windows style, start by that.
23881     new_path=`cmd //c echo $path`
23882   fi
23883 
23884 
23885   input_path="$new_path"
23886   # Check if we need to convert this using DOS-style short mode. If the path
23887   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23888   # take no chances and rewrite it.
23889   # Note: m4 eats our [], so we need to use [ and ] instead.
23890   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23891   if test "x$has_forbidden_chars" != x; then
23892     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23893     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23894   fi
23895 
23896 
23897   windows_path="$new_path"
23898   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23899     unix_path=`$CYGPATH -u "$windows_path"`
23900     new_path="$unix_path"
23901   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23902     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23903     new_path="$unix_path"
23904   fi
23905 
23906   if test "x$path" != "x$new_path"; then
23907     BOOT_JDK="$new_path"
23908     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23909 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23910   fi
23911 
23912   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23913   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23914 
23915     else
23916       # We're on a unix platform. Hooray! :)
23917       path="$BOOT_JDK"
23918       has_space=`$ECHO "$path" | $GREP " "`
23919       if test "x$has_space" != x; then
23920         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23921 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23922         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23923       fi
23924 
23925       # Use eval to expand a potential ~
23926       eval path="$path"
23927       if test ! -f "$path" && test ! -d "$path"; then
23928         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23929       fi
23930 
23931       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23932     fi
23933   fi
23934 
23935             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23936 $as_echo_n "checking for Boot JDK... " >&6; }
23937             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23938 $as_echo "$BOOT_JDK" >&6; }
23939             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23940 $as_echo_n "checking Boot JDK version... " >&6; }
23941             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23942             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23943 $as_echo "$BOOT_JDK_VERSION" >&6; }
23944           fi # end check jdk version
23945         fi # end check javac
23946       fi # end check java
23947     fi # end check boot jdk found
23948   fi
23949 
23950 
23951   if test "x$BOOT_JDK_FOUND" = xno; then
23952     # Now execute the test
23953 
23954   if test -x /usr/libexec/java_home; then
23955     BOOT_JDK=`/usr/libexec/java_home -v 1.7`
23956     BOOT_JDK_FOUND=maybe
23957     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5
23958 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;}
23959   fi
23960 
23961 
23962     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23963     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23964       # Do we have a bin/java?
23965       if test ! -x "$BOOT_JDK/bin/java"; then
23966         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23967 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23968         BOOT_JDK_FOUND=no
23969       else
23970         # Do we have a bin/javac?
23971         if test ! -x "$BOOT_JDK/bin/javac"; then
23972           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23973 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23974           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23975 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23976           BOOT_JDK_FOUND=no
23977         else
23978           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23979           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23980 
23981           # Extra M4 quote needed to protect [] in grep expression.
23982           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23983           if test "x$FOUND_CORRECT_VERSION" = x; then
23984             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23985 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23986             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23987 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23988             BOOT_JDK_FOUND=no
23989           else
23990             # We're done! :-)
23991             BOOT_JDK_FOUND=yes
23992 
23993   # Only process if variable expands to non-empty
23994 
23995   if test "x$BOOT_JDK" != x; then
23996     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23997 
23998   # Input might be given as Windows format, start by converting to
23999   # unix format.
24000   path="$BOOT_JDK"
24001   new_path=`$CYGPATH -u "$path"`
24002 
24003   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24004   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24005   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24006   # "foo.exe" is OK but "foo" is an error.
24007   #
24008   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24009   # It is also a way to make sure we got the proper file name for the real test later on.
24010   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24011   if test "x$test_shortpath" = x; then
24012     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24013 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24014     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24015   fi
24016 
24017   # Call helper function which possibly converts this using DOS-style short mode.
24018   # If so, the updated path is stored in $new_path.
24019 
24020   input_path="$new_path"
24021   # Check if we need to convert this using DOS-style short mode. If the path
24022   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24023   # take no chances and rewrite it.
24024   # Note: m4 eats our [], so we need to use [ and ] instead.
24025   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24026   if test "x$has_forbidden_chars" != x; then
24027     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24028     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24029     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24030     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24031       # Going to short mode and back again did indeed matter. Since short mode is
24032       # case insensitive, let's make it lowercase to improve readability.
24033       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24034       # Now convert it back to Unix-style (cygpath)
24035       input_path=`$CYGPATH -u "$shortmode_path"`
24036       new_path="$input_path"
24037     fi
24038   fi
24039 
24040   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24041   if test "x$test_cygdrive_prefix" = x; then
24042     # As a simple fix, exclude /usr/bin since it's not a real path.
24043     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24044       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24045       # a path prefixed by /cygdrive for fixpath to work.
24046       new_path="$CYGWIN_ROOT_PATH$input_path"
24047     fi
24048   fi
24049 
24050 
24051   if test "x$path" != "x$new_path"; then
24052     BOOT_JDK="$new_path"
24053     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24054 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24055   fi
24056 
24057     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24058 
24059   path="$BOOT_JDK"
24060   has_colon=`$ECHO $path | $GREP ^.:`
24061   new_path="$path"
24062   if test "x$has_colon" = x; then
24063     # Not in mixed or Windows style, start by that.
24064     new_path=`cmd //c echo $path`
24065   fi
24066 
24067 
24068   input_path="$new_path"
24069   # Check if we need to convert this using DOS-style short mode. If the path
24070   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24071   # take no chances and rewrite it.
24072   # Note: m4 eats our [], so we need to use [ and ] instead.
24073   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24074   if test "x$has_forbidden_chars" != x; then
24075     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24076     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24077   fi
24078 
24079 
24080   windows_path="$new_path"
24081   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24082     unix_path=`$CYGPATH -u "$windows_path"`
24083     new_path="$unix_path"
24084   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24085     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24086     new_path="$unix_path"
24087   fi
24088 
24089   if test "x$path" != "x$new_path"; then
24090     BOOT_JDK="$new_path"
24091     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24092 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24093   fi
24094 
24095   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24096   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24097 
24098     else
24099       # We're on a unix platform. Hooray! :)
24100       path="$BOOT_JDK"
24101       has_space=`$ECHO "$path" | $GREP " "`
24102       if test "x$has_space" != x; then
24103         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24104 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24105         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24106       fi
24107 
24108       # Use eval to expand a potential ~
24109       eval path="$path"
24110       if test ! -f "$path" && test ! -d "$path"; then
24111         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24112       fi
24113 
24114       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24115     fi
24116   fi
24117 
24118             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24119 $as_echo_n "checking for Boot JDK... " >&6; }
24120             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24121 $as_echo "$BOOT_JDK" >&6; }
24122             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24123 $as_echo_n "checking Boot JDK version... " >&6; }
24124             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24125             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24126 $as_echo "$BOOT_JDK_VERSION" >&6; }
24127           fi # end check jdk version
24128         fi # end check javac
24129       fi # end check java
24130     fi # end check boot jdk found
24131   fi
24132 
24133   fi
24134 
24135 
24136     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24137     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24138       # Do we have a bin/java?
24139       if test ! -x "$BOOT_JDK/bin/java"; then
24140         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24141 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24142         BOOT_JDK_FOUND=no
24143       else
24144         # Do we have a bin/javac?
24145         if test ! -x "$BOOT_JDK/bin/javac"; then
24146           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24147 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24148           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24149 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24150           BOOT_JDK_FOUND=no
24151         else
24152           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24153           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24154 
24155           # Extra M4 quote needed to protect [] in grep expression.
24156           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24157           if test "x$FOUND_CORRECT_VERSION" = x; then
24158             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24159 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24160             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24161 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24162             BOOT_JDK_FOUND=no
24163           else
24164             # We're done! :-)
24165             BOOT_JDK_FOUND=yes
24166 
24167   # Only process if variable expands to non-empty
24168 
24169   if test "x$BOOT_JDK" != x; then
24170     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24171 
24172   # Input might be given as Windows format, start by converting to
24173   # unix format.
24174   path="$BOOT_JDK"
24175   new_path=`$CYGPATH -u "$path"`
24176 
24177   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24178   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24179   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24180   # "foo.exe" is OK but "foo" is an error.
24181   #
24182   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24183   # It is also a way to make sure we got the proper file name for the real test later on.
24184   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24185   if test "x$test_shortpath" = x; then
24186     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24187 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24188     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24189   fi
24190 
24191   # Call helper function which possibly converts this using DOS-style short mode.
24192   # If so, the updated path is stored in $new_path.
24193 
24194   input_path="$new_path"
24195   # Check if we need to convert this using DOS-style short mode. If the path
24196   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24197   # take no chances and rewrite it.
24198   # Note: m4 eats our [], so we need to use [ and ] instead.
24199   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24200   if test "x$has_forbidden_chars" != x; then
24201     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24202     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24203     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24204     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24205       # Going to short mode and back again did indeed matter. Since short mode is
24206       # case insensitive, let's make it lowercase to improve readability.
24207       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24208       # Now convert it back to Unix-style (cygpath)
24209       input_path=`$CYGPATH -u "$shortmode_path"`
24210       new_path="$input_path"
24211     fi
24212   fi
24213 
24214   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24215   if test "x$test_cygdrive_prefix" = x; then
24216     # As a simple fix, exclude /usr/bin since it's not a real path.
24217     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24218       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24219       # a path prefixed by /cygdrive for fixpath to work.
24220       new_path="$CYGWIN_ROOT_PATH$input_path"
24221     fi
24222   fi
24223 
24224 
24225   if test "x$path" != "x$new_path"; then
24226     BOOT_JDK="$new_path"
24227     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24228 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24229   fi
24230 
24231     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24232 
24233   path="$BOOT_JDK"
24234   has_colon=`$ECHO $path | $GREP ^.:`
24235   new_path="$path"
24236   if test "x$has_colon" = x; then
24237     # Not in mixed or Windows style, start by that.
24238     new_path=`cmd //c echo $path`
24239   fi
24240 
24241 
24242   input_path="$new_path"
24243   # Check if we need to convert this using DOS-style short mode. If the path
24244   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24245   # take no chances and rewrite it.
24246   # Note: m4 eats our [], so we need to use [ and ] instead.
24247   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24248   if test "x$has_forbidden_chars" != x; then
24249     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24250     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24251   fi
24252 
24253 
24254   windows_path="$new_path"
24255   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24256     unix_path=`$CYGPATH -u "$windows_path"`
24257     new_path="$unix_path"
24258   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24259     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24260     new_path="$unix_path"
24261   fi
24262 
24263   if test "x$path" != "x$new_path"; then
24264     BOOT_JDK="$new_path"
24265     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24266 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24267   fi
24268 
24269   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24270   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24271 
24272     else
24273       # We're on a unix platform. Hooray! :)
24274       path="$BOOT_JDK"
24275       has_space=`$ECHO "$path" | $GREP " "`
24276       if test "x$has_space" != x; then
24277         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24278 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24279         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24280       fi
24281 
24282       # Use eval to expand a potential ~
24283       eval path="$path"
24284       if test ! -f "$path" && test ! -d "$path"; then
24285         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24286       fi
24287 
24288       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24289     fi
24290   fi
24291 
24292             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24293 $as_echo_n "checking for Boot JDK... " >&6; }
24294             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24295 $as_echo "$BOOT_JDK" >&6; }
24296             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24297 $as_echo_n "checking Boot JDK version... " >&6; }
24298             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24299             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24300 $as_echo "$BOOT_JDK_VERSION" >&6; }
24301           fi # end check jdk version
24302         fi # end check javac
24303       fi # end check java
24304     fi # end check boot jdk found
24305   fi
24306 
24307 
24308   # Test: Is $JAVA_HOME set?
24309 
24310   if test "x$BOOT_JDK_FOUND" = xno; then
24311     # Now execute the test
24312 
24313   if test "x$JAVA_HOME" != x; then
24314     JAVA_HOME_PROCESSED="$JAVA_HOME"
24315 
24316   # Only process if variable expands to non-empty
24317 
24318   if test "x$JAVA_HOME_PROCESSED" != x; then
24319     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24320 
24321   # Input might be given as Windows format, start by converting to
24322   # unix format.
24323   path="$JAVA_HOME_PROCESSED"
24324   new_path=`$CYGPATH -u "$path"`
24325 
24326   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24327   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24328   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24329   # "foo.exe" is OK but "foo" is an error.
24330   #
24331   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24332   # It is also a way to make sure we got the proper file name for the real test later on.
24333   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24334   if test "x$test_shortpath" = x; then
24335     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
24336 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
24337     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
24338   fi
24339 
24340   # Call helper function which possibly converts this using DOS-style short mode.
24341   # If so, the updated path is stored in $new_path.
24342 
24343   input_path="$new_path"
24344   # Check if we need to convert this using DOS-style short mode. If the path
24345   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24346   # take no chances and rewrite it.
24347   # Note: m4 eats our [], so we need to use [ and ] instead.
24348   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24349   if test "x$has_forbidden_chars" != x; then
24350     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24351     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24352     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24353     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24354       # Going to short mode and back again did indeed matter. Since short mode is
24355       # case insensitive, let's make it lowercase to improve readability.
24356       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24357       # Now convert it back to Unix-style (cygpath)
24358       input_path=`$CYGPATH -u "$shortmode_path"`
24359       new_path="$input_path"
24360     fi
24361   fi
24362 
24363   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24364   if test "x$test_cygdrive_prefix" = x; then
24365     # As a simple fix, exclude /usr/bin since it's not a real path.
24366     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24367       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24368       # a path prefixed by /cygdrive for fixpath to work.
24369       new_path="$CYGWIN_ROOT_PATH$input_path"
24370     fi
24371   fi
24372 
24373 
24374   if test "x$path" != "x$new_path"; then
24375     JAVA_HOME_PROCESSED="$new_path"
24376     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
24377 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
24378   fi
24379 
24380     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24381 
24382   path="$JAVA_HOME_PROCESSED"
24383   has_colon=`$ECHO $path | $GREP ^.:`
24384   new_path="$path"
24385   if test "x$has_colon" = x; then
24386     # Not in mixed or Windows style, start by that.
24387     new_path=`cmd //c echo $path`
24388   fi
24389 
24390 
24391   input_path="$new_path"
24392   # Check if we need to convert this using DOS-style short mode. If the path
24393   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24394   # take no chances and rewrite it.
24395   # Note: m4 eats our [], so we need to use [ and ] instead.
24396   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24397   if test "x$has_forbidden_chars" != x; then
24398     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24399     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24400   fi
24401 
24402 
24403   windows_path="$new_path"
24404   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24405     unix_path=`$CYGPATH -u "$windows_path"`
24406     new_path="$unix_path"
24407   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24408     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24409     new_path="$unix_path"
24410   fi
24411 
24412   if test "x$path" != "x$new_path"; then
24413     JAVA_HOME_PROCESSED="$new_path"
24414     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
24415 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
24416   fi
24417 
24418   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24419   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24420 
24421     else
24422       # We're on a unix platform. Hooray! :)
24423       path="$JAVA_HOME_PROCESSED"
24424       has_space=`$ECHO "$path" | $GREP " "`
24425       if test "x$has_space" != x; then
24426         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
24427 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
24428         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24429       fi
24430 
24431       # Use eval to expand a potential ~
24432       eval path="$path"
24433       if test ! -f "$path" && test ! -d "$path"; then
24434         as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
24435       fi
24436 
24437       JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
24438     fi
24439   fi
24440 
24441     if test ! -d "$JAVA_HOME_PROCESSED"; then
24442       { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
24443 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
24444     else
24445       # Aha, the user has set a JAVA_HOME
24446       # let us use that as the Boot JDK.
24447       BOOT_JDK="$JAVA_HOME_PROCESSED"
24448       BOOT_JDK_FOUND=maybe
24449       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
24450 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
24451     fi
24452   fi
24453 
24454 
24455     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24456     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24457       # Do we have a bin/java?
24458       if test ! -x "$BOOT_JDK/bin/java"; then
24459         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24460 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24461         BOOT_JDK_FOUND=no
24462       else
24463         # Do we have a bin/javac?
24464         if test ! -x "$BOOT_JDK/bin/javac"; then
24465           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24466 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24467           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24468 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24469           BOOT_JDK_FOUND=no
24470         else
24471           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24472           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24473 
24474           # Extra M4 quote needed to protect [] in grep expression.
24475           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24476           if test "x$FOUND_CORRECT_VERSION" = x; then
24477             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24478 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24479             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24480 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24481             BOOT_JDK_FOUND=no
24482           else
24483             # We're done! :-)
24484             BOOT_JDK_FOUND=yes
24485 
24486   # Only process if variable expands to non-empty
24487 
24488   if test "x$BOOT_JDK" != x; then
24489     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24490 
24491   # Input might be given as Windows format, start by converting to
24492   # unix format.
24493   path="$BOOT_JDK"
24494   new_path=`$CYGPATH -u "$path"`
24495 
24496   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24497   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24498   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24499   # "foo.exe" is OK but "foo" is an error.
24500   #
24501   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24502   # It is also a way to make sure we got the proper file name for the real test later on.
24503   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24504   if test "x$test_shortpath" = x; then
24505     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24506 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24507     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24508   fi
24509 
24510   # Call helper function which possibly converts this using DOS-style short mode.
24511   # If so, the updated path is stored in $new_path.
24512 
24513   input_path="$new_path"
24514   # Check if we need to convert this using DOS-style short mode. If the path
24515   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24516   # take no chances and rewrite it.
24517   # Note: m4 eats our [], so we need to use [ and ] instead.
24518   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24519   if test "x$has_forbidden_chars" != x; then
24520     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24521     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24522     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24523     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24524       # Going to short mode and back again did indeed matter. Since short mode is
24525       # case insensitive, let's make it lowercase to improve readability.
24526       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24527       # Now convert it back to Unix-style (cygpath)
24528       input_path=`$CYGPATH -u "$shortmode_path"`
24529       new_path="$input_path"
24530     fi
24531   fi
24532 
24533   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24534   if test "x$test_cygdrive_prefix" = x; then
24535     # As a simple fix, exclude /usr/bin since it's not a real path.
24536     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24537       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24538       # a path prefixed by /cygdrive for fixpath to work.
24539       new_path="$CYGWIN_ROOT_PATH$input_path"
24540     fi
24541   fi
24542 
24543 
24544   if test "x$path" != "x$new_path"; then
24545     BOOT_JDK="$new_path"
24546     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24547 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24548   fi
24549 
24550     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24551 
24552   path="$BOOT_JDK"
24553   has_colon=`$ECHO $path | $GREP ^.:`
24554   new_path="$path"
24555   if test "x$has_colon" = x; then
24556     # Not in mixed or Windows style, start by that.
24557     new_path=`cmd //c echo $path`
24558   fi
24559 
24560 
24561   input_path="$new_path"
24562   # Check if we need to convert this using DOS-style short mode. If the path
24563   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24564   # take no chances and rewrite it.
24565   # Note: m4 eats our [], so we need to use [ and ] instead.
24566   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24567   if test "x$has_forbidden_chars" != x; then
24568     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24569     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24570   fi
24571 
24572 
24573   windows_path="$new_path"
24574   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24575     unix_path=`$CYGPATH -u "$windows_path"`
24576     new_path="$unix_path"
24577   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24578     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24579     new_path="$unix_path"
24580   fi
24581 
24582   if test "x$path" != "x$new_path"; then
24583     BOOT_JDK="$new_path"
24584     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24585 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24586   fi
24587 
24588   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24589   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24590 
24591     else
24592       # We're on a unix platform. Hooray! :)
24593       path="$BOOT_JDK"
24594       has_space=`$ECHO "$path" | $GREP " "`
24595       if test "x$has_space" != x; then
24596         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24597 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24598         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24599       fi
24600 
24601       # Use eval to expand a potential ~
24602       eval path="$path"
24603       if test ! -f "$path" && test ! -d "$path"; then
24604         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24605       fi
24606 
24607       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24608     fi
24609   fi
24610 
24611             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24612 $as_echo_n "checking for Boot JDK... " >&6; }
24613             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24614 $as_echo "$BOOT_JDK" >&6; }
24615             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24616 $as_echo_n "checking Boot JDK version... " >&6; }
24617             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24618             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24619 $as_echo "$BOOT_JDK_VERSION" >&6; }
24620           fi # end check jdk version
24621         fi # end check javac
24622       fi # end check java
24623     fi # end check boot jdk found
24624   fi
24625 
24626 
24627   # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
24628 
24629   if test "x$BOOT_JDK_FOUND" = xno; then
24630     # Now execute the test
24631 
24632   # Extract the first word of "javac", so it can be a program name with args.
24633 set dummy javac; ac_word=$2
24634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24635 $as_echo_n "checking for $ac_word... " >&6; }
24636 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
24637   $as_echo_n "(cached) " >&6
24638 else
24639   case $JAVAC_CHECK in
24640   [\\/]* | ?:[\\/]*)
24641   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
24642   ;;
24643   *)
24644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24645 for as_dir in $PATH
24646 do
24647   IFS=$as_save_IFS
24648   test -z "$as_dir" && as_dir=.
24649     for ac_exec_ext in '' $ac_executable_extensions; do
24650   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24651     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
24652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24653     break 2
24654   fi
24655 done
24656   done
24657 IFS=$as_save_IFS
24658 
24659   ;;
24660 esac
24661 fi
24662 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
24663 if test -n "$JAVAC_CHECK"; then
24664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
24665 $as_echo "$JAVAC_CHECK" >&6; }
24666 else
24667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24668 $as_echo "no" >&6; }
24669 fi
24670 
24671 
24672   # Extract the first word of "java", so it can be a program name with args.
24673 set dummy java; ac_word=$2
24674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24675 $as_echo_n "checking for $ac_word... " >&6; }
24676 if ${ac_cv_path_JAVA_CHECK+:} false; then :
24677   $as_echo_n "(cached) " >&6
24678 else
24679   case $JAVA_CHECK in
24680   [\\/]* | ?:[\\/]*)
24681   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
24682   ;;
24683   *)
24684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24685 for as_dir in $PATH
24686 do
24687   IFS=$as_save_IFS
24688   test -z "$as_dir" && as_dir=.
24689     for ac_exec_ext in '' $ac_executable_extensions; do
24690   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24691     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
24692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24693     break 2
24694   fi
24695 done
24696   done
24697 IFS=$as_save_IFS
24698 
24699   ;;
24700 esac
24701 fi
24702 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
24703 if test -n "$JAVA_CHECK"; then
24704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
24705 $as_echo "$JAVA_CHECK" >&6; }
24706 else
24707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24708 $as_echo "no" >&6; }
24709 fi
24710 
24711 
24712   BINARY="$JAVAC_CHECK"
24713   if test "x$JAVAC_CHECK" = x; then
24714     BINARY="$JAVA_CHECK"
24715   fi
24716   if test "x$BINARY" != x; then
24717     # So there is a java(c) binary, it might be part of a JDK.
24718     # Lets find the JDK/JRE directory by following symbolic links.
24719     # Linux/GNU systems often have links from /usr/bin/java to
24720     # /etc/alternatives/java to the real JDK binary.
24721 
24722   if test "x$OPENJDK_BUILD_OS" != xwindows; then
24723     # Follow a chain of symbolic links. Use readlink
24724     # where it exists, else fall back to horribly
24725     # complicated shell code.
24726     if test "x$READLINK_TESTED" != yes; then
24727       # On MacOSX there is a readlink tool with a different
24728       # purpose than the GNU readlink tool. Check the found readlink.
24729       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
24730       if test "x$ISGNU" = x; then
24731         # A readlink that we do not know how to use.
24732         # Are there other non-GNU readlinks out there?
24733         READLINK_TESTED=yes
24734         READLINK=
24735       fi
24736     fi
24737 
24738     if test "x$READLINK" != x; then
24739       BINARY=`$READLINK -f $BINARY`
24740     else
24741       # Save the current directory for restoring afterwards
24742       STARTDIR=$PWD
24743       COUNTER=0
24744       sym_link_dir=`$DIRNAME $BINARY`
24745       sym_link_file=`$BASENAME $BINARY`
24746       cd $sym_link_dir
24747       # Use -P flag to resolve symlinks in directories.
24748       cd `$THEPWDCMD -P`
24749       sym_link_dir=`$THEPWDCMD -P`
24750       # Resolve file symlinks
24751       while test $COUNTER -lt 20; do
24752         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
24753         if test "x$ISLINK" == x; then
24754           # This is not a symbolic link! We are done!
24755           break
24756         fi
24757         # Again resolve directory symlinks since the target of the just found
24758         # link could be in a different directory
24759         cd `$DIRNAME $ISLINK`
24760         sym_link_dir=`$THEPWDCMD -P`
24761         sym_link_file=`$BASENAME $ISLINK`
24762         let COUNTER=COUNTER+1
24763       done
24764       cd $STARTDIR
24765       BINARY=$sym_link_dir/$sym_link_file
24766     fi
24767   fi
24768 
24769     BOOT_JDK=`dirname "$BINARY"`
24770     BOOT_JDK=`cd "$BOOT_JDK/.."; pwd`
24771     if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
24772       # Looks like we found ourselves an JDK
24773       BOOT_JDK_FOUND=maybe
24774       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5
24775 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;}
24776     fi
24777   fi
24778 
24779 
24780     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24781     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24782       # Do we have a bin/java?
24783       if test ! -x "$BOOT_JDK/bin/java"; then
24784         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24785 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24786         BOOT_JDK_FOUND=no
24787       else
24788         # Do we have a bin/javac?
24789         if test ! -x "$BOOT_JDK/bin/javac"; then
24790           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24791 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24792           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24793 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24794           BOOT_JDK_FOUND=no
24795         else
24796           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24797           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24798 
24799           # Extra M4 quote needed to protect [] in grep expression.
24800           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24801           if test "x$FOUND_CORRECT_VERSION" = x; then
24802             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24803 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24804             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24805 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24806             BOOT_JDK_FOUND=no
24807           else
24808             # We're done! :-)
24809             BOOT_JDK_FOUND=yes
24810 
24811   # Only process if variable expands to non-empty
24812 
24813   if test "x$BOOT_JDK" != x; then
24814     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24815 
24816   # Input might be given as Windows format, start by converting to
24817   # unix format.
24818   path="$BOOT_JDK"
24819   new_path=`$CYGPATH -u "$path"`
24820 
24821   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24822   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24823   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24824   # "foo.exe" is OK but "foo" is an error.
24825   #
24826   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24827   # It is also a way to make sure we got the proper file name for the real test later on.
24828   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24829   if test "x$test_shortpath" = x; then
24830     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24831 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24832     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24833   fi
24834 
24835   # Call helper function which possibly converts this using DOS-style short mode.
24836   # If so, the updated path is stored in $new_path.
24837 
24838   input_path="$new_path"
24839   # Check if we need to convert this using DOS-style short mode. If the path
24840   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24841   # take no chances and rewrite it.
24842   # Note: m4 eats our [], so we need to use [ and ] instead.
24843   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24844   if test "x$has_forbidden_chars" != x; then
24845     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24846     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24847     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24848     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24849       # Going to short mode and back again did indeed matter. Since short mode is
24850       # case insensitive, let's make it lowercase to improve readability.
24851       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24852       # Now convert it back to Unix-style (cygpath)
24853       input_path=`$CYGPATH -u "$shortmode_path"`
24854       new_path="$input_path"
24855     fi
24856   fi
24857 
24858   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24859   if test "x$test_cygdrive_prefix" = x; then
24860     # As a simple fix, exclude /usr/bin since it's not a real path.
24861     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24862       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24863       # a path prefixed by /cygdrive for fixpath to work.
24864       new_path="$CYGWIN_ROOT_PATH$input_path"
24865     fi
24866   fi
24867 
24868 
24869   if test "x$path" != "x$new_path"; then
24870     BOOT_JDK="$new_path"
24871     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24872 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24873   fi
24874 
24875     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24876 
24877   path="$BOOT_JDK"
24878   has_colon=`$ECHO $path | $GREP ^.:`
24879   new_path="$path"
24880   if test "x$has_colon" = x; then
24881     # Not in mixed or Windows style, start by that.
24882     new_path=`cmd //c echo $path`
24883   fi
24884 
24885 
24886   input_path="$new_path"
24887   # Check if we need to convert this using DOS-style short mode. If the path
24888   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24889   # take no chances and rewrite it.
24890   # Note: m4 eats our [], so we need to use [ and ] instead.
24891   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24892   if test "x$has_forbidden_chars" != x; then
24893     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24894     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24895   fi
24896 
24897 
24898   windows_path="$new_path"
24899   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24900     unix_path=`$CYGPATH -u "$windows_path"`
24901     new_path="$unix_path"
24902   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24903     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24904     new_path="$unix_path"
24905   fi
24906 
24907   if test "x$path" != "x$new_path"; then
24908     BOOT_JDK="$new_path"
24909     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24910 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24911   fi
24912 
24913   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24914   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24915 
24916     else
24917       # We're on a unix platform. Hooray! :)
24918       path="$BOOT_JDK"
24919       has_space=`$ECHO "$path" | $GREP " "`
24920       if test "x$has_space" != x; then
24921         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24922 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24923         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24924       fi
24925 
24926       # Use eval to expand a potential ~
24927       eval path="$path"
24928       if test ! -f "$path" && test ! -d "$path"; then
24929         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24930       fi
24931 
24932       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24933     fi
24934   fi
24935 
24936             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24937 $as_echo_n "checking for Boot JDK... " >&6; }
24938             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24939 $as_echo "$BOOT_JDK" >&6; }
24940             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24941 $as_echo_n "checking Boot JDK version... " >&6; }
24942             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24943             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24944 $as_echo "$BOOT_JDK_VERSION" >&6; }
24945           fi # end check jdk version
24946         fi # end check javac
24947       fi # end check java
24948     fi # end check boot jdk found
24949   fi
24950 
24951 
24952   # Test: Is there a JDK installed in default, well-known locations?
24953 
24954   if test "x$BOOT_JDK_FOUND" = xno; then
24955     # Now execute the test
24956 
24957   if test "x$OPENJDK_TARGET_OS" = xwindows; then
24958 
24959   if test "x$BOOT_JDK_FOUND" = xno; then
24960     # Now execute the test
24961 
24962   if test "x$ProgramW6432" != x; then
24963     VIRTUAL_DIR="$ProgramW6432/Java"
24964 
24965   windows_path="$VIRTUAL_DIR"
24966   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24967     unix_path=`$CYGPATH -u "$windows_path"`
24968     VIRTUAL_DIR="$unix_path"
24969   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24970     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24971     VIRTUAL_DIR="$unix_path"
24972   fi
24973 
24974 
24975   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
24976   BOOT_JDK_SUFFIX=""
24977   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24978   if test "x$ALL_JDKS_FOUND" != x; then
24979     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24980 
24981   if test "x$BOOT_JDK_FOUND" = xno; then
24982     # Now execute the test
24983 
24984         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24985         if test -d "$BOOT_JDK"; then
24986           BOOT_JDK_FOUND=maybe
24987           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24988 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24989         fi
24990 
24991 
24992     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24993     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24994       # Do we have a bin/java?
24995       if test ! -x "$BOOT_JDK/bin/java"; then
24996         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24997 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24998         BOOT_JDK_FOUND=no
24999       else
25000         # Do we have a bin/javac?
25001         if test ! -x "$BOOT_JDK/bin/javac"; then
25002           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
25003 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
25004           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
25005 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
25006           BOOT_JDK_FOUND=no
25007         else
25008           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
25009           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
25010 
25011           # Extra M4 quote needed to protect [] in grep expression.
25012           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
25013           if test "x$FOUND_CORRECT_VERSION" = x; then
25014             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
25015 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
25016             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
25017 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
25018             BOOT_JDK_FOUND=no
25019           else
25020             # We're done! :-)
25021             BOOT_JDK_FOUND=yes
25022 
25023   # Only process if variable expands to non-empty
25024 
25025   if test "x$BOOT_JDK" != x; then
25026     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25027 
25028   # Input might be given as Windows format, start by converting to
25029   # unix format.
25030   path="$BOOT_JDK"
25031   new_path=`$CYGPATH -u "$path"`
25032 
25033   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
25034   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
25035   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
25036   # "foo.exe" is OK but "foo" is an error.
25037   #
25038   # This test is therefore slightly more accurate than "test -f" to check for file precense.
25039   # It is also a way to make sure we got the proper file name for the real test later on.
25040   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
25041   if test "x$test_shortpath" = x; then
25042     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25043 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25044     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
25045   fi
25046 
25047   # Call helper function which possibly converts this using DOS-style short mode.
25048   # If so, the updated path is stored in $new_path.
25049 
25050   input_path="$new_path"
25051   # Check if we need to convert this using DOS-style short mode. If the path
25052   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25053   # take no chances and rewrite it.
25054   # Note: m4 eats our [], so we need to use [ and ] instead.
25055   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
25056   if test "x$has_forbidden_chars" != x; then
25057     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25058     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
25059     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
25060     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
25061       # Going to short mode and back again did indeed matter. Since short mode is
25062       # case insensitive, let's make it lowercase to improve readability.
25063       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25064       # Now convert it back to Unix-style (cygpath)
25065       input_path=`$CYGPATH -u "$shortmode_path"`
25066       new_path="$input_path"
25067     fi
25068   fi
25069 
25070   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
25071   if test "x$test_cygdrive_prefix" = x; then
25072     # As a simple fix, exclude /usr/bin since it's not a real path.
25073     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
25074       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
25075       # a path prefixed by /cygdrive for fixpath to work.
25076       new_path="$CYGWIN_ROOT_PATH$input_path"
25077     fi
25078   fi
25079 
25080 
25081   if test "x$path" != "x$new_path"; then
25082     BOOT_JDK="$new_path"
25083     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25084 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25085   fi
25086 
25087     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.