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 DEBUG_SYMBOLS
 685 ZIP_DEBUGINFO_FILES
 686 ENABLE_DEBUG_SYMBOLS
 687 CFLAGS_WARNINGS_ARE_ERRORS
 688 DISABLE_WARNING_PREFIX
 689 HOTSPOT_SET_WARNINGS_AS_ERRORS
 690 WARNINGS_AS_ERRORS
 691 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 692 ZERO_ARCHFLAG
 693 LDFLAGS_TESTEXE
 694 LDFLAGS_TESTLIB
 695 LDFLAGS_CXX_JDK
 696 JDKEXE_LIBS
 697 JDKLIB_LIBS
 698 LDFLAGS_JDKEXE
 699 LDFLAGS_JDKLIB
 700 CXXFLAGS_TESTEXE
 701 CXXFLAGS_TESTLIB
 702 CFLAGS_TESTEXE
 703 CFLAGS_TESTLIB
 704 CXXFLAGS_JDKEXE
 705 CXXFLAGS_JDKLIB
 706 CFLAGS_JDKEXE
 707 CFLAGS_JDKLIB
 708 MACOSX_VERSION_MIN
 709 CXX_O_FLAG_NONE
 710 CXX_O_FLAG_DEBUG
 711 CXX_O_FLAG_NORM
 712 CXX_O_FLAG_HI
 713 CXX_O_FLAG_HIGHEST
 714 C_O_FLAG_NONE
 715 C_O_FLAG_DEBUG
 716 C_O_FLAG_NORM
 717 C_O_FLAG_HI
 718 C_O_FLAG_HIGHEST
 719 CXXFLAGS_DEBUG_SYMBOLS
 720 CFLAGS_DEBUG_SYMBOLS
 721 CXX_FLAG_DEPS
 722 C_FLAG_DEPS
 723 SET_SHARED_LIBRARY_MAPFILE
 724 SET_SHARED_LIBRARY_NAME
 725 SET_SHARED_LIBRARY_ORIGIN
 726 SET_EXECUTABLE_ORIGIN
 727 CXX_FLAG_REORDER
 728 C_FLAG_REORDER
 729 RC_FLAGS
 730 AR_OUT_OPTION
 731 LD_OUT_OPTION
 732 EXE_OUT_OPTION
 733 CC_OUT_OPTION
 734 STRIPFLAGS
 735 ARFLAGS
 736 COMPILER_TARGET_BITS_FLAG
 737 JT_HOME
 738 JTREGEXE
 739 USING_BROKEN_SUSE_LD
 740 PACKAGE_PATH
 741 USE_CLANG
 742 HOTSPOT_LD
 743 HOTSPOT_CXX
 744 HOTSPOT_RC
 745 HOTSPOT_MT
 746 BUILD_LD
 747 BUILD_CXX
 748 BUILD_CC
 749 BUILD_SYSROOT_LDFLAGS
 750 BUILD_SYSROOT_CFLAGS
 751 ac_ct_OBJDUMP
 752 OBJDUMP
 753 ac_ct_OBJCOPY
 754 OBJCOPY
 755 ac_ct_NM
 756 ac_ct_STRIP
 757 GNM
 758 NM
 759 STRIP
 760 MSBUILD
 761 DUMPBIN
 762 RC
 763 MT
 764 LIPO
 765 ac_ct_AR
 766 AR
 767 AS
 768 LDCXX
 769 LD
 770 CXXCPP
 771 CPP
 772 ac_ct_CXX
 773 CXXFLAGS
 774 CXX
 775 ac_ct_PROPER_COMPILER_CXX
 776 PROPER_COMPILER_CXX
 777 TOOLCHAIN_PATH_CXX
 778 POTENTIAL_CXX
 779 OBJEXT
 780 EXEEXT
 781 ac_ct_CC
 782 CPPFLAGS
 783 LDFLAGS
 784 CFLAGS
 785 CC
 786 ac_ct_PROPER_COMPILER_CC
 787 PROPER_COMPILER_CC
 788 TOOLCHAIN_PATH_CC
 789 POTENTIAL_CC
 790 VS_LIB
 791 VS_INCLUDE
 792 VS_PATH
 793 CYGWIN_LINK
 794 SYSROOT_LDFLAGS
 795 SYSROOT_CFLAGS
 796 LEGACY_EXTRA_LDFLAGS
 797 LEGACY_EXTRA_CXXFLAGS
 798 LEGACY_EXTRA_CFLAGS
 799 EXE_SUFFIX
 800 OBJ_SUFFIX
 801 STATIC_LIBRARY
 802 SHARED_LIBRARY
 803 STATIC_LIBRARY_SUFFIX
 804 SHARED_LIBRARY_SUFFIX
 805 LIBRARY_PREFIX
 806 TOOLCHAIN_TYPE
 807 STATIC_BUILD
 808 BUILD_HOTSPOT
 809 HOTSPOT_DIST
 810 BUILD_OUTPUT
 811 JDK_TOPDIR
 812 NASHORN_TOPDIR
 813 HOTSPOT_TOPDIR
 814 JAXWS_TOPDIR
 815 JAXP_TOPDIR
 816 CORBA_TOPDIR
 817 LANGTOOLS_TOPDIR
 818 BOOT_JDK_BITS
 819 JAVAC_FLAGS
 820 BOOT_JDK_SOURCETARGET
 821 JARSIGNER
 822 JAR
 823 JAVAH
 824 JAVAC
 825 JAVA
 826 BOOT_JDK
 827 JAVA_CHECK
 828 JAVAC_CHECK
 829 COOKED_BUILD_NUMBER
 830 JDK_VERSION
 831 COPYRIGHT_YEAR
 832 MACOSX_BUNDLE_ID_BASE
 833 MACOSX_BUNDLE_NAME_BASE
 834 COMPANY_NAME
 835 JDK_RC_PLATFORM_NAME
 836 PRODUCT_SUFFIX
 837 PRODUCT_NAME
 838 LAUNCHER_NAME
 839 MILESTONE
 840 JDK_BUILD_NUMBER
 841 JDK_UPDATE_VERSION
 842 JDK_MICRO_VERSION
 843 JDK_MINOR_VERSION
 844 JDK_MAJOR_VERSION
 845 USER_RELEASE_SUFFIX
 846 COMPRESS_JARS
 847 UNLIMITED_CRYPTO
 848 CACERTS_FILE
 849 TEST_IN_BUILD
 850 BUILD_HEADLESS
 851 SUPPORT_HEADFUL
 852 SUPPORT_HEADLESS
 853 OS_VERSION_MICRO
 854 OS_VERSION_MINOR
 855 OS_VERSION_MAJOR
 856 PKG_CONFIG
 857 BASH_ARGS
 858 SETFILE
 859 CODESIGN
 860 XATTR
 861 DSYMUTIL
 862 IS_GNU_TIME
 863 PATCH
 864 TIME
 865 STAT
 866 HG
 867 READELF
 868 OTOOL
 869 LDD
 870 ZIP
 871 UNZIP
 872 FIND_DELETE
 873 OUTPUT_SYNC
 874 OUTPUT_SYNC_SUPPORTED
 875 CHECK_TOOLSDIR_MAKE
 876 CHECK_TOOLSDIR_GMAKE
 877 CHECK_MAKE
 878 CHECK_GMAKE
 879 MAKE
 880 PKGHANDLER
 881 CONFIGURESUPPORT_OUTPUTDIR
 882 OUTPUT_ROOT
 883 CONF_NAME
 884 SPEC
 885 SDKROOT
 886 XCODEBUILD
 887 BUILD_VARIANT_RELEASE
 888 DEBUG_CLASSFILES
 889 FASTDEBUG
 890 VARIANT
 891 DEBUG_LEVEL
 892 MACOSX_UNIVERSAL
 893 INCLUDE_SA
 894 JVM_VARIANT_CORE
 895 JVM_VARIANT_ZEROSHARK
 896 JVM_VARIANT_ZERO
 897 JVM_VARIANT_KERNEL
 898 JVM_VARIANT_MINIMAL1
 899 JVM_VARIANT_CLIENT
 900 JVM_VARIANT_SERVER
 901 JVM_VARIANTS
 902 JVM_INTERPRETER
 903 JDK_VARIANT
 904 SET_OPENJDK
 905 CANONICAL_TOPDIR
 906 ORIGINAL_TOPDIR
 907 TOPDIR
 908 PATH_SEP
 909 ZERO_ARCHDEF
 910 DEFINE_CROSS_COMPILE_ARCH
 911 LP64
 912 OPENJDK_TARGET_OS_EXPORT_DIR
 913 OPENJDK_TARGET_CPU_JLI_CFLAGS
 914 OPENJDK_TARGET_CPU_OSARCH
 915 OPENJDK_TARGET_CPU_ISADIR
 916 OPENJDK_TARGET_CPU_LIBDIR
 917 OPENJDK_TARGET_CPU_LEGACY_LIB
 918 OPENJDK_TARGET_CPU_LEGACY
 919 REQUIRED_OS_VERSION
 920 REQUIRED_OS_NAME
 921 COMPILE_TYPE
 922 OPENJDK_TARGET_CPU_ENDIAN
 923 OPENJDK_TARGET_CPU_BITS
 924 OPENJDK_TARGET_CPU_ARCH
 925 OPENJDK_TARGET_CPU
 926 OPENJDK_TARGET_OS_ENV
 927 OPENJDK_TARGET_OS_TYPE
 928 OPENJDK_TARGET_OS
 929 OPENJDK_BUILD_CPU_ENDIAN
 930 OPENJDK_BUILD_CPU_BITS
 931 OPENJDK_BUILD_CPU_ARCH
 932 OPENJDK_BUILD_CPU
 933 OPENJDK_BUILD_OS_ENV
 934 OPENJDK_BUILD_OS_TYPE
 935 OPENJDK_BUILD_OS
 936 OPENJDK_BUILD_AUTOCONF_NAME
 937 OPENJDK_TARGET_AUTOCONF_NAME
 938 target_os
 939 target_vendor
 940 target_cpu
 941 target
 942 host_os
 943 host_vendor
 944 host_cpu
 945 host
 946 build_os
 947 build_vendor
 948 build_cpu
 949 build
 950 NICE
 951 CPIO
 952 DF
 953 READLINK
 954 CYGPATH
 955 SED
 956 FGREP
 957 EGREP
 958 GREP
 959 AWK
 960 XARGS
 961 WHICH
 962 WC
 963 UNIQ
 964 UNAME
 965 TR
 966 TOUCH
 967 TEE
 968 TAR
 969 TAIL
 970 SORT
 971 SH
 972 RMDIR
 973 RM
 974 PRINTF
 975 NAWK
 976 MV
 977 MKTEMP
 978 MKDIR
 979 LS
 980 LN
 981 HEAD
 982 FIND
 983 FILE
 984 EXPR
 985 ECHO
 986 DIRNAME
 987 DIFF
 988 DATE
 989 CUT
 990 CP
 991 COMM
 992 CMP
 993 CHMOD
 994 CAT
 995 BASH
 996 BASENAME
 997 DATE_WHEN_CONFIGURED
 998 ORIGINAL_PATH
 999 CONFIGURE_COMMAND_LINE
1000 target_alias
1001 host_alias
1002 build_alias
1003 LIBS
1004 ECHO_T
1005 ECHO_N
1006 ECHO_C
1007 DEFS
1008 mandir
1009 localedir
1010 libdir
1011 psdir
1012 pdfdir
1013 dvidir
1014 htmldir
1015 infodir
1016 docdir
1017 oldincludedir
1018 includedir
1019 localstatedir
1020 sharedstatedir
1021 sysconfdir
1022 datadir
1023 datarootdir
1024 libexecdir
1025 sbindir
1026 bindir
1027 program_transform_name
1028 prefix
1029 exec_prefix
1030 PACKAGE_URL
1031 PACKAGE_BUGREPORT
1032 PACKAGE_STRING
1033 PACKAGE_VERSION
1034 PACKAGE_TARNAME
1035 PACKAGE_NAME
1036 PATH_SEPARATOR
1037 SHELL'
1038 ac_subst_files=''
1039 ac_user_opts='
1040 enable_option_checking
1041 with_target_bits
1042 enable_openjdk_only
1043 with_custom_make_dir
1044 with_jdk_variant
1045 with_jvm_interpreter
1046 with_jvm_variants
1047 enable_debug
1048 with_debug_level
1049 with_devkit
1050 with_sys_root
1051 with_sysroot
1052 with_tools_dir
1053 with_toolchain_path
1054 with_extra_path
1055 with_sdk_name
1056 with_conf_name
1057 with_output_sync
1058 enable_headful
1059 enable_hotspot_test_in_build
1060 with_cacerts_file
1061 enable_unlimited_crypto
1062 with_milestone
1063 with_update_version
1064 with_user_release_suffix
1065 with_build_number
1066 with_copyright_year
1067 with_boot_jdk
1068 with_add_source_root
1069 with_override_source_root
1070 with_adds_and_overrides
1071 with_override_langtools
1072 with_override_corba
1073 with_override_jaxp
1074 with_override_jaxws
1075 with_override_hotspot
1076 with_override_nashorn
1077 with_override_jdk
1078 with_import_hotspot
1079 enable_static_build
1080 with_toolchain_type
1081 with_extra_cflags
1082 with_extra_cxxflags
1083 with_extra_ldflags
1084 with_toolchain_version
1085 with_build_devkit
1086 with_jtreg
1087 enable_warnings_as_errors
1088 enable_debug_symbols
1089 enable_zip_debug_info
1090 with_debug_symbols
1091 enable_native_coverage
1092 with_stdc__lib
1093 with_msvcr_dll
1094 with_msvcp_dll
1095 with_x
1096 with_cups
1097 with_cups_include
1098 with_freetype
1099 with_freetype_include
1100 with_freetype_lib
1101 with_freetype_src
1102 enable_freetype_bundling
1103 with_alsa
1104 with_alsa_include
1105 with_alsa_lib
1106 with_libffi
1107 with_libffi_include
1108 with_libffi_lib
1109 with_libjpeg
1110 with_giflib
1111 with_libpng
1112 with_zlib
1113 with_lcms
1114 with_dxsdk
1115 with_dxsdk_lib
1116 with_dxsdk_include
1117 with_num_cores
1118 with_memory_size
1119 with_jobs
1120 with_boot_jdk_jvmargs
1121 with_sjavac_server_java
1122 enable_sjavac
1123 enable_javac_server
1124 enable_precompiled_headers
1125 enable_ccache
1126 with_ccache_dir
1127 '
1128       ac_precious_vars='build_alias
1129 host_alias
1130 target_alias
1131 BASENAME
1132 BASH
1133 CAT
1134 CHMOD
1135 CMP
1136 COMM
1137 CP
1138 CUT
1139 DATE
1140 DIFF
1141 DIRNAME
1142 ECHO
1143 EXPR
1144 FILE
1145 FIND
1146 HEAD
1147 LN
1148 LS
1149 MKDIR
1150 MKTEMP
1151 MV
1152 NAWK
1153 PRINTF
1154 RM
1155 RMDIR
1156 SH
1157 SORT
1158 TAIL
1159 TAR
1160 TEE
1161 TOUCH
1162 TR
1163 UNAME
1164 UNIQ
1165 WC
1166 WHICH
1167 XARGS
1168 AWK
1169 GREP
1170 EGREP
1171 FGREP
1172 SED
1173 CYGPATH
1174 READLINK
1175 DF
1176 CPIO
1177 NICE
1178 MAKE
1179 UNZIP
1180 ZIP
1181 LDD
1182 OTOOL
1183 READELF
1184 HG
1185 STAT
1186 TIME
1187 PATCH
1188 DSYMUTIL
1189 XATTR
1190 CODESIGN
1191 SETFILE
1192 PKG_CONFIG
1193 JAVA
1194 JAVAC
1195 JAVAH
1196 JAR
1197 JARSIGNER
1198 CC
1199 CFLAGS
1200 LDFLAGS
1201 LIBS
1202 CPPFLAGS
1203 CXX
1204 CXXFLAGS
1205 CCC
1206 CPP
1207 CXXCPP
1208 AS
1209 AR
1210 LIPO
1211 STRIP
1212 NM
1213 GNM
1214 OBJCOPY
1215 OBJDUMP
1216 BUILD_CC
1217 BUILD_CXX
1218 JTREGEXE
1219 XMKMF
1220 FREETYPE_CFLAGS
1221 FREETYPE_LIBS
1222 ALSA_CFLAGS
1223 ALSA_LIBS
1224 LIBFFI_CFLAGS
1225 LIBFFI_LIBS
1226 PNG_CFLAGS
1227 PNG_LIBS
1228 LCMS_CFLAGS
1229 LCMS_LIBS
1230 CCACHE'
1231 
1232 
1233 # Initialize some variables set by options.
1234 ac_init_help=
1235 ac_init_version=false
1236 ac_unrecognized_opts=
1237 ac_unrecognized_sep=
1238 # The variables have the same names as the options, with
1239 # dashes changed to underlines.
1240 cache_file=/dev/null
1241 exec_prefix=NONE
1242 no_create=
1243 no_recursion=
1244 prefix=NONE
1245 program_prefix=NONE
1246 program_suffix=NONE
1247 program_transform_name=s,x,x,
1248 silent=
1249 site=
1250 srcdir=
1251 verbose=
1252 x_includes=NONE
1253 x_libraries=NONE
1254 
1255 # Installation directory options.
1256 # These are left unexpanded so users can "make install exec_prefix=/foo"
1257 # and all the variables that are supposed to be based on exec_prefix
1258 # by default will actually change.
1259 # Use braces instead of parens because sh, perl, etc. also accept them.
1260 # (The list follows the same order as the GNU Coding Standards.)
1261 bindir='${exec_prefix}/bin'
1262 sbindir='${exec_prefix}/sbin'
1263 libexecdir='${exec_prefix}/libexec'
1264 datarootdir='${prefix}/share'
1265 datadir='${datarootdir}'
1266 sysconfdir='${prefix}/etc'
1267 sharedstatedir='${prefix}/com'
1268 localstatedir='${prefix}/var'
1269 includedir='${prefix}/include'
1270 oldincludedir='/usr/include'
1271 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1272 infodir='${datarootdir}/info'
1273 htmldir='${docdir}'
1274 dvidir='${docdir}'
1275 pdfdir='${docdir}'
1276 psdir='${docdir}'
1277 libdir='${exec_prefix}/lib'
1278 localedir='${datarootdir}/locale'
1279 mandir='${datarootdir}/man'
1280 
1281 ac_prev=
1282 ac_dashdash=
1283 for ac_option
1284 do
1285   # If the previous option needs an argument, assign it.
1286   if test -n "$ac_prev"; then
1287     eval $ac_prev=\$ac_option
1288     ac_prev=
1289     continue
1290   fi
1291 
1292   case $ac_option in
1293   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1294   *=)   ac_optarg= ;;
1295   *)    ac_optarg=yes ;;
1296   esac
1297 
1298   # Accept the important Cygnus configure options, so we can diagnose typos.
1299 
1300   case $ac_dashdash$ac_option in
1301   --)
1302     ac_dashdash=yes ;;
1303 
1304   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1305     ac_prev=bindir ;;
1306   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1307     bindir=$ac_optarg ;;
1308 
1309   -build | --build | --buil | --bui | --bu)
1310     ac_prev=build_alias ;;
1311   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1312     build_alias=$ac_optarg ;;
1313 
1314   -cache-file | --cache-file | --cache-fil | --cache-fi \
1315   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1316     ac_prev=cache_file ;;
1317   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1318   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1319     cache_file=$ac_optarg ;;
1320 
1321   --config-cache | -C)
1322     cache_file=config.cache ;;
1323 
1324   -datadir | --datadir | --datadi | --datad)
1325     ac_prev=datadir ;;
1326   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1327     datadir=$ac_optarg ;;
1328 
1329   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1330   | --dataroo | --dataro | --datar)
1331     ac_prev=datarootdir ;;
1332   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1333   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1334     datarootdir=$ac_optarg ;;
1335 
1336   -disable-* | --disable-*)
1337     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1338     # Reject names that are not valid shell variable names.
1339     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1340       as_fn_error $? "invalid feature name: $ac_useropt"
1341     ac_useropt_orig=$ac_useropt
1342     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1343     case $ac_user_opts in
1344       *"
1345 "enable_$ac_useropt"
1346 "*) ;;
1347       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1348          ac_unrecognized_sep=', ';;
1349     esac
1350     eval enable_$ac_useropt=no ;;
1351 
1352   -docdir | --docdir | --docdi | --doc | --do)
1353     ac_prev=docdir ;;
1354   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1355     docdir=$ac_optarg ;;
1356 
1357   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1358     ac_prev=dvidir ;;
1359   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1360     dvidir=$ac_optarg ;;
1361 
1362   -enable-* | --enable-*)
1363     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1364     # Reject names that are not valid shell variable names.
1365     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1366       as_fn_error $? "invalid feature name: $ac_useropt"
1367     ac_useropt_orig=$ac_useropt
1368     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1369     case $ac_user_opts in
1370       *"
1371 "enable_$ac_useropt"
1372 "*) ;;
1373       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1374          ac_unrecognized_sep=', ';;
1375     esac
1376     eval enable_$ac_useropt=\$ac_optarg ;;
1377 
1378   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1379   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1380   | --exec | --exe | --ex)
1381     ac_prev=exec_prefix ;;
1382   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1383   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1384   | --exec=* | --exe=* | --ex=*)
1385     exec_prefix=$ac_optarg ;;
1386 
1387   -gas | --gas | --ga | --g)
1388     # Obsolete; use --with-gas.
1389     with_gas=yes ;;
1390 
1391   -help | --help | --hel | --he | -h)
1392     ac_init_help=long ;;
1393   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1394     ac_init_help=recursive ;;
1395   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1396     ac_init_help=short ;;
1397 
1398   -host | --host | --hos | --ho)
1399     ac_prev=host_alias ;;
1400   -host=* | --host=* | --hos=* | --ho=*)
1401     host_alias=$ac_optarg ;;
1402 
1403   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1404     ac_prev=htmldir ;;
1405   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1406   | --ht=*)
1407     htmldir=$ac_optarg ;;
1408 
1409   -includedir | --includedir | --includedi | --included | --include \
1410   | --includ | --inclu | --incl | --inc)
1411     ac_prev=includedir ;;
1412   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1413   | --includ=* | --inclu=* | --incl=* | --inc=*)
1414     includedir=$ac_optarg ;;
1415 
1416   -infodir | --infodir | --infodi | --infod | --info | --inf)
1417     ac_prev=infodir ;;
1418   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1419     infodir=$ac_optarg ;;
1420 
1421   -libdir | --libdir | --libdi | --libd)
1422     ac_prev=libdir ;;
1423   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1424     libdir=$ac_optarg ;;
1425 
1426   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1427   | --libexe | --libex | --libe)
1428     ac_prev=libexecdir ;;
1429   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1430   | --libexe=* | --libex=* | --libe=*)
1431     libexecdir=$ac_optarg ;;
1432 
1433   -localedir | --localedir | --localedi | --localed | --locale)
1434     ac_prev=localedir ;;
1435   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1436     localedir=$ac_optarg ;;
1437 
1438   -localstatedir | --localstatedir | --localstatedi | --localstated \
1439   | --localstate | --localstat | --localsta | --localst | --locals)
1440     ac_prev=localstatedir ;;
1441   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1442   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1443     localstatedir=$ac_optarg ;;
1444 
1445   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1446     ac_prev=mandir ;;
1447   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1448     mandir=$ac_optarg ;;
1449 
1450   -nfp | --nfp | --nf)
1451     # Obsolete; use --without-fp.
1452     with_fp=no ;;
1453 
1454   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1455   | --no-cr | --no-c | -n)
1456     no_create=yes ;;
1457 
1458   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1459   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1460     no_recursion=yes ;;
1461 
1462   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1463   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1464   | --oldin | --oldi | --old | --ol | --o)
1465     ac_prev=oldincludedir ;;
1466   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1467   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1468   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1469     oldincludedir=$ac_optarg ;;
1470 
1471   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1472     ac_prev=prefix ;;
1473   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1474     prefix=$ac_optarg ;;
1475 
1476   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1477   | --program-pre | --program-pr | --program-p)
1478     ac_prev=program_prefix ;;
1479   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1480   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1481     program_prefix=$ac_optarg ;;
1482 
1483   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1484   | --program-suf | --program-su | --program-s)
1485     ac_prev=program_suffix ;;
1486   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1487   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1488     program_suffix=$ac_optarg ;;
1489 
1490   -program-transform-name | --program-transform-name \
1491   | --program-transform-nam | --program-transform-na \
1492   | --program-transform-n | --program-transform- \
1493   | --program-transform | --program-transfor \
1494   | --program-transfo | --program-transf \
1495   | --program-trans | --program-tran \
1496   | --progr-tra | --program-tr | --program-t)
1497     ac_prev=program_transform_name ;;
1498   -program-transform-name=* | --program-transform-name=* \
1499   | --program-transform-nam=* | --program-transform-na=* \
1500   | --program-transform-n=* | --program-transform-=* \
1501   | --program-transform=* | --program-transfor=* \
1502   | --program-transfo=* | --program-transf=* \
1503   | --program-trans=* | --program-tran=* \
1504   | --progr-tra=* | --program-tr=* | --program-t=*)
1505     program_transform_name=$ac_optarg ;;
1506 
1507   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1508     ac_prev=pdfdir ;;
1509   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1510     pdfdir=$ac_optarg ;;
1511 
1512   -psdir | --psdir | --psdi | --psd | --ps)
1513     ac_prev=psdir ;;
1514   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1515     psdir=$ac_optarg ;;
1516 
1517   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1518   | -silent | --silent | --silen | --sile | --sil)
1519     silent=yes ;;
1520 
1521   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1522     ac_prev=sbindir ;;
1523   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1524   | --sbi=* | --sb=*)
1525     sbindir=$ac_optarg ;;
1526 
1527   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1528   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1529   | --sharedst | --shareds | --shared | --share | --shar \
1530   | --sha | --sh)
1531     ac_prev=sharedstatedir ;;
1532   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1533   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1534   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1535   | --sha=* | --sh=*)
1536     sharedstatedir=$ac_optarg ;;
1537 
1538   -site | --site | --sit)
1539     ac_prev=site ;;
1540   -site=* | --site=* | --sit=*)
1541     site=$ac_optarg ;;
1542 
1543   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1544     ac_prev=srcdir ;;
1545   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1546     srcdir=$ac_optarg ;;
1547 
1548   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1549   | --syscon | --sysco | --sysc | --sys | --sy)
1550     ac_prev=sysconfdir ;;
1551   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1552   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1553     sysconfdir=$ac_optarg ;;
1554 
1555   -target | --target | --targe | --targ | --tar | --ta | --t)
1556     ac_prev=target_alias ;;
1557   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1558     target_alias=$ac_optarg ;;
1559 
1560   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1561     verbose=yes ;;
1562 
1563   -version | --version | --versio | --versi | --vers | -V)
1564     ac_init_version=: ;;
1565 
1566   -with-* | --with-*)
1567     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1568     # Reject names that are not valid shell variable names.
1569     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1570       as_fn_error $? "invalid package name: $ac_useropt"
1571     ac_useropt_orig=$ac_useropt
1572     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1573     case $ac_user_opts in
1574       *"
1575 "with_$ac_useropt"
1576 "*) ;;
1577       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1578          ac_unrecognized_sep=', ';;
1579     esac
1580     eval with_$ac_useropt=\$ac_optarg ;;
1581 
1582   -without-* | --without-*)
1583     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1584     # Reject names that are not valid shell variable names.
1585     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1586       as_fn_error $? "invalid package name: $ac_useropt"
1587     ac_useropt_orig=$ac_useropt
1588     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1589     case $ac_user_opts in
1590       *"
1591 "with_$ac_useropt"
1592 "*) ;;
1593       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1594          ac_unrecognized_sep=', ';;
1595     esac
1596     eval with_$ac_useropt=no ;;
1597 
1598   --x)
1599     # Obsolete; use --with-x.
1600     with_x=yes ;;
1601 
1602   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1603   | --x-incl | --x-inc | --x-in | --x-i)
1604     ac_prev=x_includes ;;
1605   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1606   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1607     x_includes=$ac_optarg ;;
1608 
1609   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1610   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1611     ac_prev=x_libraries ;;
1612   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1613   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1614     x_libraries=$ac_optarg ;;
1615 
1616   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1617 Try \`$0 --help' for more information"
1618     ;;
1619 
1620   *=*)
1621     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1622     # Reject names that are not valid shell variable names.
1623     case $ac_envvar in #(
1624       '' | [0-9]* | *[!_$as_cr_alnum]* )
1625       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1626     esac
1627     eval $ac_envvar=\$ac_optarg
1628     export $ac_envvar ;;
1629 
1630   *)
1631     # FIXME: should be removed in autoconf 3.0.
1632     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1633     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1634       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1635     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1636     ;;
1637 
1638   esac
1639 done
1640 
1641 if test -n "$ac_prev"; then
1642   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1643   as_fn_error $? "missing argument to $ac_option"
1644 fi
1645 
1646 if test -n "$ac_unrecognized_opts"; then
1647   case $enable_option_checking in
1648     no) ;;
1649     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1650     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1651   esac
1652 fi
1653 
1654 # Check all directory arguments for consistency.
1655 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1656                 datadir sysconfdir sharedstatedir localstatedir includedir \
1657                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1658                 libdir localedir mandir
1659 do
1660   eval ac_val=\$$ac_var
1661   # Remove trailing slashes.
1662   case $ac_val in
1663     */ )
1664       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1665       eval $ac_var=\$ac_val;;
1666   esac
1667   # Be sure to have absolute directory names.
1668   case $ac_val in
1669     [\\/$]* | ?:[\\/]* )  continue;;
1670     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1671   esac
1672   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1673 done
1674 
1675 # There might be people who depend on the old broken behavior: `$host'
1676 # used to hold the argument of --host etc.
1677 # FIXME: To remove some day.
1678 build=$build_alias
1679 host=$host_alias
1680 target=$target_alias
1681 
1682 # FIXME: To remove some day.
1683 if test "x$host_alias" != x; then
1684   if test "x$build_alias" = x; then
1685     cross_compiling=maybe
1686   elif test "x$build_alias" != "x$host_alias"; then
1687     cross_compiling=yes
1688   fi
1689 fi
1690 
1691 ac_tool_prefix=
1692 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1693 
1694 test "$silent" = yes && exec 6>/dev/null
1695 
1696 
1697 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1698 ac_ls_di=`ls -di .` &&
1699 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1700   as_fn_error $? "working directory cannot be determined"
1701 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1702   as_fn_error $? "pwd does not report name of working directory"
1703 
1704 
1705 # Find the source files, if location was not specified.
1706 if test -z "$srcdir"; then
1707   ac_srcdir_defaulted=yes
1708   # Try the directory containing this script, then the parent directory.
1709   ac_confdir=`$as_dirname -- "$as_myself" ||
1710 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1711          X"$as_myself" : 'X\(//\)[^/]' \| \
1712          X"$as_myself" : 'X\(//\)$' \| \
1713          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1714 $as_echo X"$as_myself" |
1715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1716             s//\1/
1717             q
1718           }
1719           /^X\(\/\/\)[^/].*/{
1720             s//\1/
1721             q
1722           }
1723           /^X\(\/\/\)$/{
1724             s//\1/
1725             q
1726           }
1727           /^X\(\/\).*/{
1728             s//\1/
1729             q
1730           }
1731           s/.*/./; q'`
1732   srcdir=$ac_confdir
1733   if test ! -r "$srcdir/$ac_unique_file"; then
1734     srcdir=..
1735   fi
1736 else
1737   ac_srcdir_defaulted=no
1738 fi
1739 if test ! -r "$srcdir/$ac_unique_file"; then
1740   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1741   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1742 fi
1743 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1744 ac_abs_confdir=`(
1745         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1746         pwd)`
1747 # When building in place, set srcdir=.
1748 if test "$ac_abs_confdir" = "$ac_pwd"; then
1749   srcdir=.
1750 fi
1751 # Remove unnecessary trailing slashes from srcdir.
1752 # Double slashes in file names in object file debugging info
1753 # mess up M-x gdb in Emacs.
1754 case $srcdir in
1755 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1756 esac
1757 for ac_var in $ac_precious_vars; do
1758   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1759   eval ac_env_${ac_var}_value=\$${ac_var}
1760   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1761   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1762 done
1763 
1764 #
1765 # Report the --help message.
1766 #
1767 if test "$ac_init_help" = "long"; then
1768   # Omit some internal or obsolete options to make the list less imposing.
1769   # This message is too long to be a string in the A/UX 3.1 sh.
1770   cat <<_ACEOF
1771 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1772 
1773 Usage: $0 [OPTION]... [VAR=VALUE]...
1774 
1775 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1776 VAR=VALUE.  See below for descriptions of some of the useful variables.
1777 
1778 Defaults for the options are specified in brackets.
1779 
1780 Configuration:
1781   -h, --help              display this help and exit
1782       --help=short        display options specific to this package
1783       --help=recursive    display the short help of all the included packages
1784   -V, --version           display version information and exit
1785   -q, --quiet, --silent   do not print \`checking ...' messages
1786       --cache-file=FILE   cache test results in FILE [disabled]
1787   -C, --config-cache      alias for \`--cache-file=config.cache'
1788   -n, --no-create         do not create output files
1789       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1790 
1791 Installation directories:
1792   --prefix=PREFIX         install architecture-independent files in PREFIX
1793                           [$ac_default_prefix]
1794   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1795                           [PREFIX]
1796 
1797 By default, \`make install' will install all the files in
1798 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1799 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1800 for instance \`--prefix=\$HOME'.
1801 
1802 For better control, use the options below.
1803 
1804 Fine tuning of the installation directories:
1805   --bindir=DIR            user executables [EPREFIX/bin]
1806   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1807   --libexecdir=DIR        program executables [EPREFIX/libexec]
1808   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1809   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1810   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1811   --libdir=DIR            object code libraries [EPREFIX/lib]
1812   --includedir=DIR        C header files [PREFIX/include]
1813   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1814   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1815   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1816   --infodir=DIR           info documentation [DATAROOTDIR/info]
1817   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1818   --mandir=DIR            man documentation [DATAROOTDIR/man]
1819   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1820   --htmldir=DIR           html documentation [DOCDIR]
1821   --dvidir=DIR            dvi documentation [DOCDIR]
1822   --pdfdir=DIR            pdf documentation [DOCDIR]
1823   --psdir=DIR             ps documentation [DOCDIR]
1824 _ACEOF
1825 
1826   cat <<\_ACEOF
1827 
1828 X features:
1829   --x-includes=DIR    X include files are in DIR
1830   --x-libraries=DIR   X library files are in DIR
1831 
1832 System types:
1833   --build=BUILD     configure for building on BUILD [guessed]
1834   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1835   --target=TARGET   configure for building compilers for TARGET [HOST]
1836 _ACEOF
1837 fi
1838 
1839 if test -n "$ac_init_help"; then
1840   case $ac_init_help in
1841      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1842    esac
1843   cat <<\_ACEOF
1844 
1845 Optional Features:
1846   --disable-option-checking  ignore unrecognized --enable/--with options
1847   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1848   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1849   --enable-openjdk-only   suppress building custom source even if present
1850                           [disabled]
1851   --enable-debug          set the debug level to fastdebug (shorthand for
1852                           --with-debug-level=fastdebug) [disabled]
1853   --disable-headful       disable building headful support (graphical UI
1854                           support) [enabled]
1855   --enable-hotspot-test-in-build
1856                           run the Queens test after Hotspot build [disabled]
1857   --enable-unlimited-crypto
1858                           Enable unlimited crypto policy [disabled]
1859   --enable-static-build   enable static library build [disabled]
1860   --disable-warnings-as-errors
1861                           do not consider native warnings to be an error
1862                           [enabled]
1863   --disable-debug-symbols disable generation of debug symbols [enabled]
1864   --disable-zip-debug-info
1865                           disable zipping of debug-info files [enabled]
1866   --enable-native-coverage
1867                           enable native compilation with code coverage
1868                           data[disabled]
1869   --disable-freetype-bundling
1870                           disable bundling of the freetype library with the
1871                           build result [enabled on Windows or when using
1872                           --with-freetype, disabled otherwise]
1873   --enable-sjavac         use sjavac to do fast incremental compiles
1874                           [disabled]
1875   --enable-javac-server   use only the server part of sjavac for faster javac
1876                           compiles [disabled]
1877   --disable-precompiled-headers
1878                           disable using precompiled headers when compiling C++
1879                           [enabled]
1880   --enable-ccache         enable using ccache to speed up recompilations
1881                           [disabled]
1882 
1883 Optional Packages:
1884   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1885   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1886   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1887                           support it), e.g. --with-target-bits=32 [guessed]
1888   --with-custom-make-dir  Deprecated. Option is kept for backwards
1889                           compatibility and is ignored
1890   --with-jdk-variant      JDK variant to build (normal) [normal]
1891   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1892   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1893                           client, minimal1, kernel, zero, zeroshark, core)
1894                           [server]
1895   --with-debug-level      set the debug level (release, fastdebug, slowdebug,
1896                           optimized (HotSpot build only)) [release]
1897   --with-devkit           use this devkit for compilers, tools and resources
1898   --with-sys-root         alias for --with-sysroot for backwards compatability
1899   --with-sysroot          use this directory as sysroot
1900   --with-tools-dir        alias for --with-toolchain-path for backwards
1901                           compatibility
1902   --with-toolchain-path   prepend these directories when searching for
1903                           toolchain binaries (compilers etc)
1904   --with-extra-path       prepend these directories to the default path
1905   --with-sdk-name         use the platform SDK of the given name. [macosx]
1906   --with-conf-name        use this as the name of the configuration [generated
1907                           from important configuration options]
1908   --with-output-sync      set make output sync type if supported by make.
1909                           [recurse]
1910   --with-cacerts-file     specify alternative cacerts file
1911   --with-milestone        Set milestone value for build [internal]
1912   --with-update-version   Set update version value for build [b00]
1913   --with-user-release-suffix
1914                           Add a custom string to the version string if build
1915                           number is not set.[username_builddateb00]
1916   --with-build-number     Set build number value for build [b00]
1917   --with-copyright-year   Set copyright year value for build [current year]
1918   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1919   --with-add-source-root  Deprecated. Option is kept for backwards
1920                           compatibility and is ignored
1921   --with-override-source-root
1922                           Deprecated. Option is kept for backwards
1923                           compatibility and is ignored
1924   --with-adds-and-overrides
1925                           Deprecated. Option is kept for backwards
1926                           compatibility and is ignored
1927   --with-override-langtools
1928                           Deprecated. Option is kept for backwards
1929                           compatibility and is ignored
1930   --with-override-corba   Deprecated. Option is kept for backwards
1931                           compatibility and is ignored
1932   --with-override-jaxp    Deprecated. Option is kept for backwards
1933                           compatibility and is ignored
1934   --with-override-jaxws   Deprecated. Option is kept for backwards
1935                           compatibility and is ignored
1936   --with-override-hotspot Deprecated. Option is kept for backwards
1937                           compatibility and is ignored
1938   --with-override-nashorn Deprecated. Option is kept for backwards
1939                           compatibility and is ignored
1940   --with-override-jdk     Deprecated. Option is kept for backwards
1941                           compatibility and is ignored
1942   --with-import-hotspot   import hotspot binaries from this jdk image or
1943                           hotspot build dist dir instead of building from
1944                           source
1945   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
1946                           to show possible values [platform dependent]
1947   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1948   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1949   --with-extra-ldflags    extra flags to be used when linking jdk
1950   --with-toolchain-version
1951                           the version of the toolchain to look for, use
1952                           '--help' to show possible values [platform
1953                           dependent]
1954   --with-build-devkit     Devkit to use for the build platform toolchain
1955   --with-jtreg            Regression Test Harness [probed]
1956   --with-debug-symbols    set the debug symbol configuration (none, internal,
1957                           external, zipped) [zipped]
1958   --with-stdc++lib=<static>,<dynamic>,<default>
1959                           force linking of the C++ runtime on Linux to either
1960                           static or dynamic, default is static with dynamic as
1961                           fallback
1962   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
1963                           (Windows only) [probed]
1964   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
1965                           (Windows only) [probed]
1966   --with-x                use the X Window System
1967   --with-cups             specify prefix directory for the cups package
1968                           (expecting the headers under PATH/include)
1969   --with-cups-include     specify directory for the cups include files
1970   --with-freetype         specify prefix directory for the freetype package
1971                           (expecting the libraries under PATH/lib and the
1972                           headers under PATH/include)
1973   --with-freetype-include specify directory for the freetype include files
1974   --with-freetype-lib     specify directory for the freetype library
1975   --with-freetype-src     specify directory with freetype sources to
1976                           automatically build the library (experimental,
1977                           Windows-only)
1978   --with-alsa             specify prefix directory for the alsa package
1979                           (expecting the libraries under PATH/lib and the
1980                           headers under PATH/include)
1981   --with-alsa-include     specify directory for the alsa include files
1982   --with-alsa-lib         specify directory for the alsa library
1983   --with-libffi           specify prefix directory for the libffi package
1984                           (expecting the libraries under PATH/lib and the
1985                           headers under PATH/include)
1986   --with-libffi-include   specify directory for the libffi include files
1987   --with-libffi-lib       specify directory for the libffi library
1988   --with-libjpeg          use libjpeg from build system or OpenJDK source
1989                           (system, bundled) [bundled]
1990   --with-giflib           use giflib from build system or OpenJDK source
1991                           (system, bundled) [bundled]
1992   --with-libpng           use libpng from build system or OpenJDK source
1993                           (system, bundled) [bundled]
1994   --with-zlib             use zlib from build system or OpenJDK source
1995                           (system, bundled) [bundled]
1996   --with-lcms             use lcms2 from build system or OpenJDK source
1997                           (system, bundled) [bundled]
1998   --with-dxsdk            Deprecated. Option is kept for backwards
1999                           compatibility and is ignored
2000   --with-dxsdk-lib        Deprecated. Option is kept for backwards
2001                           compatibility and is ignored
2002   --with-dxsdk-include    Deprecated. Option is kept for backwards
2003                           compatibility and is ignored
2004   --with-num-cores        number of cores in the build system, e.g.
2005                           --with-num-cores=8 [probed]
2006   --with-memory-size      memory (in MB) available in the build system, e.g.
2007                           --with-memory-size=1024 [probed]
2008   --with-jobs             number of parallel jobs to let make run [calculated
2009                           based on cores and memory]
2010   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
2011                           invocations of boot JDK, overriding the default
2012                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
2013                           -enableassertions"
2014   --with-sjavac-server-java
2015                           use this java binary for running the sjavac
2016                           background server [Boot JDK java]
2017   --with-ccache-dir       where to store ccache files [~/.ccache]
2018 
2019 Some influential environment variables:
2020   BASENAME    Override default value for BASENAME
2021   BASH        Override default value for BASH
2022   CAT         Override default value for CAT
2023   CHMOD       Override default value for CHMOD
2024   CMP         Override default value for CMP
2025   COMM        Override default value for COMM
2026   CP          Override default value for CP
2027   CUT         Override default value for CUT
2028   DATE        Override default value for DATE
2029   DIFF        Override default value for DIFF
2030   DIRNAME     Override default value for DIRNAME
2031   ECHO        Override default value for ECHO
2032   EXPR        Override default value for EXPR
2033   FILE        Override default value for FILE
2034   FIND        Override default value for FIND
2035   HEAD        Override default value for HEAD
2036   LN          Override default value for LN
2037   LS          Override default value for LS
2038   MKDIR       Override default value for MKDIR
2039   MKTEMP      Override default value for MKTEMP
2040   MV          Override default value for MV
2041   NAWK        Override default value for NAWK
2042   PRINTF      Override default value for PRINTF
2043   RM          Override default value for RM
2044   RMDIR       Override default value for RMDIR
2045   SH          Override default value for SH
2046   SORT        Override default value for SORT
2047   TAIL        Override default value for TAIL
2048   TAR         Override default value for TAR
2049   TEE         Override default value for TEE
2050   TOUCH       Override default value for TOUCH
2051   TR          Override default value for TR
2052   UNAME       Override default value for UNAME
2053   UNIQ        Override default value for UNIQ
2054   WC          Override default value for WC
2055   WHICH       Override default value for WHICH
2056   XARGS       Override default value for XARGS
2057   AWK         Override default value for AWK
2058   GREP        Override default value for GREP
2059   EGREP       Override default value for EGREP
2060   FGREP       Override default value for FGREP
2061   SED         Override default value for SED
2062   CYGPATH     Override default value for CYGPATH
2063   READLINK    Override default value for READLINK
2064   DF          Override default value for DF
2065   CPIO        Override default value for CPIO
2066   NICE        Override default value for NICE
2067   MAKE        Override default value for MAKE
2068   UNZIP       Override default value for UNZIP
2069   ZIP         Override default value for ZIP
2070   LDD         Override default value for LDD
2071   OTOOL       Override default value for OTOOL
2072   READELF     Override default value for READELF
2073   HG          Override default value for HG
2074   STAT        Override default value for STAT
2075   TIME        Override default value for TIME
2076   PATCH       Override default value for PATCH
2077   DSYMUTIL    Override default value for DSYMUTIL
2078   XATTR       Override default value for XATTR
2079   CODESIGN    Override default value for CODESIGN
2080   SETFILE     Override default value for SETFILE
2081   PKG_CONFIG  path to pkg-config utility
2082   JAVA        Override default value for JAVA
2083   JAVAC       Override default value for JAVAC
2084   JAVAH       Override default value for JAVAH
2085   JAR         Override default value for JAR
2086   JARSIGNER   Override default value for JARSIGNER
2087   CC          C compiler command
2088   CFLAGS      C compiler flags
2089   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2090               nonstandard directory <lib dir>
2091   LIBS        libraries to pass to the linker, e.g. -l<library>
2092   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2093               you have headers in a nonstandard directory <include dir>
2094   CXX         C++ compiler command
2095   CXXFLAGS    C++ compiler flags
2096   CPP         C preprocessor
2097   CXXCPP      C++ preprocessor
2098   AS          Override default value for AS
2099   AR          Override default value for AR
2100   LIPO        Override default value for LIPO
2101   STRIP       Override default value for STRIP
2102   NM          Override default value for NM
2103   GNM         Override default value for GNM
2104   OBJCOPY     Override default value for OBJCOPY
2105   OBJDUMP     Override default value for OBJDUMP
2106   BUILD_CC    Override default value for BUILD_CC
2107   BUILD_CXX   Override default value for BUILD_CXX
2108   JTREGEXE    Override default value for JTREGEXE
2109   XMKMF       Path to xmkmf, Makefile generator for X Window System
2110   FREETYPE_CFLAGS
2111               C compiler flags for FREETYPE, overriding pkg-config
2112   FREETYPE_LIBS
2113               linker flags for FREETYPE, overriding pkg-config
2114   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2115   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2116   LIBFFI_CFLAGS
2117               C compiler flags for LIBFFI, overriding pkg-config
2118   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2119   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2120   PNG_LIBS    linker flags for PNG, overriding pkg-config
2121   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2122   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
2123   CCACHE      Override default value for CCACHE
2124 
2125 Use these variables to override the choices made by `configure' or to help
2126 it to find libraries and programs with nonstandard names/locations.
2127 
2128 Report bugs to <build-dev@openjdk.java.net>.
2129 OpenJDK home page: <http://openjdk.java.net>.
2130 _ACEOF
2131 ac_status=$?
2132 fi
2133 
2134 if test "$ac_init_help" = "recursive"; then
2135   # If there are subdirs, report their specific --help.
2136   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2137     test -d "$ac_dir" ||
2138       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2139       continue
2140     ac_builddir=.
2141 
2142 case "$ac_dir" in
2143 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2144 *)
2145   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2146   # A ".." for each directory in $ac_dir_suffix.
2147   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2148   case $ac_top_builddir_sub in
2149   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2150   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2151   esac ;;
2152 esac
2153 ac_abs_top_builddir=$ac_pwd
2154 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2155 # for backward compatibility:
2156 ac_top_builddir=$ac_top_build_prefix
2157 
2158 case $srcdir in
2159   .)  # We are building in place.
2160     ac_srcdir=.
2161     ac_top_srcdir=$ac_top_builddir_sub
2162     ac_abs_top_srcdir=$ac_pwd ;;
2163   [\\/]* | ?:[\\/]* )  # Absolute name.
2164     ac_srcdir=$srcdir$ac_dir_suffix;
2165     ac_top_srcdir=$srcdir
2166     ac_abs_top_srcdir=$srcdir ;;
2167   *) # Relative name.
2168     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2169     ac_top_srcdir=$ac_top_build_prefix$srcdir
2170     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2171 esac
2172 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2173 
2174     cd "$ac_dir" || { ac_status=$?; continue; }
2175     # Check for guested configure.
2176     if test -f "$ac_srcdir/configure.gnu"; then
2177       echo &&
2178       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2179     elif test -f "$ac_srcdir/configure"; then
2180       echo &&
2181       $SHELL "$ac_srcdir/configure" --help=recursive
2182     else
2183       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2184     fi || ac_status=$?
2185     cd "$ac_pwd" || { ac_status=$?; break; }
2186   done
2187 fi
2188 
2189 test -n "$ac_init_help" && exit $ac_status
2190 if $ac_init_version; then
2191   cat <<\_ACEOF
2192 OpenJDK configure jdk9
2193 generated by GNU Autoconf 2.69
2194 
2195 Copyright (C) 2012 Free Software Foundation, Inc.
2196 This configure script is free software; the Free Software Foundation
2197 gives unlimited permission to copy, distribute and modify it.
2198 _ACEOF
2199   exit
2200 fi
2201 
2202 ## ------------------------ ##
2203 ## Autoconf initialization. ##
2204 ## ------------------------ ##
2205 
2206 # ac_fn_c_try_compile LINENO
2207 # --------------------------
2208 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2209 ac_fn_c_try_compile ()
2210 {
2211   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2212   rm -f conftest.$ac_objext
2213   if { { ac_try="$ac_compile"
2214 case "(($ac_try" in
2215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2216   *) ac_try_echo=$ac_try;;
2217 esac
2218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2219 $as_echo "$ac_try_echo"; } >&5
2220   (eval "$ac_compile") 2>conftest.err
2221   ac_status=$?
2222   if test -s conftest.err; then
2223     grep -v '^ *+' conftest.err >conftest.er1
2224     cat conftest.er1 >&5
2225     mv -f conftest.er1 conftest.err
2226   fi
2227   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2228   test $ac_status = 0; } && {
2229          test -z "$ac_c_werror_flag" ||
2230          test ! -s conftest.err
2231        } && test -s conftest.$ac_objext; then :
2232   ac_retval=0
2233 else
2234   $as_echo "$as_me: failed program was:" >&5
2235 sed 's/^/| /' conftest.$ac_ext >&5
2236 
2237         ac_retval=1
2238 fi
2239   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2240   as_fn_set_status $ac_retval
2241 
2242 } # ac_fn_c_try_compile
2243 
2244 # ac_fn_cxx_try_compile LINENO
2245 # ----------------------------
2246 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2247 ac_fn_cxx_try_compile ()
2248 {
2249   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2250   rm -f conftest.$ac_objext
2251   if { { ac_try="$ac_compile"
2252 case "(($ac_try" in
2253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254   *) ac_try_echo=$ac_try;;
2255 esac
2256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2257 $as_echo "$ac_try_echo"; } >&5
2258   (eval "$ac_compile") 2>conftest.err
2259   ac_status=$?
2260   if test -s conftest.err; then
2261     grep -v '^ *+' conftest.err >conftest.er1
2262     cat conftest.er1 >&5
2263     mv -f conftest.er1 conftest.err
2264   fi
2265   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2266   test $ac_status = 0; } && {
2267          test -z "$ac_cxx_werror_flag" ||
2268          test ! -s conftest.err
2269        } && test -s conftest.$ac_objext; then :
2270   ac_retval=0
2271 else
2272   $as_echo "$as_me: failed program was:" >&5
2273 sed 's/^/| /' conftest.$ac_ext >&5
2274 
2275         ac_retval=1
2276 fi
2277   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2278   as_fn_set_status $ac_retval
2279 
2280 } # ac_fn_cxx_try_compile
2281 
2282 # ac_fn_c_try_cpp LINENO
2283 # ----------------------
2284 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2285 ac_fn_c_try_cpp ()
2286 {
2287   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2288   if { { ac_try="$ac_cpp conftest.$ac_ext"
2289 case "(($ac_try" in
2290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2291   *) ac_try_echo=$ac_try;;
2292 esac
2293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2294 $as_echo "$ac_try_echo"; } >&5
2295   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2296   ac_status=$?
2297   if test -s conftest.err; then
2298     grep -v '^ *+' conftest.err >conftest.er1
2299     cat conftest.er1 >&5
2300     mv -f conftest.er1 conftest.err
2301   fi
2302   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2303   test $ac_status = 0; } > conftest.i && {
2304          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2305          test ! -s conftest.err
2306        }; then :
2307   ac_retval=0
2308 else
2309   $as_echo "$as_me: failed program was:" >&5
2310 sed 's/^/| /' conftest.$ac_ext >&5
2311 
2312     ac_retval=1
2313 fi
2314   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2315   as_fn_set_status $ac_retval
2316 
2317 } # ac_fn_c_try_cpp
2318 
2319 # ac_fn_cxx_try_cpp LINENO
2320 # ------------------------
2321 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2322 ac_fn_cxx_try_cpp ()
2323 {
2324   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2325   if { { ac_try="$ac_cpp conftest.$ac_ext"
2326 case "(($ac_try" in
2327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2328   *) ac_try_echo=$ac_try;;
2329 esac
2330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2331 $as_echo "$ac_try_echo"; } >&5
2332   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2333   ac_status=$?
2334   if test -s conftest.err; then
2335     grep -v '^ *+' conftest.err >conftest.er1
2336     cat conftest.er1 >&5
2337     mv -f conftest.er1 conftest.err
2338   fi
2339   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2340   test $ac_status = 0; } > conftest.i && {
2341          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2342          test ! -s conftest.err
2343        }; then :
2344   ac_retval=0
2345 else
2346   $as_echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2348 
2349     ac_retval=1
2350 fi
2351   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2352   as_fn_set_status $ac_retval
2353 
2354 } # ac_fn_cxx_try_cpp
2355 
2356 # ac_fn_c_try_link LINENO
2357 # -----------------------
2358 # Try to link conftest.$ac_ext, and return whether this succeeded.
2359 ac_fn_c_try_link ()
2360 {
2361   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362   rm -f conftest.$ac_objext conftest$ac_exeext
2363   if { { ac_try="$ac_link"
2364 case "(($ac_try" in
2365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366   *) ac_try_echo=$ac_try;;
2367 esac
2368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2369 $as_echo "$ac_try_echo"; } >&5
2370   (eval "$ac_link") 2>conftest.err
2371   ac_status=$?
2372   if test -s conftest.err; then
2373     grep -v '^ *+' conftest.err >conftest.er1
2374     cat conftest.er1 >&5
2375     mv -f conftest.er1 conftest.err
2376   fi
2377   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2378   test $ac_status = 0; } && {
2379          test -z "$ac_c_werror_flag" ||
2380          test ! -s conftest.err
2381        } && test -s conftest$ac_exeext && {
2382          test "$cross_compiling" = yes ||
2383          test -x conftest$ac_exeext
2384        }; then :
2385   ac_retval=0
2386 else
2387   $as_echo "$as_me: failed program was:" >&5
2388 sed 's/^/| /' conftest.$ac_ext >&5
2389 
2390         ac_retval=1
2391 fi
2392   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2393   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2394   # interfere with the next link command; also delete a directory that is
2395   # left behind by Apple's compiler.  We do this before executing the actions.
2396   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2397   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2398   as_fn_set_status $ac_retval
2399 
2400 } # ac_fn_c_try_link
2401 
2402 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2403 # ---------------------------------------------------------
2404 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2405 # the include files in INCLUDES and setting the cache variable VAR
2406 # accordingly.
2407 ac_fn_cxx_check_header_mongrel ()
2408 {
2409   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2410   if eval \${$3+:} false; then :
2411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2412 $as_echo_n "checking for $2... " >&6; }
2413 if eval \${$3+:} false; then :
2414   $as_echo_n "(cached) " >&6
2415 fi
2416 eval ac_res=\$$3
2417                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2418 $as_echo "$ac_res" >&6; }
2419 else
2420   # Is the header compilable?
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2422 $as_echo_n "checking $2 usability... " >&6; }
2423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2424 /* end confdefs.h.  */
2425 $4
2426 #include <$2>
2427 _ACEOF
2428 if ac_fn_cxx_try_compile "$LINENO"; then :
2429   ac_header_compiler=yes
2430 else
2431   ac_header_compiler=no
2432 fi
2433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2435 $as_echo "$ac_header_compiler" >&6; }
2436 
2437 # Is the header present?
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2439 $as_echo_n "checking $2 presence... " >&6; }
2440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2441 /* end confdefs.h.  */
2442 #include <$2>
2443 _ACEOF
2444 if ac_fn_cxx_try_cpp "$LINENO"; then :
2445   ac_header_preproc=yes
2446 else
2447   ac_header_preproc=no
2448 fi
2449 rm -f conftest.err conftest.i conftest.$ac_ext
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2451 $as_echo "$ac_header_preproc" >&6; }
2452 
2453 # So?  What about this header?
2454 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2455   yes:no: )
2456     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2457 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2458     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2459 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2460     ;;
2461   no:yes:* )
2462     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2463 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2464     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2465 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2466     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2467 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2468     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2469 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2470     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2471 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2472 ( $as_echo "## ----------------------------------------- ##
2473 ## Report this to build-dev@openjdk.java.net ##
2474 ## ----------------------------------------- ##"
2475      ) | sed "s/^/$as_me: WARNING:     /" >&2
2476     ;;
2477 esac
2478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2479 $as_echo_n "checking for $2... " >&6; }
2480 if eval \${$3+:} false; then :
2481   $as_echo_n "(cached) " >&6
2482 else
2483   eval "$3=\$ac_header_compiler"
2484 fi
2485 eval ac_res=\$$3
2486                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2487 $as_echo "$ac_res" >&6; }
2488 fi
2489   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2490 
2491 } # ac_fn_cxx_check_header_mongrel
2492 
2493 # ac_fn_cxx_try_run LINENO
2494 # ------------------------
2495 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2496 # that executables *can* be run.
2497 ac_fn_cxx_try_run ()
2498 {
2499   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2500   if { { ac_try="$ac_link"
2501 case "(($ac_try" in
2502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2503   *) ac_try_echo=$ac_try;;
2504 esac
2505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2506 $as_echo "$ac_try_echo"; } >&5
2507   (eval "$ac_link") 2>&5
2508   ac_status=$?
2509   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2510   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2511   { { case "(($ac_try" in
2512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513   *) ac_try_echo=$ac_try;;
2514 esac
2515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2516 $as_echo "$ac_try_echo"; } >&5
2517   (eval "$ac_try") 2>&5
2518   ac_status=$?
2519   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2520   test $ac_status = 0; }; }; then :
2521   ac_retval=0
2522 else
2523   $as_echo "$as_me: program exited with status $ac_status" >&5
2524        $as_echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2526 
2527        ac_retval=$ac_status
2528 fi
2529   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2530   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2531   as_fn_set_status $ac_retval
2532 
2533 } # ac_fn_cxx_try_run
2534 
2535 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2536 # ---------------------------------------------------------
2537 # Tests whether HEADER exists and can be compiled using the include files in
2538 # INCLUDES, setting the cache variable VAR accordingly.
2539 ac_fn_cxx_check_header_compile ()
2540 {
2541   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2542   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2543 $as_echo_n "checking for $2... " >&6; }
2544 if eval \${$3+:} false; then :
2545   $as_echo_n "(cached) " >&6
2546 else
2547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2548 /* end confdefs.h.  */
2549 $4
2550 #include <$2>
2551 _ACEOF
2552 if ac_fn_cxx_try_compile "$LINENO"; then :
2553   eval "$3=yes"
2554 else
2555   eval "$3=no"
2556 fi
2557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2558 fi
2559 eval ac_res=\$$3
2560                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2561 $as_echo "$ac_res" >&6; }
2562   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2563 
2564 } # ac_fn_cxx_check_header_compile
2565 
2566 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2567 # ----------------------------------------------
2568 # Tries to find the compile-time value of EXPR in a program that includes
2569 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2570 # computed
2571 ac_fn_cxx_compute_int ()
2572 {
2573   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2574   if test "$cross_compiling" = yes; then
2575     # Depending upon the size, compute the lo and hi bounds.
2576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2577 /* end confdefs.h.  */
2578 $4
2579 int
2580 main ()
2581 {
2582 static int test_array [1 - 2 * !(($2) >= 0)];
2583 test_array [0] = 0;
2584 return test_array [0];
2585 
2586   ;
2587   return 0;
2588 }
2589 _ACEOF
2590 if ac_fn_cxx_try_compile "$LINENO"; then :
2591   ac_lo=0 ac_mid=0
2592   while :; do
2593     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2594 /* end confdefs.h.  */
2595 $4
2596 int
2597 main ()
2598 {
2599 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2600 test_array [0] = 0;
2601 return test_array [0];
2602 
2603   ;
2604   return 0;
2605 }
2606 _ACEOF
2607 if ac_fn_cxx_try_compile "$LINENO"; then :
2608   ac_hi=$ac_mid; break
2609 else
2610   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2611                         if test $ac_lo -le $ac_mid; then
2612                           ac_lo= ac_hi=
2613                           break
2614                         fi
2615                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2616 fi
2617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618   done
2619 else
2620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2621 /* end confdefs.h.  */
2622 $4
2623 int
2624 main ()
2625 {
2626 static int test_array [1 - 2 * !(($2) < 0)];
2627 test_array [0] = 0;
2628 return test_array [0];
2629 
2630   ;
2631   return 0;
2632 }
2633 _ACEOF
2634 if ac_fn_cxx_try_compile "$LINENO"; then :
2635   ac_hi=-1 ac_mid=-1
2636   while :; do
2637     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2638 /* end confdefs.h.  */
2639 $4
2640 int
2641 main ()
2642 {
2643 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2644 test_array [0] = 0;
2645 return test_array [0];
2646 
2647   ;
2648   return 0;
2649 }
2650 _ACEOF
2651 if ac_fn_cxx_try_compile "$LINENO"; then :
2652   ac_lo=$ac_mid; break
2653 else
2654   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2655                         if test $ac_mid -le $ac_hi; then
2656                           ac_lo= ac_hi=
2657                           break
2658                         fi
2659                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2660 fi
2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2662   done
2663 else
2664   ac_lo= ac_hi=
2665 fi
2666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2667 fi
2668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2669 # Binary search between lo and hi bounds.
2670 while test "x$ac_lo" != "x$ac_hi"; do
2671   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2673 /* end confdefs.h.  */
2674 $4
2675 int
2676 main ()
2677 {
2678 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2679 test_array [0] = 0;
2680 return test_array [0];
2681 
2682   ;
2683   return 0;
2684 }
2685 _ACEOF
2686 if ac_fn_cxx_try_compile "$LINENO"; then :
2687   ac_hi=$ac_mid
2688 else
2689   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2690 fi
2691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2692 done
2693 case $ac_lo in #((
2694 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2695 '') ac_retval=1 ;;
2696 esac
2697   else
2698     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2699 /* end confdefs.h.  */
2700 $4
2701 static long int longval () { return $2; }
2702 static unsigned long int ulongval () { return $2; }
2703 #include <stdio.h>
2704 #include <stdlib.h>
2705 int
2706 main ()
2707 {
2708 
2709   FILE *f = fopen ("conftest.val", "w");
2710   if (! f)
2711     return 1;
2712   if (($2) < 0)
2713     {
2714       long int i = longval ();
2715       if (i != ($2))
2716         return 1;
2717       fprintf (f, "%ld", i);
2718     }
2719   else
2720     {
2721       unsigned long int i = ulongval ();
2722       if (i != ($2))
2723         return 1;
2724       fprintf (f, "%lu", i);
2725     }
2726   /* Do not output a trailing newline, as this causes \r\n confusion
2727      on some platforms.  */
2728   return ferror (f) || fclose (f) != 0;
2729 
2730   ;
2731   return 0;
2732 }
2733 _ACEOF
2734 if ac_fn_cxx_try_run "$LINENO"; then :
2735   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2736 else
2737   ac_retval=1
2738 fi
2739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2740   conftest.$ac_objext conftest.beam conftest.$ac_ext
2741 rm -f conftest.val
2742 
2743   fi
2744   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2745   as_fn_set_status $ac_retval
2746 
2747 } # ac_fn_cxx_compute_int
2748 
2749 # ac_fn_cxx_try_link LINENO
2750 # -------------------------
2751 # Try to link conftest.$ac_ext, and return whether this succeeded.
2752 ac_fn_cxx_try_link ()
2753 {
2754   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2755   rm -f conftest.$ac_objext conftest$ac_exeext
2756   if { { ac_try="$ac_link"
2757 case "(($ac_try" in
2758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759   *) ac_try_echo=$ac_try;;
2760 esac
2761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2762 $as_echo "$ac_try_echo"; } >&5
2763   (eval "$ac_link") 2>conftest.err
2764   ac_status=$?
2765   if test -s conftest.err; then
2766     grep -v '^ *+' conftest.err >conftest.er1
2767     cat conftest.er1 >&5
2768     mv -f conftest.er1 conftest.err
2769   fi
2770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2771   test $ac_status = 0; } && {
2772          test -z "$ac_cxx_werror_flag" ||
2773          test ! -s conftest.err
2774        } && test -s conftest$ac_exeext && {
2775          test "$cross_compiling" = yes ||
2776          test -x conftest$ac_exeext
2777        }; then :
2778   ac_retval=0
2779 else
2780   $as_echo "$as_me: failed program was:" >&5
2781 sed 's/^/| /' conftest.$ac_ext >&5
2782 
2783         ac_retval=1
2784 fi
2785   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2786   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2787   # interfere with the next link command; also delete a directory that is
2788   # left behind by Apple's compiler.  We do this before executing the actions.
2789   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2790   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2791   as_fn_set_status $ac_retval
2792 
2793 } # ac_fn_cxx_try_link
2794 
2795 # ac_fn_cxx_check_func LINENO FUNC VAR
2796 # ------------------------------------
2797 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2798 ac_fn_cxx_check_func ()
2799 {
2800   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2802 $as_echo_n "checking for $2... " >&6; }
2803 if eval \${$3+:} false; then :
2804   $as_echo_n "(cached) " >&6
2805 else
2806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2807 /* end confdefs.h.  */
2808 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2809    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2810 #define $2 innocuous_$2
2811 
2812 /* System header to define __stub macros and hopefully few prototypes,
2813     which can conflict with char $2 (); below.
2814     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2815     <limits.h> exists even on freestanding compilers.  */
2816 
2817 #ifdef __STDC__
2818 # include <limits.h>
2819 #else
2820 # include <assert.h>
2821 #endif
2822 
2823 #undef $2
2824 
2825 /* Override any GCC internal prototype to avoid an error.
2826    Use char because int might match the return type of a GCC
2827    builtin and then its argument prototype would still apply.  */
2828 #ifdef __cplusplus
2829 extern "C"
2830 #endif
2831 char $2 ();
2832 /* The GNU C library defines this for functions which it implements
2833     to always fail with ENOSYS.  Some functions are actually named
2834     something starting with __ and the normal name is an alias.  */
2835 #if defined __stub_$2 || defined __stub___$2
2836 choke me
2837 #endif
2838 
2839 int
2840 main ()
2841 {
2842 return $2 ();
2843   ;
2844   return 0;
2845 }
2846 _ACEOF
2847 if ac_fn_cxx_try_link "$LINENO"; then :
2848   eval "$3=yes"
2849 else
2850   eval "$3=no"
2851 fi
2852 rm -f core conftest.err conftest.$ac_objext \
2853     conftest$ac_exeext conftest.$ac_ext
2854 fi
2855 eval ac_res=\$$3
2856                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2857 $as_echo "$ac_res" >&6; }
2858   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2859 
2860 } # ac_fn_cxx_check_func
2861 
2862 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2863 # -------------------------------------------------------
2864 # Tests whether HEADER exists and can be compiled using the include files in
2865 # INCLUDES, setting the cache variable VAR accordingly.
2866 ac_fn_c_check_header_compile ()
2867 {
2868   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2870 $as_echo_n "checking for $2... " >&6; }
2871 if eval \${$3+:} false; then :
2872   $as_echo_n "(cached) " >&6
2873 else
2874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2875 /* end confdefs.h.  */
2876 $4
2877 #include <$2>
2878 _ACEOF
2879 if ac_fn_c_try_compile "$LINENO"; then :
2880   eval "$3=yes"
2881 else
2882   eval "$3=no"
2883 fi
2884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2885 fi
2886 eval ac_res=\$$3
2887                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2888 $as_echo "$ac_res" >&6; }
2889   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2890 
2891 } # ac_fn_c_check_header_compile
2892 cat >config.log <<_ACEOF
2893 This file contains any messages produced by compilers while
2894 running configure, to aid debugging if configure makes a mistake.
2895 
2896 It was created by OpenJDK $as_me jdk9, which was
2897 generated by GNU Autoconf 2.69.  Invocation command line was
2898 
2899   $ $0 $@
2900 
2901 _ACEOF
2902 exec 5>>config.log
2903 {
2904 cat <<_ASUNAME
2905 ## --------- ##
2906 ## Platform. ##
2907 ## --------- ##
2908 
2909 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2910 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2911 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2912 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2913 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2914 
2915 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2916 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2917 
2918 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2919 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2920 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2921 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2922 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2923 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2924 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2925 
2926 _ASUNAME
2927 
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 for as_dir in $PATH
2930 do
2931   IFS=$as_save_IFS
2932   test -z "$as_dir" && as_dir=.
2933     $as_echo "PATH: $as_dir"
2934   done
2935 IFS=$as_save_IFS
2936 
2937 } >&5
2938 
2939 cat >&5 <<_ACEOF
2940 
2941 
2942 ## ----------- ##
2943 ## Core tests. ##
2944 ## ----------- ##
2945 
2946 _ACEOF
2947 
2948 
2949 # Keep a trace of the command line.
2950 # Strip out --no-create and --no-recursion so they do not pile up.
2951 # Strip out --silent because we don't want to record it for future runs.
2952 # Also quote any args containing shell meta-characters.
2953 # Make two passes to allow for proper duplicate-argument suppression.
2954 ac_configure_args=
2955 ac_configure_args0=
2956 ac_configure_args1=
2957 ac_must_keep_next=false
2958 for ac_pass in 1 2
2959 do
2960   for ac_arg
2961   do
2962     case $ac_arg in
2963     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2964     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2965     | -silent | --silent | --silen | --sile | --sil)
2966       continue ;;
2967     *\'*)
2968       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2969     esac
2970     case $ac_pass in
2971     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2972     2)
2973       as_fn_append ac_configure_args1 " '$ac_arg'"
2974       if test $ac_must_keep_next = true; then
2975         ac_must_keep_next=false # Got value, back to normal.
2976       else
2977         case $ac_arg in
2978           *=* | --config-cache | -C | -disable-* | --disable-* \
2979           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2980           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2981           | -with-* | --with-* | -without-* | --without-* | --x)
2982             case "$ac_configure_args0 " in
2983               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2984             esac
2985             ;;
2986           -* ) ac_must_keep_next=true ;;
2987         esac
2988       fi
2989       as_fn_append ac_configure_args " '$ac_arg'"
2990       ;;
2991     esac
2992   done
2993 done
2994 { ac_configure_args0=; unset ac_configure_args0;}
2995 { ac_configure_args1=; unset ac_configure_args1;}
2996 
2997 # When interrupted or exit'd, cleanup temporary files, and complete
2998 # config.log.  We remove comments because anyway the quotes in there
2999 # would cause problems or look ugly.
3000 # WARNING: Use '\'' to represent an apostrophe within the trap.
3001 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3002 trap 'exit_status=$?
3003   # Save into config.log some information that might help in debugging.
3004   {
3005     echo
3006 
3007     $as_echo "## ---------------- ##
3008 ## Cache variables. ##
3009 ## ---------------- ##"
3010     echo
3011     # The following way of writing the cache mishandles newlines in values,
3012 (
3013   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3014     eval ac_val=\$$ac_var
3015     case $ac_val in #(
3016     *${as_nl}*)
3017       case $ac_var in #(
3018       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3019 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3020       esac
3021       case $ac_var in #(
3022       _ | IFS | as_nl) ;; #(
3023       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3024       *) { eval $ac_var=; unset $ac_var;} ;;
3025       esac ;;
3026     esac
3027   done
3028   (set) 2>&1 |
3029     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3030     *${as_nl}ac_space=\ *)
3031       sed -n \
3032         "s/'\''/'\''\\\\'\'''\''/g;
3033           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3034       ;; #(
3035     *)
3036       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3037       ;;
3038     esac |
3039     sort
3040 )
3041     echo
3042 
3043     $as_echo "## ----------------- ##
3044 ## Output variables. ##
3045 ## ----------------- ##"
3046     echo
3047     for ac_var in $ac_subst_vars
3048     do
3049       eval ac_val=\$$ac_var
3050       case $ac_val in
3051       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3052       esac
3053       $as_echo "$ac_var='\''$ac_val'\''"
3054     done | sort
3055     echo
3056 
3057     if test -n "$ac_subst_files"; then
3058       $as_echo "## ------------------- ##
3059 ## File substitutions. ##
3060 ## ------------------- ##"
3061       echo
3062       for ac_var in $ac_subst_files
3063       do
3064         eval ac_val=\$$ac_var
3065         case $ac_val in
3066         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3067         esac
3068         $as_echo "$ac_var='\''$ac_val'\''"
3069       done | sort
3070       echo
3071     fi
3072 
3073     if test -s confdefs.h; then
3074       $as_echo "## ----------- ##
3075 ## confdefs.h. ##
3076 ## ----------- ##"
3077       echo
3078       cat confdefs.h
3079       echo
3080     fi
3081     test "$ac_signal" != 0 &&
3082       $as_echo "$as_me: caught signal $ac_signal"
3083     $as_echo "$as_me: exit $exit_status"
3084   } >&5
3085   rm -f core *.core core.conftest.* &&
3086     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3087     exit $exit_status
3088 ' 0
3089 for ac_signal in 1 2 13 15; do
3090   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3091 done
3092 ac_signal=0
3093 
3094 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3095 rm -f -r conftest* confdefs.h
3096 
3097 $as_echo "/* confdefs.h */" > confdefs.h
3098 
3099 # Predefined preprocessor variables.
3100 
3101 cat >>confdefs.h <<_ACEOF
3102 #define PACKAGE_NAME "$PACKAGE_NAME"
3103 _ACEOF
3104 
3105 cat >>confdefs.h <<_ACEOF
3106 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3107 _ACEOF
3108 
3109 cat >>confdefs.h <<_ACEOF
3110 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3111 _ACEOF
3112 
3113 cat >>confdefs.h <<_ACEOF
3114 #define PACKAGE_STRING "$PACKAGE_STRING"
3115 _ACEOF
3116 
3117 cat >>confdefs.h <<_ACEOF
3118 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3119 _ACEOF
3120 
3121 cat >>confdefs.h <<_ACEOF
3122 #define PACKAGE_URL "$PACKAGE_URL"
3123 _ACEOF
3124 
3125 
3126 # Let the site file select an alternate cache file if it wants to.
3127 # Prefer an explicitly selected file to automatically selected ones.
3128 ac_site_file1=NONE
3129 ac_site_file2=NONE
3130 if test -n "$CONFIG_SITE"; then
3131   # We do not want a PATH search for config.site.
3132   case $CONFIG_SITE in #((
3133     -*)  ac_site_file1=./$CONFIG_SITE;;
3134     */*) ac_site_file1=$CONFIG_SITE;;
3135     *)   ac_site_file1=./$CONFIG_SITE;;
3136   esac
3137 elif test "x$prefix" != xNONE; then
3138   ac_site_file1=$prefix/share/config.site
3139   ac_site_file2=$prefix/etc/config.site
3140 else
3141   ac_site_file1=$ac_default_prefix/share/config.site
3142   ac_site_file2=$ac_default_prefix/etc/config.site
3143 fi
3144 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3145 do
3146   test "x$ac_site_file" = xNONE && continue
3147   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3148     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3149 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3150     sed 's/^/| /' "$ac_site_file" >&5
3151     . "$ac_site_file" \
3152       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3154 as_fn_error $? "failed to load site script $ac_site_file
3155 See \`config.log' for more details" "$LINENO" 5; }
3156   fi
3157 done
3158 
3159 if test -r "$cache_file"; then
3160   # Some versions of bash will fail to source /dev/null (special files
3161   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3162   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3163     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3164 $as_echo "$as_me: loading cache $cache_file" >&6;}
3165     case $cache_file in
3166       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3167       *)                      . "./$cache_file";;
3168     esac
3169   fi
3170 else
3171   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3172 $as_echo "$as_me: creating cache $cache_file" >&6;}
3173   >$cache_file
3174 fi
3175 
3176 # Check that the precious variables saved in the cache have kept the same
3177 # value.
3178 ac_cache_corrupted=false
3179 for ac_var in $ac_precious_vars; do
3180   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3181   eval ac_new_set=\$ac_env_${ac_var}_set
3182   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3183   eval ac_new_val=\$ac_env_${ac_var}_value
3184   case $ac_old_set,$ac_new_set in
3185     set,)
3186       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3187 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3188       ac_cache_corrupted=: ;;
3189     ,set)
3190       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3191 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3192       ac_cache_corrupted=: ;;
3193     ,);;
3194     *)
3195       if test "x$ac_old_val" != "x$ac_new_val"; then
3196         # differences in whitespace do not lead to failure.
3197         ac_old_val_w=`echo x $ac_old_val`
3198         ac_new_val_w=`echo x $ac_new_val`
3199         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3200           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3201 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3202           ac_cache_corrupted=:
3203         else
3204           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3205 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3206           eval $ac_var=\$ac_old_val
3207         fi
3208         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3209 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3210         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3211 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3212       fi;;
3213   esac
3214   # Pass precious variables to config.status.
3215   if test "$ac_new_set" = set; then
3216     case $ac_new_val in
3217     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3218     *) ac_arg=$ac_var=$ac_new_val ;;
3219     esac
3220     case " $ac_configure_args " in
3221       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3222       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3223     esac
3224   fi
3225 done
3226 if $ac_cache_corrupted; then
3227   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3229   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3230 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3231   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3232 fi
3233 ## -------------------- ##
3234 ## Main body of script. ##
3235 ## -------------------- ##
3236 
3237 ac_ext=c
3238 ac_cpp='$CPP $CPPFLAGS'
3239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3242 
3243 
3244 
3245 ac_aux_dir=
3246 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3247   if test -f "$ac_dir/install-sh"; then
3248     ac_aux_dir=$ac_dir
3249     ac_install_sh="$ac_aux_dir/install-sh -c"
3250     break
3251   elif test -f "$ac_dir/install.sh"; then
3252     ac_aux_dir=$ac_dir
3253     ac_install_sh="$ac_aux_dir/install.sh -c"
3254     break
3255   elif test -f "$ac_dir/shtool"; then
3256     ac_aux_dir=$ac_dir
3257     ac_install_sh="$ac_aux_dir/shtool install -c"
3258     break
3259   fi
3260 done
3261 if test -z "$ac_aux_dir"; then
3262   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
3263 fi
3264 
3265 # These three variables are undocumented and unsupported,
3266 # and are intended to be withdrawn in a future Autoconf release.
3267 # They can cause serious problems if a builder's source tree is in a directory
3268 # whose full name contains unusual characters.
3269 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3270 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3271 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3272 
3273 
3274 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3275 
3276 #
3277 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3278 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3279 #
3280 # This code is free software; you can redistribute it and/or modify it
3281 # under the terms of the GNU General Public License version 2 only, as
3282 # published by the Free Software Foundation.  Oracle designates this
3283 # particular file as subject to the "Classpath" exception as provided
3284 # by Oracle in the LICENSE file that accompanied this code.
3285 #
3286 # This code is distributed in the hope that it will be useful, but WITHOUT
3287 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3288 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3289 # version 2 for more details (a copy is included in the LICENSE file that
3290 # accompanied this code).
3291 #
3292 # You should have received a copy of the GNU General Public License version
3293 # 2 along with this work; if not, write to the Free Software Foundation,
3294 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3295 #
3296 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3297 # or visit www.oracle.com if you need additional information or have any
3298 # questions.
3299 #
3300 
3301 #
3302 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3303 #
3304 # This program is free software; you can redistribute it and/or modify
3305 # it under the terms of the GNU General Public License as published by
3306 # the Free Software Foundation; either version 2 of the License, or
3307 # (at your option) any later version.
3308 #
3309 # This program is distributed in the hope that it will be useful, but
3310 # WITHOUT ANY WARRANTY; without even the implied warranty of
3311 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3312 # General Public License for more details.
3313 #
3314 # You should have received a copy of the GNU General Public License
3315 # along with this program; if not, write to the Free Software
3316 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3317 #
3318 # As a special exception to the GNU General Public License, if you
3319 # distribute this file as part of a program that contains a
3320 # configuration script generated by Autoconf, you may include it under
3321 # the same distribution terms that you use for the rest of that program.
3322 
3323 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3324 # ----------------------------------
3325 # PKG_PROG_PKG_CONFIG
3326 
3327 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3328 #
3329 # Check to see whether a particular set of modules exists.  Similar
3330 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3331 #
3332 #
3333 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3334 # this or PKG_CHECK_MODULES is called, or make sure to call
3335 # PKG_CHECK_EXISTS manually
3336 # --------------------------------------------------------------
3337 
3338 
3339 
3340 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3341 # ---------------------------------------------
3342 # _PKG_CONFIG
3343 
3344 # _PKG_SHORT_ERRORS_SUPPORTED
3345 # -----------------------------
3346 # _PKG_SHORT_ERRORS_SUPPORTED
3347 
3348 
3349 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3350 # [ACTION-IF-NOT-FOUND])
3351 #
3352 #
3353 # Note that if there is a possibility the first call to
3354 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3355 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3356 #
3357 #
3358 # --------------------------------------------------------------
3359 # PKG_CHECK_MODULES
3360 
3361 
3362 # Include these first...
3363 #
3364 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3365 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3366 #
3367 # This code is free software; you can redistribute it and/or modify it
3368 # under the terms of the GNU General Public License version 2 only, as
3369 # published by the Free Software Foundation.  Oracle designates this
3370 # particular file as subject to the "Classpath" exception as provided
3371 # by Oracle in the LICENSE file that accompanied this code.
3372 #
3373 # This code is distributed in the hope that it will be useful, but WITHOUT
3374 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3375 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3376 # version 2 for more details (a copy is included in the LICENSE file that
3377 # accompanied this code).
3378 #
3379 # You should have received a copy of the GNU General Public License version
3380 # 2 along with this work; if not, write to the Free Software Foundation,
3381 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3382 #
3383 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3384 # or visit www.oracle.com if you need additional information or have any
3385 # questions.
3386 #
3387 
3388 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3389 # If so, then append $1 to $2 \
3390 # Also set JVM_ARG_OK to true/false depending on outcome.
3391 
3392 
3393 # Appends a string to a path variable, only adding the : when needed.
3394 
3395 
3396 # Prepends a string to a path variable, only adding the : when needed.
3397 
3398 
3399 # This will make sure the given variable points to a full and proper
3400 # path. This means:
3401 # 1) There will be no spaces in the path. On unix platforms,
3402 #    spaces in the path will result in an error. On Windows,
3403 #    the path will be rewritten using short-style to be space-free.
3404 # 2) The path will be absolute, and it will be in unix-style (on
3405 #     cygwin).
3406 # $1: The name of the variable to fix
3407 
3408 
3409 # This will make sure the given variable points to a executable
3410 # with a full and proper path. This means:
3411 # 1) There will be no spaces in the path. On unix platforms,
3412 #    spaces in the path will result in an error. On Windows,
3413 #    the path will be rewritten using short-style to be space-free.
3414 # 2) The path will be absolute, and it will be in unix-style (on
3415 #     cygwin).
3416 # Any arguments given to the executable is preserved.
3417 # If the input variable does not have a directory specification, then
3418 # it need to be in the PATH.
3419 # $1: The name of the variable to fix
3420 
3421 
3422 
3423 
3424 # Register a --with argument but mark it as deprecated
3425 # $1: The name of the with argument to deprecate, not including --with-
3426 
3427 
3428 # Register a --enable argument but mark it as deprecated
3429 # $1: The name of the with argument to deprecate, not including --enable-
3430 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3431 
3432 
3433 
3434 
3435 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3436 # $1: variable to check
3437 
3438 
3439 # Check that there are no unprocessed overridden variables left.
3440 # If so, they are an incorrect argument and we will exit with an error.
3441 
3442 
3443 # Setup a tool for the given variable. If correctly specified by the user,
3444 # use that value, otherwise search for the tool using the supplied code snippet.
3445 # $1: variable to set
3446 # $2: code snippet to call to look for the tool
3447 # $3: code snippet to call if variable was used to find tool
3448 
3449 
3450 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3451 # $1: variable to set
3452 # $2: executable name (or list of names) to look for
3453 
3454 
3455 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3456 # $1: variable to set
3457 # $2: executable name (or list of names) to look for
3458 
3459 
3460 # Like BASIC_PATH_PROGS but fails if no tool was found.
3461 # $1: variable to set
3462 # $2: executable name (or list of names) to look for
3463 
3464 
3465 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3466 # $1: variable to set
3467 # $2: autoconf macro to call to look for the special tool
3468 
3469 
3470 # Setup the most fundamental tools that relies on not much else to set up,
3471 # but is used by much of the early bootstrap code.
3472 
3473 
3474 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3475 
3476 
3477 # Evaluates platform specific overrides for devkit variables.
3478 # $1: Name of variable
3479 
3480 
3481 
3482 
3483 
3484 
3485 #%%% Simple tools %%%
3486 
3487 # Check if we have found a usable version of make
3488 # $1: the path to a potential make binary (or empty)
3489 # $2: the description on how we found this
3490 
3491 
3492 
3493 
3494 # Goes looking for a usable version of GNU make.
3495 
3496 
3497 
3498 
3499 
3500 
3501 # Check if build directory is on local disk. If not possible to determine,
3502 # we prefer to claim it's local.
3503 # Argument 1: directory to test
3504 # Argument 2: what to do if it is on local disk
3505 # Argument 3: what to do otherwise (remote disk or failure)
3506 
3507 
3508 # Check that source files have basic read permissions set. This might
3509 # not be the case in cygwin in certain conditions.
3510 
3511 
3512 
3513 
3514 # Check for support for specific options in bash
3515 
3516 
3517 # Code to run after AC_OUTPUT
3518 
3519 
3520 #
3521 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3522 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3523 #
3524 # This code is free software; you can redistribute it and/or modify it
3525 # under the terms of the GNU General Public License version 2 only, as
3526 # published by the Free Software Foundation.  Oracle designates this
3527 # particular file as subject to the "Classpath" exception as provided
3528 # by Oracle in the LICENSE file that accompanied this code.
3529 #
3530 # This code is distributed in the hope that it will be useful, but WITHOUT
3531 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3532 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3533 # version 2 for more details (a copy is included in the LICENSE file that
3534 # accompanied this code).
3535 #
3536 # You should have received a copy of the GNU General Public License version
3537 # 2 along with this work; if not, write to the Free Software Foundation,
3538 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3539 #
3540 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3541 # or visit www.oracle.com if you need additional information or have any
3542 # questions.
3543 #
3544 
3545 
3546 
3547 
3548 
3549 # Helper function which possibly converts a path using DOS-style short mode.
3550 # If so, the updated path is stored in $new_path.
3551 # $1: The path to check
3552 
3553 
3554 # Helper function which possibly converts a path using DOS-style short mode.
3555 # If so, the updated path is stored in $new_path.
3556 # $1: The path to check
3557 
3558 
3559 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3560 # and could probably be heavily simplified. However, all changes in this
3561 # area tend to need lot of testing in different scenarios, and in lack of
3562 # proper unit testing, cleaning this up has not been deemed worth the effort
3563 # at the moment.
3564 
3565 
3566 
3567 
3568 
3569 
3570 
3571 
3572 
3573 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3574 
3575 
3576 
3577 
3578 # ... then the rest
3579 #
3580 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3581 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3582 #
3583 # This code is free software; you can redistribute it and/or modify it
3584 # under the terms of the GNU General Public License version 2 only, as
3585 # published by the Free Software Foundation.  Oracle designates this
3586 # particular file as subject to the "Classpath" exception as provided
3587 # by Oracle in the LICENSE file that accompanied this code.
3588 #
3589 # This code is distributed in the hope that it will be useful, but WITHOUT
3590 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3591 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3592 # version 2 for more details (a copy is included in the LICENSE file that
3593 # accompanied this code).
3594 #
3595 # You should have received a copy of the GNU General Public License version
3596 # 2 along with this work; if not, write to the Free Software Foundation,
3597 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3598 #
3599 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3600 # or visit www.oracle.com if you need additional information or have any
3601 # questions.
3602 #
3603 
3604 ########################################################################
3605 # This file handles detection of the Boot JDK. The Boot JDK detection
3606 # process has been developed as a response to solve a complex real-world
3607 # problem. Initially, it was simple, but it has grown as platform after
3608 # platform, idiosyncracy after idiosyncracy has been supported.
3609 #
3610 # The basic idea is this:
3611 # 1) You need an acceptable *) JDK to use as a Boot JDK
3612 # 2) There are several ways to locate a JDK, that are mostly platform
3613 #    dependent **)
3614 # 3) You can have multiple JDKs installed
3615 # 4) If possible, configure should try to dig out an acceptable JDK
3616 #    automatically, without having to resort to command-line options
3617 #
3618 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3619 #     javac) and not a JRE, etc.
3620 #
3621 # **) On Windows we typically use a well-known path.
3622 #     On MacOSX we typically use the tool java_home.
3623 #     On Linux we typically find javac in the $PATH, and then follow a
3624 #     chain of symlinks that often ends up in a real JDK.
3625 #
3626 # This leads to the code where we check in different ways to locate a
3627 # JDK, and if one is found, check if it is acceptable. If not, we print
3628 # our reasons for rejecting it (useful when debugging non-working
3629 # configure situations) and continue checking the next one.
3630 ########################################################################
3631 
3632 # Execute the check given as argument, and verify the result
3633 # If the Boot JDK was previously found, do nothing
3634 # $1 A command line (typically autoconf macro) to execute
3635 
3636 
3637 # Test: Is bootjdk explicitely set by command line arguments?
3638 
3639 
3640 # Test: Is $JAVA_HOME set?
3641 
3642 
3643 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3644 
3645 
3646 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3647 # $1: Argument to the java_home binary (optional)
3648 
3649 
3650 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3651 
3652 
3653 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3654 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3655 # $1 = Path to directory containing jdk installations.
3656 # $2 = String to append to the found JDK directory to get the proper JDK home
3657 
3658 
3659 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3660 # environmental variable as base for where to look.
3661 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3662 
3663 
3664 # Test: Is there a JDK installed in default, well-known locations?
3665 
3666 
3667 # Check that a command-line tool in the Boot JDK is correct
3668 # $1 = name of variable to assign
3669 # $2 = name of binary
3670 
3671 
3672 ###############################################################################
3673 #
3674 # We need a Boot JDK to bootstrap the build.
3675 #
3676 
3677 
3678 
3679 
3680 
3681 #
3682 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3683 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3684 #
3685 # This code is free software; you can redistribute it and/or modify it
3686 # under the terms of the GNU General Public License version 2 only, as
3687 # published by the Free Software Foundation.  Oracle designates this
3688 # particular file as subject to the "Classpath" exception as provided
3689 # by Oracle in the LICENSE file that accompanied this code.
3690 #
3691 # This code is distributed in the hope that it will be useful, but WITHOUT
3692 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3693 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3694 # version 2 for more details (a copy is included in the LICENSE file that
3695 # accompanied this code).
3696 #
3697 # You should have received a copy of the GNU General Public License version
3698 # 2 along with this work; if not, write to the Free Software Foundation,
3699 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3700 #
3701 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3702 # or visit www.oracle.com if you need additional information or have any
3703 # questions.
3704 #
3705 
3706 
3707 
3708 
3709 
3710 
3711 
3712 
3713 
3714 
3715 
3716 
3717 
3718 
3719 
3720 
3721 
3722 
3723 
3724 
3725 #
3726 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3727 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3728 #
3729 # This code is free software; you can redistribute it and/or modify it
3730 # under the terms of the GNU General Public License version 2 only, as
3731 # published by the Free Software Foundation.  Oracle designates this
3732 # particular file as subject to the "Classpath" exception as provided
3733 # by Oracle in the LICENSE file that accompanied this code.
3734 #
3735 # This code is distributed in the hope that it will be useful, but WITHOUT
3736 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3737 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3738 # version 2 for more details (a copy is included in the LICENSE file that
3739 # accompanied this code).
3740 #
3741 # You should have received a copy of the GNU General Public License version
3742 # 2 along with this work; if not, write to the Free Software Foundation,
3743 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3744 #
3745 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3746 # or visit www.oracle.com if you need additional information or have any
3747 # questions.
3748 #
3749 
3750 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the
3751 # corresponding configure arguments instead
3752 
3753 
3754 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so
3755 # that configure can use them while detecting compilers.
3756 # TOOLCHAIN_TYPE is available here.
3757 # Param 1 - Optional prefix to all variables. (e.g BUILD_)
3758 
3759 
3760 
3761 
3762 
3763 
3764 # Documentation on common flags used for solstudio in HIGHEST.
3765 #
3766 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
3767 #          done with care, there are some assumptions below that need to
3768 #          be understood about the use of pointers, and IEEE behavior.
3769 #
3770 # -fns: Use non-standard floating point mode (not IEEE 754)
3771 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
3772 # -fsingle: Use single precision floating point with 'float'
3773 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
3774 #   (Source with excessing pointer casting and data access with mixed
3775 #    pointer types are not recommended)
3776 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
3777 #   (If you expect perfect errno behavior, do not use this)
3778 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
3779 # -xrestrict: Pointer parameters to functions do not overlap
3780 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
3781 #    If you pass in multiple pointers to the same data, do not use this)
3782 # -xlibmil: Inline some library routines
3783 #   (If you expect perfect errno behavior, do not use this)
3784 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
3785 #   (If you expect perfect errno behavior, do not use this)
3786 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
3787 
3788     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
3789     # Bug?
3790     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
3791     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
3792     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
3793     #fi
3794 
3795 
3796 
3797 
3798 
3799 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3800 #                                   [RUN-IF-FALSE])
3801 # ------------------------------------------------------------
3802 # Check that the c and c++ compilers support an argument
3803 
3804 
3805 # FLAGS_LINKER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3806 #                                    [RUN-IF-FALSE])
3807 # ------------------------------------------------------------
3808 # Check that the linker support an argument
3809 
3810 
3811 
3812 
3813 #
3814 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3815 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3816 #
3817 # This code is free software; you can redistribute it and/or modify it
3818 # under the terms of the GNU General Public License version 2 only, as
3819 # published by the Free Software Foundation.  Oracle designates this
3820 # particular file as subject to the "Classpath" exception as provided
3821 # by Oracle in the LICENSE file that accompanied this code.
3822 #
3823 # This code is distributed in the hope that it will be useful, but WITHOUT
3824 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3825 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3826 # version 2 for more details (a copy is included in the LICENSE file that
3827 # accompanied this code).
3828 #
3829 # You should have received a copy of the GNU General Public License version
3830 # 2 along with this work; if not, write to the Free Software Foundation,
3831 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3832 #
3833 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3834 # or visit www.oracle.com if you need additional information or have any
3835 # questions.
3836 #
3837 
3838 
3839 
3840 
3841 
3842 cygwin_help() {
3843   case $1 in
3844     unzip)
3845       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
3846       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3847       ;;
3848     zip)
3849       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
3850       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3851       ;;
3852     make)
3853       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
3854       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3855       ;;
3856     freetype)
3857       HELP_MSG="
3858 The freetype library can now be build during the configure process.
3859 Download the freetype sources and unpack them into an arbitrary directory:
3860 
3861 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
3862 tar -xzf freetype-2.5.3.tar.gz
3863 
3864 Then run configure with '--with-freetype-src=<freetype_src>'. This will
3865 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
3866 builds or into '<freetype_src>/lib32' for 32-bit builds.
3867 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
3868 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds."
3869       ;;
3870   esac
3871 }
3872 
3873 msys_help() {
3874   PKGHANDLER_COMMAND=""
3875 }
3876 
3877 apt_help() {
3878   case $1 in
3879     reduced)
3880       PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;;
3881     devkit)
3882       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3883     openjdk)
3884       PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3885     alsa)
3886       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3887     cups)
3888       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3889     freetype)
3890       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3891     ffi)
3892       PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;;
3893     x11)
3894       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
3895     ccache)
3896       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3897   esac
3898 }
3899 
3900 yum_help() {
3901   case $1 in
3902     devkit)
3903       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3904     openjdk)
3905       PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3906     alsa)
3907       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3908     cups)
3909       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3910     freetype)
3911       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
3912     x11)
3913       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;;
3914     ccache)
3915       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3916   esac
3917 }
3918 
3919 port_help() {
3920   PKGHANDLER_COMMAND=""
3921 }
3922 
3923 pkgutil_help() {
3924   PKGHANDLER_COMMAND=""
3925 }
3926 
3927 pkgadd_help() {
3928   PKGHANDLER_COMMAND=""
3929 }
3930 
3931 # This function will check if we're called from the "configure" wrapper while
3932 # printing --help. If so, we will print out additional information that can
3933 # only be extracted within the autoconf script, and then exit. This must be
3934 # called at the very beginning in configure.ac.
3935 
3936 
3937 
3938 
3939 
3940 
3941 #
3942 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3943 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3944 #
3945 # This code is free software; you can redistribute it and/or modify it
3946 # under the terms of the GNU General Public License version 2 only, as
3947 # published by the Free Software Foundation.  Oracle designates this
3948 # particular file as subject to the "Classpath" exception as provided
3949 # by Oracle in the LICENSE file that accompanied this code.
3950 #
3951 # This code is distributed in the hope that it will be useful, but WITHOUT
3952 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3953 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3954 # version 2 for more details (a copy is included in the LICENSE file that
3955 # accompanied this code).
3956 #
3957 # You should have received a copy of the GNU General Public License version
3958 # 2 along with this work; if not, write to the Free Software Foundation,
3959 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3960 #
3961 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3962 # or visit www.oracle.com if you need additional information or have any
3963 # questions.
3964 #
3965 
3966 
3967 
3968 
3969 
3970 
3971 
3972 
3973 
3974 
3975 ###############################################################################
3976 #
3977 # Should we build only OpenJDK even if closed sources are present?
3978 #
3979 
3980 
3981 
3982 
3983 ###############################################################################
3984 #
3985 # Setup version numbers
3986 #
3987 
3988 
3989 
3990 
3991 
3992 
3993 ################################################################################
3994 #
3995 # Gcov coverage data for hotspot
3996 #
3997 
3998 
3999 ################################################################################
4000 #
4001 # Static build support.  When enabled will generate static
4002 # libraries instead of shared libraries for all JDK libs.
4003 #
4004 
4005 
4006 
4007 
4008 #
4009 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4010 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4011 #
4012 # This code is free software; you can redistribute it and/or modify it
4013 # under the terms of the GNU General Public License version 2 only, as
4014 # published by the Free Software Foundation.  Oracle designates this
4015 # particular file as subject to the "Classpath" exception as provided
4016 # by Oracle in the LICENSE file that accompanied this code.
4017 #
4018 # This code is distributed in the hope that it will be useful, but WITHOUT
4019 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4020 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4021 # version 2 for more details (a copy is included in the LICENSE file that
4022 # accompanied this code).
4023 #
4024 # You should have received a copy of the GNU General Public License version
4025 # 2 along with this work; if not, write to the Free Software Foundation,
4026 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4027 #
4028 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4029 # or visit www.oracle.com if you need additional information or have any
4030 # questions.
4031 #
4032 
4033 # Major library component reside in separate files.
4034 #
4035 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4036 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4037 #
4038 # This code is free software; you can redistribute it and/or modify it
4039 # under the terms of the GNU General Public License version 2 only, as
4040 # published by the Free Software Foundation.  Oracle designates this
4041 # particular file as subject to the "Classpath" exception as provided
4042 # by Oracle in the LICENSE file that accompanied this code.
4043 #
4044 # This code is distributed in the hope that it will be useful, but WITHOUT
4045 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4046 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4047 # version 2 for more details (a copy is included in the LICENSE file that
4048 # accompanied this code).
4049 #
4050 # You should have received a copy of the GNU General Public License version
4051 # 2 along with this work; if not, write to the Free Software Foundation,
4052 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4053 #
4054 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4055 # or visit www.oracle.com if you need additional information or have any
4056 # questions.
4057 #
4058 
4059 ################################################################################
4060 # Setup alsa (Advanced Linux Sound Architecture)
4061 ################################################################################
4062 
4063 
4064 #
4065 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4066 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4067 #
4068 # This code is free software; you can redistribute it and/or modify it
4069 # under the terms of the GNU General Public License version 2 only, as
4070 # published by the Free Software Foundation.  Oracle designates this
4071 # particular file as subject to the "Classpath" exception as provided
4072 # by Oracle in the LICENSE file that accompanied this code.
4073 #
4074 # This code is distributed in the hope that it will be useful, but WITHOUT
4075 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4076 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4077 # version 2 for more details (a copy is included in the LICENSE file that
4078 # accompanied this code).
4079 #
4080 # You should have received a copy of the GNU General Public License version
4081 # 2 along with this work; if not, write to the Free Software Foundation,
4082 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4083 #
4084 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4085 # or visit www.oracle.com if you need additional information or have any
4086 # questions.
4087 #
4088 
4089 ################################################################################
4090 # Setup bundled libraries.
4091 #
4092 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the
4093 # OpenJDK repository. Default is to use these libraries as bundled, but they
4094 # might be replaced by en external version by the user.
4095 ################################################################################
4096 
4097 
4098 ################################################################################
4099 # Setup libjpeg
4100 ################################################################################
4101 
4102 
4103 ################################################################################
4104 # Setup giflib
4105 ################################################################################
4106 
4107 
4108 ################################################################################
4109 # Setup libpng
4110 ################################################################################
4111 
4112 
4113 ################################################################################
4114 # Setup zlib
4115 ################################################################################
4116 
4117 
4118 ################################################################################
4119 # Setup lcms (Little CMS)
4120 ################################################################################
4121 
4122 
4123 #
4124 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4125 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4126 #
4127 # This code is free software; you can redistribute it and/or modify it
4128 # under the terms of the GNU General Public License version 2 only, as
4129 # published by the Free Software Foundation.  Oracle designates this
4130 # particular file as subject to the "Classpath" exception as provided
4131 # by Oracle in the LICENSE file that accompanied this code.
4132 #
4133 # This code is distributed in the hope that it will be useful, but WITHOUT
4134 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4135 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4136 # version 2 for more details (a copy is included in the LICENSE file that
4137 # accompanied this code).
4138 #
4139 # You should have received a copy of the GNU General Public License version
4140 # 2 along with this work; if not, write to the Free Software Foundation,
4141 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4142 #
4143 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4144 # or visit www.oracle.com if you need additional information or have any
4145 # questions.
4146 #
4147 
4148 ################################################################################
4149 # Setup cups (Common Unix Printing System)
4150 ################################################################################
4151 
4152 
4153 #
4154 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
4155 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4156 #
4157 # This code is free software; you can redistribute it and/or modify it
4158 # under the terms of the GNU General Public License version 2 only, as
4159 # published by the Free Software Foundation.  Oracle designates this
4160 # particular file as subject to the "Classpath" exception as provided
4161 # by Oracle in the LICENSE file that accompanied this code.
4162 #
4163 # This code is distributed in the hope that it will be useful, but WITHOUT
4164 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4165 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4166 # version 2 for more details (a copy is included in the LICENSE file that
4167 # accompanied this code).
4168 #
4169 # You should have received a copy of the GNU General Public License version
4170 # 2 along with this work; if not, write to the Free Software Foundation,
4171 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4172 #
4173 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4174 # or visit www.oracle.com if you need additional information or have any
4175 # questions.
4176 #
4177 
4178 ################################################################################
4179 # Setup libffi (Foreign Function Interface)
4180 ################################################################################
4181 
4182 
4183 #
4184 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4185 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4186 #
4187 # This code is free software; you can redistribute it and/or modify it
4188 # under the terms of the GNU General Public License version 2 only, as
4189 # published by the Free Software Foundation.  Oracle designates this
4190 # particular file as subject to the "Classpath" exception as provided
4191 # by Oracle in the LICENSE file that accompanied this code.
4192 #
4193 # This code is distributed in the hope that it will be useful, but WITHOUT
4194 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4195 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4196 # version 2 for more details (a copy is included in the LICENSE file that
4197 # accompanied this code).
4198 #
4199 # You should have received a copy of the GNU General Public License version
4200 # 2 along with this work; if not, write to the Free Software Foundation,
4201 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4202 #
4203 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4204 # or visit www.oracle.com if you need additional information or have any
4205 # questions.
4206 #
4207 
4208 ################################################################################
4209 # Build the freetype lib from source
4210 ################################################################################
4211 
4212 
4213 ################################################################################
4214 # Check if a potential freeype library match is correct and usable
4215 ################################################################################
4216 
4217 
4218 ################################################################################
4219 # Setup freetype (The FreeType2 font rendering library)
4220 ################################################################################
4221 
4222 
4223 #
4224 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4225 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4226 #
4227 # This code is free software; you can redistribute it and/or modify it
4228 # under the terms of the GNU General Public License version 2 only, as
4229 # published by the Free Software Foundation.  Oracle designates this
4230 # particular file as subject to the "Classpath" exception as provided
4231 # by Oracle in the LICENSE file that accompanied this code.
4232 #
4233 # This code is distributed in the hope that it will be useful, but WITHOUT
4234 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4235 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4236 # version 2 for more details (a copy is included in the LICENSE file that
4237 # accompanied this code).
4238 #
4239 # You should have received a copy of the GNU General Public License version
4240 # 2 along with this work; if not, write to the Free Software Foundation,
4241 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4242 #
4243 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4244 # or visit www.oracle.com if you need additional information or have any
4245 # questions.
4246 #
4247 
4248 ################################################################################
4249 # Setup the standard C/C++ runtime libraries.
4250 #
4251 # Most importantly, determine if stdc++ should be linked statically or
4252 # dynamically.
4253 ################################################################################
4254 
4255 
4256 #
4257 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4258 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4259 #
4260 # This code is free software; you can redistribute it and/or modify it
4261 # under the terms of the GNU General Public License version 2 only, as
4262 # published by the Free Software Foundation.  Oracle designates this
4263 # particular file as subject to the "Classpath" exception as provided
4264 # by Oracle in the LICENSE file that accompanied this code.
4265 #
4266 # This code is distributed in the hope that it will be useful, but WITHOUT
4267 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4268 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4269 # version 2 for more details (a copy is included in the LICENSE file that
4270 # accompanied this code).
4271 #
4272 # You should have received a copy of the GNU General Public License version
4273 # 2 along with this work; if not, write to the Free Software Foundation,
4274 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4275 #
4276 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4277 # or visit www.oracle.com if you need additional information or have any
4278 # questions.
4279 #
4280 
4281 ################################################################################
4282 # Setup X11 Windows system
4283 ################################################################################
4284 
4285 
4286 
4287 ################################################################################
4288 # Determine which libraries are needed for this configuration
4289 ################################################################################
4290 
4291 
4292 ################################################################################
4293 # Parse library options, and setup needed libraries
4294 ################################################################################
4295 
4296 
4297 ################################################################################
4298 # Setup llvm (Low-Level VM)
4299 ################################################################################
4300 
4301 
4302 ################################################################################
4303 # Setup various libraries, typically small system libraries
4304 ################################################################################
4305 
4306 
4307 #
4308 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4309 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4310 #
4311 # This code is free software; you can redistribute it and/or modify it
4312 # under the terms of the GNU General Public License version 2 only, as
4313 # published by the Free Software Foundation.  Oracle designates this
4314 # particular file as subject to the "Classpath" exception as provided
4315 # by Oracle in the LICENSE file that accompanied this code.
4316 #
4317 # This code is distributed in the hope that it will be useful, but WITHOUT
4318 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4319 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4320 # version 2 for more details (a copy is included in the LICENSE file that
4321 # accompanied this code).
4322 #
4323 # You should have received a copy of the GNU General Public License version
4324 # 2 along with this work; if not, write to the Free Software Foundation,
4325 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4326 #
4327 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4328 # or visit www.oracle.com if you need additional information or have any
4329 # questions.
4330 #
4331 
4332 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4333 # Converts autoconf style CPU name to OpenJDK style, into
4334 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4335 
4336 
4337 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4338 # Converts autoconf style OS name to OpenJDK style, into
4339 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV.
4340 
4341 
4342 # Expects $host_os $host_cpu $build_os and $build_cpu
4343 # and $with_target_bits to have been setup!
4344 #
4345 # Translate the standard triplet(quadruplet) definition
4346 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4347 # OPENJDK_BUILD_OS, etc.
4348 
4349 
4350 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4351 # accordingly. Must be done after setting up build and target system, but before
4352 # doing anything else with these values.
4353 
4354 
4355 # Setup the legacy variables, for controlling the old makefiles.
4356 #
4357 
4358 
4359 
4360 
4361 #%%% Build and target systems %%%
4362 
4363 
4364 
4365 
4366 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4367 # Add -mX to various FLAGS variables.
4368 
4369 
4370 
4371 
4372 
4373 
4374 #
4375 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4376 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4377 #
4378 # This code is free software; you can redistribute it and/or modify it
4379 # under the terms of the GNU General Public License version 2 only, as
4380 # published by the Free Software Foundation.  Oracle designates this
4381 # particular file as subject to the "Classpath" exception as provided
4382 # by Oracle in the LICENSE file that accompanied this code.
4383 #
4384 # This code is distributed in the hope that it will be useful, but WITHOUT
4385 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4386 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4387 # version 2 for more details (a copy is included in the LICENSE file that
4388 # accompanied this code).
4389 #
4390 # You should have received a copy of the GNU General Public License version
4391 # 2 along with this work; if not, write to the Free Software Foundation,
4392 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4393 #
4394 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4395 # or visit www.oracle.com if you need additional information or have any
4396 # questions.
4397 #
4398 
4399 
4400 
4401 
4402 
4403 
4404 
4405 #
4406 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4407 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4408 #
4409 # This code is free software; you can redistribute it and/or modify it
4410 # under the terms of the GNU General Public License version 2 only, as
4411 # published by the Free Software Foundation.  Oracle designates this
4412 # particular file as subject to the "Classpath" exception as provided
4413 # by Oracle in the LICENSE file that accompanied this code.
4414 #
4415 # This code is distributed in the hope that it will be useful, but WITHOUT
4416 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4417 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4418 # version 2 for more details (a copy is included in the LICENSE file that
4419 # accompanied this code).
4420 #
4421 # You should have received a copy of the GNU General Public License version
4422 # 2 along with this work; if not, write to the Free Software Foundation,
4423 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4424 #
4425 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4426 # or visit www.oracle.com if you need additional information or have any
4427 # questions.
4428 #
4429 
4430 ########################################################################
4431 # This file is responsible for detecting, verifying and setting up the
4432 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4433 # proper paths to the binaries, but it will not setup any flags.
4434 #
4435 # The binaries used is determined by the toolchain type, which is the family of
4436 # compilers and related tools that are used.
4437 ########################################################################
4438 
4439 
4440 # All valid toolchains, regardless of platform (used by help.m4)
4441 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4442 
4443 # These toolchains are valid on different platforms
4444 VALID_TOOLCHAINS_linux="gcc clang"
4445 VALID_TOOLCHAINS_solaris="solstudio"
4446 VALID_TOOLCHAINS_macosx="gcc clang"
4447 VALID_TOOLCHAINS_aix="xlc"
4448 VALID_TOOLCHAINS_windows="microsoft"
4449 
4450 # Toolchain descriptions
4451 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4452 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4453 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4454 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4455 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4456 
4457 # Setup a number of variables describing how native output files are
4458 # named on this platform/toolchain.
4459 
4460 
4461 # Determine which toolchain type to use, and make sure it is valid for this
4462 # platform. Setup various information about the selected toolchain.
4463 
4464 
4465 # Before we start detecting the toolchain executables, we might need some
4466 # special setup, e.g. additional paths etc.
4467 
4468 
4469 # Restore path, etc
4470 
4471 
4472 # Check if a compiler is of the toolchain type we expect, and save the version
4473 # information from it. If the compiler does not match the expected type,
4474 # this function will abort using AC_MSG_ERROR. If it matches, the version will
4475 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4476 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4477 #
4478 # $1 = compiler to test (CC or CXX)
4479 # $2 = human readable name of compiler (C or C++)
4480 
4481 
4482 # Try to locate the given C or C++ compiler in the path, or otherwise.
4483 #
4484 # $1 = compiler to test (CC or CXX)
4485 # $2 = human readable name of compiler (C or C++)
4486 # $3 = list of compiler names to search for
4487 
4488 
4489 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4490 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4491 # archiver (AR). Verify that the compilers are correct according to the
4492 # toolchain type.
4493 
4494 
4495 # Setup additional tools that is considered a part of the toolchain, but not the
4496 # core part. Many of these are highly platform-specific and do not exist,
4497 # and/or are not needed on all platforms.
4498 
4499 
4500 # Setup the build tools (i.e, the compiler and linker used to build programs
4501 # that should be run on the build platform, not the target platform, as a build
4502 # helper). Since the non-cross-compile case uses the normal, target compilers
4503 # for this, we can only do this after these have been setup.
4504 
4505 
4506 # Setup legacy variables that are still needed as alternative ways to refer to
4507 # parts of the toolchain.
4508 
4509 
4510 # Do some additional checks on the detected tools.
4511 
4512 
4513 # Setup the JTReg Regression Test Harness.
4514 
4515 
4516 #
4517 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4518 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4519 #
4520 # This code is free software; you can redistribute it and/or modify it
4521 # under the terms of the GNU General Public License version 2 only, as
4522 # published by the Free Software Foundation.  Oracle designates this
4523 # particular file as subject to the "Classpath" exception as provided
4524 # by Oracle in the LICENSE file that accompanied this code.
4525 #
4526 # This code is distributed in the hope that it will be useful, but WITHOUT
4527 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4528 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4529 # version 2 for more details (a copy is included in the LICENSE file that
4530 # accompanied this code).
4531 #
4532 # You should have received a copy of the GNU General Public License version
4533 # 2 along with this work; if not, write to the Free Software Foundation,
4534 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4535 #
4536 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4537 # or visit www.oracle.com if you need additional information or have any
4538 # questions.
4539 #
4540 
4541 ################################################################################
4542 # The order of these defines the priority by which we try to find them.
4543 VALID_VS_VERSIONS="2013 2012 2010"
4544 
4545 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
4546 VS_VERSION_INTERNAL_2010=100
4547 VS_MSVCR_2010=msvcr100.dll
4548 # We don't use msvcp on Visual Studio 2010
4549 #VS_MSVCP_2010=msvcp100.dll
4550 VS_ENVVAR_2010="VS100COMNTOOLS"
4551 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
4552 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
4553 VS_VS_PLATFORM_NAME_2010="v100"
4554 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
4555 
4556 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
4557 VS_VERSION_INTERNAL_2012=110
4558 VS_MSVCR_2012=msvcr110.dll
4559 VS_MSVCP_2012=msvcp110.dll
4560 VS_ENVVAR_2012="VS110COMNTOOLS"
4561 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
4562 VS_SDK_INSTALLDIR_2012=
4563 VS_VS_PLATFORM_NAME_2012="v110"
4564 VS_SDK_PLATFORM_NAME_2012=
4565 
4566 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
4567 VS_VERSION_INTERNAL_2013=120
4568 VS_MSVCR_2013=msvcr120.dll
4569 VS_MSVCP_2013=msvcp120.dll
4570 VS_ENVVAR_2013="VS120COMNTOOLS"
4571 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
4572 VS_SDK_INSTALLDIR_2013=
4573 VS_VS_PLATFORM_NAME_2013="v120"
4574 VS_SDK_PLATFORM_NAME_2013=
4575 
4576 ################################################################################
4577 
4578 
4579 
4580 ################################################################################
4581 
4582 
4583 
4584 ################################################################################
4585 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
4586 # build environment and assigns it to VS_ENV_CMD
4587 
4588 
4589 ################################################################################
4590 
4591 
4592 
4593 ################################################################################
4594 # Check if the VS env variables were setup prior to running configure.
4595 # If not, then find vcvarsall.bat and run it automatically, and integrate
4596 # the set env variables into the spec file.
4597 
4598 
4599 
4600 
4601 
4602 
4603 
4604 
4605 
4606 
4607 
4608 
4609 
4610 
4611 # This line needs to be here, verbatim, after all includes and the dummy hook
4612 # definitions. It is replaced with custom functionality when building
4613 # custom sources.
4614 #CUSTOM_AUTOCONF_INCLUDE
4615 
4616 # Do not change or remove the following line, it is needed for consistency checks:
4617 DATE_WHEN_GENERATED=1447730912
4618 
4619 ###############################################################################
4620 #
4621 # Initialization / Boot-strapping
4622 #
4623 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4624 # thus it jumps back and forth, each time gaining something needed later on.
4625 #
4626 ###############################################################################
4627 
4628 # If we are requested to print additional help, do that and then exit.
4629 # This must be the very first call.
4630 
4631   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4632     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4633     $PRINTF "Which are valid to use depends on the build platform.\n"
4634     for toolchain in $VALID_TOOLCHAINS_all; do
4635       # Use indirect variable referencing
4636       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4637       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
4638       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
4639     done
4640 
4641     # And now exit directly
4642     exit 0
4643   fi
4644 
4645 
4646 # Basic initialization that must happen first of all in the normal process.
4647 
4648   # Save the original command line. This is passed to us by the wrapper configure script.
4649 
4650   # Save the path variable before it gets changed
4651   ORIGINAL_PATH="$PATH"
4652 
4653   DATE_WHEN_CONFIGURED=`LANG=C date`
4654 
4655   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4656 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4657   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4658 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4659 
4660 
4661   # Start with tools that do not need have cross compilation support
4662   # and can be expected to be found in the default PATH. These tools are
4663   # used by configure.
4664 
4665   # First are all the simple required tools.
4666 
4667 
4668 
4669   # Publish this variable in the help.
4670 
4671 
4672   if [ -z "${BASENAME+x}" ]; then
4673     # The variable is not set by user, try to locate tool using the code snippet
4674     for ac_prog in basename
4675 do
4676   # Extract the first word of "$ac_prog", so it can be a program name with args.
4677 set dummy $ac_prog; ac_word=$2
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4679 $as_echo_n "checking for $ac_word... " >&6; }
4680 if ${ac_cv_path_BASENAME+:} false; then :
4681   $as_echo_n "(cached) " >&6
4682 else
4683   case $BASENAME in
4684   [\\/]* | ?:[\\/]*)
4685   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4686   ;;
4687   *)
4688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689 for as_dir in $PATH
4690 do
4691   IFS=$as_save_IFS
4692   test -z "$as_dir" && as_dir=.
4693     for ac_exec_ext in '' $ac_executable_extensions; do
4694   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4695     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4697     break 2
4698   fi
4699 done
4700   done
4701 IFS=$as_save_IFS
4702 
4703   ;;
4704 esac
4705 fi
4706 BASENAME=$ac_cv_path_BASENAME
4707 if test -n "$BASENAME"; then
4708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4709 $as_echo "$BASENAME" >&6; }
4710 else
4711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4712 $as_echo "no" >&6; }
4713 fi
4714 
4715 
4716   test -n "$BASENAME" && break
4717 done
4718 
4719   else
4720     # The variable is set, but is it from the command line or the environment?
4721 
4722     # Try to remove the string !BASENAME! from our list.
4723     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4724     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4725       # If it failed, the variable was not from the command line. Ignore it,
4726       # but warn the user (except for BASH, which is always set by the calling BASH).
4727       if test "xBASENAME" != xBASH; then
4728         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4729 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4730       fi
4731       # Try to locate tool using the code snippet
4732       for ac_prog in basename
4733 do
4734   # Extract the first word of "$ac_prog", so it can be a program name with args.
4735 set dummy $ac_prog; ac_word=$2
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737 $as_echo_n "checking for $ac_word... " >&6; }
4738 if ${ac_cv_path_BASENAME+:} false; then :
4739   $as_echo_n "(cached) " >&6
4740 else
4741   case $BASENAME in
4742   [\\/]* | ?:[\\/]*)
4743   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4744   ;;
4745   *)
4746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4748 do
4749   IFS=$as_save_IFS
4750   test -z "$as_dir" && as_dir=.
4751     for ac_exec_ext in '' $ac_executable_extensions; do
4752   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4753     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755     break 2
4756   fi
4757 done
4758   done
4759 IFS=$as_save_IFS
4760 
4761   ;;
4762 esac
4763 fi
4764 BASENAME=$ac_cv_path_BASENAME
4765 if test -n "$BASENAME"; then
4766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4767 $as_echo "$BASENAME" >&6; }
4768 else
4769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4770 $as_echo "no" >&6; }
4771 fi
4772 
4773 
4774   test -n "$BASENAME" && break
4775 done
4776 
4777     else
4778       # If it succeeded, then it was overridden by the user. We will use it
4779       # for the tool.
4780 
4781       # First remove it from the list of overridden variables, so we can test
4782       # for unknown variables in the end.
4783       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4784 
4785       # Check if we try to supply an empty value
4786       if test "x$BASENAME" = x; then
4787         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5
4788 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;}
4789         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4790 $as_echo_n "checking for BASENAME... " >&6; }
4791         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
4792 $as_echo "disabled" >&6; }
4793       else
4794         # Check if the provided tool contains a complete path.
4795         tool_specified="$BASENAME"
4796         tool_basename="${tool_specified##*/}"
4797         if test "x$tool_basename" = "x$tool_specified"; then
4798           # A command without a complete path is provided, search $PATH.
4799           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4800 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4801           # Extract the first word of "$tool_basename", so it can be a program name with args.
4802 set dummy $tool_basename; ac_word=$2
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4804 $as_echo_n "checking for $ac_word... " >&6; }
4805 if ${ac_cv_path_BASENAME+:} false; then :
4806   $as_echo_n "(cached) " >&6
4807 else
4808   case $BASENAME in
4809   [\\/]* | ?:[\\/]*)
4810   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4811   ;;
4812   *)
4813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH
4815 do
4816   IFS=$as_save_IFS
4817   test -z "$as_dir" && as_dir=.
4818     for ac_exec_ext in '' $ac_executable_extensions; do
4819   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4820     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4822     break 2
4823   fi
4824 done
4825   done
4826 IFS=$as_save_IFS
4827 
4828   ;;
4829 esac
4830 fi
4831 BASENAME=$ac_cv_path_BASENAME
4832 if test -n "$BASENAME"; then
4833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4834 $as_echo "$BASENAME" >&6; }
4835 else
4836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4837 $as_echo "no" >&6; }
4838 fi
4839 
4840 
4841           if test "x$BASENAME" = x; then
4842             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4843           fi
4844         else
4845           # Otherwise we believe it is a complete path. Use it as it is.
4846           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4847 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4848           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4849 $as_echo_n "checking for BASENAME... " >&6; }
4850           if test ! -x "$tool_specified"; then
4851             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4852 $as_echo "not found" >&6; }
4853             as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4854           fi
4855           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4856 $as_echo "$tool_specified" >&6; }
4857         fi
4858       fi
4859     fi
4860 
4861   fi
4862 
4863 
4864 
4865   if test "x$BASENAME" = x; then
4866     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4867   fi
4868 
4869 
4870 
4871 
4872 
4873   # Publish this variable in the help.
4874 
4875 
4876   if [ -z "${BASH+x}" ]; then
4877     # The variable is not set by user, try to locate tool using the code snippet
4878     for ac_prog in bash
4879 do
4880   # Extract the first word of "$ac_prog", so it can be a program name with args.
4881 set dummy $ac_prog; ac_word=$2
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4883 $as_echo_n "checking for $ac_word... " >&6; }
4884 if ${ac_cv_path_BASH+:} false; then :
4885   $as_echo_n "(cached) " >&6
4886 else
4887   case $BASH in
4888   [\\/]* | ?:[\\/]*)
4889   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4890   ;;
4891   *)
4892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH
4894 do
4895   IFS=$as_save_IFS
4896   test -z "$as_dir" && as_dir=.
4897     for ac_exec_ext in '' $ac_executable_extensions; do
4898   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4899     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4901     break 2
4902   fi
4903 done
4904   done
4905 IFS=$as_save_IFS
4906 
4907   ;;
4908 esac
4909 fi
4910 BASH=$ac_cv_path_BASH
4911 if test -n "$BASH"; then
4912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4913 $as_echo "$BASH" >&6; }
4914 else
4915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4916 $as_echo "no" >&6; }
4917 fi
4918 
4919 
4920   test -n "$BASH" && break
4921 done
4922 
4923   else
4924     # The variable is set, but is it from the command line or the environment?
4925 
4926     # Try to remove the string !BASH! from our list.
4927     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
4928     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4929       # If it failed, the variable was not from the command line. Ignore it,
4930       # but warn the user (except for BASH, which is always set by the calling BASH).
4931       if test "xBASH" != xBASH; then
4932         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
4933 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
4934       fi
4935       # Try to locate tool using the code snippet
4936       for ac_prog in bash
4937 do
4938   # Extract the first word of "$ac_prog", so it can be a program name with args.
4939 set dummy $ac_prog; ac_word=$2
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4941 $as_echo_n "checking for $ac_word... " >&6; }
4942 if ${ac_cv_path_BASH+:} false; then :
4943   $as_echo_n "(cached) " >&6
4944 else
4945   case $BASH in
4946   [\\/]* | ?:[\\/]*)
4947   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4948   ;;
4949   *)
4950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 for as_dir in $PATH
4952 do
4953   IFS=$as_save_IFS
4954   test -z "$as_dir" && as_dir=.
4955     for ac_exec_ext in '' $ac_executable_extensions; do
4956   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4957     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4959     break 2
4960   fi
4961 done
4962   done
4963 IFS=$as_save_IFS
4964 
4965   ;;
4966 esac
4967 fi
4968 BASH=$ac_cv_path_BASH
4969 if test -n "$BASH"; then
4970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4971 $as_echo "$BASH" >&6; }
4972 else
4973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974 $as_echo "no" >&6; }
4975 fi
4976 
4977 
4978   test -n "$BASH" && break
4979 done
4980 
4981     else
4982       # If it succeeded, then it was overridden by the user. We will use it
4983       # for the tool.
4984 
4985       # First remove it from the list of overridden variables, so we can test
4986       # for unknown variables in the end.
4987       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4988 
4989       # Check if we try to supply an empty value
4990       if test "x$BASH" = x; then
4991         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5
4992 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;}
4993         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
4994 $as_echo_n "checking for BASH... " >&6; }
4995         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
4996 $as_echo "disabled" >&6; }
4997       else
4998         # Check if the provided tool contains a complete path.
4999         tool_specified="$BASH"
5000         tool_basename="${tool_specified##*/}"
5001         if test "x$tool_basename" = "x$tool_specified"; then
5002           # A command without a complete path is provided, search $PATH.
5003           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
5004 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
5005           # Extract the first word of "$tool_basename", so it can be a program name with args.
5006 set dummy $tool_basename; ac_word=$2
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5008 $as_echo_n "checking for $ac_word... " >&6; }
5009 if ${ac_cv_path_BASH+:} false; then :
5010   $as_echo_n "(cached) " >&6
5011 else
5012   case $BASH in
5013   [\\/]* | ?:[\\/]*)
5014   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
5015   ;;
5016   *)
5017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 for as_dir in $PATH
5019 do
5020   IFS=$as_save_IFS
5021   test -z "$as_dir" && as_dir=.
5022     for ac_exec_ext in '' $ac_executable_extensions; do
5023   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5024     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
5025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5026     break 2
5027   fi
5028 done
5029   done
5030 IFS=$as_save_IFS
5031 
5032   ;;
5033 esac
5034 fi
5035 BASH=$ac_cv_path_BASH
5036 if test -n "$BASH"; then
5037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
5038 $as_echo "$BASH" >&6; }
5039 else
5040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041 $as_echo "no" >&6; }
5042 fi
5043 
5044 
5045           if test "x$BASH" = x; then
5046             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5047           fi
5048         else
5049           # Otherwise we believe it is a complete path. Use it as it is.
5050           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
5051 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
5052           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
5053 $as_echo_n "checking for BASH... " >&6; }
5054           if test ! -x "$tool_specified"; then
5055             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5056 $as_echo "not found" >&6; }
5057             as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
5058           fi
5059           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5060 $as_echo "$tool_specified" >&6; }
5061         fi
5062       fi
5063     fi
5064 
5065   fi
5066 
5067 
5068 
5069   if test "x$BASH" = x; then
5070     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
5071   fi
5072 
5073 
5074 
5075 
5076 
5077   # Publish this variable in the help.
5078 
5079 
5080   if [ -z "${CAT+x}" ]; then
5081     # The variable is not set by user, try to locate tool using the code snippet
5082     for ac_prog in cat
5083 do
5084   # Extract the first word of "$ac_prog", so it can be a program name with args.
5085 set dummy $ac_prog; ac_word=$2
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5087 $as_echo_n "checking for $ac_word... " >&6; }
5088 if ${ac_cv_path_CAT+:} false; then :
5089   $as_echo_n "(cached) " >&6
5090 else
5091   case $CAT in
5092   [\\/]* | ?:[\\/]*)
5093   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5094   ;;
5095   *)
5096   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 for as_dir in $PATH
5098 do
5099   IFS=$as_save_IFS
5100   test -z "$as_dir" && as_dir=.
5101     for ac_exec_ext in '' $ac_executable_extensions; do
5102   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5103     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5105     break 2
5106   fi
5107 done
5108   done
5109 IFS=$as_save_IFS
5110 
5111   ;;
5112 esac
5113 fi
5114 CAT=$ac_cv_path_CAT
5115 if test -n "$CAT"; then
5116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5117 $as_echo "$CAT" >&6; }
5118 else
5119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 $as_echo "no" >&6; }
5121 fi
5122 
5123 
5124   test -n "$CAT" && break
5125 done
5126 
5127   else
5128     # The variable is set, but is it from the command line or the environment?
5129 
5130     # Try to remove the string !CAT! from our list.
5131     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
5132     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5133       # If it failed, the variable was not from the command line. Ignore it,
5134       # but warn the user (except for BASH, which is always set by the calling BASH).
5135       if test "xCAT" != xBASH; then
5136         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
5137 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
5138       fi
5139       # Try to locate tool using the code snippet
5140       for ac_prog in cat
5141 do
5142   # Extract the first word of "$ac_prog", so it can be a program name with args.
5143 set dummy $ac_prog; ac_word=$2
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5145 $as_echo_n "checking for $ac_word... " >&6; }
5146 if ${ac_cv_path_CAT+:} false; then :
5147   $as_echo_n "(cached) " >&6
5148 else
5149   case $CAT in
5150   [\\/]* | ?:[\\/]*)
5151   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5152   ;;
5153   *)
5154   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in $PATH
5156 do
5157   IFS=$as_save_IFS
5158   test -z "$as_dir" && as_dir=.
5159     for ac_exec_ext in '' $ac_executable_extensions; do
5160   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5161     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5163     break 2
5164   fi
5165 done
5166   done
5167 IFS=$as_save_IFS
5168 
5169   ;;
5170 esac
5171 fi
5172 CAT=$ac_cv_path_CAT
5173 if test -n "$CAT"; then
5174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5175 $as_echo "$CAT" >&6; }
5176 else
5177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178 $as_echo "no" >&6; }
5179 fi
5180 
5181 
5182   test -n "$CAT" && break
5183 done
5184 
5185     else
5186       # If it succeeded, then it was overridden by the user. We will use it
5187       # for the tool.
5188 
5189       # First remove it from the list of overridden variables, so we can test
5190       # for unknown variables in the end.
5191       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5192 
5193       # Check if we try to supply an empty value
5194       if test "x$CAT" = x; then
5195         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5
5196 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;}
5197         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5198 $as_echo_n "checking for CAT... " >&6; }
5199         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5200 $as_echo "disabled" >&6; }
5201       else
5202         # Check if the provided tool contains a complete path.
5203         tool_specified="$CAT"
5204         tool_basename="${tool_specified##*/}"
5205         if test "x$tool_basename" = "x$tool_specified"; then
5206           # A command without a complete path is provided, search $PATH.
5207           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
5208 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
5209           # Extract the first word of "$tool_basename", so it can be a program name with args.
5210 set dummy $tool_basename; ac_word=$2
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5212 $as_echo_n "checking for $ac_word... " >&6; }
5213 if ${ac_cv_path_CAT+:} false; then :
5214   $as_echo_n "(cached) " >&6
5215 else
5216   case $CAT in
5217   [\\/]* | ?:[\\/]*)
5218   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
5219   ;;
5220   *)
5221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH
5223 do
5224   IFS=$as_save_IFS
5225   test -z "$as_dir" && as_dir=.
5226     for ac_exec_ext in '' $ac_executable_extensions; do
5227   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5228     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
5229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5230     break 2
5231   fi
5232 done
5233   done
5234 IFS=$as_save_IFS
5235 
5236   ;;
5237 esac
5238 fi
5239 CAT=$ac_cv_path_CAT
5240 if test -n "$CAT"; then
5241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5242 $as_echo "$CAT" >&6; }
5243 else
5244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245 $as_echo "no" >&6; }
5246 fi
5247 
5248 
5249           if test "x$CAT" = x; then
5250             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5251           fi
5252         else
5253           # Otherwise we believe it is a complete path. Use it as it is.
5254           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
5255 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
5256           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5257 $as_echo_n "checking for CAT... " >&6; }
5258           if test ! -x "$tool_specified"; then
5259             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5260 $as_echo "not found" >&6; }
5261             as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
5262           fi
5263           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5264 $as_echo "$tool_specified" >&6; }
5265         fi
5266       fi
5267     fi
5268 
5269   fi
5270 
5271 
5272 
5273   if test "x$CAT" = x; then
5274     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5275   fi
5276 
5277 
5278 
5279 
5280 
5281   # Publish this variable in the help.
5282 
5283 
5284   if [ -z "${CHMOD+x}" ]; then
5285     # The variable is not set by user, try to locate tool using the code snippet
5286     for ac_prog in chmod
5287 do
5288   # Extract the first word of "$ac_prog", so it can be a program name with args.
5289 set dummy $ac_prog; ac_word=$2
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5291 $as_echo_n "checking for $ac_word... " >&6; }
5292 if ${ac_cv_path_CHMOD+:} false; then :
5293   $as_echo_n "(cached) " >&6
5294 else
5295   case $CHMOD in
5296   [\\/]* | ?:[\\/]*)
5297   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5298   ;;
5299   *)
5300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH
5302 do
5303   IFS=$as_save_IFS
5304   test -z "$as_dir" && as_dir=.
5305     for ac_exec_ext in '' $ac_executable_extensions; do
5306   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5307     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5309     break 2
5310   fi
5311 done
5312   done
5313 IFS=$as_save_IFS
5314 
5315   ;;
5316 esac
5317 fi
5318 CHMOD=$ac_cv_path_CHMOD
5319 if test -n "$CHMOD"; then
5320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5321 $as_echo "$CHMOD" >&6; }
5322 else
5323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324 $as_echo "no" >&6; }
5325 fi
5326 
5327 
5328   test -n "$CHMOD" && break
5329 done
5330 
5331   else
5332     # The variable is set, but is it from the command line or the environment?
5333 
5334     # Try to remove the string !CHMOD! from our list.
5335     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5336     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5337       # If it failed, the variable was not from the command line. Ignore it,
5338       # but warn the user (except for BASH, which is always set by the calling BASH).
5339       if test "xCHMOD" != xBASH; then
5340         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5341 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5342       fi
5343       # Try to locate tool using the code snippet
5344       for ac_prog in chmod
5345 do
5346   # Extract the first word of "$ac_prog", so it can be a program name with args.
5347 set dummy $ac_prog; ac_word=$2
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349 $as_echo_n "checking for $ac_word... " >&6; }
5350 if ${ac_cv_path_CHMOD+:} false; then :
5351   $as_echo_n "(cached) " >&6
5352 else
5353   case $CHMOD in
5354   [\\/]* | ?:[\\/]*)
5355   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5356   ;;
5357   *)
5358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359 for as_dir in $PATH
5360 do
5361   IFS=$as_save_IFS
5362   test -z "$as_dir" && as_dir=.
5363     for ac_exec_ext in '' $ac_executable_extensions; do
5364   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5365     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5367     break 2
5368   fi
5369 done
5370   done
5371 IFS=$as_save_IFS
5372 
5373   ;;
5374 esac
5375 fi
5376 CHMOD=$ac_cv_path_CHMOD
5377 if test -n "$CHMOD"; then
5378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5379 $as_echo "$CHMOD" >&6; }
5380 else
5381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 $as_echo "no" >&6; }
5383 fi
5384 
5385 
5386   test -n "$CHMOD" && break
5387 done
5388 
5389     else
5390       # If it succeeded, then it was overridden by the user. We will use it
5391       # for the tool.
5392 
5393       # First remove it from the list of overridden variables, so we can test
5394       # for unknown variables in the end.
5395       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5396 
5397       # Check if we try to supply an empty value
5398       if test "x$CHMOD" = x; then
5399         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5
5400 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;}
5401         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5402 $as_echo_n "checking for CHMOD... " >&6; }
5403         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5404 $as_echo "disabled" >&6; }
5405       else
5406         # Check if the provided tool contains a complete path.
5407         tool_specified="$CHMOD"
5408         tool_basename="${tool_specified##*/}"
5409         if test "x$tool_basename" = "x$tool_specified"; then
5410           # A command without a complete path is provided, search $PATH.
5411           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5412 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5413           # Extract the first word of "$tool_basename", so it can be a program name with args.
5414 set dummy $tool_basename; ac_word=$2
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5416 $as_echo_n "checking for $ac_word... " >&6; }
5417 if ${ac_cv_path_CHMOD+:} false; then :
5418   $as_echo_n "(cached) " >&6
5419 else
5420   case $CHMOD in
5421   [\\/]* | ?:[\\/]*)
5422   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5423   ;;
5424   *)
5425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426 for as_dir in $PATH
5427 do
5428   IFS=$as_save_IFS
5429   test -z "$as_dir" && as_dir=.
5430     for ac_exec_ext in '' $ac_executable_extensions; do
5431   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5432     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5434     break 2
5435   fi
5436 done
5437   done
5438 IFS=$as_save_IFS
5439 
5440   ;;
5441 esac
5442 fi
5443 CHMOD=$ac_cv_path_CHMOD
5444 if test -n "$CHMOD"; then
5445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5446 $as_echo "$CHMOD" >&6; }
5447 else
5448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 $as_echo "no" >&6; }
5450 fi
5451 
5452 
5453           if test "x$CHMOD" = x; then
5454             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5455           fi
5456         else
5457           # Otherwise we believe it is a complete path. Use it as it is.
5458           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5459 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5460           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5461 $as_echo_n "checking for CHMOD... " >&6; }
5462           if test ! -x "$tool_specified"; then
5463             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5464 $as_echo "not found" >&6; }
5465             as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5466           fi
5467           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5468 $as_echo "$tool_specified" >&6; }
5469         fi
5470       fi
5471     fi
5472 
5473   fi
5474 
5475 
5476 
5477   if test "x$CHMOD" = x; then
5478     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5479   fi
5480 
5481 
5482 
5483 
5484 
5485   # Publish this variable in the help.
5486 
5487 
5488   if [ -z "${CMP+x}" ]; then
5489     # The variable is not set by user, try to locate tool using the code snippet
5490     for ac_prog in cmp
5491 do
5492   # Extract the first word of "$ac_prog", so it can be a program name with args.
5493 set dummy $ac_prog; ac_word=$2
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5495 $as_echo_n "checking for $ac_word... " >&6; }
5496 if ${ac_cv_path_CMP+:} false; then :
5497   $as_echo_n "(cached) " >&6
5498 else
5499   case $CMP in
5500   [\\/]* | ?:[\\/]*)
5501   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5502   ;;
5503   *)
5504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 for as_dir in $PATH
5506 do
5507   IFS=$as_save_IFS
5508   test -z "$as_dir" && as_dir=.
5509     for ac_exec_ext in '' $ac_executable_extensions; do
5510   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5511     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5513     break 2
5514   fi
5515 done
5516   done
5517 IFS=$as_save_IFS
5518 
5519   ;;
5520 esac
5521 fi
5522 CMP=$ac_cv_path_CMP
5523 if test -n "$CMP"; then
5524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5525 $as_echo "$CMP" >&6; }
5526 else
5527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528 $as_echo "no" >&6; }
5529 fi
5530 
5531 
5532   test -n "$CMP" && break
5533 done
5534 
5535   else
5536     # The variable is set, but is it from the command line or the environment?
5537 
5538     # Try to remove the string !CMP! from our list.
5539     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
5540     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5541       # If it failed, the variable was not from the command line. Ignore it,
5542       # but warn the user (except for BASH, which is always set by the calling BASH).
5543       if test "xCMP" != xBASH; then
5544         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
5545 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
5546       fi
5547       # Try to locate tool using the code snippet
5548       for ac_prog in cmp
5549 do
5550   # Extract the first word of "$ac_prog", so it can be a program name with args.
5551 set dummy $ac_prog; ac_word=$2
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5553 $as_echo_n "checking for $ac_word... " >&6; }
5554 if ${ac_cv_path_CMP+:} false; then :
5555   $as_echo_n "(cached) " >&6
5556 else
5557   case $CMP in
5558   [\\/]* | ?:[\\/]*)
5559   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5560   ;;
5561   *)
5562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563 for as_dir in $PATH
5564 do
5565   IFS=$as_save_IFS
5566   test -z "$as_dir" && as_dir=.
5567     for ac_exec_ext in '' $ac_executable_extensions; do
5568   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5569     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5571     break 2
5572   fi
5573 done
5574   done
5575 IFS=$as_save_IFS
5576 
5577   ;;
5578 esac
5579 fi
5580 CMP=$ac_cv_path_CMP
5581 if test -n "$CMP"; then
5582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5583 $as_echo "$CMP" >&6; }
5584 else
5585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586 $as_echo "no" >&6; }
5587 fi
5588 
5589 
5590   test -n "$CMP" && break
5591 done
5592 
5593     else
5594       # If it succeeded, then it was overridden by the user. We will use it
5595       # for the tool.
5596 
5597       # First remove it from the list of overridden variables, so we can test
5598       # for unknown variables in the end.
5599       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5600 
5601       # Check if we try to supply an empty value
5602       if test "x$CMP" = x; then
5603         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5
5604 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;}
5605         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5606 $as_echo_n "checking for CMP... " >&6; }
5607         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5608 $as_echo "disabled" >&6; }
5609       else
5610         # Check if the provided tool contains a complete path.
5611         tool_specified="$CMP"
5612         tool_basename="${tool_specified##*/}"
5613         if test "x$tool_basename" = "x$tool_specified"; then
5614           # A command without a complete path is provided, search $PATH.
5615           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5616 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5617           # Extract the first word of "$tool_basename", so it can be a program name with args.
5618 set dummy $tool_basename; ac_word=$2
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620 $as_echo_n "checking for $ac_word... " >&6; }
5621 if ${ac_cv_path_CMP+:} false; then :
5622   $as_echo_n "(cached) " >&6
5623 else
5624   case $CMP in
5625   [\\/]* | ?:[\\/]*)
5626   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5627   ;;
5628   *)
5629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630 for as_dir in $PATH
5631 do
5632   IFS=$as_save_IFS
5633   test -z "$as_dir" && as_dir=.
5634     for ac_exec_ext in '' $ac_executable_extensions; do
5635   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5636     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5638     break 2
5639   fi
5640 done
5641   done
5642 IFS=$as_save_IFS
5643 
5644   ;;
5645 esac
5646 fi
5647 CMP=$ac_cv_path_CMP
5648 if test -n "$CMP"; then
5649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5650 $as_echo "$CMP" >&6; }
5651 else
5652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653 $as_echo "no" >&6; }
5654 fi
5655 
5656 
5657           if test "x$CMP" = x; then
5658             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5659           fi
5660         else
5661           # Otherwise we believe it is a complete path. Use it as it is.
5662           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5663 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5664           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5665 $as_echo_n "checking for CMP... " >&6; }
5666           if test ! -x "$tool_specified"; then
5667             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5668 $as_echo "not found" >&6; }
5669             as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5670           fi
5671           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5672 $as_echo "$tool_specified" >&6; }
5673         fi
5674       fi
5675     fi
5676 
5677   fi
5678 
5679 
5680 
5681   if test "x$CMP" = x; then
5682     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5683   fi
5684 
5685 
5686 
5687 
5688 
5689   # Publish this variable in the help.
5690 
5691 
5692   if [ -z "${COMM+x}" ]; then
5693     # The variable is not set by user, try to locate tool using the code snippet
5694     for ac_prog in comm
5695 do
5696   # Extract the first word of "$ac_prog", so it can be a program name with args.
5697 set dummy $ac_prog; ac_word=$2
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5699 $as_echo_n "checking for $ac_word... " >&6; }
5700 if ${ac_cv_path_COMM+:} false; then :
5701   $as_echo_n "(cached) " >&6
5702 else
5703   case $COMM in
5704   [\\/]* | ?:[\\/]*)
5705   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5706   ;;
5707   *)
5708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709 for as_dir in $PATH
5710 do
5711   IFS=$as_save_IFS
5712   test -z "$as_dir" && as_dir=.
5713     for ac_exec_ext in '' $ac_executable_extensions; do
5714   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5715     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5717     break 2
5718   fi
5719 done
5720   done
5721 IFS=$as_save_IFS
5722 
5723   ;;
5724 esac
5725 fi
5726 COMM=$ac_cv_path_COMM
5727 if test -n "$COMM"; then
5728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5729 $as_echo "$COMM" >&6; }
5730 else
5731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5732 $as_echo "no" >&6; }
5733 fi
5734 
5735 
5736   test -n "$COMM" && break
5737 done
5738 
5739   else
5740     # The variable is set, but is it from the command line or the environment?
5741 
5742     # Try to remove the string !COMM! from our list.
5743     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5744     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5745       # If it failed, the variable was not from the command line. Ignore it,
5746       # but warn the user (except for BASH, which is always set by the calling BASH).
5747       if test "xCOMM" != xBASH; then
5748         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5749 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5750       fi
5751       # Try to locate tool using the code snippet
5752       for ac_prog in comm
5753 do
5754   # Extract the first word of "$ac_prog", so it can be a program name with args.
5755 set dummy $ac_prog; ac_word=$2
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5757 $as_echo_n "checking for $ac_word... " >&6; }
5758 if ${ac_cv_path_COMM+:} false; then :
5759   $as_echo_n "(cached) " >&6
5760 else
5761   case $COMM in
5762   [\\/]* | ?:[\\/]*)
5763   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5764   ;;
5765   *)
5766   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 for as_dir in $PATH
5768 do
5769   IFS=$as_save_IFS
5770   test -z "$as_dir" && as_dir=.
5771     for ac_exec_ext in '' $ac_executable_extensions; do
5772   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5773     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5775     break 2
5776   fi
5777 done
5778   done
5779 IFS=$as_save_IFS
5780 
5781   ;;
5782 esac
5783 fi
5784 COMM=$ac_cv_path_COMM
5785 if test -n "$COMM"; then
5786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5787 $as_echo "$COMM" >&6; }
5788 else
5789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5790 $as_echo "no" >&6; }
5791 fi
5792 
5793 
5794   test -n "$COMM" && break
5795 done
5796 
5797     else
5798       # If it succeeded, then it was overridden by the user. We will use it
5799       # for the tool.
5800 
5801       # First remove it from the list of overridden variables, so we can test
5802       # for unknown variables in the end.
5803       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5804 
5805       # Check if we try to supply an empty value
5806       if test "x$COMM" = x; then
5807         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5
5808 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;}
5809         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5810 $as_echo_n "checking for COMM... " >&6; }
5811         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
5812 $as_echo "disabled" >&6; }
5813       else
5814         # Check if the provided tool contains a complete path.
5815         tool_specified="$COMM"
5816         tool_basename="${tool_specified##*/}"
5817         if test "x$tool_basename" = "x$tool_specified"; then
5818           # A command without a complete path is provided, search $PATH.
5819           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5820 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5821           # Extract the first word of "$tool_basename", so it can be a program name with args.
5822 set dummy $tool_basename; ac_word=$2
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5824 $as_echo_n "checking for $ac_word... " >&6; }
5825 if ${ac_cv_path_COMM+:} false; then :
5826   $as_echo_n "(cached) " >&6
5827 else
5828   case $COMM in
5829   [\\/]* | ?:[\\/]*)
5830   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5831   ;;
5832   *)
5833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834 for as_dir in $PATH
5835 do
5836   IFS=$as_save_IFS
5837   test -z "$as_dir" && as_dir=.
5838     for ac_exec_ext in '' $ac_executable_extensions; do
5839   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5840     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5842     break 2
5843   fi
5844 done
5845   done
5846 IFS=$as_save_IFS
5847 
5848   ;;
5849 esac
5850 fi
5851 COMM=$ac_cv_path_COMM
5852 if test -n "$COMM"; then
5853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5854 $as_echo "$COMM" >&6; }
5855 else
5856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5857 $as_echo "no" >&6; }
5858 fi
5859 
5860 
5861           if test "x$COMM" = x; then
5862             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5863           fi
5864         else
5865           # Otherwise we believe it is a complete path. Use it as it is.
5866           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5867 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5868           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5869 $as_echo_n "checking for COMM... " >&6; }
5870           if test ! -x "$tool_specified"; then
5871             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5872 $as_echo "not found" >&6; }
5873             as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5874           fi
5875           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5876 $as_echo "$tool_specified" >&6; }
5877         fi
5878       fi
5879     fi
5880 
5881   fi
5882 
5883 
5884 
5885   if test "x$COMM" = x; then
5886     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
5887   fi
5888 
5889 
5890 
5891 
5892 
5893   # Publish this variable in the help.
5894 
5895 
5896   if [ -z "${CP+x}" ]; then
5897     # The variable is not set by user, try to locate tool using the code snippet
5898     for ac_prog in cp
5899 do
5900   # Extract the first word of "$ac_prog", so it can be a program name with args.
5901 set dummy $ac_prog; ac_word=$2
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5903 $as_echo_n "checking for $ac_word... " >&6; }
5904 if ${ac_cv_path_CP+:} false; then :
5905   $as_echo_n "(cached) " >&6
5906 else
5907   case $CP in
5908   [\\/]* | ?:[\\/]*)
5909   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5910   ;;
5911   *)
5912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5914 do
5915   IFS=$as_save_IFS
5916   test -z "$as_dir" && as_dir=.
5917     for ac_exec_ext in '' $ac_executable_extensions; do
5918   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5919     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5921     break 2
5922   fi
5923 done
5924   done
5925 IFS=$as_save_IFS
5926 
5927   ;;
5928 esac
5929 fi
5930 CP=$ac_cv_path_CP
5931 if test -n "$CP"; then
5932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5933 $as_echo "$CP" >&6; }
5934 else
5935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5936 $as_echo "no" >&6; }
5937 fi
5938 
5939 
5940   test -n "$CP" && break
5941 done
5942 
5943   else
5944     # The variable is set, but is it from the command line or the environment?
5945 
5946     # Try to remove the string !CP! from our list.
5947     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
5948     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5949       # If it failed, the variable was not from the command line. Ignore it,
5950       # but warn the user (except for BASH, which is always set by the calling BASH).
5951       if test "xCP" != xBASH; then
5952         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
5953 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
5954       fi
5955       # Try to locate tool using the code snippet
5956       for ac_prog in cp
5957 do
5958   # Extract the first word of "$ac_prog", so it can be a program name with args.
5959 set dummy $ac_prog; ac_word=$2
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5961 $as_echo_n "checking for $ac_word... " >&6; }
5962 if ${ac_cv_path_CP+:} false; then :
5963   $as_echo_n "(cached) " >&6
5964 else
5965   case $CP in
5966   [\\/]* | ?:[\\/]*)
5967   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5968   ;;
5969   *)
5970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971 for as_dir in $PATH
5972 do
5973   IFS=$as_save_IFS
5974   test -z "$as_dir" && as_dir=.
5975     for ac_exec_ext in '' $ac_executable_extensions; do
5976   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5977     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5979     break 2
5980   fi
5981 done
5982   done
5983 IFS=$as_save_IFS
5984 
5985   ;;
5986 esac
5987 fi
5988 CP=$ac_cv_path_CP
5989 if test -n "$CP"; then
5990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5991 $as_echo "$CP" >&6; }
5992 else
5993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5994 $as_echo "no" >&6; }
5995 fi
5996 
5997 
5998   test -n "$CP" && break
5999 done
6000 
6001     else
6002       # If it succeeded, then it was overridden by the user. We will use it
6003       # for the tool.
6004 
6005       # First remove it from the list of overridden variables, so we can test
6006       # for unknown variables in the end.
6007       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6008 
6009       # Check if we try to supply an empty value
6010       if test "x$CP" = x; then
6011         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5
6012 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;}
6013         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6014 $as_echo_n "checking for CP... " >&6; }
6015         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6016 $as_echo "disabled" >&6; }
6017       else
6018         # Check if the provided tool contains a complete path.
6019         tool_specified="$CP"
6020         tool_basename="${tool_specified##*/}"
6021         if test "x$tool_basename" = "x$tool_specified"; then
6022           # A command without a complete path is provided, search $PATH.
6023           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
6024 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
6025           # Extract the first word of "$tool_basename", so it can be a program name with args.
6026 set dummy $tool_basename; ac_word=$2
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6028 $as_echo_n "checking for $ac_word... " >&6; }
6029 if ${ac_cv_path_CP+:} false; then :
6030   $as_echo_n "(cached) " >&6
6031 else
6032   case $CP in
6033   [\\/]* | ?:[\\/]*)
6034   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6035   ;;
6036   *)
6037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038 for as_dir in $PATH
6039 do
6040   IFS=$as_save_IFS
6041   test -z "$as_dir" && as_dir=.
6042     for ac_exec_ext in '' $ac_executable_extensions; do
6043   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6044     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6046     break 2
6047   fi
6048 done
6049   done
6050 IFS=$as_save_IFS
6051 
6052   ;;
6053 esac
6054 fi
6055 CP=$ac_cv_path_CP
6056 if test -n "$CP"; then
6057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6058 $as_echo "$CP" >&6; }
6059 else
6060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6061 $as_echo "no" >&6; }
6062 fi
6063 
6064 
6065           if test "x$CP" = x; then
6066             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6067           fi
6068         else
6069           # Otherwise we believe it is a complete path. Use it as it is.
6070           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
6071 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
6072           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
6073 $as_echo_n "checking for CP... " >&6; }
6074           if test ! -x "$tool_specified"; then
6075             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6076 $as_echo "not found" >&6; }
6077             as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
6078           fi
6079           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6080 $as_echo "$tool_specified" >&6; }
6081         fi
6082       fi
6083     fi
6084 
6085   fi
6086 
6087 
6088 
6089   if test "x$CP" = x; then
6090     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
6091   fi
6092 
6093 
6094 
6095 
6096 
6097   # Publish this variable in the help.
6098 
6099 
6100   if [ -z "${CUT+x}" ]; then
6101     # The variable is not set by user, try to locate tool using the code snippet
6102     for ac_prog in cut
6103 do
6104   # Extract the first word of "$ac_prog", so it can be a program name with args.
6105 set dummy $ac_prog; ac_word=$2
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6107 $as_echo_n "checking for $ac_word... " >&6; }
6108 if ${ac_cv_path_CUT+:} false; then :
6109   $as_echo_n "(cached) " >&6
6110 else
6111   case $CUT in
6112   [\\/]* | ?:[\\/]*)
6113   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6114   ;;
6115   *)
6116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117 for as_dir in $PATH
6118 do
6119   IFS=$as_save_IFS
6120   test -z "$as_dir" && as_dir=.
6121     for ac_exec_ext in '' $ac_executable_extensions; do
6122   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6123     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6125     break 2
6126   fi
6127 done
6128   done
6129 IFS=$as_save_IFS
6130 
6131   ;;
6132 esac
6133 fi
6134 CUT=$ac_cv_path_CUT
6135 if test -n "$CUT"; then
6136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6137 $as_echo "$CUT" >&6; }
6138 else
6139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140 $as_echo "no" >&6; }
6141 fi
6142 
6143 
6144   test -n "$CUT" && break
6145 done
6146 
6147   else
6148     # The variable is set, but is it from the command line or the environment?
6149 
6150     # Try to remove the string !CUT! from our list.
6151     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
6152     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6153       # If it failed, the variable was not from the command line. Ignore it,
6154       # but warn the user (except for BASH, which is always set by the calling BASH).
6155       if test "xCUT" != xBASH; then
6156         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
6157 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
6158       fi
6159       # Try to locate tool using the code snippet
6160       for ac_prog in cut
6161 do
6162   # Extract the first word of "$ac_prog", so it can be a program name with args.
6163 set dummy $ac_prog; ac_word=$2
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6165 $as_echo_n "checking for $ac_word... " >&6; }
6166 if ${ac_cv_path_CUT+:} false; then :
6167   $as_echo_n "(cached) " >&6
6168 else
6169   case $CUT in
6170   [\\/]* | ?:[\\/]*)
6171   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6172   ;;
6173   *)
6174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 for as_dir in $PATH
6176 do
6177   IFS=$as_save_IFS
6178   test -z "$as_dir" && as_dir=.
6179     for ac_exec_ext in '' $ac_executable_extensions; do
6180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6181     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6183     break 2
6184   fi
6185 done
6186   done
6187 IFS=$as_save_IFS
6188 
6189   ;;
6190 esac
6191 fi
6192 CUT=$ac_cv_path_CUT
6193 if test -n "$CUT"; then
6194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6195 $as_echo "$CUT" >&6; }
6196 else
6197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6198 $as_echo "no" >&6; }
6199 fi
6200 
6201 
6202   test -n "$CUT" && break
6203 done
6204 
6205     else
6206       # If it succeeded, then it was overridden by the user. We will use it
6207       # for the tool.
6208 
6209       # First remove it from the list of overridden variables, so we can test
6210       # for unknown variables in the end.
6211       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6212 
6213       # Check if we try to supply an empty value
6214       if test "x$CUT" = x; then
6215         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5
6216 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;}
6217         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6218 $as_echo_n "checking for CUT... " >&6; }
6219         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6220 $as_echo "disabled" >&6; }
6221       else
6222         # Check if the provided tool contains a complete path.
6223         tool_specified="$CUT"
6224         tool_basename="${tool_specified##*/}"
6225         if test "x$tool_basename" = "x$tool_specified"; then
6226           # A command without a complete path is provided, search $PATH.
6227           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
6228 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
6229           # Extract the first word of "$tool_basename", so it can be a program name with args.
6230 set dummy $tool_basename; ac_word=$2
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6232 $as_echo_n "checking for $ac_word... " >&6; }
6233 if ${ac_cv_path_CUT+:} false; then :
6234   $as_echo_n "(cached) " >&6
6235 else
6236   case $CUT in
6237   [\\/]* | ?:[\\/]*)
6238   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
6239   ;;
6240   *)
6241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 for as_dir in $PATH
6243 do
6244   IFS=$as_save_IFS
6245   test -z "$as_dir" && as_dir=.
6246     for ac_exec_ext in '' $ac_executable_extensions; do
6247   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6248     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
6249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6250     break 2
6251   fi
6252 done
6253   done
6254 IFS=$as_save_IFS
6255 
6256   ;;
6257 esac
6258 fi
6259 CUT=$ac_cv_path_CUT
6260 if test -n "$CUT"; then
6261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6262 $as_echo "$CUT" >&6; }
6263 else
6264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6265 $as_echo "no" >&6; }
6266 fi
6267 
6268 
6269           if test "x$CUT" = x; then
6270             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6271           fi
6272         else
6273           # Otherwise we believe it is a complete path. Use it as it is.
6274           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
6275 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6276           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6277 $as_echo_n "checking for CUT... " >&6; }
6278           if test ! -x "$tool_specified"; then
6279             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6280 $as_echo "not found" >&6; }
6281             as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6282           fi
6283           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6284 $as_echo "$tool_specified" >&6; }
6285         fi
6286       fi
6287     fi
6288 
6289   fi
6290 
6291 
6292 
6293   if test "x$CUT" = x; then
6294     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6295   fi
6296 
6297 
6298 
6299 
6300 
6301   # Publish this variable in the help.
6302 
6303 
6304   if [ -z "${DATE+x}" ]; then
6305     # The variable is not set by user, try to locate tool using the code snippet
6306     for ac_prog in date
6307 do
6308   # Extract the first word of "$ac_prog", so it can be a program name with args.
6309 set dummy $ac_prog; ac_word=$2
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6311 $as_echo_n "checking for $ac_word... " >&6; }
6312 if ${ac_cv_path_DATE+:} false; then :
6313   $as_echo_n "(cached) " >&6
6314 else
6315   case $DATE in
6316   [\\/]* | ?:[\\/]*)
6317   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6318   ;;
6319   *)
6320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 for as_dir in $PATH
6322 do
6323   IFS=$as_save_IFS
6324   test -z "$as_dir" && as_dir=.
6325     for ac_exec_ext in '' $ac_executable_extensions; do
6326   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6327     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6329     break 2
6330   fi
6331 done
6332   done
6333 IFS=$as_save_IFS
6334 
6335   ;;
6336 esac
6337 fi
6338 DATE=$ac_cv_path_DATE
6339 if test -n "$DATE"; then
6340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6341 $as_echo "$DATE" >&6; }
6342 else
6343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6344 $as_echo "no" >&6; }
6345 fi
6346 
6347 
6348   test -n "$DATE" && break
6349 done
6350 
6351   else
6352     # The variable is set, but is it from the command line or the environment?
6353 
6354     # Try to remove the string !DATE! from our list.
6355     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6356     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6357       # If it failed, the variable was not from the command line. Ignore it,
6358       # but warn the user (except for BASH, which is always set by the calling BASH).
6359       if test "xDATE" != xBASH; then
6360         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6361 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6362       fi
6363       # Try to locate tool using the code snippet
6364       for ac_prog in date
6365 do
6366   # Extract the first word of "$ac_prog", so it can be a program name with args.
6367 set dummy $ac_prog; ac_word=$2
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6369 $as_echo_n "checking for $ac_word... " >&6; }
6370 if ${ac_cv_path_DATE+:} false; then :
6371   $as_echo_n "(cached) " >&6
6372 else
6373   case $DATE in
6374   [\\/]* | ?:[\\/]*)
6375   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6376   ;;
6377   *)
6378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 for as_dir in $PATH
6380 do
6381   IFS=$as_save_IFS
6382   test -z "$as_dir" && as_dir=.
6383     for ac_exec_ext in '' $ac_executable_extensions; do
6384   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6385     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6387     break 2
6388   fi
6389 done
6390   done
6391 IFS=$as_save_IFS
6392 
6393   ;;
6394 esac
6395 fi
6396 DATE=$ac_cv_path_DATE
6397 if test -n "$DATE"; then
6398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6399 $as_echo "$DATE" >&6; }
6400 else
6401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402 $as_echo "no" >&6; }
6403 fi
6404 
6405 
6406   test -n "$DATE" && break
6407 done
6408 
6409     else
6410       # If it succeeded, then it was overridden by the user. We will use it
6411       # for the tool.
6412 
6413       # First remove it from the list of overridden variables, so we can test
6414       # for unknown variables in the end.
6415       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6416 
6417       # Check if we try to supply an empty value
6418       if test "x$DATE" = x; then
6419         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5
6420 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;}
6421         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6422 $as_echo_n "checking for DATE... " >&6; }
6423         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6424 $as_echo "disabled" >&6; }
6425       else
6426         # Check if the provided tool contains a complete path.
6427         tool_specified="$DATE"
6428         tool_basename="${tool_specified##*/}"
6429         if test "x$tool_basename" = "x$tool_specified"; then
6430           # A command without a complete path is provided, search $PATH.
6431           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6432 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6433           # Extract the first word of "$tool_basename", so it can be a program name with args.
6434 set dummy $tool_basename; ac_word=$2
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6436 $as_echo_n "checking for $ac_word... " >&6; }
6437 if ${ac_cv_path_DATE+:} false; then :
6438   $as_echo_n "(cached) " >&6
6439 else
6440   case $DATE in
6441   [\\/]* | ?:[\\/]*)
6442   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6443   ;;
6444   *)
6445   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446 for as_dir in $PATH
6447 do
6448   IFS=$as_save_IFS
6449   test -z "$as_dir" && as_dir=.
6450     for ac_exec_ext in '' $ac_executable_extensions; do
6451   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6452     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6454     break 2
6455   fi
6456 done
6457   done
6458 IFS=$as_save_IFS
6459 
6460   ;;
6461 esac
6462 fi
6463 DATE=$ac_cv_path_DATE
6464 if test -n "$DATE"; then
6465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6466 $as_echo "$DATE" >&6; }
6467 else
6468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469 $as_echo "no" >&6; }
6470 fi
6471 
6472 
6473           if test "x$DATE" = x; then
6474             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6475           fi
6476         else
6477           # Otherwise we believe it is a complete path. Use it as it is.
6478           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6479 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6480           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6481 $as_echo_n "checking for DATE... " >&6; }
6482           if test ! -x "$tool_specified"; then
6483             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6484 $as_echo "not found" >&6; }
6485             as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6486           fi
6487           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6488 $as_echo "$tool_specified" >&6; }
6489         fi
6490       fi
6491     fi
6492 
6493   fi
6494 
6495 
6496 
6497   if test "x$DATE" = x; then
6498     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6499   fi
6500 
6501 
6502 
6503 
6504 
6505   # Publish this variable in the help.
6506 
6507 
6508   if [ -z "${DIFF+x}" ]; then
6509     # The variable is not set by user, try to locate tool using the code snippet
6510     for ac_prog in gdiff diff
6511 do
6512   # Extract the first word of "$ac_prog", so it can be a program name with args.
6513 set dummy $ac_prog; ac_word=$2
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6515 $as_echo_n "checking for $ac_word... " >&6; }
6516 if ${ac_cv_path_DIFF+:} false; then :
6517   $as_echo_n "(cached) " >&6
6518 else
6519   case $DIFF in
6520   [\\/]* | ?:[\\/]*)
6521   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6522   ;;
6523   *)
6524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 for as_dir in $PATH
6526 do
6527   IFS=$as_save_IFS
6528   test -z "$as_dir" && as_dir=.
6529     for ac_exec_ext in '' $ac_executable_extensions; do
6530   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6531     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6533     break 2
6534   fi
6535 done
6536   done
6537 IFS=$as_save_IFS
6538 
6539   ;;
6540 esac
6541 fi
6542 DIFF=$ac_cv_path_DIFF
6543 if test -n "$DIFF"; then
6544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6545 $as_echo "$DIFF" >&6; }
6546 else
6547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548 $as_echo "no" >&6; }
6549 fi
6550 
6551 
6552   test -n "$DIFF" && break
6553 done
6554 
6555   else
6556     # The variable is set, but is it from the command line or the environment?
6557 
6558     # Try to remove the string !DIFF! from our list.
6559     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6560     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6561       # If it failed, the variable was not from the command line. Ignore it,
6562       # but warn the user (except for BASH, which is always set by the calling BASH).
6563       if test "xDIFF" != xBASH; then
6564         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6565 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6566       fi
6567       # Try to locate tool using the code snippet
6568       for ac_prog in gdiff diff
6569 do
6570   # Extract the first word of "$ac_prog", so it can be a program name with args.
6571 set dummy $ac_prog; ac_word=$2
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6573 $as_echo_n "checking for $ac_word... " >&6; }
6574 if ${ac_cv_path_DIFF+:} false; then :
6575   $as_echo_n "(cached) " >&6
6576 else
6577   case $DIFF in
6578   [\\/]* | ?:[\\/]*)
6579   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6580   ;;
6581   *)
6582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 for as_dir in $PATH
6584 do
6585   IFS=$as_save_IFS
6586   test -z "$as_dir" && as_dir=.
6587     for ac_exec_ext in '' $ac_executable_extensions; do
6588   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6589     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6591     break 2
6592   fi
6593 done
6594   done
6595 IFS=$as_save_IFS
6596 
6597   ;;
6598 esac
6599 fi
6600 DIFF=$ac_cv_path_DIFF
6601 if test -n "$DIFF"; then
6602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6603 $as_echo "$DIFF" >&6; }
6604 else
6605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 $as_echo "no" >&6; }
6607 fi
6608 
6609 
6610   test -n "$DIFF" && break
6611 done
6612 
6613     else
6614       # If it succeeded, then it was overridden by the user. We will use it
6615       # for the tool.
6616 
6617       # First remove it from the list of overridden variables, so we can test
6618       # for unknown variables in the end.
6619       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6620 
6621       # Check if we try to supply an empty value
6622       if test "x$DIFF" = x; then
6623         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5
6624 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;}
6625         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6626 $as_echo_n "checking for DIFF... " >&6; }
6627         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6628 $as_echo "disabled" >&6; }
6629       else
6630         # Check if the provided tool contains a complete path.
6631         tool_specified="$DIFF"
6632         tool_basename="${tool_specified##*/}"
6633         if test "x$tool_basename" = "x$tool_specified"; then
6634           # A command without a complete path is provided, search $PATH.
6635           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6636 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6637           # Extract the first word of "$tool_basename", so it can be a program name with args.
6638 set dummy $tool_basename; ac_word=$2
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6640 $as_echo_n "checking for $ac_word... " >&6; }
6641 if ${ac_cv_path_DIFF+:} false; then :
6642   $as_echo_n "(cached) " >&6
6643 else
6644   case $DIFF in
6645   [\\/]* | ?:[\\/]*)
6646   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6647   ;;
6648   *)
6649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 for as_dir in $PATH
6651 do
6652   IFS=$as_save_IFS
6653   test -z "$as_dir" && as_dir=.
6654     for ac_exec_ext in '' $ac_executable_extensions; do
6655   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6656     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6658     break 2
6659   fi
6660 done
6661   done
6662 IFS=$as_save_IFS
6663 
6664   ;;
6665 esac
6666 fi
6667 DIFF=$ac_cv_path_DIFF
6668 if test -n "$DIFF"; then
6669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6670 $as_echo "$DIFF" >&6; }
6671 else
6672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6673 $as_echo "no" >&6; }
6674 fi
6675 
6676 
6677           if test "x$DIFF" = x; then
6678             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6679           fi
6680         else
6681           # Otherwise we believe it is a complete path. Use it as it is.
6682           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6683 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6684           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6685 $as_echo_n "checking for DIFF... " >&6; }
6686           if test ! -x "$tool_specified"; then
6687             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6688 $as_echo "not found" >&6; }
6689             as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6690           fi
6691           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6692 $as_echo "$tool_specified" >&6; }
6693         fi
6694       fi
6695     fi
6696 
6697   fi
6698 
6699 
6700 
6701   if test "x$DIFF" = x; then
6702     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6703   fi
6704 
6705 
6706 
6707 
6708 
6709   # Publish this variable in the help.
6710 
6711 
6712   if [ -z "${DIRNAME+x}" ]; then
6713     # The variable is not set by user, try to locate tool using the code snippet
6714     for ac_prog in dirname
6715 do
6716   # Extract the first word of "$ac_prog", so it can be a program name with args.
6717 set dummy $ac_prog; ac_word=$2
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719 $as_echo_n "checking for $ac_word... " >&6; }
6720 if ${ac_cv_path_DIRNAME+:} false; then :
6721   $as_echo_n "(cached) " >&6
6722 else
6723   case $DIRNAME in
6724   [\\/]* | ?:[\\/]*)
6725   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6726   ;;
6727   *)
6728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 for as_dir in $PATH
6730 do
6731   IFS=$as_save_IFS
6732   test -z "$as_dir" && as_dir=.
6733     for ac_exec_ext in '' $ac_executable_extensions; do
6734   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6735     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6737     break 2
6738   fi
6739 done
6740   done
6741 IFS=$as_save_IFS
6742 
6743   ;;
6744 esac
6745 fi
6746 DIRNAME=$ac_cv_path_DIRNAME
6747 if test -n "$DIRNAME"; then
6748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6749 $as_echo "$DIRNAME" >&6; }
6750 else
6751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752 $as_echo "no" >&6; }
6753 fi
6754 
6755 
6756   test -n "$DIRNAME" && break
6757 done
6758 
6759   else
6760     # The variable is set, but is it from the command line or the environment?
6761 
6762     # Try to remove the string !DIRNAME! from our list.
6763     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6764     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6765       # If it failed, the variable was not from the command line. Ignore it,
6766       # but warn the user (except for BASH, which is always set by the calling BASH).
6767       if test "xDIRNAME" != xBASH; then
6768         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6769 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6770       fi
6771       # Try to locate tool using the code snippet
6772       for ac_prog in dirname
6773 do
6774   # Extract the first word of "$ac_prog", so it can be a program name with args.
6775 set dummy $ac_prog; ac_word=$2
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777 $as_echo_n "checking for $ac_word... " >&6; }
6778 if ${ac_cv_path_DIRNAME+:} false; then :
6779   $as_echo_n "(cached) " >&6
6780 else
6781   case $DIRNAME in
6782   [\\/]* | ?:[\\/]*)
6783   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6784   ;;
6785   *)
6786   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 for as_dir in $PATH
6788 do
6789   IFS=$as_save_IFS
6790   test -z "$as_dir" && as_dir=.
6791     for ac_exec_ext in '' $ac_executable_extensions; do
6792   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6793     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6795     break 2
6796   fi
6797 done
6798   done
6799 IFS=$as_save_IFS
6800 
6801   ;;
6802 esac
6803 fi
6804 DIRNAME=$ac_cv_path_DIRNAME
6805 if test -n "$DIRNAME"; then
6806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6807 $as_echo "$DIRNAME" >&6; }
6808 else
6809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810 $as_echo "no" >&6; }
6811 fi
6812 
6813 
6814   test -n "$DIRNAME" && break
6815 done
6816 
6817     else
6818       # If it succeeded, then it was overridden by the user. We will use it
6819       # for the tool.
6820 
6821       # First remove it from the list of overridden variables, so we can test
6822       # for unknown variables in the end.
6823       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6824 
6825       # Check if we try to supply an empty value
6826       if test "x$DIRNAME" = x; then
6827         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5
6828 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;}
6829         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6830 $as_echo_n "checking for DIRNAME... " >&6; }
6831         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6832 $as_echo "disabled" >&6; }
6833       else
6834         # Check if the provided tool contains a complete path.
6835         tool_specified="$DIRNAME"
6836         tool_basename="${tool_specified##*/}"
6837         if test "x$tool_basename" = "x$tool_specified"; then
6838           # A command without a complete path is provided, search $PATH.
6839           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6840 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6841           # Extract the first word of "$tool_basename", so it can be a program name with args.
6842 set dummy $tool_basename; ac_word=$2
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6844 $as_echo_n "checking for $ac_word... " >&6; }
6845 if ${ac_cv_path_DIRNAME+:} false; then :
6846   $as_echo_n "(cached) " >&6
6847 else
6848   case $DIRNAME in
6849   [\\/]* | ?:[\\/]*)
6850   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6851   ;;
6852   *)
6853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854 for as_dir in $PATH
6855 do
6856   IFS=$as_save_IFS
6857   test -z "$as_dir" && as_dir=.
6858     for ac_exec_ext in '' $ac_executable_extensions; do
6859   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6860     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6862     break 2
6863   fi
6864 done
6865   done
6866 IFS=$as_save_IFS
6867 
6868   ;;
6869 esac
6870 fi
6871 DIRNAME=$ac_cv_path_DIRNAME
6872 if test -n "$DIRNAME"; then
6873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6874 $as_echo "$DIRNAME" >&6; }
6875 else
6876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6877 $as_echo "no" >&6; }
6878 fi
6879 
6880 
6881           if test "x$DIRNAME" = x; then
6882             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6883           fi
6884         else
6885           # Otherwise we believe it is a complete path. Use it as it is.
6886           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
6887 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
6888           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6889 $as_echo_n "checking for DIRNAME... " >&6; }
6890           if test ! -x "$tool_specified"; then
6891             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6892 $as_echo "not found" >&6; }
6893             as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
6894           fi
6895           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6896 $as_echo "$tool_specified" >&6; }
6897         fi
6898       fi
6899     fi
6900 
6901   fi
6902 
6903 
6904 
6905   if test "x$DIRNAME" = x; then
6906     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
6907   fi
6908 
6909 
6910 
6911 
6912 
6913   # Publish this variable in the help.
6914 
6915 
6916   if [ -z "${ECHO+x}" ]; then
6917     # The variable is not set by user, try to locate tool using the code snippet
6918     for ac_prog in echo
6919 do
6920   # Extract the first word of "$ac_prog", so it can be a program name with args.
6921 set dummy $ac_prog; ac_word=$2
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6923 $as_echo_n "checking for $ac_word... " >&6; }
6924 if ${ac_cv_path_ECHO+:} false; then :
6925   $as_echo_n "(cached) " >&6
6926 else
6927   case $ECHO in
6928   [\\/]* | ?:[\\/]*)
6929   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6930   ;;
6931   *)
6932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933 for as_dir in $PATH
6934 do
6935   IFS=$as_save_IFS
6936   test -z "$as_dir" && as_dir=.
6937     for ac_exec_ext in '' $ac_executable_extensions; do
6938   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6939     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6941     break 2
6942   fi
6943 done
6944   done
6945 IFS=$as_save_IFS
6946 
6947   ;;
6948 esac
6949 fi
6950 ECHO=$ac_cv_path_ECHO
6951 if test -n "$ECHO"; then
6952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6953 $as_echo "$ECHO" >&6; }
6954 else
6955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 $as_echo "no" >&6; }
6957 fi
6958 
6959 
6960   test -n "$ECHO" && break
6961 done
6962 
6963   else
6964     # The variable is set, but is it from the command line or the environment?
6965 
6966     # Try to remove the string !ECHO! from our list.
6967     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
6968     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6969       # If it failed, the variable was not from the command line. Ignore it,
6970       # but warn the user (except for BASH, which is always set by the calling BASH).
6971       if test "xECHO" != xBASH; then
6972         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
6973 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
6974       fi
6975       # Try to locate tool using the code snippet
6976       for ac_prog in echo
6977 do
6978   # Extract the first word of "$ac_prog", so it can be a program name with args.
6979 set dummy $ac_prog; ac_word=$2
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6981 $as_echo_n "checking for $ac_word... " >&6; }
6982 if ${ac_cv_path_ECHO+:} false; then :
6983   $as_echo_n "(cached) " >&6
6984 else
6985   case $ECHO in
6986   [\\/]* | ?:[\\/]*)
6987   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6988   ;;
6989   *)
6990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991 for as_dir in $PATH
6992 do
6993   IFS=$as_save_IFS
6994   test -z "$as_dir" && as_dir=.
6995     for ac_exec_ext in '' $ac_executable_extensions; do
6996   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6997     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6999     break 2
7000   fi
7001 done
7002   done
7003 IFS=$as_save_IFS
7004 
7005   ;;
7006 esac
7007 fi
7008 ECHO=$ac_cv_path_ECHO
7009 if test -n "$ECHO"; then
7010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7011 $as_echo "$ECHO" >&6; }
7012 else
7013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7014 $as_echo "no" >&6; }
7015 fi
7016 
7017 
7018   test -n "$ECHO" && break
7019 done
7020 
7021     else
7022       # If it succeeded, then it was overridden by the user. We will use it
7023       # for the tool.
7024 
7025       # First remove it from the list of overridden variables, so we can test
7026       # for unknown variables in the end.
7027       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7028 
7029       # Check if we try to supply an empty value
7030       if test "x$ECHO" = x; then
7031         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5
7032 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;}
7033         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7034 $as_echo_n "checking for ECHO... " >&6; }
7035         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7036 $as_echo "disabled" >&6; }
7037       else
7038         # Check if the provided tool contains a complete path.
7039         tool_specified="$ECHO"
7040         tool_basename="${tool_specified##*/}"
7041         if test "x$tool_basename" = "x$tool_specified"; then
7042           # A command without a complete path is provided, search $PATH.
7043           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
7044 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
7045           # Extract the first word of "$tool_basename", so it can be a program name with args.
7046 set dummy $tool_basename; ac_word=$2
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7048 $as_echo_n "checking for $ac_word... " >&6; }
7049 if ${ac_cv_path_ECHO+:} false; then :
7050   $as_echo_n "(cached) " >&6
7051 else
7052   case $ECHO in
7053   [\\/]* | ?:[\\/]*)
7054   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
7055   ;;
7056   *)
7057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058 for as_dir in $PATH
7059 do
7060   IFS=$as_save_IFS
7061   test -z "$as_dir" && as_dir=.
7062     for ac_exec_ext in '' $ac_executable_extensions; do
7063   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7064     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
7065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7066     break 2
7067   fi
7068 done
7069   done
7070 IFS=$as_save_IFS
7071 
7072   ;;
7073 esac
7074 fi
7075 ECHO=$ac_cv_path_ECHO
7076 if test -n "$ECHO"; then
7077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
7078 $as_echo "$ECHO" >&6; }
7079 else
7080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7081 $as_echo "no" >&6; }
7082 fi
7083 
7084 
7085           if test "x$ECHO" = x; then
7086             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7087           fi
7088         else
7089           # Otherwise we believe it is a complete path. Use it as it is.
7090           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
7091 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
7092           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
7093 $as_echo_n "checking for ECHO... " >&6; }
7094           if test ! -x "$tool_specified"; then
7095             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7096 $as_echo "not found" >&6; }
7097             as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
7098           fi
7099           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7100 $as_echo "$tool_specified" >&6; }
7101         fi
7102       fi
7103     fi
7104 
7105   fi
7106 
7107 
7108 
7109   if test "x$ECHO" = x; then
7110     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
7111   fi
7112 
7113 
7114 
7115 
7116 
7117   # Publish this variable in the help.
7118 
7119 
7120   if [ -z "${EXPR+x}" ]; then
7121     # The variable is not set by user, try to locate tool using the code snippet
7122     for ac_prog in expr
7123 do
7124   # Extract the first word of "$ac_prog", so it can be a program name with args.
7125 set dummy $ac_prog; ac_word=$2
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7127 $as_echo_n "checking for $ac_word... " >&6; }
7128 if ${ac_cv_path_EXPR+:} false; then :
7129   $as_echo_n "(cached) " >&6
7130 else
7131   case $EXPR in
7132   [\\/]* | ?:[\\/]*)
7133   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7134   ;;
7135   *)
7136   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 for as_dir in $PATH
7138 do
7139   IFS=$as_save_IFS
7140   test -z "$as_dir" && as_dir=.
7141     for ac_exec_ext in '' $ac_executable_extensions; do
7142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7143     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7145     break 2
7146   fi
7147 done
7148   done
7149 IFS=$as_save_IFS
7150 
7151   ;;
7152 esac
7153 fi
7154 EXPR=$ac_cv_path_EXPR
7155 if test -n "$EXPR"; then
7156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7157 $as_echo "$EXPR" >&6; }
7158 else
7159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7160 $as_echo "no" >&6; }
7161 fi
7162 
7163 
7164   test -n "$EXPR" && break
7165 done
7166 
7167   else
7168     # The variable is set, but is it from the command line or the environment?
7169 
7170     # Try to remove the string !EXPR! from our list.
7171     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
7172     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7173       # If it failed, the variable was not from the command line. Ignore it,
7174       # but warn the user (except for BASH, which is always set by the calling BASH).
7175       if test "xEXPR" != xBASH; then
7176         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
7177 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
7178       fi
7179       # Try to locate tool using the code snippet
7180       for ac_prog in expr
7181 do
7182   # Extract the first word of "$ac_prog", so it can be a program name with args.
7183 set dummy $ac_prog; ac_word=$2
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7185 $as_echo_n "checking for $ac_word... " >&6; }
7186 if ${ac_cv_path_EXPR+:} false; then :
7187   $as_echo_n "(cached) " >&6
7188 else
7189   case $EXPR in
7190   [\\/]* | ?:[\\/]*)
7191   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7192   ;;
7193   *)
7194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195 for as_dir in $PATH
7196 do
7197   IFS=$as_save_IFS
7198   test -z "$as_dir" && as_dir=.
7199     for ac_exec_ext in '' $ac_executable_extensions; do
7200   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7201     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7203     break 2
7204   fi
7205 done
7206   done
7207 IFS=$as_save_IFS
7208 
7209   ;;
7210 esac
7211 fi
7212 EXPR=$ac_cv_path_EXPR
7213 if test -n "$EXPR"; then
7214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7215 $as_echo "$EXPR" >&6; }
7216 else
7217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7218 $as_echo "no" >&6; }
7219 fi
7220 
7221 
7222   test -n "$EXPR" && break
7223 done
7224 
7225     else
7226       # If it succeeded, then it was overridden by the user. We will use it
7227       # for the tool.
7228 
7229       # First remove it from the list of overridden variables, so we can test
7230       # for unknown variables in the end.
7231       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7232 
7233       # Check if we try to supply an empty value
7234       if test "x$EXPR" = x; then
7235         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5
7236 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;}
7237         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7238 $as_echo_n "checking for EXPR... " >&6; }
7239         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7240 $as_echo "disabled" >&6; }
7241       else
7242         # Check if the provided tool contains a complete path.
7243         tool_specified="$EXPR"
7244         tool_basename="${tool_specified##*/}"
7245         if test "x$tool_basename" = "x$tool_specified"; then
7246           # A command without a complete path is provided, search $PATH.
7247           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
7248 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
7249           # Extract the first word of "$tool_basename", so it can be a program name with args.
7250 set dummy $tool_basename; ac_word=$2
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7252 $as_echo_n "checking for $ac_word... " >&6; }
7253 if ${ac_cv_path_EXPR+:} false; then :
7254   $as_echo_n "(cached) " >&6
7255 else
7256   case $EXPR in
7257   [\\/]* | ?:[\\/]*)
7258   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
7259   ;;
7260   *)
7261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 for as_dir in $PATH
7263 do
7264   IFS=$as_save_IFS
7265   test -z "$as_dir" && as_dir=.
7266     for ac_exec_ext in '' $ac_executable_extensions; do
7267   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7268     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
7269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7270     break 2
7271   fi
7272 done
7273   done
7274 IFS=$as_save_IFS
7275 
7276   ;;
7277 esac
7278 fi
7279 EXPR=$ac_cv_path_EXPR
7280 if test -n "$EXPR"; then
7281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
7282 $as_echo "$EXPR" >&6; }
7283 else
7284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7285 $as_echo "no" >&6; }
7286 fi
7287 
7288 
7289           if test "x$EXPR" = x; then
7290             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7291           fi
7292         else
7293           # Otherwise we believe it is a complete path. Use it as it is.
7294           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
7295 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
7296           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
7297 $as_echo_n "checking for EXPR... " >&6; }
7298           if test ! -x "$tool_specified"; then
7299             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7300 $as_echo "not found" >&6; }
7301             as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
7302           fi
7303           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7304 $as_echo "$tool_specified" >&6; }
7305         fi
7306       fi
7307     fi
7308 
7309   fi
7310 
7311 
7312 
7313   if test "x$EXPR" = x; then
7314     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
7315   fi
7316 
7317 
7318 
7319 
7320 
7321   # Publish this variable in the help.
7322 
7323 
7324   if [ -z "${FILE+x}" ]; then
7325     # The variable is not set by user, try to locate tool using the code snippet
7326     for ac_prog in file
7327 do
7328   # Extract the first word of "$ac_prog", so it can be a program name with args.
7329 set dummy $ac_prog; ac_word=$2
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7331 $as_echo_n "checking for $ac_word... " >&6; }
7332 if ${ac_cv_path_FILE+:} false; then :
7333   $as_echo_n "(cached) " >&6
7334 else
7335   case $FILE in
7336   [\\/]* | ?:[\\/]*)
7337   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7338   ;;
7339   *)
7340   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 for as_dir in $PATH
7342 do
7343   IFS=$as_save_IFS
7344   test -z "$as_dir" && as_dir=.
7345     for ac_exec_ext in '' $ac_executable_extensions; do
7346   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7347     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7349     break 2
7350   fi
7351 done
7352   done
7353 IFS=$as_save_IFS
7354 
7355   ;;
7356 esac
7357 fi
7358 FILE=$ac_cv_path_FILE
7359 if test -n "$FILE"; then
7360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7361 $as_echo "$FILE" >&6; }
7362 else
7363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364 $as_echo "no" >&6; }
7365 fi
7366 
7367 
7368   test -n "$FILE" && break
7369 done
7370 
7371   else
7372     # The variable is set, but is it from the command line or the environment?
7373 
7374     # Try to remove the string !FILE! from our list.
7375     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7376     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7377       # If it failed, the variable was not from the command line. Ignore it,
7378       # but warn the user (except for BASH, which is always set by the calling BASH).
7379       if test "xFILE" != xBASH; then
7380         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7381 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7382       fi
7383       # Try to locate tool using the code snippet
7384       for ac_prog in file
7385 do
7386   # Extract the first word of "$ac_prog", so it can be a program name with args.
7387 set dummy $ac_prog; ac_word=$2
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7389 $as_echo_n "checking for $ac_word... " >&6; }
7390 if ${ac_cv_path_FILE+:} false; then :
7391   $as_echo_n "(cached) " >&6
7392 else
7393   case $FILE in
7394   [\\/]* | ?:[\\/]*)
7395   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7396   ;;
7397   *)
7398   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399 for as_dir in $PATH
7400 do
7401   IFS=$as_save_IFS
7402   test -z "$as_dir" && as_dir=.
7403     for ac_exec_ext in '' $ac_executable_extensions; do
7404   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7405     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7407     break 2
7408   fi
7409 done
7410   done
7411 IFS=$as_save_IFS
7412 
7413   ;;
7414 esac
7415 fi
7416 FILE=$ac_cv_path_FILE
7417 if test -n "$FILE"; then
7418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7419 $as_echo "$FILE" >&6; }
7420 else
7421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422 $as_echo "no" >&6; }
7423 fi
7424 
7425 
7426   test -n "$FILE" && break
7427 done
7428 
7429     else
7430       # If it succeeded, then it was overridden by the user. We will use it
7431       # for the tool.
7432 
7433       # First remove it from the list of overridden variables, so we can test
7434       # for unknown variables in the end.
7435       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7436 
7437       # Check if we try to supply an empty value
7438       if test "x$FILE" = x; then
7439         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5
7440 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;}
7441         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7442 $as_echo_n "checking for FILE... " >&6; }
7443         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7444 $as_echo "disabled" >&6; }
7445       else
7446         # Check if the provided tool contains a complete path.
7447         tool_specified="$FILE"
7448         tool_basename="${tool_specified##*/}"
7449         if test "x$tool_basename" = "x$tool_specified"; then
7450           # A command without a complete path is provided, search $PATH.
7451           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7452 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
7453           # Extract the first word of "$tool_basename", so it can be a program name with args.
7454 set dummy $tool_basename; ac_word=$2
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7456 $as_echo_n "checking for $ac_word... " >&6; }
7457 if ${ac_cv_path_FILE+:} false; then :
7458   $as_echo_n "(cached) " >&6
7459 else
7460   case $FILE in
7461   [\\/]* | ?:[\\/]*)
7462   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7463   ;;
7464   *)
7465   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 for as_dir in $PATH
7467 do
7468   IFS=$as_save_IFS
7469   test -z "$as_dir" && as_dir=.
7470     for ac_exec_ext in '' $ac_executable_extensions; do
7471   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7472     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7473     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7474     break 2
7475   fi
7476 done
7477   done
7478 IFS=$as_save_IFS
7479 
7480   ;;
7481 esac
7482 fi
7483 FILE=$ac_cv_path_FILE
7484 if test -n "$FILE"; then
7485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7486 $as_echo "$FILE" >&6; }
7487 else
7488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489 $as_echo "no" >&6; }
7490 fi
7491 
7492 
7493           if test "x$FILE" = x; then
7494             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7495           fi
7496         else
7497           # Otherwise we believe it is a complete path. Use it as it is.
7498           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7499 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7500           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7501 $as_echo_n "checking for FILE... " >&6; }
7502           if test ! -x "$tool_specified"; then
7503             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7504 $as_echo "not found" >&6; }
7505             as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7506           fi
7507           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7508 $as_echo "$tool_specified" >&6; }
7509         fi
7510       fi
7511     fi
7512 
7513   fi
7514 
7515 
7516 
7517   if test "x$FILE" = x; then
7518     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7519   fi
7520 
7521 
7522 
7523 
7524 
7525   # Publish this variable in the help.
7526 
7527 
7528   if [ -z "${FIND+x}" ]; then
7529     # The variable is not set by user, try to locate tool using the code snippet
7530     for ac_prog in find
7531 do
7532   # Extract the first word of "$ac_prog", so it can be a program name with args.
7533 set dummy $ac_prog; ac_word=$2
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7535 $as_echo_n "checking for $ac_word... " >&6; }
7536 if ${ac_cv_path_FIND+:} false; then :
7537   $as_echo_n "(cached) " >&6
7538 else
7539   case $FIND in
7540   [\\/]* | ?:[\\/]*)
7541   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7542   ;;
7543   *)
7544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 for as_dir in $PATH
7546 do
7547   IFS=$as_save_IFS
7548   test -z "$as_dir" && as_dir=.
7549     for ac_exec_ext in '' $ac_executable_extensions; do
7550   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7551     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7553     break 2
7554   fi
7555 done
7556   done
7557 IFS=$as_save_IFS
7558 
7559   ;;
7560 esac
7561 fi
7562 FIND=$ac_cv_path_FIND
7563 if test -n "$FIND"; then
7564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7565 $as_echo "$FIND" >&6; }
7566 else
7567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568 $as_echo "no" >&6; }
7569 fi
7570 
7571 
7572   test -n "$FIND" && break
7573 done
7574 
7575   else
7576     # The variable is set, but is it from the command line or the environment?
7577 
7578     # Try to remove the string !FIND! from our list.
7579     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7580     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7581       # If it failed, the variable was not from the command line. Ignore it,
7582       # but warn the user (except for BASH, which is always set by the calling BASH).
7583       if test "xFIND" != xBASH; then
7584         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7585 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7586       fi
7587       # Try to locate tool using the code snippet
7588       for ac_prog in find
7589 do
7590   # Extract the first word of "$ac_prog", so it can be a program name with args.
7591 set dummy $ac_prog; ac_word=$2
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7593 $as_echo_n "checking for $ac_word... " >&6; }
7594 if ${ac_cv_path_FIND+:} false; then :
7595   $as_echo_n "(cached) " >&6
7596 else
7597   case $FIND in
7598   [\\/]* | ?:[\\/]*)
7599   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7600   ;;
7601   *)
7602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603 for as_dir in $PATH
7604 do
7605   IFS=$as_save_IFS
7606   test -z "$as_dir" && as_dir=.
7607     for ac_exec_ext in '' $ac_executable_extensions; do
7608   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7609     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7611     break 2
7612   fi
7613 done
7614   done
7615 IFS=$as_save_IFS
7616 
7617   ;;
7618 esac
7619 fi
7620 FIND=$ac_cv_path_FIND
7621 if test -n "$FIND"; then
7622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7623 $as_echo "$FIND" >&6; }
7624 else
7625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626 $as_echo "no" >&6; }
7627 fi
7628 
7629 
7630   test -n "$FIND" && break
7631 done
7632 
7633     else
7634       # If it succeeded, then it was overridden by the user. We will use it
7635       # for the tool.
7636 
7637       # First remove it from the list of overridden variables, so we can test
7638       # for unknown variables in the end.
7639       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7640 
7641       # Check if we try to supply an empty value
7642       if test "x$FIND" = x; then
7643         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5
7644 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;}
7645         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7646 $as_echo_n "checking for FIND... " >&6; }
7647         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7648 $as_echo "disabled" >&6; }
7649       else
7650         # Check if the provided tool contains a complete path.
7651         tool_specified="$FIND"
7652         tool_basename="${tool_specified##*/}"
7653         if test "x$tool_basename" = "x$tool_specified"; then
7654           # A command without a complete path is provided, search $PATH.
7655           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7656 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7657           # Extract the first word of "$tool_basename", so it can be a program name with args.
7658 set dummy $tool_basename; ac_word=$2
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660 $as_echo_n "checking for $ac_word... " >&6; }
7661 if ${ac_cv_path_FIND+:} false; then :
7662   $as_echo_n "(cached) " >&6
7663 else
7664   case $FIND in
7665   [\\/]* | ?:[\\/]*)
7666   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7667   ;;
7668   *)
7669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670 for as_dir in $PATH
7671 do
7672   IFS=$as_save_IFS
7673   test -z "$as_dir" && as_dir=.
7674     for ac_exec_ext in '' $ac_executable_extensions; do
7675   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7676     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7678     break 2
7679   fi
7680 done
7681   done
7682 IFS=$as_save_IFS
7683 
7684   ;;
7685 esac
7686 fi
7687 FIND=$ac_cv_path_FIND
7688 if test -n "$FIND"; then
7689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7690 $as_echo "$FIND" >&6; }
7691 else
7692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7693 $as_echo "no" >&6; }
7694 fi
7695 
7696 
7697           if test "x$FIND" = x; then
7698             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7699           fi
7700         else
7701           # Otherwise we believe it is a complete path. Use it as it is.
7702           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7703 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7704           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7705 $as_echo_n "checking for FIND... " >&6; }
7706           if test ! -x "$tool_specified"; then
7707             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7708 $as_echo "not found" >&6; }
7709             as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7710           fi
7711           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7712 $as_echo "$tool_specified" >&6; }
7713         fi
7714       fi
7715     fi
7716 
7717   fi
7718 
7719 
7720 
7721   if test "x$FIND" = x; then
7722     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7723   fi
7724 
7725 
7726 
7727 
7728 
7729   # Publish this variable in the help.
7730 
7731 
7732   if [ -z "${HEAD+x}" ]; then
7733     # The variable is not set by user, try to locate tool using the code snippet
7734     for ac_prog in head
7735 do
7736   # Extract the first word of "$ac_prog", so it can be a program name with args.
7737 set dummy $ac_prog; ac_word=$2
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7739 $as_echo_n "checking for $ac_word... " >&6; }
7740 if ${ac_cv_path_HEAD+:} false; then :
7741   $as_echo_n "(cached) " >&6
7742 else
7743   case $HEAD in
7744   [\\/]* | ?:[\\/]*)
7745   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7746   ;;
7747   *)
7748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749 for as_dir in $PATH
7750 do
7751   IFS=$as_save_IFS
7752   test -z "$as_dir" && as_dir=.
7753     for ac_exec_ext in '' $ac_executable_extensions; do
7754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7755     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7757     break 2
7758   fi
7759 done
7760   done
7761 IFS=$as_save_IFS
7762 
7763   ;;
7764 esac
7765 fi
7766 HEAD=$ac_cv_path_HEAD
7767 if test -n "$HEAD"; then
7768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7769 $as_echo "$HEAD" >&6; }
7770 else
7771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7772 $as_echo "no" >&6; }
7773 fi
7774 
7775 
7776   test -n "$HEAD" && break
7777 done
7778 
7779   else
7780     # The variable is set, but is it from the command line or the environment?
7781 
7782     # Try to remove the string !HEAD! from our list.
7783     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7784     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7785       # If it failed, the variable was not from the command line. Ignore it,
7786       # but warn the user (except for BASH, which is always set by the calling BASH).
7787       if test "xHEAD" != xBASH; then
7788         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7789 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7790       fi
7791       # Try to locate tool using the code snippet
7792       for ac_prog in head
7793 do
7794   # Extract the first word of "$ac_prog", so it can be a program name with args.
7795 set dummy $ac_prog; ac_word=$2
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797 $as_echo_n "checking for $ac_word... " >&6; }
7798 if ${ac_cv_path_HEAD+:} false; then :
7799   $as_echo_n "(cached) " >&6
7800 else
7801   case $HEAD in
7802   [\\/]* | ?:[\\/]*)
7803   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7804   ;;
7805   *)
7806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 for as_dir in $PATH
7808 do
7809   IFS=$as_save_IFS
7810   test -z "$as_dir" && as_dir=.
7811     for ac_exec_ext in '' $ac_executable_extensions; do
7812   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7813     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7815     break 2
7816   fi
7817 done
7818   done
7819 IFS=$as_save_IFS
7820 
7821   ;;
7822 esac
7823 fi
7824 HEAD=$ac_cv_path_HEAD
7825 if test -n "$HEAD"; then
7826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7827 $as_echo "$HEAD" >&6; }
7828 else
7829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7831 fi
7832 
7833 
7834   test -n "$HEAD" && break
7835 done
7836 
7837     else
7838       # If it succeeded, then it was overridden by the user. We will use it
7839       # for the tool.
7840 
7841       # First remove it from the list of overridden variables, so we can test
7842       # for unknown variables in the end.
7843       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7844 
7845       # Check if we try to supply an empty value
7846       if test "x$HEAD" = x; then
7847         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5
7848 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;}
7849         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7850 $as_echo_n "checking for HEAD... " >&6; }
7851         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7852 $as_echo "disabled" >&6; }
7853       else
7854         # Check if the provided tool contains a complete path.
7855         tool_specified="$HEAD"
7856         tool_basename="${tool_specified##*/}"
7857         if test "x$tool_basename" = "x$tool_specified"; then
7858           # A command without a complete path is provided, search $PATH.
7859           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7860 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7861           # Extract the first word of "$tool_basename", so it can be a program name with args.
7862 set dummy $tool_basename; ac_word=$2
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7864 $as_echo_n "checking for $ac_word... " >&6; }
7865 if ${ac_cv_path_HEAD+:} false; then :
7866   $as_echo_n "(cached) " >&6
7867 else
7868   case $HEAD in
7869   [\\/]* | ?:[\\/]*)
7870   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7871   ;;
7872   *)
7873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874 for as_dir in $PATH
7875 do
7876   IFS=$as_save_IFS
7877   test -z "$as_dir" && as_dir=.
7878     for ac_exec_ext in '' $ac_executable_extensions; do
7879   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7880     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7882     break 2
7883   fi
7884 done
7885   done
7886 IFS=$as_save_IFS
7887 
7888   ;;
7889 esac
7890 fi
7891 HEAD=$ac_cv_path_HEAD
7892 if test -n "$HEAD"; then
7893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7894 $as_echo "$HEAD" >&6; }
7895 else
7896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897 $as_echo "no" >&6; }
7898 fi
7899 
7900 
7901           if test "x$HEAD" = x; then
7902             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7903           fi
7904         else
7905           # Otherwise we believe it is a complete path. Use it as it is.
7906           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
7907 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
7908           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7909 $as_echo_n "checking for HEAD... " >&6; }
7910           if test ! -x "$tool_specified"; then
7911             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7912 $as_echo "not found" >&6; }
7913             as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
7914           fi
7915           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7916 $as_echo "$tool_specified" >&6; }
7917         fi
7918       fi
7919     fi
7920 
7921   fi
7922 
7923 
7924 
7925   if test "x$HEAD" = x; then
7926     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
7927   fi
7928 
7929 
7930 
7931 
7932 
7933   # Publish this variable in the help.
7934 
7935 
7936   if [ -z "${LN+x}" ]; then
7937     # The variable is not set by user, try to locate tool using the code snippet
7938     for ac_prog in ln
7939 do
7940   # Extract the first word of "$ac_prog", so it can be a program name with args.
7941 set dummy $ac_prog; ac_word=$2
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7943 $as_echo_n "checking for $ac_word... " >&6; }
7944 if ${ac_cv_path_LN+:} false; then :
7945   $as_echo_n "(cached) " >&6
7946 else
7947   case $LN in
7948   [\\/]* | ?:[\\/]*)
7949   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7950   ;;
7951   *)
7952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953 for as_dir in $PATH
7954 do
7955   IFS=$as_save_IFS
7956   test -z "$as_dir" && as_dir=.
7957     for ac_exec_ext in '' $ac_executable_extensions; do
7958   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7959     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7961     break 2
7962   fi
7963 done
7964   done
7965 IFS=$as_save_IFS
7966 
7967   ;;
7968 esac
7969 fi
7970 LN=$ac_cv_path_LN
7971 if test -n "$LN"; then
7972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7973 $as_echo "$LN" >&6; }
7974 else
7975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7977 fi
7978 
7979 
7980   test -n "$LN" && break
7981 done
7982 
7983   else
7984     # The variable is set, but is it from the command line or the environment?
7985 
7986     # Try to remove the string !LN! from our list.
7987     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
7988     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7989       # If it failed, the variable was not from the command line. Ignore it,
7990       # but warn the user (except for BASH, which is always set by the calling BASH).
7991       if test "xLN" != xBASH; then
7992         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
7993 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
7994       fi
7995       # Try to locate tool using the code snippet
7996       for ac_prog in ln
7997 do
7998   # Extract the first word of "$ac_prog", so it can be a program name with args.
7999 set dummy $ac_prog; ac_word=$2
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001 $as_echo_n "checking for $ac_word... " >&6; }
8002 if ${ac_cv_path_LN+:} false; then :
8003   $as_echo_n "(cached) " >&6
8004 else
8005   case $LN in
8006   [\\/]* | ?:[\\/]*)
8007   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8008   ;;
8009   *)
8010   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8011 for as_dir in $PATH
8012 do
8013   IFS=$as_save_IFS
8014   test -z "$as_dir" && as_dir=.
8015     for ac_exec_ext in '' $ac_executable_extensions; do
8016   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8017     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8019     break 2
8020   fi
8021 done
8022   done
8023 IFS=$as_save_IFS
8024 
8025   ;;
8026 esac
8027 fi
8028 LN=$ac_cv_path_LN
8029 if test -n "$LN"; then
8030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8031 $as_echo "$LN" >&6; }
8032 else
8033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8034 $as_echo "no" >&6; }
8035 fi
8036 
8037 
8038   test -n "$LN" && break
8039 done
8040 
8041     else
8042       # If it succeeded, then it was overridden by the user. We will use it
8043       # for the tool.
8044 
8045       # First remove it from the list of overridden variables, so we can test
8046       # for unknown variables in the end.
8047       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8048 
8049       # Check if we try to supply an empty value
8050       if test "x$LN" = x; then
8051         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5
8052 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;}
8053         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
8054 $as_echo_n "checking for LN... " >&6; }
8055         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8056 $as_echo "disabled" >&6; }
8057       else
8058         # Check if the provided tool contains a complete path.
8059         tool_specified="$LN"
8060         tool_basename="${tool_specified##*/}"
8061         if test "x$tool_basename" = "x$tool_specified"; then
8062           # A command without a complete path is provided, search $PATH.
8063           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
8064 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
8065           # Extract the first word of "$tool_basename", so it can be a program name with args.
8066 set dummy $tool_basename; ac_word=$2
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068 $as_echo_n "checking for $ac_word... " >&6; }
8069 if ${ac_cv_path_LN+:} false; then :
8070   $as_echo_n "(cached) " >&6
8071 else
8072   case $LN in
8073   [\\/]* | ?:[\\/]*)
8074   ac_cv_path_LN="$LN" # Let the user override the test with a path.
8075   ;;
8076   *)
8077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078 for as_dir in $PATH
8079 do
8080   IFS=$as_save_IFS
8081   test -z "$as_dir" && as_dir=.
8082     for ac_exec_ext in '' $ac_executable_extensions; do
8083   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8084     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8086     break 2
8087   fi
8088 done
8089   done
8090 IFS=$as_save_IFS
8091 
8092   ;;
8093 esac
8094 fi
8095 LN=$ac_cv_path_LN
8096 if test -n "$LN"; then
8097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
8098 $as_echo "$LN" >&6; }
8099 else
8100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8101 $as_echo "no" >&6; }
8102 fi
8103 
8104 
8105           if test "x$LN" = x; then
8106             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8107           fi
8108         else
8109           # Otherwise we believe it is a complete path. Use it as it is.
8110           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
8111 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
8112           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
8113 $as_echo_n "checking for LN... " >&6; }
8114           if test ! -x "$tool_specified"; then
8115             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8116 $as_echo "not found" >&6; }
8117             as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
8118           fi
8119           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8120 $as_echo "$tool_specified" >&6; }
8121         fi
8122       fi
8123     fi
8124 
8125   fi
8126 
8127 
8128 
8129   if test "x$LN" = x; then
8130     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
8131   fi
8132 
8133 
8134 
8135 
8136 
8137   # Publish this variable in the help.
8138 
8139 
8140   if [ -z "${LS+x}" ]; then
8141     # The variable is not set by user, try to locate tool using the code snippet
8142     for ac_prog in ls
8143 do
8144   # Extract the first word of "$ac_prog", so it can be a program name with args.
8145 set dummy $ac_prog; ac_word=$2
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8147 $as_echo_n "checking for $ac_word... " >&6; }
8148 if ${ac_cv_path_LS+:} false; then :
8149   $as_echo_n "(cached) " >&6
8150 else
8151   case $LS in
8152   [\\/]* | ?:[\\/]*)
8153   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8154   ;;
8155   *)
8156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8157 for as_dir in $PATH
8158 do
8159   IFS=$as_save_IFS
8160   test -z "$as_dir" && as_dir=.
8161     for ac_exec_ext in '' $ac_executable_extensions; do
8162   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8163     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8165     break 2
8166   fi
8167 done
8168   done
8169 IFS=$as_save_IFS
8170 
8171   ;;
8172 esac
8173 fi
8174 LS=$ac_cv_path_LS
8175 if test -n "$LS"; then
8176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8177 $as_echo "$LS" >&6; }
8178 else
8179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8180 $as_echo "no" >&6; }
8181 fi
8182 
8183 
8184   test -n "$LS" && break
8185 done
8186 
8187   else
8188     # The variable is set, but is it from the command line or the environment?
8189 
8190     # Try to remove the string !LS! from our list.
8191     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
8192     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8193       # If it failed, the variable was not from the command line. Ignore it,
8194       # but warn the user (except for BASH, which is always set by the calling BASH).
8195       if test "xLS" != xBASH; then
8196         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
8197 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
8198       fi
8199       # Try to locate tool using the code snippet
8200       for ac_prog in ls
8201 do
8202   # Extract the first word of "$ac_prog", so it can be a program name with args.
8203 set dummy $ac_prog; ac_word=$2
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8205 $as_echo_n "checking for $ac_word... " >&6; }
8206 if ${ac_cv_path_LS+:} false; then :
8207   $as_echo_n "(cached) " >&6
8208 else
8209   case $LS in
8210   [\\/]* | ?:[\\/]*)
8211   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8212   ;;
8213   *)
8214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215 for as_dir in $PATH
8216 do
8217   IFS=$as_save_IFS
8218   test -z "$as_dir" && as_dir=.
8219     for ac_exec_ext in '' $ac_executable_extensions; do
8220   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8221     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8223     break 2
8224   fi
8225 done
8226   done
8227 IFS=$as_save_IFS
8228 
8229   ;;
8230 esac
8231 fi
8232 LS=$ac_cv_path_LS
8233 if test -n "$LS"; then
8234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8235 $as_echo "$LS" >&6; }
8236 else
8237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8238 $as_echo "no" >&6; }
8239 fi
8240 
8241 
8242   test -n "$LS" && break
8243 done
8244 
8245     else
8246       # If it succeeded, then it was overridden by the user. We will use it
8247       # for the tool.
8248 
8249       # First remove it from the list of overridden variables, so we can test
8250       # for unknown variables in the end.
8251       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8252 
8253       # Check if we try to supply an empty value
8254       if test "x$LS" = x; then
8255         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5
8256 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;}
8257         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
8258 $as_echo_n "checking for LS... " >&6; }
8259         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8260 $as_echo "disabled" >&6; }
8261       else
8262         # Check if the provided tool contains a complete path.
8263         tool_specified="$LS"
8264         tool_basename="${tool_specified##*/}"
8265         if test "x$tool_basename" = "x$tool_specified"; then
8266           # A command without a complete path is provided, search $PATH.
8267           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
8268 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
8269           # Extract the first word of "$tool_basename", so it can be a program name with args.
8270 set dummy $tool_basename; ac_word=$2
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8272 $as_echo_n "checking for $ac_word... " >&6; }
8273 if ${ac_cv_path_LS+:} false; then :
8274   $as_echo_n "(cached) " >&6
8275 else
8276   case $LS in
8277   [\\/]* | ?:[\\/]*)
8278   ac_cv_path_LS="$LS" # Let the user override the test with a path.
8279   ;;
8280   *)
8281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282 for as_dir in $PATH
8283 do
8284   IFS=$as_save_IFS
8285   test -z "$as_dir" && as_dir=.
8286     for ac_exec_ext in '' $ac_executable_extensions; do
8287   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8288     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
8289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8290     break 2
8291   fi
8292 done
8293   done
8294 IFS=$as_save_IFS
8295 
8296   ;;
8297 esac
8298 fi
8299 LS=$ac_cv_path_LS
8300 if test -n "$LS"; then
8301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
8302 $as_echo "$LS" >&6; }
8303 else
8304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305 $as_echo "no" >&6; }
8306 fi
8307 
8308 
8309           if test "x$LS" = x; then
8310             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8311           fi
8312         else
8313           # Otherwise we believe it is a complete path. Use it as it is.
8314           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
8315 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
8316           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
8317 $as_echo_n "checking for LS... " >&6; }
8318           if test ! -x "$tool_specified"; then
8319             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8320 $as_echo "not found" >&6; }
8321             as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
8322           fi
8323           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8324 $as_echo "$tool_specified" >&6; }
8325         fi
8326       fi
8327     fi
8328 
8329   fi
8330 
8331 
8332 
8333   if test "x$LS" = x; then
8334     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
8335   fi
8336 
8337 
8338 
8339 
8340 
8341   # Publish this variable in the help.
8342 
8343 
8344   if [ -z "${MKDIR+x}" ]; then
8345     # The variable is not set by user, try to locate tool using the code snippet
8346     for ac_prog in mkdir
8347 do
8348   # Extract the first word of "$ac_prog", so it can be a program name with args.
8349 set dummy $ac_prog; ac_word=$2
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8351 $as_echo_n "checking for $ac_word... " >&6; }
8352 if ${ac_cv_path_MKDIR+:} false; then :
8353   $as_echo_n "(cached) " >&6
8354 else
8355   case $MKDIR in
8356   [\\/]* | ?:[\\/]*)
8357   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8358   ;;
8359   *)
8360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8361 for as_dir in $PATH
8362 do
8363   IFS=$as_save_IFS
8364   test -z "$as_dir" && as_dir=.
8365     for ac_exec_ext in '' $ac_executable_extensions; do
8366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8367     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8369     break 2
8370   fi
8371 done
8372   done
8373 IFS=$as_save_IFS
8374 
8375   ;;
8376 esac
8377 fi
8378 MKDIR=$ac_cv_path_MKDIR
8379 if test -n "$MKDIR"; then
8380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8381 $as_echo "$MKDIR" >&6; }
8382 else
8383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8384 $as_echo "no" >&6; }
8385 fi
8386 
8387 
8388   test -n "$MKDIR" && break
8389 done
8390 
8391   else
8392     # The variable is set, but is it from the command line or the environment?
8393 
8394     # Try to remove the string !MKDIR! from our list.
8395     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
8396     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8397       # If it failed, the variable was not from the command line. Ignore it,
8398       # but warn the user (except for BASH, which is always set by the calling BASH).
8399       if test "xMKDIR" != xBASH; then
8400         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
8401 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
8402       fi
8403       # Try to locate tool using the code snippet
8404       for ac_prog in mkdir
8405 do
8406   # Extract the first word of "$ac_prog", so it can be a program name with args.
8407 set dummy $ac_prog; ac_word=$2
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8409 $as_echo_n "checking for $ac_word... " >&6; }
8410 if ${ac_cv_path_MKDIR+:} false; then :
8411   $as_echo_n "(cached) " >&6
8412 else
8413   case $MKDIR in
8414   [\\/]* | ?:[\\/]*)
8415   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8416   ;;
8417   *)
8418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8419 for as_dir in $PATH
8420 do
8421   IFS=$as_save_IFS
8422   test -z "$as_dir" && as_dir=.
8423     for ac_exec_ext in '' $ac_executable_extensions; do
8424   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8425     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8427     break 2
8428   fi
8429 done
8430   done
8431 IFS=$as_save_IFS
8432 
8433   ;;
8434 esac
8435 fi
8436 MKDIR=$ac_cv_path_MKDIR
8437 if test -n "$MKDIR"; then
8438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8439 $as_echo "$MKDIR" >&6; }
8440 else
8441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8442 $as_echo "no" >&6; }
8443 fi
8444 
8445 
8446   test -n "$MKDIR" && break
8447 done
8448 
8449     else
8450       # If it succeeded, then it was overridden by the user. We will use it
8451       # for the tool.
8452 
8453       # First remove it from the list of overridden variables, so we can test
8454       # for unknown variables in the end.
8455       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8456 
8457       # Check if we try to supply an empty value
8458       if test "x$MKDIR" = x; then
8459         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5
8460 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;}
8461         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8462 $as_echo_n "checking for MKDIR... " >&6; }
8463         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8464 $as_echo "disabled" >&6; }
8465       else
8466         # Check if the provided tool contains a complete path.
8467         tool_specified="$MKDIR"
8468         tool_basename="${tool_specified##*/}"
8469         if test "x$tool_basename" = "x$tool_specified"; then
8470           # A command without a complete path is provided, search $PATH.
8471           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
8472 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
8473           # Extract the first word of "$tool_basename", so it can be a program name with args.
8474 set dummy $tool_basename; ac_word=$2
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8476 $as_echo_n "checking for $ac_word... " >&6; }
8477 if ${ac_cv_path_MKDIR+:} false; then :
8478   $as_echo_n "(cached) " >&6
8479 else
8480   case $MKDIR in
8481   [\\/]* | ?:[\\/]*)
8482   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8483   ;;
8484   *)
8485   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8486 for as_dir in $PATH
8487 do
8488   IFS=$as_save_IFS
8489   test -z "$as_dir" && as_dir=.
8490     for ac_exec_ext in '' $ac_executable_extensions; do
8491   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8492     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8494     break 2
8495   fi
8496 done
8497   done
8498 IFS=$as_save_IFS
8499 
8500   ;;
8501 esac
8502 fi
8503 MKDIR=$ac_cv_path_MKDIR
8504 if test -n "$MKDIR"; then
8505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8506 $as_echo "$MKDIR" >&6; }
8507 else
8508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8509 $as_echo "no" >&6; }
8510 fi
8511 
8512 
8513           if test "x$MKDIR" = x; then
8514             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8515           fi
8516         else
8517           # Otherwise we believe it is a complete path. Use it as it is.
8518           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
8519 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
8520           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8521 $as_echo_n "checking for MKDIR... " >&6; }
8522           if test ! -x "$tool_specified"; then
8523             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8524 $as_echo "not found" >&6; }
8525             as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
8526           fi
8527           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8528 $as_echo "$tool_specified" >&6; }
8529         fi
8530       fi
8531     fi
8532 
8533   fi
8534 
8535 
8536 
8537   if test "x$MKDIR" = x; then
8538     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
8539   fi
8540 
8541 
8542 
8543 
8544 
8545   # Publish this variable in the help.
8546 
8547 
8548   if [ -z "${MKTEMP+x}" ]; then
8549     # The variable is not set by user, try to locate tool using the code snippet
8550     for ac_prog in mktemp
8551 do
8552   # Extract the first word of "$ac_prog", so it can be a program name with args.
8553 set dummy $ac_prog; ac_word=$2
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555 $as_echo_n "checking for $ac_word... " >&6; }
8556 if ${ac_cv_path_MKTEMP+:} false; then :
8557   $as_echo_n "(cached) " >&6
8558 else
8559   case $MKTEMP in
8560   [\\/]* | ?:[\\/]*)
8561   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8562   ;;
8563   *)
8564   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8565 for as_dir in $PATH
8566 do
8567   IFS=$as_save_IFS
8568   test -z "$as_dir" && as_dir=.
8569     for ac_exec_ext in '' $ac_executable_extensions; do
8570   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8571     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8572     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8573     break 2
8574   fi
8575 done
8576   done
8577 IFS=$as_save_IFS
8578 
8579   ;;
8580 esac
8581 fi
8582 MKTEMP=$ac_cv_path_MKTEMP
8583 if test -n "$MKTEMP"; then
8584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8585 $as_echo "$MKTEMP" >&6; }
8586 else
8587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8588 $as_echo "no" >&6; }
8589 fi
8590 
8591 
8592   test -n "$MKTEMP" && break
8593 done
8594 
8595   else
8596     # The variable is set, but is it from the command line or the environment?
8597 
8598     # Try to remove the string !MKTEMP! from our list.
8599     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8600     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8601       # If it failed, the variable was not from the command line. Ignore it,
8602       # but warn the user (except for BASH, which is always set by the calling BASH).
8603       if test "xMKTEMP" != xBASH; then
8604         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8605 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8606       fi
8607       # Try to locate tool using the code snippet
8608       for ac_prog in mktemp
8609 do
8610   # Extract the first word of "$ac_prog", so it can be a program name with args.
8611 set dummy $ac_prog; ac_word=$2
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8613 $as_echo_n "checking for $ac_word... " >&6; }
8614 if ${ac_cv_path_MKTEMP+:} false; then :
8615   $as_echo_n "(cached) " >&6
8616 else
8617   case $MKTEMP in
8618   [\\/]* | ?:[\\/]*)
8619   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8620   ;;
8621   *)
8622   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8623 for as_dir in $PATH
8624 do
8625   IFS=$as_save_IFS
8626   test -z "$as_dir" && as_dir=.
8627     for ac_exec_ext in '' $ac_executable_extensions; do
8628   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8629     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8631     break 2
8632   fi
8633 done
8634   done
8635 IFS=$as_save_IFS
8636 
8637   ;;
8638 esac
8639 fi
8640 MKTEMP=$ac_cv_path_MKTEMP
8641 if test -n "$MKTEMP"; then
8642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8643 $as_echo "$MKTEMP" >&6; }
8644 else
8645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8646 $as_echo "no" >&6; }
8647 fi
8648 
8649 
8650   test -n "$MKTEMP" && break
8651 done
8652 
8653     else
8654       # If it succeeded, then it was overridden by the user. We will use it
8655       # for the tool.
8656 
8657       # First remove it from the list of overridden variables, so we can test
8658       # for unknown variables in the end.
8659       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8660 
8661       # Check if we try to supply an empty value
8662       if test "x$MKTEMP" = x; then
8663         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5
8664 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;}
8665         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8666 $as_echo_n "checking for MKTEMP... " >&6; }
8667         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8668 $as_echo "disabled" >&6; }
8669       else
8670         # Check if the provided tool contains a complete path.
8671         tool_specified="$MKTEMP"
8672         tool_basename="${tool_specified##*/}"
8673         if test "x$tool_basename" = "x$tool_specified"; then
8674           # A command without a complete path is provided, search $PATH.
8675           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8676 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8677           # Extract the first word of "$tool_basename", so it can be a program name with args.
8678 set dummy $tool_basename; ac_word=$2
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8680 $as_echo_n "checking for $ac_word... " >&6; }
8681 if ${ac_cv_path_MKTEMP+:} false; then :
8682   $as_echo_n "(cached) " >&6
8683 else
8684   case $MKTEMP in
8685   [\\/]* | ?:[\\/]*)
8686   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8687   ;;
8688   *)
8689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8690 for as_dir in $PATH
8691 do
8692   IFS=$as_save_IFS
8693   test -z "$as_dir" && as_dir=.
8694     for ac_exec_ext in '' $ac_executable_extensions; do
8695   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8696     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8698     break 2
8699   fi
8700 done
8701   done
8702 IFS=$as_save_IFS
8703 
8704   ;;
8705 esac
8706 fi
8707 MKTEMP=$ac_cv_path_MKTEMP
8708 if test -n "$MKTEMP"; then
8709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8710 $as_echo "$MKTEMP" >&6; }
8711 else
8712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8713 $as_echo "no" >&6; }
8714 fi
8715 
8716 
8717           if test "x$MKTEMP" = x; then
8718             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8719           fi
8720         else
8721           # Otherwise we believe it is a complete path. Use it as it is.
8722           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8723 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8724           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8725 $as_echo_n "checking for MKTEMP... " >&6; }
8726           if test ! -x "$tool_specified"; then
8727             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8728 $as_echo "not found" >&6; }
8729             as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8730           fi
8731           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8732 $as_echo "$tool_specified" >&6; }
8733         fi
8734       fi
8735     fi
8736 
8737   fi
8738 
8739 
8740 
8741   if test "x$MKTEMP" = x; then
8742     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8743   fi
8744 
8745 
8746 
8747 
8748 
8749   # Publish this variable in the help.
8750 
8751 
8752   if [ -z "${MV+x}" ]; then
8753     # The variable is not set by user, try to locate tool using the code snippet
8754     for ac_prog in mv
8755 do
8756   # Extract the first word of "$ac_prog", so it can be a program name with args.
8757 set dummy $ac_prog; ac_word=$2
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8759 $as_echo_n "checking for $ac_word... " >&6; }
8760 if ${ac_cv_path_MV+:} false; then :
8761   $as_echo_n "(cached) " >&6
8762 else
8763   case $MV in
8764   [\\/]* | ?:[\\/]*)
8765   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8766   ;;
8767   *)
8768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8769 for as_dir in $PATH
8770 do
8771   IFS=$as_save_IFS
8772   test -z "$as_dir" && as_dir=.
8773     for ac_exec_ext in '' $ac_executable_extensions; do
8774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8775     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8777     break 2
8778   fi
8779 done
8780   done
8781 IFS=$as_save_IFS
8782 
8783   ;;
8784 esac
8785 fi
8786 MV=$ac_cv_path_MV
8787 if test -n "$MV"; then
8788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8789 $as_echo "$MV" >&6; }
8790 else
8791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8792 $as_echo "no" >&6; }
8793 fi
8794 
8795 
8796   test -n "$MV" && break
8797 done
8798 
8799   else
8800     # The variable is set, but is it from the command line or the environment?
8801 
8802     # Try to remove the string !MV! from our list.
8803     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8804     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8805       # If it failed, the variable was not from the command line. Ignore it,
8806       # but warn the user (except for BASH, which is always set by the calling BASH).
8807       if test "xMV" != xBASH; then
8808         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8809 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8810       fi
8811       # Try to locate tool using the code snippet
8812       for ac_prog in mv
8813 do
8814   # Extract the first word of "$ac_prog", so it can be a program name with args.
8815 set dummy $ac_prog; ac_word=$2
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8817 $as_echo_n "checking for $ac_word... " >&6; }
8818 if ${ac_cv_path_MV+:} false; then :
8819   $as_echo_n "(cached) " >&6
8820 else
8821   case $MV in
8822   [\\/]* | ?:[\\/]*)
8823   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8824   ;;
8825   *)
8826   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8827 for as_dir in $PATH
8828 do
8829   IFS=$as_save_IFS
8830   test -z "$as_dir" && as_dir=.
8831     for ac_exec_ext in '' $ac_executable_extensions; do
8832   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8833     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8835     break 2
8836   fi
8837 done
8838   done
8839 IFS=$as_save_IFS
8840 
8841   ;;
8842 esac
8843 fi
8844 MV=$ac_cv_path_MV
8845 if test -n "$MV"; then
8846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8847 $as_echo "$MV" >&6; }
8848 else
8849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8850 $as_echo "no" >&6; }
8851 fi
8852 
8853 
8854   test -n "$MV" && break
8855 done
8856 
8857     else
8858       # If it succeeded, then it was overridden by the user. We will use it
8859       # for the tool.
8860 
8861       # First remove it from the list of overridden variables, so we can test
8862       # for unknown variables in the end.
8863       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8864 
8865       # Check if we try to supply an empty value
8866       if test "x$MV" = x; then
8867         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5
8868 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;}
8869         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8870 $as_echo_n "checking for MV... " >&6; }
8871         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
8872 $as_echo "disabled" >&6; }
8873       else
8874         # Check if the provided tool contains a complete path.
8875         tool_specified="$MV"
8876         tool_basename="${tool_specified##*/}"
8877         if test "x$tool_basename" = "x$tool_specified"; then
8878           # A command without a complete path is provided, search $PATH.
8879           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8880 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8881           # Extract the first word of "$tool_basename", so it can be a program name with args.
8882 set dummy $tool_basename; ac_word=$2
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8884 $as_echo_n "checking for $ac_word... " >&6; }
8885 if ${ac_cv_path_MV+:} false; then :
8886   $as_echo_n "(cached) " >&6
8887 else
8888   case $MV in
8889   [\\/]* | ?:[\\/]*)
8890   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8891   ;;
8892   *)
8893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8894 for as_dir in $PATH
8895 do
8896   IFS=$as_save_IFS
8897   test -z "$as_dir" && as_dir=.
8898     for ac_exec_ext in '' $ac_executable_extensions; do
8899   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8900     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8902     break 2
8903   fi
8904 done
8905   done
8906 IFS=$as_save_IFS
8907 
8908   ;;
8909 esac
8910 fi
8911 MV=$ac_cv_path_MV
8912 if test -n "$MV"; then
8913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8914 $as_echo "$MV" >&6; }
8915 else
8916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8917 $as_echo "no" >&6; }
8918 fi
8919 
8920 
8921           if test "x$MV" = x; then
8922             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8923           fi
8924         else
8925           # Otherwise we believe it is a complete path. Use it as it is.
8926           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
8927 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
8928           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8929 $as_echo_n "checking for MV... " >&6; }
8930           if test ! -x "$tool_specified"; then
8931             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8932 $as_echo "not found" >&6; }
8933             as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
8934           fi
8935           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8936 $as_echo "$tool_specified" >&6; }
8937         fi
8938       fi
8939     fi
8940 
8941   fi
8942 
8943 
8944 
8945   if test "x$MV" = x; then
8946     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
8947   fi
8948 
8949 
8950 
8951 
8952 
8953   # Publish this variable in the help.
8954 
8955 
8956   if [ -z "${NAWK+x}" ]; then
8957     # The variable is not set by user, try to locate tool using the code snippet
8958     for ac_prog in nawk gawk awk
8959 do
8960   # Extract the first word of "$ac_prog", so it can be a program name with args.
8961 set dummy $ac_prog; ac_word=$2
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8963 $as_echo_n "checking for $ac_word... " >&6; }
8964 if ${ac_cv_path_NAWK+:} false; then :
8965   $as_echo_n "(cached) " >&6
8966 else
8967   case $NAWK in
8968   [\\/]* | ?:[\\/]*)
8969   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8970   ;;
8971   *)
8972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8973 for as_dir in $PATH
8974 do
8975   IFS=$as_save_IFS
8976   test -z "$as_dir" && as_dir=.
8977     for ac_exec_ext in '' $ac_executable_extensions; do
8978   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8979     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8981     break 2
8982   fi
8983 done
8984   done
8985 IFS=$as_save_IFS
8986 
8987   ;;
8988 esac
8989 fi
8990 NAWK=$ac_cv_path_NAWK
8991 if test -n "$NAWK"; then
8992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8993 $as_echo "$NAWK" >&6; }
8994 else
8995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8996 $as_echo "no" >&6; }
8997 fi
8998 
8999 
9000   test -n "$NAWK" && break
9001 done
9002 
9003   else
9004     # The variable is set, but is it from the command line or the environment?
9005 
9006     # Try to remove the string !NAWK! from our list.
9007     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
9008     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9009       # If it failed, the variable was not from the command line. Ignore it,
9010       # but warn the user (except for BASH, which is always set by the calling BASH).
9011       if test "xNAWK" != xBASH; then
9012         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
9013 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
9014       fi
9015       # Try to locate tool using the code snippet
9016       for ac_prog in nawk gawk awk
9017 do
9018   # Extract the first word of "$ac_prog", so it can be a program name with args.
9019 set dummy $ac_prog; ac_word=$2
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9021 $as_echo_n "checking for $ac_word... " >&6; }
9022 if ${ac_cv_path_NAWK+:} false; then :
9023   $as_echo_n "(cached) " >&6
9024 else
9025   case $NAWK in
9026   [\\/]* | ?:[\\/]*)
9027   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9028   ;;
9029   *)
9030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9031 for as_dir in $PATH
9032 do
9033   IFS=$as_save_IFS
9034   test -z "$as_dir" && as_dir=.
9035     for ac_exec_ext in '' $ac_executable_extensions; do
9036   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9037     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9039     break 2
9040   fi
9041 done
9042   done
9043 IFS=$as_save_IFS
9044 
9045   ;;
9046 esac
9047 fi
9048 NAWK=$ac_cv_path_NAWK
9049 if test -n "$NAWK"; then
9050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9051 $as_echo "$NAWK" >&6; }
9052 else
9053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9054 $as_echo "no" >&6; }
9055 fi
9056 
9057 
9058   test -n "$NAWK" && break
9059 done
9060 
9061     else
9062       # If it succeeded, then it was overridden by the user. We will use it
9063       # for the tool.
9064 
9065       # First remove it from the list of overridden variables, so we can test
9066       # for unknown variables in the end.
9067       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9068 
9069       # Check if we try to supply an empty value
9070       if test "x$NAWK" = x; then
9071         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5
9072 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;}
9073         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
9074 $as_echo_n "checking for NAWK... " >&6; }
9075         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9076 $as_echo "disabled" >&6; }
9077       else
9078         # Check if the provided tool contains a complete path.
9079         tool_specified="$NAWK"
9080         tool_basename="${tool_specified##*/}"
9081         if test "x$tool_basename" = "x$tool_specified"; then
9082           # A command without a complete path is provided, search $PATH.
9083           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
9084 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
9085           # Extract the first word of "$tool_basename", so it can be a program name with args.
9086 set dummy $tool_basename; ac_word=$2
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9088 $as_echo_n "checking for $ac_word... " >&6; }
9089 if ${ac_cv_path_NAWK+:} false; then :
9090   $as_echo_n "(cached) " >&6
9091 else
9092   case $NAWK in
9093   [\\/]* | ?:[\\/]*)
9094   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
9095   ;;
9096   *)
9097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9098 for as_dir in $PATH
9099 do
9100   IFS=$as_save_IFS
9101   test -z "$as_dir" && as_dir=.
9102     for ac_exec_ext in '' $ac_executable_extensions; do
9103   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9104     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
9105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9106     break 2
9107   fi
9108 done
9109   done
9110 IFS=$as_save_IFS
9111 
9112   ;;
9113 esac
9114 fi
9115 NAWK=$ac_cv_path_NAWK
9116 if test -n "$NAWK"; then
9117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
9118 $as_echo "$NAWK" >&6; }
9119 else
9120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9121 $as_echo "no" >&6; }
9122 fi
9123 
9124 
9125           if test "x$NAWK" = x; then
9126             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9127           fi
9128         else
9129           # Otherwise we believe it is a complete path. Use it as it is.
9130           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
9131 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
9132           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
9133 $as_echo_n "checking for NAWK... " >&6; }
9134           if test ! -x "$tool_specified"; then
9135             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9136 $as_echo "not found" >&6; }
9137             as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
9138           fi
9139           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9140 $as_echo "$tool_specified" >&6; }
9141         fi
9142       fi
9143     fi
9144 
9145   fi
9146 
9147 
9148 
9149   if test "x$NAWK" = x; then
9150     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
9151   fi
9152 
9153 
9154 
9155 
9156 
9157   # Publish this variable in the help.
9158 
9159 
9160   if [ -z "${PRINTF+x}" ]; then
9161     # The variable is not set by user, try to locate tool using the code snippet
9162     for ac_prog in printf
9163 do
9164   # Extract the first word of "$ac_prog", so it can be a program name with args.
9165 set dummy $ac_prog; ac_word=$2
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9167 $as_echo_n "checking for $ac_word... " >&6; }
9168 if ${ac_cv_path_PRINTF+:} false; then :
9169   $as_echo_n "(cached) " >&6
9170 else
9171   case $PRINTF in
9172   [\\/]* | ?:[\\/]*)
9173   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9174   ;;
9175   *)
9176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9177 for as_dir in $PATH
9178 do
9179   IFS=$as_save_IFS
9180   test -z "$as_dir" && as_dir=.
9181     for ac_exec_ext in '' $ac_executable_extensions; do
9182   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9183     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9185     break 2
9186   fi
9187 done
9188   done
9189 IFS=$as_save_IFS
9190 
9191   ;;
9192 esac
9193 fi
9194 PRINTF=$ac_cv_path_PRINTF
9195 if test -n "$PRINTF"; then
9196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9197 $as_echo "$PRINTF" >&6; }
9198 else
9199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9200 $as_echo "no" >&6; }
9201 fi
9202 
9203 
9204   test -n "$PRINTF" && break
9205 done
9206 
9207   else
9208     # The variable is set, but is it from the command line or the environment?
9209 
9210     # Try to remove the string !PRINTF! from our list.
9211     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
9212     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9213       # If it failed, the variable was not from the command line. Ignore it,
9214       # but warn the user (except for BASH, which is always set by the calling BASH).
9215       if test "xPRINTF" != xBASH; then
9216         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
9217 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
9218       fi
9219       # Try to locate tool using the code snippet
9220       for ac_prog in printf
9221 do
9222   # Extract the first word of "$ac_prog", so it can be a program name with args.
9223 set dummy $ac_prog; ac_word=$2
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9225 $as_echo_n "checking for $ac_word... " >&6; }
9226 if ${ac_cv_path_PRINTF+:} false; then :
9227   $as_echo_n "(cached) " >&6
9228 else
9229   case $PRINTF in
9230   [\\/]* | ?:[\\/]*)
9231   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9232   ;;
9233   *)
9234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9235 for as_dir in $PATH
9236 do
9237   IFS=$as_save_IFS
9238   test -z "$as_dir" && as_dir=.
9239     for ac_exec_ext in '' $ac_executable_extensions; do
9240   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9241     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9243     break 2
9244   fi
9245 done
9246   done
9247 IFS=$as_save_IFS
9248 
9249   ;;
9250 esac
9251 fi
9252 PRINTF=$ac_cv_path_PRINTF
9253 if test -n "$PRINTF"; then
9254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9255 $as_echo "$PRINTF" >&6; }
9256 else
9257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9258 $as_echo "no" >&6; }
9259 fi
9260 
9261 
9262   test -n "$PRINTF" && break
9263 done
9264 
9265     else
9266       # If it succeeded, then it was overridden by the user. We will use it
9267       # for the tool.
9268 
9269       # First remove it from the list of overridden variables, so we can test
9270       # for unknown variables in the end.
9271       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9272 
9273       # Check if we try to supply an empty value
9274       if test "x$PRINTF" = x; then
9275         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5
9276 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;}
9277         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
9278 $as_echo_n "checking for PRINTF... " >&6; }
9279         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9280 $as_echo "disabled" >&6; }
9281       else
9282         # Check if the provided tool contains a complete path.
9283         tool_specified="$PRINTF"
9284         tool_basename="${tool_specified##*/}"
9285         if test "x$tool_basename" = "x$tool_specified"; then
9286           # A command without a complete path is provided, search $PATH.
9287           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
9288 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
9289           # Extract the first word of "$tool_basename", so it can be a program name with args.
9290 set dummy $tool_basename; ac_word=$2
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9292 $as_echo_n "checking for $ac_word... " >&6; }
9293 if ${ac_cv_path_PRINTF+:} false; then :
9294   $as_echo_n "(cached) " >&6
9295 else
9296   case $PRINTF in
9297   [\\/]* | ?:[\\/]*)
9298   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
9299   ;;
9300   *)
9301   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9302 for as_dir in $PATH
9303 do
9304   IFS=$as_save_IFS
9305   test -z "$as_dir" && as_dir=.
9306     for ac_exec_ext in '' $ac_executable_extensions; do
9307   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9308     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
9309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9310     break 2
9311   fi
9312 done
9313   done
9314 IFS=$as_save_IFS
9315 
9316   ;;
9317 esac
9318 fi
9319 PRINTF=$ac_cv_path_PRINTF
9320 if test -n "$PRINTF"; then
9321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
9322 $as_echo "$PRINTF" >&6; }
9323 else
9324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9325 $as_echo "no" >&6; }
9326 fi
9327 
9328 
9329           if test "x$PRINTF" = x; then
9330             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9331           fi
9332         else
9333           # Otherwise we believe it is a complete path. Use it as it is.
9334           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
9335 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
9336           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
9337 $as_echo_n "checking for PRINTF... " >&6; }
9338           if test ! -x "$tool_specified"; then
9339             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9340 $as_echo "not found" >&6; }
9341             as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
9342           fi
9343           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9344 $as_echo "$tool_specified" >&6; }
9345         fi
9346       fi
9347     fi
9348 
9349   fi
9350 
9351 
9352 
9353   if test "x$PRINTF" = x; then
9354     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
9355   fi
9356 
9357 
9358 
9359 
9360 
9361   # Publish this variable in the help.
9362 
9363 
9364   if [ -z "${RM+x}" ]; then
9365     # The variable is not set by user, try to locate tool using the code snippet
9366     for ac_prog in rm
9367 do
9368   # Extract the first word of "$ac_prog", so it can be a program name with args.
9369 set dummy $ac_prog; ac_word=$2
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9371 $as_echo_n "checking for $ac_word... " >&6; }
9372 if ${ac_cv_path_RM+:} false; then :
9373   $as_echo_n "(cached) " >&6
9374 else
9375   case $RM in
9376   [\\/]* | ?:[\\/]*)
9377   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9378   ;;
9379   *)
9380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9381 for as_dir in $PATH
9382 do
9383   IFS=$as_save_IFS
9384   test -z "$as_dir" && as_dir=.
9385     for ac_exec_ext in '' $ac_executable_extensions; do
9386   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9387     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9389     break 2
9390   fi
9391 done
9392   done
9393 IFS=$as_save_IFS
9394 
9395   ;;
9396 esac
9397 fi
9398 RM=$ac_cv_path_RM
9399 if test -n "$RM"; then
9400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9401 $as_echo "$RM" >&6; }
9402 else
9403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9404 $as_echo "no" >&6; }
9405 fi
9406 
9407 
9408   test -n "$RM" && break
9409 done
9410 
9411   else
9412     # The variable is set, but is it from the command line or the environment?
9413 
9414     # Try to remove the string !RM! from our list.
9415     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
9416     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9417       # If it failed, the variable was not from the command line. Ignore it,
9418       # but warn the user (except for BASH, which is always set by the calling BASH).
9419       if test "xRM" != xBASH; then
9420         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
9421 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
9422       fi
9423       # Try to locate tool using the code snippet
9424       for ac_prog in rm
9425 do
9426   # Extract the first word of "$ac_prog", so it can be a program name with args.
9427 set dummy $ac_prog; ac_word=$2
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9429 $as_echo_n "checking for $ac_word... " >&6; }
9430 if ${ac_cv_path_RM+:} false; then :
9431   $as_echo_n "(cached) " >&6
9432 else
9433   case $RM in
9434   [\\/]* | ?:[\\/]*)
9435   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9436   ;;
9437   *)
9438   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9439 for as_dir in $PATH
9440 do
9441   IFS=$as_save_IFS
9442   test -z "$as_dir" && as_dir=.
9443     for ac_exec_ext in '' $ac_executable_extensions; do
9444   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9445     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9447     break 2
9448   fi
9449 done
9450   done
9451 IFS=$as_save_IFS
9452 
9453   ;;
9454 esac
9455 fi
9456 RM=$ac_cv_path_RM
9457 if test -n "$RM"; then
9458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9459 $as_echo "$RM" >&6; }
9460 else
9461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9462 $as_echo "no" >&6; }
9463 fi
9464 
9465 
9466   test -n "$RM" && break
9467 done
9468 
9469     else
9470       # If it succeeded, then it was overridden by the user. We will use it
9471       # for the tool.
9472 
9473       # First remove it from the list of overridden variables, so we can test
9474       # for unknown variables in the end.
9475       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9476 
9477       # Check if we try to supply an empty value
9478       if test "x$RM" = x; then
9479         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5
9480 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;}
9481         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9482 $as_echo_n "checking for RM... " >&6; }
9483         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9484 $as_echo "disabled" >&6; }
9485       else
9486         # Check if the provided tool contains a complete path.
9487         tool_specified="$RM"
9488         tool_basename="${tool_specified##*/}"
9489         if test "x$tool_basename" = "x$tool_specified"; then
9490           # A command without a complete path is provided, search $PATH.
9491           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
9492 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
9493           # Extract the first word of "$tool_basename", so it can be a program name with args.
9494 set dummy $tool_basename; ac_word=$2
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9496 $as_echo_n "checking for $ac_word... " >&6; }
9497 if ${ac_cv_path_RM+:} false; then :
9498   $as_echo_n "(cached) " >&6
9499 else
9500   case $RM in
9501   [\\/]* | ?:[\\/]*)
9502   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9503   ;;
9504   *)
9505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9506 for as_dir in $PATH
9507 do
9508   IFS=$as_save_IFS
9509   test -z "$as_dir" && as_dir=.
9510     for ac_exec_ext in '' $ac_executable_extensions; do
9511   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9512     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9514     break 2
9515   fi
9516 done
9517   done
9518 IFS=$as_save_IFS
9519 
9520   ;;
9521 esac
9522 fi
9523 RM=$ac_cv_path_RM
9524 if test -n "$RM"; then
9525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9526 $as_echo "$RM" >&6; }
9527 else
9528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9529 $as_echo "no" >&6; }
9530 fi
9531 
9532 
9533           if test "x$RM" = x; then
9534             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9535           fi
9536         else
9537           # Otherwise we believe it is a complete path. Use it as it is.
9538           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
9539 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
9540           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9541 $as_echo_n "checking for RM... " >&6; }
9542           if test ! -x "$tool_specified"; then
9543             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9544 $as_echo "not found" >&6; }
9545             as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
9546           fi
9547           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9548 $as_echo "$tool_specified" >&6; }
9549         fi
9550       fi
9551     fi
9552 
9553   fi
9554 
9555 
9556 
9557   if test "x$RM" = x; then
9558     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
9559   fi
9560 
9561 
9562 
9563 
9564 
9565   # Publish this variable in the help.
9566 
9567 
9568   if [ -z "${RMDIR+x}" ]; then
9569     # The variable is not set by user, try to locate tool using the code snippet
9570     for ac_prog in rmdir
9571 do
9572   # Extract the first word of "$ac_prog", so it can be a program name with args.
9573 set dummy $ac_prog; ac_word=$2
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9575 $as_echo_n "checking for $ac_word... " >&6; }
9576 if ${ac_cv_path_RMDIR+:} false; then :
9577   $as_echo_n "(cached) " >&6
9578 else
9579   case $RMDIR in
9580   [\\/]* | ?:[\\/]*)
9581   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
9582   ;;
9583   *)
9584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9585 for as_dir in $PATH
9586 do
9587   IFS=$as_save_IFS
9588   test -z "$as_dir" && as_dir=.
9589     for ac_exec_ext in '' $ac_executable_extensions; do
9590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9591     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
9592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9593     break 2
9594   fi
9595 done
9596   done
9597 IFS=$as_save_IFS
9598 
9599   ;;
9600 esac
9601 fi
9602 RMDIR=$ac_cv_path_RMDIR
9603 if test -n "$RMDIR"; then
9604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
9605 $as_echo "$RMDIR" >&6; }
9606 else
9607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9608 $as_echo "no" >&6; }
9609 fi
9610 
9611 
9612   test -n "$RMDIR" && break
9613 done
9614 
9615   else
9616     # The variable is set, but is it from the command line or the environment?
9617 
9618     # Try to remove the string !RMDIR! from our list.
9619     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/}
9620     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9621       # If it failed, the variable was not from the command line. Ignore it,
9622       # but warn the user (except for BASH, which is always set by the calling BASH).
9623       if test "xRMDIR" != xBASH; then
9624         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5
9625 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;}
9626       fi
9627       # Try to locate tool using the code snippet
9628       for ac_prog in rmdir
9629 do
9630   # Extract the first word of "$ac_prog", so it can be a program name with args.
9631 set dummy $ac_prog; ac_word=$2
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9633 $as_echo_n "checking for $ac_word... " >&6; }
9634 if ${ac_cv_path_RMDIR+:} false; then :
9635   $as_echo_n "(cached) " >&6
9636 else
9637   case $RMDIR in
9638   [\\/]* | ?:[\\/]*)
9639   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
9640   ;;
9641   *)
9642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9643 for as_dir in $PATH
9644 do
9645   IFS=$as_save_IFS
9646   test -z "$as_dir" && as_dir=.
9647     for ac_exec_ext in '' $ac_executable_extensions; do
9648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9649     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
9650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9651     break 2
9652   fi
9653 done
9654   done
9655 IFS=$as_save_IFS
9656 
9657   ;;
9658 esac
9659 fi
9660 RMDIR=$ac_cv_path_RMDIR
9661 if test -n "$RMDIR"; then
9662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
9663 $as_echo "$RMDIR" >&6; }
9664 else
9665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9666 $as_echo "no" >&6; }
9667 fi
9668 
9669 
9670   test -n "$RMDIR" && break
9671 done
9672 
9673     else
9674       # If it succeeded, then it was overridden by the user. We will use it
9675       # for the tool.
9676 
9677       # First remove it from the list of overridden variables, so we can test
9678       # for unknown variables in the end.
9679       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9680 
9681       # Check if we try to supply an empty value
9682       if test "x$RMDIR" = x; then
9683         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5
9684 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;}
9685         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
9686 $as_echo_n "checking for RMDIR... " >&6; }
9687         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9688 $as_echo "disabled" >&6; }
9689       else
9690         # Check if the provided tool contains a complete path.
9691         tool_specified="$RMDIR"
9692         tool_basename="${tool_specified##*/}"
9693         if test "x$tool_basename" = "x$tool_specified"; then
9694           # A command without a complete path is provided, search $PATH.
9695           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5
9696 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;}
9697           # Extract the first word of "$tool_basename", so it can be a program name with args.
9698 set dummy $tool_basename; ac_word=$2
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9700 $as_echo_n "checking for $ac_word... " >&6; }
9701 if ${ac_cv_path_RMDIR+:} false; then :
9702   $as_echo_n "(cached) " >&6
9703 else
9704   case $RMDIR in
9705   [\\/]* | ?:[\\/]*)
9706   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
9707   ;;
9708   *)
9709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9710 for as_dir in $PATH
9711 do
9712   IFS=$as_save_IFS
9713   test -z "$as_dir" && as_dir=.
9714     for ac_exec_ext in '' $ac_executable_extensions; do
9715   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9716     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
9717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9718     break 2
9719   fi
9720 done
9721   done
9722 IFS=$as_save_IFS
9723 
9724   ;;
9725 esac
9726 fi
9727 RMDIR=$ac_cv_path_RMDIR
9728 if test -n "$RMDIR"; then
9729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
9730 $as_echo "$RMDIR" >&6; }
9731 else
9732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9733 $as_echo "no" >&6; }
9734 fi
9735 
9736 
9737           if test "x$RMDIR" = x; then
9738             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9739           fi
9740         else
9741           # Otherwise we believe it is a complete path. Use it as it is.
9742           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5
9743 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;}
9744           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5
9745 $as_echo_n "checking for RMDIR... " >&6; }
9746           if test ! -x "$tool_specified"; then
9747             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9748 $as_echo "not found" >&6; }
9749             as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
9750           fi
9751           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9752 $as_echo "$tool_specified" >&6; }
9753         fi
9754       fi
9755     fi
9756 
9757   fi
9758 
9759 
9760 
9761   if test "x$RMDIR" = x; then
9762     as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5
9763   fi
9764 
9765 
9766 
9767 
9768 
9769   # Publish this variable in the help.
9770 
9771 
9772   if [ -z "${SH+x}" ]; then
9773     # The variable is not set by user, try to locate tool using the code snippet
9774     for ac_prog in sh
9775 do
9776   # Extract the first word of "$ac_prog", so it can be a program name with args.
9777 set dummy $ac_prog; ac_word=$2
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9779 $as_echo_n "checking for $ac_word... " >&6; }
9780 if ${ac_cv_path_SH+:} false; then :
9781   $as_echo_n "(cached) " >&6
9782 else
9783   case $SH in
9784   [\\/]* | ?:[\\/]*)
9785   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9786   ;;
9787   *)
9788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9789 for as_dir in $PATH
9790 do
9791   IFS=$as_save_IFS
9792   test -z "$as_dir" && as_dir=.
9793     for ac_exec_ext in '' $ac_executable_extensions; do
9794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9795     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9797     break 2
9798   fi
9799 done
9800   done
9801 IFS=$as_save_IFS
9802 
9803   ;;
9804 esac
9805 fi
9806 SH=$ac_cv_path_SH
9807 if test -n "$SH"; then
9808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9809 $as_echo "$SH" >&6; }
9810 else
9811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9812 $as_echo "no" >&6; }
9813 fi
9814 
9815 
9816   test -n "$SH" && break
9817 done
9818 
9819   else
9820     # The variable is set, but is it from the command line or the environment?
9821 
9822     # Try to remove the string !SH! from our list.
9823     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
9824     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9825       # If it failed, the variable was not from the command line. Ignore it,
9826       # but warn the user (except for BASH, which is always set by the calling BASH).
9827       if test "xSH" != xBASH; then
9828         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
9829 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
9830       fi
9831       # Try to locate tool using the code snippet
9832       for ac_prog in sh
9833 do
9834   # Extract the first word of "$ac_prog", so it can be a program name with args.
9835 set dummy $ac_prog; ac_word=$2
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9837 $as_echo_n "checking for $ac_word... " >&6; }
9838 if ${ac_cv_path_SH+:} false; then :
9839   $as_echo_n "(cached) " >&6
9840 else
9841   case $SH in
9842   [\\/]* | ?:[\\/]*)
9843   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9844   ;;
9845   *)
9846   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9847 for as_dir in $PATH
9848 do
9849   IFS=$as_save_IFS
9850   test -z "$as_dir" && as_dir=.
9851     for ac_exec_ext in '' $ac_executable_extensions; do
9852   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9853     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9855     break 2
9856   fi
9857 done
9858   done
9859 IFS=$as_save_IFS
9860 
9861   ;;
9862 esac
9863 fi
9864 SH=$ac_cv_path_SH
9865 if test -n "$SH"; then
9866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9867 $as_echo "$SH" >&6; }
9868 else
9869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9870 $as_echo "no" >&6; }
9871 fi
9872 
9873 
9874   test -n "$SH" && break
9875 done
9876 
9877     else
9878       # If it succeeded, then it was overridden by the user. We will use it
9879       # for the tool.
9880 
9881       # First remove it from the list of overridden variables, so we can test
9882       # for unknown variables in the end.
9883       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9884 
9885       # Check if we try to supply an empty value
9886       if test "x$SH" = x; then
9887         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5
9888 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;}
9889         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9890 $as_echo_n "checking for SH... " >&6; }
9891         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
9892 $as_echo "disabled" >&6; }
9893       else
9894         # Check if the provided tool contains a complete path.
9895         tool_specified="$SH"
9896         tool_basename="${tool_specified##*/}"
9897         if test "x$tool_basename" = "x$tool_specified"; then
9898           # A command without a complete path is provided, search $PATH.
9899           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
9900 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
9901           # Extract the first word of "$tool_basename", so it can be a program name with args.
9902 set dummy $tool_basename; ac_word=$2
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9904 $as_echo_n "checking for $ac_word... " >&6; }
9905 if ${ac_cv_path_SH+:} false; then :
9906   $as_echo_n "(cached) " >&6
9907 else
9908   case $SH in
9909   [\\/]* | ?:[\\/]*)
9910   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9911   ;;
9912   *)
9913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9914 for as_dir in $PATH
9915 do
9916   IFS=$as_save_IFS
9917   test -z "$as_dir" && as_dir=.
9918     for ac_exec_ext in '' $ac_executable_extensions; do
9919   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9920     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9922     break 2
9923   fi
9924 done
9925   done
9926 IFS=$as_save_IFS
9927 
9928   ;;
9929 esac
9930 fi
9931 SH=$ac_cv_path_SH
9932 if test -n "$SH"; then
9933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9934 $as_echo "$SH" >&6; }
9935 else
9936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9937 $as_echo "no" >&6; }
9938 fi
9939 
9940 
9941           if test "x$SH" = x; then
9942             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9943           fi
9944         else
9945           # Otherwise we believe it is a complete path. Use it as it is.
9946           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
9947 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
9948           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9949 $as_echo_n "checking for SH... " >&6; }
9950           if test ! -x "$tool_specified"; then
9951             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9952 $as_echo "not found" >&6; }
9953             as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
9954           fi
9955           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9956 $as_echo "$tool_specified" >&6; }
9957         fi
9958       fi
9959     fi
9960 
9961   fi
9962 
9963 
9964 
9965   if test "x$SH" = x; then
9966     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
9967   fi
9968 
9969 
9970 
9971 
9972 
9973   # Publish this variable in the help.
9974 
9975 
9976   if [ -z "${SORT+x}" ]; then
9977     # The variable is not set by user, try to locate tool using the code snippet
9978     for ac_prog in sort
9979 do
9980   # Extract the first word of "$ac_prog", so it can be a program name with args.
9981 set dummy $ac_prog; ac_word=$2
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9983 $as_echo_n "checking for $ac_word... " >&6; }
9984 if ${ac_cv_path_SORT+:} false; then :
9985   $as_echo_n "(cached) " >&6
9986 else
9987   case $SORT in
9988   [\\/]* | ?:[\\/]*)
9989   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9990   ;;
9991   *)
9992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9993 for as_dir in $PATH
9994 do
9995   IFS=$as_save_IFS
9996   test -z "$as_dir" && as_dir=.
9997     for ac_exec_ext in '' $ac_executable_extensions; do
9998   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9999     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10001     break 2
10002   fi
10003 done
10004   done
10005 IFS=$as_save_IFS
10006 
10007   ;;
10008 esac
10009 fi
10010 SORT=$ac_cv_path_SORT
10011 if test -n "$SORT"; then
10012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10013 $as_echo "$SORT" >&6; }
10014 else
10015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10016 $as_echo "no" >&6; }
10017 fi
10018 
10019 
10020   test -n "$SORT" && break
10021 done
10022 
10023   else
10024     # The variable is set, but is it from the command line or the environment?
10025 
10026     # Try to remove the string !SORT! from our list.
10027     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
10028     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10029       # If it failed, the variable was not from the command line. Ignore it,
10030       # but warn the user (except for BASH, which is always set by the calling BASH).
10031       if test "xSORT" != xBASH; then
10032         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
10033 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
10034       fi
10035       # Try to locate tool using the code snippet
10036       for ac_prog in sort
10037 do
10038   # Extract the first word of "$ac_prog", so it can be a program name with args.
10039 set dummy $ac_prog; ac_word=$2
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10041 $as_echo_n "checking for $ac_word... " >&6; }
10042 if ${ac_cv_path_SORT+:} false; then :
10043   $as_echo_n "(cached) " >&6
10044 else
10045   case $SORT in
10046   [\\/]* | ?:[\\/]*)
10047   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10048   ;;
10049   *)
10050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10051 for as_dir in $PATH
10052 do
10053   IFS=$as_save_IFS
10054   test -z "$as_dir" && as_dir=.
10055     for ac_exec_ext in '' $ac_executable_extensions; do
10056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10057     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10059     break 2
10060   fi
10061 done
10062   done
10063 IFS=$as_save_IFS
10064 
10065   ;;
10066 esac
10067 fi
10068 SORT=$ac_cv_path_SORT
10069 if test -n "$SORT"; then
10070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10071 $as_echo "$SORT" >&6; }
10072 else
10073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10074 $as_echo "no" >&6; }
10075 fi
10076 
10077 
10078   test -n "$SORT" && break
10079 done
10080 
10081     else
10082       # If it succeeded, then it was overridden by the user. We will use it
10083       # for the tool.
10084 
10085       # First remove it from the list of overridden variables, so we can test
10086       # for unknown variables in the end.
10087       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10088 
10089       # Check if we try to supply an empty value
10090       if test "x$SORT" = x; then
10091         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5
10092 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;}
10093         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
10094 $as_echo_n "checking for SORT... " >&6; }
10095         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10096 $as_echo "disabled" >&6; }
10097       else
10098         # Check if the provided tool contains a complete path.
10099         tool_specified="$SORT"
10100         tool_basename="${tool_specified##*/}"
10101         if test "x$tool_basename" = "x$tool_specified"; then
10102           # A command without a complete path is provided, search $PATH.
10103           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
10104 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
10105           # Extract the first word of "$tool_basename", so it can be a program name with args.
10106 set dummy $tool_basename; ac_word=$2
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10108 $as_echo_n "checking for $ac_word... " >&6; }
10109 if ${ac_cv_path_SORT+:} false; then :
10110   $as_echo_n "(cached) " >&6
10111 else
10112   case $SORT in
10113   [\\/]* | ?:[\\/]*)
10114   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
10115   ;;
10116   *)
10117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10118 for as_dir in $PATH
10119 do
10120   IFS=$as_save_IFS
10121   test -z "$as_dir" && as_dir=.
10122     for ac_exec_ext in '' $ac_executable_extensions; do
10123   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10124     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10126     break 2
10127   fi
10128 done
10129   done
10130 IFS=$as_save_IFS
10131 
10132   ;;
10133 esac
10134 fi
10135 SORT=$ac_cv_path_SORT
10136 if test -n "$SORT"; then
10137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
10138 $as_echo "$SORT" >&6; }
10139 else
10140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10141 $as_echo "no" >&6; }
10142 fi
10143 
10144 
10145           if test "x$SORT" = x; then
10146             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10147           fi
10148         else
10149           # Otherwise we believe it is a complete path. Use it as it is.
10150           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
10151 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
10152           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
10153 $as_echo_n "checking for SORT... " >&6; }
10154           if test ! -x "$tool_specified"; then
10155             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10156 $as_echo "not found" >&6; }
10157             as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
10158           fi
10159           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10160 $as_echo "$tool_specified" >&6; }
10161         fi
10162       fi
10163     fi
10164 
10165   fi
10166 
10167 
10168 
10169   if test "x$SORT" = x; then
10170     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
10171   fi
10172 
10173 
10174 
10175 
10176 
10177   # Publish this variable in the help.
10178 
10179 
10180   if [ -z "${TAIL+x}" ]; then
10181     # The variable is not set by user, try to locate tool using the code snippet
10182     for ac_prog in tail
10183 do
10184   # Extract the first word of "$ac_prog", so it can be a program name with args.
10185 set dummy $ac_prog; ac_word=$2
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10187 $as_echo_n "checking for $ac_word... " >&6; }
10188 if ${ac_cv_path_TAIL+:} false; then :
10189   $as_echo_n "(cached) " >&6
10190 else
10191   case $TAIL in
10192   [\\/]* | ?:[\\/]*)
10193   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10194   ;;
10195   *)
10196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10197 for as_dir in $PATH
10198 do
10199   IFS=$as_save_IFS
10200   test -z "$as_dir" && as_dir=.
10201     for ac_exec_ext in '' $ac_executable_extensions; do
10202   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10203     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10205     break 2
10206   fi
10207 done
10208   done
10209 IFS=$as_save_IFS
10210 
10211   ;;
10212 esac
10213 fi
10214 TAIL=$ac_cv_path_TAIL
10215 if test -n "$TAIL"; then
10216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10217 $as_echo "$TAIL" >&6; }
10218 else
10219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10220 $as_echo "no" >&6; }
10221 fi
10222 
10223 
10224   test -n "$TAIL" && break
10225 done
10226 
10227   else
10228     # The variable is set, but is it from the command line or the environment?
10229 
10230     # Try to remove the string !TAIL! from our list.
10231     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
10232     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10233       # If it failed, the variable was not from the command line. Ignore it,
10234       # but warn the user (except for BASH, which is always set by the calling BASH).
10235       if test "xTAIL" != xBASH; then
10236         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
10237 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
10238       fi
10239       # Try to locate tool using the code snippet
10240       for ac_prog in tail
10241 do
10242   # Extract the first word of "$ac_prog", so it can be a program name with args.
10243 set dummy $ac_prog; ac_word=$2
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10245 $as_echo_n "checking for $ac_word... " >&6; }
10246 if ${ac_cv_path_TAIL+:} false; then :
10247   $as_echo_n "(cached) " >&6
10248 else
10249   case $TAIL in
10250   [\\/]* | ?:[\\/]*)
10251   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10252   ;;
10253   *)
10254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10255 for as_dir in $PATH
10256 do
10257   IFS=$as_save_IFS
10258   test -z "$as_dir" && as_dir=.
10259     for ac_exec_ext in '' $ac_executable_extensions; do
10260   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10261     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10263     break 2
10264   fi
10265 done
10266   done
10267 IFS=$as_save_IFS
10268 
10269   ;;
10270 esac
10271 fi
10272 TAIL=$ac_cv_path_TAIL
10273 if test -n "$TAIL"; then
10274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10275 $as_echo "$TAIL" >&6; }
10276 else
10277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10278 $as_echo "no" >&6; }
10279 fi
10280 
10281 
10282   test -n "$TAIL" && break
10283 done
10284 
10285     else
10286       # If it succeeded, then it was overridden by the user. We will use it
10287       # for the tool.
10288 
10289       # First remove it from the list of overridden variables, so we can test
10290       # for unknown variables in the end.
10291       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10292 
10293       # Check if we try to supply an empty value
10294       if test "x$TAIL" = x; then
10295         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5
10296 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;}
10297         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
10298 $as_echo_n "checking for TAIL... " >&6; }
10299         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10300 $as_echo "disabled" >&6; }
10301       else
10302         # Check if the provided tool contains a complete path.
10303         tool_specified="$TAIL"
10304         tool_basename="${tool_specified##*/}"
10305         if test "x$tool_basename" = "x$tool_specified"; then
10306           # A command without a complete path is provided, search $PATH.
10307           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
10308 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
10309           # Extract the first word of "$tool_basename", so it can be a program name with args.
10310 set dummy $tool_basename; ac_word=$2
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10312 $as_echo_n "checking for $ac_word... " >&6; }
10313 if ${ac_cv_path_TAIL+:} false; then :
10314   $as_echo_n "(cached) " >&6
10315 else
10316   case $TAIL in
10317   [\\/]* | ?:[\\/]*)
10318   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
10319   ;;
10320   *)
10321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10322 for as_dir in $PATH
10323 do
10324   IFS=$as_save_IFS
10325   test -z "$as_dir" && as_dir=.
10326     for ac_exec_ext in '' $ac_executable_extensions; do
10327   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10328     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
10329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10330     break 2
10331   fi
10332 done
10333   done
10334 IFS=$as_save_IFS
10335 
10336   ;;
10337 esac
10338 fi
10339 TAIL=$ac_cv_path_TAIL
10340 if test -n "$TAIL"; then
10341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
10342 $as_echo "$TAIL" >&6; }
10343 else
10344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10345 $as_echo "no" >&6; }
10346 fi
10347 
10348 
10349           if test "x$TAIL" = x; then
10350             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10351           fi
10352         else
10353           # Otherwise we believe it is a complete path. Use it as it is.
10354           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
10355 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
10356           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
10357 $as_echo_n "checking for TAIL... " >&6; }
10358           if test ! -x "$tool_specified"; then
10359             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10360 $as_echo "not found" >&6; }
10361             as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
10362           fi
10363           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10364 $as_echo "$tool_specified" >&6; }
10365         fi
10366       fi
10367     fi
10368 
10369   fi
10370 
10371 
10372 
10373   if test "x$TAIL" = x; then
10374     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
10375   fi
10376 
10377 
10378 
10379 
10380 
10381   # Publish this variable in the help.
10382 
10383 
10384   if [ -z "${TAR+x}" ]; then
10385     # The variable is not set by user, try to locate tool using the code snippet
10386     for ac_prog in tar
10387 do
10388   # Extract the first word of "$ac_prog", so it can be a program name with args.
10389 set dummy $ac_prog; ac_word=$2
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10391 $as_echo_n "checking for $ac_word... " >&6; }
10392 if ${ac_cv_path_TAR+:} false; then :
10393   $as_echo_n "(cached) " >&6
10394 else
10395   case $TAR in
10396   [\\/]* | ?:[\\/]*)
10397   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10398   ;;
10399   *)
10400   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10401 for as_dir in $PATH
10402 do
10403   IFS=$as_save_IFS
10404   test -z "$as_dir" && as_dir=.
10405     for ac_exec_ext in '' $ac_executable_extensions; do
10406   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10407     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10409     break 2
10410   fi
10411 done
10412   done
10413 IFS=$as_save_IFS
10414 
10415   ;;
10416 esac
10417 fi
10418 TAR=$ac_cv_path_TAR
10419 if test -n "$TAR"; then
10420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10421 $as_echo "$TAR" >&6; }
10422 else
10423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10424 $as_echo "no" >&6; }
10425 fi
10426 
10427 
10428   test -n "$TAR" && break
10429 done
10430 
10431   else
10432     # The variable is set, but is it from the command line or the environment?
10433 
10434     # Try to remove the string !TAR! from our list.
10435     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
10436     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10437       # If it failed, the variable was not from the command line. Ignore it,
10438       # but warn the user (except for BASH, which is always set by the calling BASH).
10439       if test "xTAR" != xBASH; then
10440         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
10441 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
10442       fi
10443       # Try to locate tool using the code snippet
10444       for ac_prog in tar
10445 do
10446   # Extract the first word of "$ac_prog", so it can be a program name with args.
10447 set dummy $ac_prog; ac_word=$2
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10449 $as_echo_n "checking for $ac_word... " >&6; }
10450 if ${ac_cv_path_TAR+:} false; then :
10451   $as_echo_n "(cached) " >&6
10452 else
10453   case $TAR in
10454   [\\/]* | ?:[\\/]*)
10455   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10456   ;;
10457   *)
10458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10459 for as_dir in $PATH
10460 do
10461   IFS=$as_save_IFS
10462   test -z "$as_dir" && as_dir=.
10463     for ac_exec_ext in '' $ac_executable_extensions; do
10464   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10465     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10466     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10467     break 2
10468   fi
10469 done
10470   done
10471 IFS=$as_save_IFS
10472 
10473   ;;
10474 esac
10475 fi
10476 TAR=$ac_cv_path_TAR
10477 if test -n "$TAR"; then
10478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10479 $as_echo "$TAR" >&6; }
10480 else
10481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10482 $as_echo "no" >&6; }
10483 fi
10484 
10485 
10486   test -n "$TAR" && break
10487 done
10488 
10489     else
10490       # If it succeeded, then it was overridden by the user. We will use it
10491       # for the tool.
10492 
10493       # First remove it from the list of overridden variables, so we can test
10494       # for unknown variables in the end.
10495       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10496 
10497       # Check if we try to supply an empty value
10498       if test "x$TAR" = x; then
10499         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5
10500 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;}
10501         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
10502 $as_echo_n "checking for TAR... " >&6; }
10503         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10504 $as_echo "disabled" >&6; }
10505       else
10506         # Check if the provided tool contains a complete path.
10507         tool_specified="$TAR"
10508         tool_basename="${tool_specified##*/}"
10509         if test "x$tool_basename" = "x$tool_specified"; then
10510           # A command without a complete path is provided, search $PATH.
10511           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
10512 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
10513           # Extract the first word of "$tool_basename", so it can be a program name with args.
10514 set dummy $tool_basename; ac_word=$2
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10516 $as_echo_n "checking for $ac_word... " >&6; }
10517 if ${ac_cv_path_TAR+:} false; then :
10518   $as_echo_n "(cached) " >&6
10519 else
10520   case $TAR in
10521   [\\/]* | ?:[\\/]*)
10522   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
10523   ;;
10524   *)
10525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10526 for as_dir in $PATH
10527 do
10528   IFS=$as_save_IFS
10529   test -z "$as_dir" && as_dir=.
10530     for ac_exec_ext in '' $ac_executable_extensions; do
10531   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10532     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
10533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10534     break 2
10535   fi
10536 done
10537   done
10538 IFS=$as_save_IFS
10539 
10540   ;;
10541 esac
10542 fi
10543 TAR=$ac_cv_path_TAR
10544 if test -n "$TAR"; then
10545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10546 $as_echo "$TAR" >&6; }
10547 else
10548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10549 $as_echo "no" >&6; }
10550 fi
10551 
10552 
10553           if test "x$TAR" = x; then
10554             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10555           fi
10556         else
10557           # Otherwise we believe it is a complete path. Use it as it is.
10558           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
10559 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
10560           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
10561 $as_echo_n "checking for TAR... " >&6; }
10562           if test ! -x "$tool_specified"; then
10563             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10564 $as_echo "not found" >&6; }
10565             as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
10566           fi
10567           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10568 $as_echo "$tool_specified" >&6; }
10569         fi
10570       fi
10571     fi
10572 
10573   fi
10574 
10575 
10576 
10577   if test "x$TAR" = x; then
10578     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
10579   fi
10580 
10581 
10582 
10583 
10584 
10585   # Publish this variable in the help.
10586 
10587 
10588   if [ -z "${TEE+x}" ]; then
10589     # The variable is not set by user, try to locate tool using the code snippet
10590     for ac_prog in tee
10591 do
10592   # Extract the first word of "$ac_prog", so it can be a program name with args.
10593 set dummy $ac_prog; ac_word=$2
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10595 $as_echo_n "checking for $ac_word... " >&6; }
10596 if ${ac_cv_path_TEE+:} false; then :
10597   $as_echo_n "(cached) " >&6
10598 else
10599   case $TEE in
10600   [\\/]* | ?:[\\/]*)
10601   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10602   ;;
10603   *)
10604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10605 for as_dir in $PATH
10606 do
10607   IFS=$as_save_IFS
10608   test -z "$as_dir" && as_dir=.
10609     for ac_exec_ext in '' $ac_executable_extensions; do
10610   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10611     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10613     break 2
10614   fi
10615 done
10616   done
10617 IFS=$as_save_IFS
10618 
10619   ;;
10620 esac
10621 fi
10622 TEE=$ac_cv_path_TEE
10623 if test -n "$TEE"; then
10624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10625 $as_echo "$TEE" >&6; }
10626 else
10627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10628 $as_echo "no" >&6; }
10629 fi
10630 
10631 
10632   test -n "$TEE" && break
10633 done
10634 
10635   else
10636     # The variable is set, but is it from the command line or the environment?
10637 
10638     # Try to remove the string !TEE! from our list.
10639     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
10640     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10641       # If it failed, the variable was not from the command line. Ignore it,
10642       # but warn the user (except for BASH, which is always set by the calling BASH).
10643       if test "xTEE" != xBASH; then
10644         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
10645 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
10646       fi
10647       # Try to locate tool using the code snippet
10648       for ac_prog in tee
10649 do
10650   # Extract the first word of "$ac_prog", so it can be a program name with args.
10651 set dummy $ac_prog; ac_word=$2
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10653 $as_echo_n "checking for $ac_word... " >&6; }
10654 if ${ac_cv_path_TEE+:} false; then :
10655   $as_echo_n "(cached) " >&6
10656 else
10657   case $TEE in
10658   [\\/]* | ?:[\\/]*)
10659   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10660   ;;
10661   *)
10662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10663 for as_dir in $PATH
10664 do
10665   IFS=$as_save_IFS
10666   test -z "$as_dir" && as_dir=.
10667     for ac_exec_ext in '' $ac_executable_extensions; do
10668   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10669     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10671     break 2
10672   fi
10673 done
10674   done
10675 IFS=$as_save_IFS
10676 
10677   ;;
10678 esac
10679 fi
10680 TEE=$ac_cv_path_TEE
10681 if test -n "$TEE"; then
10682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10683 $as_echo "$TEE" >&6; }
10684 else
10685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10686 $as_echo "no" >&6; }
10687 fi
10688 
10689 
10690   test -n "$TEE" && break
10691 done
10692 
10693     else
10694       # If it succeeded, then it was overridden by the user. We will use it
10695       # for the tool.
10696 
10697       # First remove it from the list of overridden variables, so we can test
10698       # for unknown variables in the end.
10699       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10700 
10701       # Check if we try to supply an empty value
10702       if test "x$TEE" = x; then
10703         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5
10704 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;}
10705         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
10706 $as_echo_n "checking for TEE... " >&6; }
10707         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10708 $as_echo "disabled" >&6; }
10709       else
10710         # Check if the provided tool contains a complete path.
10711         tool_specified="$TEE"
10712         tool_basename="${tool_specified##*/}"
10713         if test "x$tool_basename" = "x$tool_specified"; then
10714           # A command without a complete path is provided, search $PATH.
10715           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
10716 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
10717           # Extract the first word of "$tool_basename", so it can be a program name with args.
10718 set dummy $tool_basename; ac_word=$2
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10720 $as_echo_n "checking for $ac_word... " >&6; }
10721 if ${ac_cv_path_TEE+:} false; then :
10722   $as_echo_n "(cached) " >&6
10723 else
10724   case $TEE in
10725   [\\/]* | ?:[\\/]*)
10726   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10727   ;;
10728   *)
10729   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10730 for as_dir in $PATH
10731 do
10732   IFS=$as_save_IFS
10733   test -z "$as_dir" && as_dir=.
10734     for ac_exec_ext in '' $ac_executable_extensions; do
10735   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10736     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10738     break 2
10739   fi
10740 done
10741   done
10742 IFS=$as_save_IFS
10743 
10744   ;;
10745 esac
10746 fi
10747 TEE=$ac_cv_path_TEE
10748 if test -n "$TEE"; then
10749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10750 $as_echo "$TEE" >&6; }
10751 else
10752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10753 $as_echo "no" >&6; }
10754 fi
10755 
10756 
10757           if test "x$TEE" = x; then
10758             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10759           fi
10760         else
10761           # Otherwise we believe it is a complete path. Use it as it is.
10762           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
10763 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
10764           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
10765 $as_echo_n "checking for TEE... " >&6; }
10766           if test ! -x "$tool_specified"; then
10767             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10768 $as_echo "not found" >&6; }
10769             as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
10770           fi
10771           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10772 $as_echo "$tool_specified" >&6; }
10773         fi
10774       fi
10775     fi
10776 
10777   fi
10778 
10779 
10780 
10781   if test "x$TEE" = x; then
10782     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
10783   fi
10784 
10785 
10786 
10787 
10788 
10789   # Publish this variable in the help.
10790 
10791 
10792   if [ -z "${TOUCH+x}" ]; then
10793     # The variable is not set by user, try to locate tool using the code snippet
10794     for ac_prog in touch
10795 do
10796   # Extract the first word of "$ac_prog", so it can be a program name with args.
10797 set dummy $ac_prog; ac_word=$2
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10799 $as_echo_n "checking for $ac_word... " >&6; }
10800 if ${ac_cv_path_TOUCH+:} false; then :
10801   $as_echo_n "(cached) " >&6
10802 else
10803   case $TOUCH in
10804   [\\/]* | ?:[\\/]*)
10805   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10806   ;;
10807   *)
10808   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10809 for as_dir in $PATH
10810 do
10811   IFS=$as_save_IFS
10812   test -z "$as_dir" && as_dir=.
10813     for ac_exec_ext in '' $ac_executable_extensions; do
10814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10815     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10817     break 2
10818   fi
10819 done
10820   done
10821 IFS=$as_save_IFS
10822 
10823   ;;
10824 esac
10825 fi
10826 TOUCH=$ac_cv_path_TOUCH
10827 if test -n "$TOUCH"; then
10828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10829 $as_echo "$TOUCH" >&6; }
10830 else
10831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10832 $as_echo "no" >&6; }
10833 fi
10834 
10835 
10836   test -n "$TOUCH" && break
10837 done
10838 
10839   else
10840     # The variable is set, but is it from the command line or the environment?
10841 
10842     # Try to remove the string !TOUCH! from our list.
10843     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
10844     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10845       # If it failed, the variable was not from the command line. Ignore it,
10846       # but warn the user (except for BASH, which is always set by the calling BASH).
10847       if test "xTOUCH" != xBASH; then
10848         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
10849 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
10850       fi
10851       # Try to locate tool using the code snippet
10852       for ac_prog in touch
10853 do
10854   # Extract the first word of "$ac_prog", so it can be a program name with args.
10855 set dummy $ac_prog; ac_word=$2
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10857 $as_echo_n "checking for $ac_word... " >&6; }
10858 if ${ac_cv_path_TOUCH+:} false; then :
10859   $as_echo_n "(cached) " >&6
10860 else
10861   case $TOUCH in
10862   [\\/]* | ?:[\\/]*)
10863   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10864   ;;
10865   *)
10866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10867 for as_dir in $PATH
10868 do
10869   IFS=$as_save_IFS
10870   test -z "$as_dir" && as_dir=.
10871     for ac_exec_ext in '' $ac_executable_extensions; do
10872   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10873     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10875     break 2
10876   fi
10877 done
10878   done
10879 IFS=$as_save_IFS
10880 
10881   ;;
10882 esac
10883 fi
10884 TOUCH=$ac_cv_path_TOUCH
10885 if test -n "$TOUCH"; then
10886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10887 $as_echo "$TOUCH" >&6; }
10888 else
10889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10890 $as_echo "no" >&6; }
10891 fi
10892 
10893 
10894   test -n "$TOUCH" && break
10895 done
10896 
10897     else
10898       # If it succeeded, then it was overridden by the user. We will use it
10899       # for the tool.
10900 
10901       # First remove it from the list of overridden variables, so we can test
10902       # for unknown variables in the end.
10903       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10904 
10905       # Check if we try to supply an empty value
10906       if test "x$TOUCH" = x; then
10907         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5
10908 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;}
10909         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10910 $as_echo_n "checking for TOUCH... " >&6; }
10911         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
10912 $as_echo "disabled" >&6; }
10913       else
10914         # Check if the provided tool contains a complete path.
10915         tool_specified="$TOUCH"
10916         tool_basename="${tool_specified##*/}"
10917         if test "x$tool_basename" = "x$tool_specified"; then
10918           # A command without a complete path is provided, search $PATH.
10919           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
10920 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
10921           # Extract the first word of "$tool_basename", so it can be a program name with args.
10922 set dummy $tool_basename; ac_word=$2
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10924 $as_echo_n "checking for $ac_word... " >&6; }
10925 if ${ac_cv_path_TOUCH+:} false; then :
10926   $as_echo_n "(cached) " >&6
10927 else
10928   case $TOUCH in
10929   [\\/]* | ?:[\\/]*)
10930   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10931   ;;
10932   *)
10933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10934 for as_dir in $PATH
10935 do
10936   IFS=$as_save_IFS
10937   test -z "$as_dir" && as_dir=.
10938     for ac_exec_ext in '' $ac_executable_extensions; do
10939   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10940     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10942     break 2
10943   fi
10944 done
10945   done
10946 IFS=$as_save_IFS
10947 
10948   ;;
10949 esac
10950 fi
10951 TOUCH=$ac_cv_path_TOUCH
10952 if test -n "$TOUCH"; then
10953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10954 $as_echo "$TOUCH" >&6; }
10955 else
10956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10957 $as_echo "no" >&6; }
10958 fi
10959 
10960 
10961           if test "x$TOUCH" = x; then
10962             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10963           fi
10964         else
10965           # Otherwise we believe it is a complete path. Use it as it is.
10966           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
10967 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
10968           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10969 $as_echo_n "checking for TOUCH... " >&6; }
10970           if test ! -x "$tool_specified"; then
10971             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10972 $as_echo "not found" >&6; }
10973             as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
10974           fi
10975           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10976 $as_echo "$tool_specified" >&6; }
10977         fi
10978       fi
10979     fi
10980 
10981   fi
10982 
10983 
10984 
10985   if test "x$TOUCH" = x; then
10986     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
10987   fi
10988 
10989 
10990 
10991 
10992 
10993   # Publish this variable in the help.
10994 
10995 
10996   if [ -z "${TR+x}" ]; then
10997     # The variable is not set by user, try to locate tool using the code snippet
10998     for ac_prog in tr
10999 do
11000   # Extract the first word of "$ac_prog", so it can be a program name with args.
11001 set dummy $ac_prog; ac_word=$2
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11003 $as_echo_n "checking for $ac_word... " >&6; }
11004 if ${ac_cv_path_TR+:} false; then :
11005   $as_echo_n "(cached) " >&6
11006 else
11007   case $TR in
11008   [\\/]* | ?:[\\/]*)
11009   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11010   ;;
11011   *)
11012   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11013 for as_dir in $PATH
11014 do
11015   IFS=$as_save_IFS
11016   test -z "$as_dir" && as_dir=.
11017     for ac_exec_ext in '' $ac_executable_extensions; do
11018   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11019     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11021     break 2
11022   fi
11023 done
11024   done
11025 IFS=$as_save_IFS
11026 
11027   ;;
11028 esac
11029 fi
11030 TR=$ac_cv_path_TR
11031 if test -n "$TR"; then
11032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11033 $as_echo "$TR" >&6; }
11034 else
11035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11036 $as_echo "no" >&6; }
11037 fi
11038 
11039 
11040   test -n "$TR" && break
11041 done
11042 
11043   else
11044     # The variable is set, but is it from the command line or the environment?
11045 
11046     # Try to remove the string !TR! from our list.
11047     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
11048     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11049       # If it failed, the variable was not from the command line. Ignore it,
11050       # but warn the user (except for BASH, which is always set by the calling BASH).
11051       if test "xTR" != xBASH; then
11052         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
11053 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
11054       fi
11055       # Try to locate tool using the code snippet
11056       for ac_prog in tr
11057 do
11058   # Extract the first word of "$ac_prog", so it can be a program name with args.
11059 set dummy $ac_prog; ac_word=$2
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11061 $as_echo_n "checking for $ac_word... " >&6; }
11062 if ${ac_cv_path_TR+:} false; then :
11063   $as_echo_n "(cached) " >&6
11064 else
11065   case $TR in
11066   [\\/]* | ?:[\\/]*)
11067   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11068   ;;
11069   *)
11070   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11071 for as_dir in $PATH
11072 do
11073   IFS=$as_save_IFS
11074   test -z "$as_dir" && as_dir=.
11075     for ac_exec_ext in '' $ac_executable_extensions; do
11076   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11077     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11079     break 2
11080   fi
11081 done
11082   done
11083 IFS=$as_save_IFS
11084 
11085   ;;
11086 esac
11087 fi
11088 TR=$ac_cv_path_TR
11089 if test -n "$TR"; then
11090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11091 $as_echo "$TR" >&6; }
11092 else
11093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11094 $as_echo "no" >&6; }
11095 fi
11096 
11097 
11098   test -n "$TR" && break
11099 done
11100 
11101     else
11102       # If it succeeded, then it was overridden by the user. We will use it
11103       # for the tool.
11104 
11105       # First remove it from the list of overridden variables, so we can test
11106       # for unknown variables in the end.
11107       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11108 
11109       # Check if we try to supply an empty value
11110       if test "x$TR" = x; then
11111         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5
11112 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;}
11113         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
11114 $as_echo_n "checking for TR... " >&6; }
11115         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11116 $as_echo "disabled" >&6; }
11117       else
11118         # Check if the provided tool contains a complete path.
11119         tool_specified="$TR"
11120         tool_basename="${tool_specified##*/}"
11121         if test "x$tool_basename" = "x$tool_specified"; then
11122           # A command without a complete path is provided, search $PATH.
11123           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
11124 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
11125           # Extract the first word of "$tool_basename", so it can be a program name with args.
11126 set dummy $tool_basename; ac_word=$2
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11128 $as_echo_n "checking for $ac_word... " >&6; }
11129 if ${ac_cv_path_TR+:} false; then :
11130   $as_echo_n "(cached) " >&6
11131 else
11132   case $TR in
11133   [\\/]* | ?:[\\/]*)
11134   ac_cv_path_TR="$TR" # Let the user override the test with a path.
11135   ;;
11136   *)
11137   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11138 for as_dir in $PATH
11139 do
11140   IFS=$as_save_IFS
11141   test -z "$as_dir" && as_dir=.
11142     for ac_exec_ext in '' $ac_executable_extensions; do
11143   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11144     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
11145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11146     break 2
11147   fi
11148 done
11149   done
11150 IFS=$as_save_IFS
11151 
11152   ;;
11153 esac
11154 fi
11155 TR=$ac_cv_path_TR
11156 if test -n "$TR"; then
11157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
11158 $as_echo "$TR" >&6; }
11159 else
11160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11161 $as_echo "no" >&6; }
11162 fi
11163 
11164 
11165           if test "x$TR" = x; then
11166             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11167           fi
11168         else
11169           # Otherwise we believe it is a complete path. Use it as it is.
11170           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
11171 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
11172           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
11173 $as_echo_n "checking for TR... " >&6; }
11174           if test ! -x "$tool_specified"; then
11175             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11176 $as_echo "not found" >&6; }
11177             as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
11178           fi
11179           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11180 $as_echo "$tool_specified" >&6; }
11181         fi
11182       fi
11183     fi
11184 
11185   fi
11186 
11187 
11188 
11189   if test "x$TR" = x; then
11190     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
11191   fi
11192 
11193 
11194 
11195 
11196 
11197   # Publish this variable in the help.
11198 
11199 
11200   if [ -z "${UNAME+x}" ]; then
11201     # The variable is not set by user, try to locate tool using the code snippet
11202     for ac_prog in uname
11203 do
11204   # Extract the first word of "$ac_prog", so it can be a program name with args.
11205 set dummy $ac_prog; ac_word=$2
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11207 $as_echo_n "checking for $ac_word... " >&6; }
11208 if ${ac_cv_path_UNAME+:} false; then :
11209   $as_echo_n "(cached) " >&6
11210 else
11211   case $UNAME in
11212   [\\/]* | ?:[\\/]*)
11213   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11214   ;;
11215   *)
11216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11217 for as_dir in $PATH
11218 do
11219   IFS=$as_save_IFS
11220   test -z "$as_dir" && as_dir=.
11221     for ac_exec_ext in '' $ac_executable_extensions; do
11222   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11223     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11225     break 2
11226   fi
11227 done
11228   done
11229 IFS=$as_save_IFS
11230 
11231   ;;
11232 esac
11233 fi
11234 UNAME=$ac_cv_path_UNAME
11235 if test -n "$UNAME"; then
11236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11237 $as_echo "$UNAME" >&6; }
11238 else
11239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11240 $as_echo "no" >&6; }
11241 fi
11242 
11243 
11244   test -n "$UNAME" && break
11245 done
11246 
11247   else
11248     # The variable is set, but is it from the command line or the environment?
11249 
11250     # Try to remove the string !UNAME! from our list.
11251     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
11252     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11253       # If it failed, the variable was not from the command line. Ignore it,
11254       # but warn the user (except for BASH, which is always set by the calling BASH).
11255       if test "xUNAME" != xBASH; then
11256         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
11257 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
11258       fi
11259       # Try to locate tool using the code snippet
11260       for ac_prog in uname
11261 do
11262   # Extract the first word of "$ac_prog", so it can be a program name with args.
11263 set dummy $ac_prog; ac_word=$2
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11265 $as_echo_n "checking for $ac_word... " >&6; }
11266 if ${ac_cv_path_UNAME+:} false; then :
11267   $as_echo_n "(cached) " >&6
11268 else
11269   case $UNAME in
11270   [\\/]* | ?:[\\/]*)
11271   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11272   ;;
11273   *)
11274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11275 for as_dir in $PATH
11276 do
11277   IFS=$as_save_IFS
11278   test -z "$as_dir" && as_dir=.
11279     for ac_exec_ext in '' $ac_executable_extensions; do
11280   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11281     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11283     break 2
11284   fi
11285 done
11286   done
11287 IFS=$as_save_IFS
11288 
11289   ;;
11290 esac
11291 fi
11292 UNAME=$ac_cv_path_UNAME
11293 if test -n "$UNAME"; then
11294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11295 $as_echo "$UNAME" >&6; }
11296 else
11297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11298 $as_echo "no" >&6; }
11299 fi
11300 
11301 
11302   test -n "$UNAME" && break
11303 done
11304 
11305     else
11306       # If it succeeded, then it was overridden by the user. We will use it
11307       # for the tool.
11308 
11309       # First remove it from the list of overridden variables, so we can test
11310       # for unknown variables in the end.
11311       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11312 
11313       # Check if we try to supply an empty value
11314       if test "x$UNAME" = x; then
11315         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5
11316 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;}
11317         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
11318 $as_echo_n "checking for UNAME... " >&6; }
11319         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11320 $as_echo "disabled" >&6; }
11321       else
11322         # Check if the provided tool contains a complete path.
11323         tool_specified="$UNAME"
11324         tool_basename="${tool_specified##*/}"
11325         if test "x$tool_basename" = "x$tool_specified"; then
11326           # A command without a complete path is provided, search $PATH.
11327           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
11328 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
11329           # Extract the first word of "$tool_basename", so it can be a program name with args.
11330 set dummy $tool_basename; ac_word=$2
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11332 $as_echo_n "checking for $ac_word... " >&6; }
11333 if ${ac_cv_path_UNAME+:} false; then :
11334   $as_echo_n "(cached) " >&6
11335 else
11336   case $UNAME in
11337   [\\/]* | ?:[\\/]*)
11338   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
11339   ;;
11340   *)
11341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11342 for as_dir in $PATH
11343 do
11344   IFS=$as_save_IFS
11345   test -z "$as_dir" && as_dir=.
11346     for ac_exec_ext in '' $ac_executable_extensions; do
11347   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11348     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
11349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11350     break 2
11351   fi
11352 done
11353   done
11354 IFS=$as_save_IFS
11355 
11356   ;;
11357 esac
11358 fi
11359 UNAME=$ac_cv_path_UNAME
11360 if test -n "$UNAME"; then
11361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
11362 $as_echo "$UNAME" >&6; }
11363 else
11364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11365 $as_echo "no" >&6; }
11366 fi
11367 
11368 
11369           if test "x$UNAME" = x; then
11370             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11371           fi
11372         else
11373           # Otherwise we believe it is a complete path. Use it as it is.
11374           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
11375 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
11376           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
11377 $as_echo_n "checking for UNAME... " >&6; }
11378           if test ! -x "$tool_specified"; then
11379             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11380 $as_echo "not found" >&6; }
11381             as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
11382           fi
11383           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11384 $as_echo "$tool_specified" >&6; }
11385         fi
11386       fi
11387     fi
11388 
11389   fi
11390 
11391 
11392 
11393   if test "x$UNAME" = x; then
11394     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
11395   fi
11396 
11397 
11398 
11399 
11400 
11401   # Publish this variable in the help.
11402 
11403 
11404   if [ -z "${UNIQ+x}" ]; then
11405     # The variable is not set by user, try to locate tool using the code snippet
11406     for ac_prog in uniq
11407 do
11408   # Extract the first word of "$ac_prog", so it can be a program name with args.
11409 set dummy $ac_prog; ac_word=$2
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11411 $as_echo_n "checking for $ac_word... " >&6; }
11412 if ${ac_cv_path_UNIQ+:} false; then :
11413   $as_echo_n "(cached) " >&6
11414 else
11415   case $UNIQ in
11416   [\\/]* | ?:[\\/]*)
11417   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11418   ;;
11419   *)
11420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11421 for as_dir in $PATH
11422 do
11423   IFS=$as_save_IFS
11424   test -z "$as_dir" && as_dir=.
11425     for ac_exec_ext in '' $ac_executable_extensions; do
11426   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11427     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11429     break 2
11430   fi
11431 done
11432   done
11433 IFS=$as_save_IFS
11434 
11435   ;;
11436 esac
11437 fi
11438 UNIQ=$ac_cv_path_UNIQ
11439 if test -n "$UNIQ"; then
11440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11441 $as_echo "$UNIQ" >&6; }
11442 else
11443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11444 $as_echo "no" >&6; }
11445 fi
11446 
11447 
11448   test -n "$UNIQ" && break
11449 done
11450 
11451   else
11452     # The variable is set, but is it from the command line or the environment?
11453 
11454     # Try to remove the string !UNIQ! from our list.
11455     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
11456     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11457       # If it failed, the variable was not from the command line. Ignore it,
11458       # but warn the user (except for BASH, which is always set by the calling BASH).
11459       if test "xUNIQ" != xBASH; then
11460         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
11461 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
11462       fi
11463       # Try to locate tool using the code snippet
11464       for ac_prog in uniq
11465 do
11466   # Extract the first word of "$ac_prog", so it can be a program name with args.
11467 set dummy $ac_prog; ac_word=$2
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11469 $as_echo_n "checking for $ac_word... " >&6; }
11470 if ${ac_cv_path_UNIQ+:} false; then :
11471   $as_echo_n "(cached) " >&6
11472 else
11473   case $UNIQ in
11474   [\\/]* | ?:[\\/]*)
11475   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11476   ;;
11477   *)
11478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11479 for as_dir in $PATH
11480 do
11481   IFS=$as_save_IFS
11482   test -z "$as_dir" && as_dir=.
11483     for ac_exec_ext in '' $ac_executable_extensions; do
11484   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11485     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11487     break 2
11488   fi
11489 done
11490   done
11491 IFS=$as_save_IFS
11492 
11493   ;;
11494 esac
11495 fi
11496 UNIQ=$ac_cv_path_UNIQ
11497 if test -n "$UNIQ"; then
11498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11499 $as_echo "$UNIQ" >&6; }
11500 else
11501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11502 $as_echo "no" >&6; }
11503 fi
11504 
11505 
11506   test -n "$UNIQ" && break
11507 done
11508 
11509     else
11510       # If it succeeded, then it was overridden by the user. We will use it
11511       # for the tool.
11512 
11513       # First remove it from the list of overridden variables, so we can test
11514       # for unknown variables in the end.
11515       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11516 
11517       # Check if we try to supply an empty value
11518       if test "x$UNIQ" = x; then
11519         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5
11520 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;}
11521         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
11522 $as_echo_n "checking for UNIQ... " >&6; }
11523         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11524 $as_echo "disabled" >&6; }
11525       else
11526         # Check if the provided tool contains a complete path.
11527         tool_specified="$UNIQ"
11528         tool_basename="${tool_specified##*/}"
11529         if test "x$tool_basename" = "x$tool_specified"; then
11530           # A command without a complete path is provided, search $PATH.
11531           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
11532 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
11533           # Extract the first word of "$tool_basename", so it can be a program name with args.
11534 set dummy $tool_basename; ac_word=$2
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11536 $as_echo_n "checking for $ac_word... " >&6; }
11537 if ${ac_cv_path_UNIQ+:} false; then :
11538   $as_echo_n "(cached) " >&6
11539 else
11540   case $UNIQ in
11541   [\\/]* | ?:[\\/]*)
11542   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
11543   ;;
11544   *)
11545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11546 for as_dir in $PATH
11547 do
11548   IFS=$as_save_IFS
11549   test -z "$as_dir" && as_dir=.
11550     for ac_exec_ext in '' $ac_executable_extensions; do
11551   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11552     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
11553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11554     break 2
11555   fi
11556 done
11557   done
11558 IFS=$as_save_IFS
11559 
11560   ;;
11561 esac
11562 fi
11563 UNIQ=$ac_cv_path_UNIQ
11564 if test -n "$UNIQ"; then
11565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
11566 $as_echo "$UNIQ" >&6; }
11567 else
11568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11569 $as_echo "no" >&6; }
11570 fi
11571 
11572 
11573           if test "x$UNIQ" = x; then
11574             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11575           fi
11576         else
11577           # Otherwise we believe it is a complete path. Use it as it is.
11578           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
11579 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
11580           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
11581 $as_echo_n "checking for UNIQ... " >&6; }
11582           if test ! -x "$tool_specified"; then
11583             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11584 $as_echo "not found" >&6; }
11585             as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
11586           fi
11587           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11588 $as_echo "$tool_specified" >&6; }
11589         fi
11590       fi
11591     fi
11592 
11593   fi
11594 
11595 
11596 
11597   if test "x$UNIQ" = x; then
11598     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
11599   fi
11600 
11601 
11602 
11603 
11604 
11605   # Publish this variable in the help.
11606 
11607 
11608   if [ -z "${WC+x}" ]; then
11609     # The variable is not set by user, try to locate tool using the code snippet
11610     for ac_prog in wc
11611 do
11612   # Extract the first word of "$ac_prog", so it can be a program name with args.
11613 set dummy $ac_prog; ac_word=$2
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11615 $as_echo_n "checking for $ac_word... " >&6; }
11616 if ${ac_cv_path_WC+:} false; then :
11617   $as_echo_n "(cached) " >&6
11618 else
11619   case $WC in
11620   [\\/]* | ?:[\\/]*)
11621   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11622   ;;
11623   *)
11624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11625 for as_dir in $PATH
11626 do
11627   IFS=$as_save_IFS
11628   test -z "$as_dir" && as_dir=.
11629     for ac_exec_ext in '' $ac_executable_extensions; do
11630   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11631     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11633     break 2
11634   fi
11635 done
11636   done
11637 IFS=$as_save_IFS
11638 
11639   ;;
11640 esac
11641 fi
11642 WC=$ac_cv_path_WC
11643 if test -n "$WC"; then
11644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11645 $as_echo "$WC" >&6; }
11646 else
11647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11648 $as_echo "no" >&6; }
11649 fi
11650 
11651 
11652   test -n "$WC" && break
11653 done
11654 
11655   else
11656     # The variable is set, but is it from the command line or the environment?
11657 
11658     # Try to remove the string !WC! from our list.
11659     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
11660     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11661       # If it failed, the variable was not from the command line. Ignore it,
11662       # but warn the user (except for BASH, which is always set by the calling BASH).
11663       if test "xWC" != xBASH; then
11664         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
11665 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
11666       fi
11667       # Try to locate tool using the code snippet
11668       for ac_prog in wc
11669 do
11670   # Extract the first word of "$ac_prog", so it can be a program name with args.
11671 set dummy $ac_prog; ac_word=$2
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11673 $as_echo_n "checking for $ac_word... " >&6; }
11674 if ${ac_cv_path_WC+:} false; then :
11675   $as_echo_n "(cached) " >&6
11676 else
11677   case $WC in
11678   [\\/]* | ?:[\\/]*)
11679   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11680   ;;
11681   *)
11682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11683 for as_dir in $PATH
11684 do
11685   IFS=$as_save_IFS
11686   test -z "$as_dir" && as_dir=.
11687     for ac_exec_ext in '' $ac_executable_extensions; do
11688   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11689     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11691     break 2
11692   fi
11693 done
11694   done
11695 IFS=$as_save_IFS
11696 
11697   ;;
11698 esac
11699 fi
11700 WC=$ac_cv_path_WC
11701 if test -n "$WC"; then
11702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11703 $as_echo "$WC" >&6; }
11704 else
11705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11706 $as_echo "no" >&6; }
11707 fi
11708 
11709 
11710   test -n "$WC" && break
11711 done
11712 
11713     else
11714       # If it succeeded, then it was overridden by the user. We will use it
11715       # for the tool.
11716 
11717       # First remove it from the list of overridden variables, so we can test
11718       # for unknown variables in the end.
11719       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11720 
11721       # Check if we try to supply an empty value
11722       if test "x$WC" = x; then
11723         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5
11724 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;}
11725         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
11726 $as_echo_n "checking for WC... " >&6; }
11727         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11728 $as_echo "disabled" >&6; }
11729       else
11730         # Check if the provided tool contains a complete path.
11731         tool_specified="$WC"
11732         tool_basename="${tool_specified##*/}"
11733         if test "x$tool_basename" = "x$tool_specified"; then
11734           # A command without a complete path is provided, search $PATH.
11735           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
11736 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
11737           # Extract the first word of "$tool_basename", so it can be a program name with args.
11738 set dummy $tool_basename; ac_word=$2
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11740 $as_echo_n "checking for $ac_word... " >&6; }
11741 if ${ac_cv_path_WC+:} false; then :
11742   $as_echo_n "(cached) " >&6
11743 else
11744   case $WC in
11745   [\\/]* | ?:[\\/]*)
11746   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11747   ;;
11748   *)
11749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750 for as_dir in $PATH
11751 do
11752   IFS=$as_save_IFS
11753   test -z "$as_dir" && as_dir=.
11754     for ac_exec_ext in '' $ac_executable_extensions; do
11755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11756     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11758     break 2
11759   fi
11760 done
11761   done
11762 IFS=$as_save_IFS
11763 
11764   ;;
11765 esac
11766 fi
11767 WC=$ac_cv_path_WC
11768 if test -n "$WC"; then
11769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11770 $as_echo "$WC" >&6; }
11771 else
11772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11773 $as_echo "no" >&6; }
11774 fi
11775 
11776 
11777           if test "x$WC" = x; then
11778             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11779           fi
11780         else
11781           # Otherwise we believe it is a complete path. Use it as it is.
11782           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
11783 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
11784           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
11785 $as_echo_n "checking for WC... " >&6; }
11786           if test ! -x "$tool_specified"; then
11787             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11788 $as_echo "not found" >&6; }
11789             as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
11790           fi
11791           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11792 $as_echo "$tool_specified" >&6; }
11793         fi
11794       fi
11795     fi
11796 
11797   fi
11798 
11799 
11800 
11801   if test "x$WC" = x; then
11802     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
11803   fi
11804 
11805 
11806 
11807 
11808 
11809   # Publish this variable in the help.
11810 
11811 
11812   if [ -z "${WHICH+x}" ]; then
11813     # The variable is not set by user, try to locate tool using the code snippet
11814     for ac_prog in which
11815 do
11816   # Extract the first word of "$ac_prog", so it can be a program name with args.
11817 set dummy $ac_prog; ac_word=$2
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11819 $as_echo_n "checking for $ac_word... " >&6; }
11820 if ${ac_cv_path_WHICH+:} false; then :
11821   $as_echo_n "(cached) " >&6
11822 else
11823   case $WHICH in
11824   [\\/]* | ?:[\\/]*)
11825   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11826   ;;
11827   *)
11828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11829 for as_dir in $PATH
11830 do
11831   IFS=$as_save_IFS
11832   test -z "$as_dir" && as_dir=.
11833     for ac_exec_ext in '' $ac_executable_extensions; do
11834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11835     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11837     break 2
11838   fi
11839 done
11840   done
11841 IFS=$as_save_IFS
11842 
11843   ;;
11844 esac
11845 fi
11846 WHICH=$ac_cv_path_WHICH
11847 if test -n "$WHICH"; then
11848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11849 $as_echo "$WHICH" >&6; }
11850 else
11851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11852 $as_echo "no" >&6; }
11853 fi
11854 
11855 
11856   test -n "$WHICH" && break
11857 done
11858 
11859   else
11860     # The variable is set, but is it from the command line or the environment?
11861 
11862     # Try to remove the string !WHICH! from our list.
11863     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
11864     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11865       # If it failed, the variable was not from the command line. Ignore it,
11866       # but warn the user (except for BASH, which is always set by the calling BASH).
11867       if test "xWHICH" != xBASH; then
11868         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
11869 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
11870       fi
11871       # Try to locate tool using the code snippet
11872       for ac_prog in which
11873 do
11874   # Extract the first word of "$ac_prog", so it can be a program name with args.
11875 set dummy $ac_prog; ac_word=$2
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11877 $as_echo_n "checking for $ac_word... " >&6; }
11878 if ${ac_cv_path_WHICH+:} false; then :
11879   $as_echo_n "(cached) " >&6
11880 else
11881   case $WHICH in
11882   [\\/]* | ?:[\\/]*)
11883   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11884   ;;
11885   *)
11886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11887 for as_dir in $PATH
11888 do
11889   IFS=$as_save_IFS
11890   test -z "$as_dir" && as_dir=.
11891     for ac_exec_ext in '' $ac_executable_extensions; do
11892   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11893     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11895     break 2
11896   fi
11897 done
11898   done
11899 IFS=$as_save_IFS
11900 
11901   ;;
11902 esac
11903 fi
11904 WHICH=$ac_cv_path_WHICH
11905 if test -n "$WHICH"; then
11906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11907 $as_echo "$WHICH" >&6; }
11908 else
11909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11910 $as_echo "no" >&6; }
11911 fi
11912 
11913 
11914   test -n "$WHICH" && break
11915 done
11916 
11917     else
11918       # If it succeeded, then it was overridden by the user. We will use it
11919       # for the tool.
11920 
11921       # First remove it from the list of overridden variables, so we can test
11922       # for unknown variables in the end.
11923       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11924 
11925       # Check if we try to supply an empty value
11926       if test "x$WHICH" = x; then
11927         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5
11928 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;}
11929         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11930 $as_echo_n "checking for WHICH... " >&6; }
11931         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
11932 $as_echo "disabled" >&6; }
11933       else
11934         # Check if the provided tool contains a complete path.
11935         tool_specified="$WHICH"
11936         tool_basename="${tool_specified##*/}"
11937         if test "x$tool_basename" = "x$tool_specified"; then
11938           # A command without a complete path is provided, search $PATH.
11939           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
11940 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
11941           # Extract the first word of "$tool_basename", so it can be a program name with args.
11942 set dummy $tool_basename; ac_word=$2
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11944 $as_echo_n "checking for $ac_word... " >&6; }
11945 if ${ac_cv_path_WHICH+:} false; then :
11946   $as_echo_n "(cached) " >&6
11947 else
11948   case $WHICH in
11949   [\\/]* | ?:[\\/]*)
11950   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11951   ;;
11952   *)
11953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11954 for as_dir in $PATH
11955 do
11956   IFS=$as_save_IFS
11957   test -z "$as_dir" && as_dir=.
11958     for ac_exec_ext in '' $ac_executable_extensions; do
11959   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11960     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11962     break 2
11963   fi
11964 done
11965   done
11966 IFS=$as_save_IFS
11967 
11968   ;;
11969 esac
11970 fi
11971 WHICH=$ac_cv_path_WHICH
11972 if test -n "$WHICH"; then
11973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11974 $as_echo "$WHICH" >&6; }
11975 else
11976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11977 $as_echo "no" >&6; }
11978 fi
11979 
11980 
11981           if test "x$WHICH" = x; then
11982             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11983           fi
11984         else
11985           # Otherwise we believe it is a complete path. Use it as it is.
11986           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
11987 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
11988           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11989 $as_echo_n "checking for WHICH... " >&6; }
11990           if test ! -x "$tool_specified"; then
11991             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11992 $as_echo "not found" >&6; }
11993             as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
11994           fi
11995           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11996 $as_echo "$tool_specified" >&6; }
11997         fi
11998       fi
11999     fi
12000 
12001   fi
12002 
12003 
12004 
12005   if test "x$WHICH" = x; then
12006     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
12007   fi
12008 
12009 
12010 
12011 
12012 
12013   # Publish this variable in the help.
12014 
12015 
12016   if [ -z "${XARGS+x}" ]; then
12017     # The variable is not set by user, try to locate tool using the code snippet
12018     for ac_prog in xargs
12019 do
12020   # Extract the first word of "$ac_prog", so it can be a program name with args.
12021 set dummy $ac_prog; ac_word=$2
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12023 $as_echo_n "checking for $ac_word... " >&6; }
12024 if ${ac_cv_path_XARGS+:} false; then :
12025   $as_echo_n "(cached) " >&6
12026 else
12027   case $XARGS in
12028   [\\/]* | ?:[\\/]*)
12029   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12030   ;;
12031   *)
12032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12033 for as_dir in $PATH
12034 do
12035   IFS=$as_save_IFS
12036   test -z "$as_dir" && as_dir=.
12037     for ac_exec_ext in '' $ac_executable_extensions; do
12038   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12039     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12041     break 2
12042   fi
12043 done
12044   done
12045 IFS=$as_save_IFS
12046 
12047   ;;
12048 esac
12049 fi
12050 XARGS=$ac_cv_path_XARGS
12051 if test -n "$XARGS"; then
12052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12053 $as_echo "$XARGS" >&6; }
12054 else
12055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12056 $as_echo "no" >&6; }
12057 fi
12058 
12059 
12060   test -n "$XARGS" && break
12061 done
12062 
12063   else
12064     # The variable is set, but is it from the command line or the environment?
12065 
12066     # Try to remove the string !XARGS! from our list.
12067     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
12068     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12069       # If it failed, the variable was not from the command line. Ignore it,
12070       # but warn the user (except for BASH, which is always set by the calling BASH).
12071       if test "xXARGS" != xBASH; then
12072         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
12073 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
12074       fi
12075       # Try to locate tool using the code snippet
12076       for ac_prog in xargs
12077 do
12078   # Extract the first word of "$ac_prog", so it can be a program name with args.
12079 set dummy $ac_prog; ac_word=$2
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12081 $as_echo_n "checking for $ac_word... " >&6; }
12082 if ${ac_cv_path_XARGS+:} false; then :
12083   $as_echo_n "(cached) " >&6
12084 else
12085   case $XARGS in
12086   [\\/]* | ?:[\\/]*)
12087   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12088   ;;
12089   *)
12090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12091 for as_dir in $PATH
12092 do
12093   IFS=$as_save_IFS
12094   test -z "$as_dir" && as_dir=.
12095     for ac_exec_ext in '' $ac_executable_extensions; do
12096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12097     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12099     break 2
12100   fi
12101 done
12102   done
12103 IFS=$as_save_IFS
12104 
12105   ;;
12106 esac
12107 fi
12108 XARGS=$ac_cv_path_XARGS
12109 if test -n "$XARGS"; then
12110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12111 $as_echo "$XARGS" >&6; }
12112 else
12113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12114 $as_echo "no" >&6; }
12115 fi
12116 
12117 
12118   test -n "$XARGS" && break
12119 done
12120 
12121     else
12122       # If it succeeded, then it was overridden by the user. We will use it
12123       # for the tool.
12124 
12125       # First remove it from the list of overridden variables, so we can test
12126       # for unknown variables in the end.
12127       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12128 
12129       # Check if we try to supply an empty value
12130       if test "x$XARGS" = x; then
12131         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5
12132 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;}
12133         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
12134 $as_echo_n "checking for XARGS... " >&6; }
12135         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12136 $as_echo "disabled" >&6; }
12137       else
12138         # Check if the provided tool contains a complete path.
12139         tool_specified="$XARGS"
12140         tool_basename="${tool_specified##*/}"
12141         if test "x$tool_basename" = "x$tool_specified"; then
12142           # A command without a complete path is provided, search $PATH.
12143           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
12144 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
12145           # Extract the first word of "$tool_basename", so it can be a program name with args.
12146 set dummy $tool_basename; ac_word=$2
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12148 $as_echo_n "checking for $ac_word... " >&6; }
12149 if ${ac_cv_path_XARGS+:} false; then :
12150   $as_echo_n "(cached) " >&6
12151 else
12152   case $XARGS in
12153   [\\/]* | ?:[\\/]*)
12154   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
12155   ;;
12156   *)
12157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12158 for as_dir in $PATH
12159 do
12160   IFS=$as_save_IFS
12161   test -z "$as_dir" && as_dir=.
12162     for ac_exec_ext in '' $ac_executable_extensions; do
12163   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12164     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
12165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12166     break 2
12167   fi
12168 done
12169   done
12170 IFS=$as_save_IFS
12171 
12172   ;;
12173 esac
12174 fi
12175 XARGS=$ac_cv_path_XARGS
12176 if test -n "$XARGS"; then
12177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
12178 $as_echo "$XARGS" >&6; }
12179 else
12180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12181 $as_echo "no" >&6; }
12182 fi
12183 
12184 
12185           if test "x$XARGS" = x; then
12186             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12187           fi
12188         else
12189           # Otherwise we believe it is a complete path. Use it as it is.
12190           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
12191 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
12192           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
12193 $as_echo_n "checking for XARGS... " >&6; }
12194           if test ! -x "$tool_specified"; then
12195             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12196 $as_echo "not found" >&6; }
12197             as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
12198           fi
12199           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12200 $as_echo "$tool_specified" >&6; }
12201         fi
12202       fi
12203     fi
12204 
12205   fi
12206 
12207 
12208 
12209   if test "x$XARGS" = x; then
12210     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
12211   fi
12212 
12213 
12214 
12215   # Then required tools that require some special treatment.
12216 
12217 
12218   # Publish this variable in the help.
12219 
12220 
12221   if [ -z "${AWK+x}" ]; then
12222     # The variable is not set by user, try to locate tool using the code snippet
12223     for ac_prog in gawk mawk nawk awk
12224 do
12225   # Extract the first word of "$ac_prog", so it can be a program name with args.
12226 set dummy $ac_prog; ac_word=$2
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12228 $as_echo_n "checking for $ac_word... " >&6; }
12229 if ${ac_cv_prog_AWK+:} false; then :
12230   $as_echo_n "(cached) " >&6
12231 else
12232   if test -n "$AWK"; then
12233   ac_cv_prog_AWK="$AWK" # Let the user override the test.
12234 else
12235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236 for as_dir in $PATH
12237 do
12238   IFS=$as_save_IFS
12239   test -z "$as_dir" && as_dir=.
12240     for ac_exec_ext in '' $ac_executable_extensions; do
12241   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12242     ac_cv_prog_AWK="$ac_prog"
12243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12244     break 2
12245   fi
12246 done
12247   done
12248 IFS=$as_save_IFS
12249 
12250 fi
12251 fi
12252 AWK=$ac_cv_prog_AWK
12253 if test -n "$AWK"; then
12254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12255 $as_echo "$AWK" >&6; }
12256 else
12257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12258 $as_echo "no" >&6; }
12259 fi
12260 
12261 
12262   test -n "$AWK" && break
12263 done
12264 
12265   else
12266     # The variable is set, but is it from the command line or the environment?
12267 
12268     # Try to remove the string !AWK! from our list.
12269     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
12270     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12271       # If it failed, the variable was not from the command line. Ignore it,
12272       # but warn the user (except for BASH, which is always set by the calling BASH).
12273       if test "xAWK" != xBASH; then
12274         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
12275 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
12276       fi
12277       # Try to locate tool using the code snippet
12278       for ac_prog in gawk mawk nawk awk
12279 do
12280   # Extract the first word of "$ac_prog", so it can be a program name with args.
12281 set dummy $ac_prog; ac_word=$2
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12283 $as_echo_n "checking for $ac_word... " >&6; }
12284 if ${ac_cv_prog_AWK+:} false; then :
12285   $as_echo_n "(cached) " >&6
12286 else
12287   if test -n "$AWK"; then
12288   ac_cv_prog_AWK="$AWK" # Let the user override the test.
12289 else
12290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12291 for as_dir in $PATH
12292 do
12293   IFS=$as_save_IFS
12294   test -z "$as_dir" && as_dir=.
12295     for ac_exec_ext in '' $ac_executable_extensions; do
12296   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12297     ac_cv_prog_AWK="$ac_prog"
12298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12299     break 2
12300   fi
12301 done
12302   done
12303 IFS=$as_save_IFS
12304 
12305 fi
12306 fi
12307 AWK=$ac_cv_prog_AWK
12308 if test -n "$AWK"; then
12309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12310 $as_echo "$AWK" >&6; }
12311 else
12312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12313 $as_echo "no" >&6; }
12314 fi
12315 
12316 
12317   test -n "$AWK" && break
12318 done
12319 
12320     else
12321       # If it succeeded, then it was overridden by the user. We will use it
12322       # for the tool.
12323 
12324       # First remove it from the list of overridden variables, so we can test
12325       # for unknown variables in the end.
12326       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12327 
12328       # Check if we try to supply an empty value
12329       if test "x$AWK" = x; then
12330         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5
12331 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;}
12332         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
12333 $as_echo_n "checking for AWK... " >&6; }
12334         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12335 $as_echo "disabled" >&6; }
12336       else
12337         # Check if the provided tool contains a complete path.
12338         tool_specified="$AWK"
12339         tool_basename="${tool_specified##*/}"
12340         if test "x$tool_basename" = "x$tool_specified"; then
12341           # A command without a complete path is provided, search $PATH.
12342           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
12343 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
12344           # Extract the first word of "$tool_basename", so it can be a program name with args.
12345 set dummy $tool_basename; ac_word=$2
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12347 $as_echo_n "checking for $ac_word... " >&6; }
12348 if ${ac_cv_path_AWK+:} false; then :
12349   $as_echo_n "(cached) " >&6
12350 else
12351   case $AWK in
12352   [\\/]* | ?:[\\/]*)
12353   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
12354   ;;
12355   *)
12356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12357 for as_dir in $PATH
12358 do
12359   IFS=$as_save_IFS
12360   test -z "$as_dir" && as_dir=.
12361     for ac_exec_ext in '' $ac_executable_extensions; do
12362   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12363     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
12364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12365     break 2
12366   fi
12367 done
12368   done
12369 IFS=$as_save_IFS
12370 
12371   ;;
12372 esac
12373 fi
12374 AWK=$ac_cv_path_AWK
12375 if test -n "$AWK"; then
12376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12377 $as_echo "$AWK" >&6; }
12378 else
12379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12380 $as_echo "no" >&6; }
12381 fi
12382 
12383 
12384           if test "x$AWK" = x; then
12385             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12386           fi
12387         else
12388           # Otherwise we believe it is a complete path. Use it as it is.
12389           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
12390 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
12391           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
12392 $as_echo_n "checking for AWK... " >&6; }
12393           if test ! -x "$tool_specified"; then
12394             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12395 $as_echo "not found" >&6; }
12396             as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
12397           fi
12398           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12399 $as_echo "$tool_specified" >&6; }
12400         fi
12401       fi
12402     fi
12403 
12404   fi
12405 
12406 
12407   if test "x$AWK" = x; then
12408     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
12409   fi
12410 
12411 
12412 
12413 
12414   # Publish this variable in the help.
12415 
12416 
12417   if [ -z "${GREP+x}" ]; then
12418     # The variable is not set by user, try to locate tool using the code snippet
12419     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
12420 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
12421 if ${ac_cv_path_GREP+:} false; then :
12422   $as_echo_n "(cached) " >&6
12423 else
12424   if test -z "$GREP"; then
12425   ac_path_GREP_found=false
12426   # Loop through the user's path and test for each of PROGNAME-LIST
12427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12428 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12429 do
12430   IFS=$as_save_IFS
12431   test -z "$as_dir" && as_dir=.
12432     for ac_prog in grep ggrep; do
12433     for ac_exec_ext in '' $ac_executable_extensions; do
12434       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
12435       as_fn_executable_p "$ac_path_GREP" || continue
12436 # Check for GNU ac_path_GREP and select it if it is found.
12437   # Check for GNU $ac_path_GREP
12438 case `"$ac_path_GREP" --version 2>&1` in
12439 *GNU*)
12440   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
12441 *)
12442   ac_count=0
12443   $as_echo_n 0123456789 >"conftest.in"
12444   while :
12445   do
12446     cat "conftest.in" "conftest.in" >"conftest.tmp"
12447     mv "conftest.tmp" "conftest.in"
12448     cp "conftest.in" "conftest.nl"
12449     $as_echo 'GREP' >> "conftest.nl"
12450     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12451     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12452     as_fn_arith $ac_count + 1 && ac_count=$as_val
12453     if test $ac_count -gt ${ac_path_GREP_max-0}; then
12454       # Best one so far, save it but keep looking for a better one
12455       ac_cv_path_GREP="$ac_path_GREP"
12456       ac_path_GREP_max=$ac_count
12457     fi
12458     # 10*(2^10) chars as input seems more than enough
12459     test $ac_count -gt 10 && break
12460   done
12461   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12462 esac
12463 
12464       $ac_path_GREP_found && break 3
12465     done
12466   done
12467   done
12468 IFS=$as_save_IFS
12469   if test -z "$ac_cv_path_GREP"; then
12470     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12471   fi
12472 else
12473   ac_cv_path_GREP=$GREP
12474 fi
12475 
12476 fi
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
12478 $as_echo "$ac_cv_path_GREP" >&6; }
12479  GREP="$ac_cv_path_GREP"
12480 
12481 
12482   else
12483     # The variable is set, but is it from the command line or the environment?
12484 
12485     # Try to remove the string !GREP! from our list.
12486     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
12487     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12488       # If it failed, the variable was not from the command line. Ignore it,
12489       # but warn the user (except for BASH, which is always set by the calling BASH).
12490       if test "xGREP" != xBASH; then
12491         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
12492 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
12493       fi
12494       # Try to locate tool using the code snippet
12495       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
12496 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
12497 if ${ac_cv_path_GREP+:} false; then :
12498   $as_echo_n "(cached) " >&6
12499 else
12500   if test -z "$GREP"; then
12501   ac_path_GREP_found=false
12502   # Loop through the user's path and test for each of PROGNAME-LIST
12503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12504 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12505 do
12506   IFS=$as_save_IFS
12507   test -z "$as_dir" && as_dir=.
12508     for ac_prog in grep ggrep; do
12509     for ac_exec_ext in '' $ac_executable_extensions; do
12510       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
12511       as_fn_executable_p "$ac_path_GREP" || continue
12512 # Check for GNU ac_path_GREP and select it if it is found.
12513   # Check for GNU $ac_path_GREP
12514 case `"$ac_path_GREP" --version 2>&1` in
12515 *GNU*)
12516   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
12517 *)
12518   ac_count=0
12519   $as_echo_n 0123456789 >"conftest.in"
12520   while :
12521   do
12522     cat "conftest.in" "conftest.in" >"conftest.tmp"
12523     mv "conftest.tmp" "conftest.in"
12524     cp "conftest.in" "conftest.nl"
12525     $as_echo 'GREP' >> "conftest.nl"
12526     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12527     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12528     as_fn_arith $ac_count + 1 && ac_count=$as_val
12529     if test $ac_count -gt ${ac_path_GREP_max-0}; then
12530       # Best one so far, save it but keep looking for a better one
12531       ac_cv_path_GREP="$ac_path_GREP"
12532       ac_path_GREP_max=$ac_count
12533     fi
12534     # 10*(2^10) chars as input seems more than enough
12535     test $ac_count -gt 10 && break
12536   done
12537   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12538 esac
12539 
12540       $ac_path_GREP_found && break 3
12541     done
12542   done
12543   done
12544 IFS=$as_save_IFS
12545   if test -z "$ac_cv_path_GREP"; then
12546     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12547   fi
12548 else
12549   ac_cv_path_GREP=$GREP
12550 fi
12551 
12552 fi
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
12554 $as_echo "$ac_cv_path_GREP" >&6; }
12555  GREP="$ac_cv_path_GREP"
12556 
12557 
12558     else
12559       # If it succeeded, then it was overridden by the user. We will use it
12560       # for the tool.
12561 
12562       # First remove it from the list of overridden variables, so we can test
12563       # for unknown variables in the end.
12564       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12565 
12566       # Check if we try to supply an empty value
12567       if test "x$GREP" = x; then
12568         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5
12569 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;}
12570         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
12571 $as_echo_n "checking for GREP... " >&6; }
12572         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12573 $as_echo "disabled" >&6; }
12574       else
12575         # Check if the provided tool contains a complete path.
12576         tool_specified="$GREP"
12577         tool_basename="${tool_specified##*/}"
12578         if test "x$tool_basename" = "x$tool_specified"; then
12579           # A command without a complete path is provided, search $PATH.
12580           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
12581 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
12582           # Extract the first word of "$tool_basename", so it can be a program name with args.
12583 set dummy $tool_basename; ac_word=$2
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12585 $as_echo_n "checking for $ac_word... " >&6; }
12586 if ${ac_cv_path_GREP+:} false; then :
12587   $as_echo_n "(cached) " >&6
12588 else
12589   case $GREP in
12590   [\\/]* | ?:[\\/]*)
12591   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
12592   ;;
12593   *)
12594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12595 for as_dir in $PATH
12596 do
12597   IFS=$as_save_IFS
12598   test -z "$as_dir" && as_dir=.
12599     for ac_exec_ext in '' $ac_executable_extensions; do
12600   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12601     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
12602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12603     break 2
12604   fi
12605 done
12606   done
12607 IFS=$as_save_IFS
12608 
12609   ;;
12610 esac
12611 fi
12612 GREP=$ac_cv_path_GREP
12613 if test -n "$GREP"; then
12614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
12615 $as_echo "$GREP" >&6; }
12616 else
12617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12618 $as_echo "no" >&6; }
12619 fi
12620 
12621 
12622           if test "x$GREP" = x; then
12623             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12624           fi
12625         else
12626           # Otherwise we believe it is a complete path. Use it as it is.
12627           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
12628 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
12629           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
12630 $as_echo_n "checking for GREP... " >&6; }
12631           if test ! -x "$tool_specified"; then
12632             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12633 $as_echo "not found" >&6; }
12634             as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12635           fi
12636           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12637 $as_echo "$tool_specified" >&6; }
12638         fi
12639       fi
12640     fi
12641 
12642   fi
12643 
12644 
12645   if test "x$GREP" = x; then
12646     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
12647   fi
12648 
12649 
12650 
12651 
12652   # Publish this variable in the help.
12653 
12654 
12655   if [ -z "${EGREP+x}" ]; then
12656     # The variable is not set by user, try to locate tool using the code snippet
12657     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
12658 $as_echo_n "checking for egrep... " >&6; }
12659 if ${ac_cv_path_EGREP+:} false; then :
12660   $as_echo_n "(cached) " >&6
12661 else
12662   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
12663    then ac_cv_path_EGREP="$GREP -E"
12664    else
12665      if test -z "$EGREP"; then
12666   ac_path_EGREP_found=false
12667   # Loop through the user's path and test for each of PROGNAME-LIST
12668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12669 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12670 do
12671   IFS=$as_save_IFS
12672   test -z "$as_dir" && as_dir=.
12673     for ac_prog in egrep; do
12674     for ac_exec_ext in '' $ac_executable_extensions; do
12675       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
12676       as_fn_executable_p "$ac_path_EGREP" || continue
12677 # Check for GNU ac_path_EGREP and select it if it is found.
12678   # Check for GNU $ac_path_EGREP
12679 case `"$ac_path_EGREP" --version 2>&1` in
12680 *GNU*)
12681   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
12682 *)
12683   ac_count=0
12684   $as_echo_n 0123456789 >"conftest.in"
12685   while :
12686   do
12687     cat "conftest.in" "conftest.in" >"conftest.tmp"
12688     mv "conftest.tmp" "conftest.in"
12689     cp "conftest.in" "conftest.nl"
12690     $as_echo 'EGREP' >> "conftest.nl"
12691     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12692     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12693     as_fn_arith $ac_count + 1 && ac_count=$as_val
12694     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
12695       # Best one so far, save it but keep looking for a better one
12696       ac_cv_path_EGREP="$ac_path_EGREP"
12697       ac_path_EGREP_max=$ac_count
12698     fi
12699     # 10*(2^10) chars as input seems more than enough
12700     test $ac_count -gt 10 && break
12701   done
12702   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12703 esac
12704 
12705       $ac_path_EGREP_found && break 3
12706     done
12707   done
12708   done
12709 IFS=$as_save_IFS
12710   if test -z "$ac_cv_path_EGREP"; then
12711     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12712   fi
12713 else
12714   ac_cv_path_EGREP=$EGREP
12715 fi
12716 
12717    fi
12718 fi
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
12720 $as_echo "$ac_cv_path_EGREP" >&6; }
12721  EGREP="$ac_cv_path_EGREP"
12722 
12723 
12724   else
12725     # The variable is set, but is it from the command line or the environment?
12726 
12727     # Try to remove the string !EGREP! from our list.
12728     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
12729     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12730       # If it failed, the variable was not from the command line. Ignore it,
12731       # but warn the user (except for BASH, which is always set by the calling BASH).
12732       if test "xEGREP" != xBASH; then
12733         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
12734 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
12735       fi
12736       # Try to locate tool using the code snippet
12737       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
12738 $as_echo_n "checking for egrep... " >&6; }
12739 if ${ac_cv_path_EGREP+:} false; then :
12740   $as_echo_n "(cached) " >&6
12741 else
12742   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
12743    then ac_cv_path_EGREP="$GREP -E"
12744    else
12745      if test -z "$EGREP"; then
12746   ac_path_EGREP_found=false
12747   # Loop through the user's path and test for each of PROGNAME-LIST
12748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12749 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12750 do
12751   IFS=$as_save_IFS
12752   test -z "$as_dir" && as_dir=.
12753     for ac_prog in egrep; do
12754     for ac_exec_ext in '' $ac_executable_extensions; do
12755       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
12756       as_fn_executable_p "$ac_path_EGREP" || continue
12757 # Check for GNU ac_path_EGREP and select it if it is found.
12758   # Check for GNU $ac_path_EGREP
12759 case `"$ac_path_EGREP" --version 2>&1` in
12760 *GNU*)
12761   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
12762 *)
12763   ac_count=0
12764   $as_echo_n 0123456789 >"conftest.in"
12765   while :
12766   do
12767     cat "conftest.in" "conftest.in" >"conftest.tmp"
12768     mv "conftest.tmp" "conftest.in"
12769     cp "conftest.in" "conftest.nl"
12770     $as_echo 'EGREP' >> "conftest.nl"
12771     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12772     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12773     as_fn_arith $ac_count + 1 && ac_count=$as_val
12774     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
12775       # Best one so far, save it but keep looking for a better one
12776       ac_cv_path_EGREP="$ac_path_EGREP"
12777       ac_path_EGREP_max=$ac_count
12778     fi
12779     # 10*(2^10) chars as input seems more than enough
12780     test $ac_count -gt 10 && break
12781   done
12782   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12783 esac
12784 
12785       $ac_path_EGREP_found && break 3
12786     done
12787   done
12788   done
12789 IFS=$as_save_IFS
12790   if test -z "$ac_cv_path_EGREP"; then
12791     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12792   fi
12793 else
12794   ac_cv_path_EGREP=$EGREP
12795 fi
12796 
12797    fi
12798 fi
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
12800 $as_echo "$ac_cv_path_EGREP" >&6; }
12801  EGREP="$ac_cv_path_EGREP"
12802 
12803 
12804     else
12805       # If it succeeded, then it was overridden by the user. We will use it
12806       # for the tool.
12807 
12808       # First remove it from the list of overridden variables, so we can test
12809       # for unknown variables in the end.
12810       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12811 
12812       # Check if we try to supply an empty value
12813       if test "x$EGREP" = x; then
12814         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5
12815 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;}
12816         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
12817 $as_echo_n "checking for EGREP... " >&6; }
12818         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12819 $as_echo "disabled" >&6; }
12820       else
12821         # Check if the provided tool contains a complete path.
12822         tool_specified="$EGREP"
12823         tool_basename="${tool_specified##*/}"
12824         if test "x$tool_basename" = "x$tool_specified"; then
12825           # A command without a complete path is provided, search $PATH.
12826           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
12827 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
12828           # Extract the first word of "$tool_basename", so it can be a program name with args.
12829 set dummy $tool_basename; ac_word=$2
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12831 $as_echo_n "checking for $ac_word... " >&6; }
12832 if ${ac_cv_path_EGREP+:} false; then :
12833   $as_echo_n "(cached) " >&6
12834 else
12835   case $EGREP in
12836   [\\/]* | ?:[\\/]*)
12837   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
12838   ;;
12839   *)
12840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12841 for as_dir in $PATH
12842 do
12843   IFS=$as_save_IFS
12844   test -z "$as_dir" && as_dir=.
12845     for ac_exec_ext in '' $ac_executable_extensions; do
12846   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12847     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
12848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12849     break 2
12850   fi
12851 done
12852   done
12853 IFS=$as_save_IFS
12854 
12855   ;;
12856 esac
12857 fi
12858 EGREP=$ac_cv_path_EGREP
12859 if test -n "$EGREP"; then
12860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
12861 $as_echo "$EGREP" >&6; }
12862 else
12863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12864 $as_echo "no" >&6; }
12865 fi
12866 
12867 
12868           if test "x$EGREP" = x; then
12869             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12870           fi
12871         else
12872           # Otherwise we believe it is a complete path. Use it as it is.
12873           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
12874 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
12875           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
12876 $as_echo_n "checking for EGREP... " >&6; }
12877           if test ! -x "$tool_specified"; then
12878             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12879 $as_echo "not found" >&6; }
12880             as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12881           fi
12882           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12883 $as_echo "$tool_specified" >&6; }
12884         fi
12885       fi
12886     fi
12887 
12888   fi
12889 
12890 
12891   if test "x$EGREP" = x; then
12892     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
12893   fi
12894 
12895 
12896 
12897 
12898   # Publish this variable in the help.
12899 
12900 
12901   if [ -z "${FGREP+x}" ]; then
12902     # The variable is not set by user, try to locate tool using the code snippet
12903     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12904 $as_echo_n "checking for fgrep... " >&6; }
12905 if ${ac_cv_path_FGREP+:} false; then :
12906   $as_echo_n "(cached) " >&6
12907 else
12908   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12909    then ac_cv_path_FGREP="$GREP -F"
12910    else
12911      if test -z "$FGREP"; then
12912   ac_path_FGREP_found=false
12913   # Loop through the user's path and test for each of PROGNAME-LIST
12914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12915 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12916 do
12917   IFS=$as_save_IFS
12918   test -z "$as_dir" && as_dir=.
12919     for ac_prog in fgrep; do
12920     for ac_exec_ext in '' $ac_executable_extensions; do
12921       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12922       as_fn_executable_p "$ac_path_FGREP" || continue
12923 # Check for GNU ac_path_FGREP and select it if it is found.
12924   # Check for GNU $ac_path_FGREP
12925 case `"$ac_path_FGREP" --version 2>&1` in
12926 *GNU*)
12927   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12928 *)
12929   ac_count=0
12930   $as_echo_n 0123456789 >"conftest.in"
12931   while :
12932   do
12933     cat "conftest.in" "conftest.in" >"conftest.tmp"
12934     mv "conftest.tmp" "conftest.in"
12935     cp "conftest.in" "conftest.nl"
12936     $as_echo 'FGREP' >> "conftest.nl"
12937     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12938     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12939     as_fn_arith $ac_count + 1 && ac_count=$as_val
12940     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12941       # Best one so far, save it but keep looking for a better one
12942       ac_cv_path_FGREP="$ac_path_FGREP"
12943       ac_path_FGREP_max=$ac_count
12944     fi
12945     # 10*(2^10) chars as input seems more than enough
12946     test $ac_count -gt 10 && break
12947   done
12948   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12949 esac
12950 
12951       $ac_path_FGREP_found && break 3
12952     done
12953   done
12954   done
12955 IFS=$as_save_IFS
12956   if test -z "$ac_cv_path_FGREP"; then
12957     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12958   fi
12959 else
12960   ac_cv_path_FGREP=$FGREP
12961 fi
12962 
12963    fi
12964 fi
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12966 $as_echo "$ac_cv_path_FGREP" >&6; }
12967  FGREP="$ac_cv_path_FGREP"
12968 
12969 
12970   else
12971     # The variable is set, but is it from the command line or the environment?
12972 
12973     # Try to remove the string !FGREP! from our list.
12974     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
12975     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12976       # If it failed, the variable was not from the command line. Ignore it,
12977       # but warn the user (except for BASH, which is always set by the calling BASH).
12978       if test "xFGREP" != xBASH; then
12979         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
12980 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
12981       fi
12982       # Try to locate tool using the code snippet
12983       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12984 $as_echo_n "checking for fgrep... " >&6; }
12985 if ${ac_cv_path_FGREP+:} false; then :
12986   $as_echo_n "(cached) " >&6
12987 else
12988   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12989    then ac_cv_path_FGREP="$GREP -F"
12990    else
12991      if test -z "$FGREP"; then
12992   ac_path_FGREP_found=false
12993   # Loop through the user's path and test for each of PROGNAME-LIST
12994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12995 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12996 do
12997   IFS=$as_save_IFS
12998   test -z "$as_dir" && as_dir=.
12999     for ac_prog in fgrep; do
13000     for ac_exec_ext in '' $ac_executable_extensions; do
13001       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13002       as_fn_executable_p "$ac_path_FGREP" || continue
13003 # Check for GNU ac_path_FGREP and select it if it is found.
13004   # Check for GNU $ac_path_FGREP
13005 case `"$ac_path_FGREP" --version 2>&1` in
13006 *GNU*)
13007   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13008 *)
13009   ac_count=0
13010   $as_echo_n 0123456789 >"conftest.in"
13011   while :
13012   do
13013     cat "conftest.in" "conftest.in" >"conftest.tmp"
13014     mv "conftest.tmp" "conftest.in"
13015     cp "conftest.in" "conftest.nl"
13016     $as_echo 'FGREP' >> "conftest.nl"
13017     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13018     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13019     as_fn_arith $ac_count + 1 && ac_count=$as_val
13020     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13021       # Best one so far, save it but keep looking for a better one
13022       ac_cv_path_FGREP="$ac_path_FGREP"
13023       ac_path_FGREP_max=$ac_count
13024     fi
13025     # 10*(2^10) chars as input seems more than enough
13026     test $ac_count -gt 10 && break
13027   done
13028   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13029 esac
13030 
13031       $ac_path_FGREP_found && break 3
13032     done
13033   done
13034   done
13035 IFS=$as_save_IFS
13036   if test -z "$ac_cv_path_FGREP"; then
13037     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13038   fi
13039 else
13040   ac_cv_path_FGREP=$FGREP
13041 fi
13042 
13043    fi
13044 fi
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13046 $as_echo "$ac_cv_path_FGREP" >&6; }
13047  FGREP="$ac_cv_path_FGREP"
13048 
13049 
13050     else
13051       # If it succeeded, then it was overridden by the user. We will use it
13052       # for the tool.
13053 
13054       # First remove it from the list of overridden variables, so we can test
13055       # for unknown variables in the end.
13056       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13057 
13058       # Check if we try to supply an empty value
13059       if test "x$FGREP" = x; then
13060         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5
13061 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;}
13062         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
13063 $as_echo_n "checking for FGREP... " >&6; }
13064         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13065 $as_echo "disabled" >&6; }
13066       else
13067         # Check if the provided tool contains a complete path.
13068         tool_specified="$FGREP"
13069         tool_basename="${tool_specified##*/}"
13070         if test "x$tool_basename" = "x$tool_specified"; then
13071           # A command without a complete path is provided, search $PATH.
13072           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
13073 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
13074           # Extract the first word of "$tool_basename", so it can be a program name with args.
13075 set dummy $tool_basename; ac_word=$2
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13077 $as_echo_n "checking for $ac_word... " >&6; }
13078 if ${ac_cv_path_FGREP+:} false; then :
13079   $as_echo_n "(cached) " >&6
13080 else
13081   case $FGREP in
13082   [\\/]* | ?:[\\/]*)
13083   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
13084   ;;
13085   *)
13086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13087 for as_dir in $PATH
13088 do
13089   IFS=$as_save_IFS
13090   test -z "$as_dir" && as_dir=.
13091     for ac_exec_ext in '' $ac_executable_extensions; do
13092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13093     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
13094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13095     break 2
13096   fi
13097 done
13098   done
13099 IFS=$as_save_IFS
13100 
13101   ;;
13102 esac
13103 fi
13104 FGREP=$ac_cv_path_FGREP
13105 if test -n "$FGREP"; then
13106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
13107 $as_echo "$FGREP" >&6; }
13108 else
13109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13110 $as_echo "no" >&6; }
13111 fi
13112 
13113 
13114           if test "x$FGREP" = x; then
13115             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13116           fi
13117         else
13118           # Otherwise we believe it is a complete path. Use it as it is.
13119           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
13120 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
13121           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
13122 $as_echo_n "checking for FGREP... " >&6; }
13123           if test ! -x "$tool_specified"; then
13124             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13125 $as_echo "not found" >&6; }
13126             as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
13127           fi
13128           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13129 $as_echo "$tool_specified" >&6; }
13130         fi
13131       fi
13132     fi
13133 
13134   fi
13135 
13136 
13137   if test "x$FGREP" = x; then
13138     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
13139   fi
13140 
13141 
13142 
13143 
13144   # Publish this variable in the help.
13145 
13146 
13147   if [ -z "${SED+x}" ]; then
13148     # The variable is not set by user, try to locate tool using the code snippet
13149     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13150 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13151 if ${ac_cv_path_SED+:} false; then :
13152   $as_echo_n "(cached) " >&6
13153 else
13154             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13155      for ac_i in 1 2 3 4 5 6 7; do
13156        ac_script="$ac_script$as_nl$ac_script"
13157      done
13158      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13159      { ac_script=; unset ac_script;}
13160      if test -z "$SED"; then
13161   ac_path_SED_found=false
13162   # Loop through the user's path and test for each of PROGNAME-LIST
13163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13164 for as_dir in $PATH
13165 do
13166   IFS=$as_save_IFS
13167   test -z "$as_dir" && as_dir=.
13168     for ac_prog in sed gsed; do
13169     for ac_exec_ext in '' $ac_executable_extensions; do
13170       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13171       as_fn_executable_p "$ac_path_SED" || continue
13172 # Check for GNU ac_path_SED and select it if it is found.
13173   # Check for GNU $ac_path_SED
13174 case `"$ac_path_SED" --version 2>&1` in
13175 *GNU*)
13176   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13177 *)
13178   ac_count=0
13179   $as_echo_n 0123456789 >"conftest.in"
13180   while :
13181   do
13182     cat "conftest.in" "conftest.in" >"conftest.tmp"
13183     mv "conftest.tmp" "conftest.in"
13184     cp "conftest.in" "conftest.nl"
13185     $as_echo '' >> "conftest.nl"
13186     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13187     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13188     as_fn_arith $ac_count + 1 && ac_count=$as_val
13189     if test $ac_count -gt ${ac_path_SED_max-0}; then
13190       # Best one so far, save it but keep looking for a better one
13191       ac_cv_path_SED="$ac_path_SED"
13192       ac_path_SED_max=$ac_count
13193     fi
13194     # 10*(2^10) chars as input seems more than enough
13195     test $ac_count -gt 10 && break
13196   done
13197   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13198 esac
13199 
13200       $ac_path_SED_found && break 3
13201     done
13202   done
13203   done
13204 IFS=$as_save_IFS
13205   if test -z "$ac_cv_path_SED"; then
13206     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13207   fi
13208 else
13209   ac_cv_path_SED=$SED
13210 fi
13211 
13212 fi
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13214 $as_echo "$ac_cv_path_SED" >&6; }
13215  SED="$ac_cv_path_SED"
13216   rm -f conftest.sed
13217 
13218   else
13219     # The variable is set, but is it from the command line or the environment?
13220 
13221     # Try to remove the string !SED! from our list.
13222     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
13223     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13224       # If it failed, the variable was not from the command line. Ignore it,
13225       # but warn the user (except for BASH, which is always set by the calling BASH).
13226       if test "xSED" != xBASH; then
13227         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
13228 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
13229       fi
13230       # Try to locate tool using the code snippet
13231       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13232 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13233 if ${ac_cv_path_SED+:} false; then :
13234   $as_echo_n "(cached) " >&6
13235 else
13236             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13237      for ac_i in 1 2 3 4 5 6 7; do
13238        ac_script="$ac_script$as_nl$ac_script"
13239      done
13240      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13241      { ac_script=; unset ac_script;}
13242      if test -z "$SED"; then
13243   ac_path_SED_found=false
13244   # Loop through the user's path and test for each of PROGNAME-LIST
13245   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13246 for as_dir in $PATH
13247 do
13248   IFS=$as_save_IFS
13249   test -z "$as_dir" && as_dir=.
13250     for ac_prog in sed gsed; do
13251     for ac_exec_ext in '' $ac_executable_extensions; do
13252       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13253       as_fn_executable_p "$ac_path_SED" || continue
13254 # Check for GNU ac_path_SED and select it if it is found.
13255   # Check for GNU $ac_path_SED
13256 case `"$ac_path_SED" --version 2>&1` in
13257 *GNU*)
13258   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13259 *)
13260   ac_count=0
13261   $as_echo_n 0123456789 >"conftest.in"
13262   while :
13263   do
13264     cat "conftest.in" "conftest.in" >"conftest.tmp"
13265     mv "conftest.tmp" "conftest.in"
13266     cp "conftest.in" "conftest.nl"
13267     $as_echo '' >> "conftest.nl"
13268     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13269     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13270     as_fn_arith $ac_count + 1 && ac_count=$as_val
13271     if test $ac_count -gt ${ac_path_SED_max-0}; then
13272       # Best one so far, save it but keep looking for a better one
13273       ac_cv_path_SED="$ac_path_SED"
13274       ac_path_SED_max=$ac_count
13275     fi
13276     # 10*(2^10) chars as input seems more than enough
13277     test $ac_count -gt 10 && break
13278   done
13279   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13280 esac
13281 
13282       $ac_path_SED_found && break 3
13283     done
13284   done
13285   done
13286 IFS=$as_save_IFS
13287   if test -z "$ac_cv_path_SED"; then
13288     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13289   fi
13290 else
13291   ac_cv_path_SED=$SED
13292 fi
13293 
13294 fi
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13296 $as_echo "$ac_cv_path_SED" >&6; }
13297  SED="$ac_cv_path_SED"
13298   rm -f conftest.sed
13299 
13300     else
13301       # If it succeeded, then it was overridden by the user. We will use it
13302       # for the tool.
13303 
13304       # First remove it from the list of overridden variables, so we can test
13305       # for unknown variables in the end.
13306       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13307 
13308       # Check if we try to supply an empty value
13309       if test "x$SED" = x; then
13310         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5
13311 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;}
13312         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
13313 $as_echo_n "checking for SED... " >&6; }
13314         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13315 $as_echo "disabled" >&6; }
13316       else
13317         # Check if the provided tool contains a complete path.
13318         tool_specified="$SED"
13319         tool_basename="${tool_specified##*/}"
13320         if test "x$tool_basename" = "x$tool_specified"; then
13321           # A command without a complete path is provided, search $PATH.
13322           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
13323 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
13324           # Extract the first word of "$tool_basename", so it can be a program name with args.
13325 set dummy $tool_basename; ac_word=$2
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13327 $as_echo_n "checking for $ac_word... " >&6; }
13328 if ${ac_cv_path_SED+:} false; then :
13329   $as_echo_n "(cached) " >&6
13330 else
13331   case $SED in
13332   [\\/]* | ?:[\\/]*)
13333   ac_cv_path_SED="$SED" # Let the user override the test with a path.
13334   ;;
13335   *)
13336   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13337 for as_dir in $PATH
13338 do
13339   IFS=$as_save_IFS
13340   test -z "$as_dir" && as_dir=.
13341     for ac_exec_ext in '' $ac_executable_extensions; do
13342   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13343     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
13344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13345     break 2
13346   fi
13347 done
13348   done
13349 IFS=$as_save_IFS
13350 
13351   ;;
13352 esac
13353 fi
13354 SED=$ac_cv_path_SED
13355 if test -n "$SED"; then
13356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
13357 $as_echo "$SED" >&6; }
13358 else
13359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13360 $as_echo "no" >&6; }
13361 fi
13362 
13363 
13364           if test "x$SED" = x; then
13365             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13366           fi
13367         else
13368           # Otherwise we believe it is a complete path. Use it as it is.
13369           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
13370 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
13371           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
13372 $as_echo_n "checking for SED... " >&6; }
13373           if test ! -x "$tool_specified"; then
13374             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13375 $as_echo "not found" >&6; }
13376             as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
13377           fi
13378           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13379 $as_echo "$tool_specified" >&6; }
13380         fi
13381       fi
13382     fi
13383 
13384   fi
13385 
13386 
13387   if test "x$SED" = x; then
13388     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
13389   fi
13390 
13391 
13392 
13393   # Always force rm.
13394   RM="$RM -f"
13395 
13396   # pwd behaves differently on various platforms and some don't support the -L flag.
13397   # Always use the bash builtin pwd to get uniform behavior.
13398   THEPWDCMD=pwd
13399 
13400   # These are not required on all platforms
13401 
13402 
13403   # Publish this variable in the help.
13404 
13405 
13406   if [ -z "${CYGPATH+x}" ]; then
13407     # The variable is not set by user, try to locate tool using the code snippet
13408     for ac_prog in cygpath
13409 do
13410   # Extract the first word of "$ac_prog", so it can be a program name with args.
13411 set dummy $ac_prog; ac_word=$2
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13413 $as_echo_n "checking for $ac_word... " >&6; }
13414 if ${ac_cv_path_CYGPATH+:} false; then :
13415   $as_echo_n "(cached) " >&6
13416 else
13417   case $CYGPATH in
13418   [\\/]* | ?:[\\/]*)
13419   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13420   ;;
13421   *)
13422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13423 for as_dir in $PATH
13424 do
13425   IFS=$as_save_IFS
13426   test -z "$as_dir" && as_dir=.
13427     for ac_exec_ext in '' $ac_executable_extensions; do
13428   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13429     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
13430     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13431     break 2
13432   fi
13433 done
13434   done
13435 IFS=$as_save_IFS
13436 
13437   ;;
13438 esac
13439 fi
13440 CYGPATH=$ac_cv_path_CYGPATH
13441 if test -n "$CYGPATH"; then
13442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13443 $as_echo "$CYGPATH" >&6; }
13444 else
13445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13446 $as_echo "no" >&6; }
13447 fi
13448 
13449 
13450   test -n "$CYGPATH" && break
13451 done
13452 
13453   else
13454     # The variable is set, but is it from the command line or the environment?
13455 
13456     # Try to remove the string !CYGPATH! from our list.
13457     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
13458     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13459       # If it failed, the variable was not from the command line. Ignore it,
13460       # but warn the user (except for BASH, which is always set by the calling BASH).
13461       if test "xCYGPATH" != xBASH; then
13462         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
13463 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
13464       fi
13465       # Try to locate tool using the code snippet
13466       for ac_prog in cygpath
13467 do
13468   # Extract the first word of "$ac_prog", so it can be a program name with args.
13469 set dummy $ac_prog; ac_word=$2
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13471 $as_echo_n "checking for $ac_word... " >&6; }
13472 if ${ac_cv_path_CYGPATH+:} false; then :
13473   $as_echo_n "(cached) " >&6
13474 else
13475   case $CYGPATH in
13476   [\\/]* | ?:[\\/]*)
13477   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13478   ;;
13479   *)
13480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13481 for as_dir in $PATH
13482 do
13483   IFS=$as_save_IFS
13484   test -z "$as_dir" && as_dir=.
13485     for ac_exec_ext in '' $ac_executable_extensions; do
13486   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13487     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
13488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13489     break 2
13490   fi
13491 done
13492   done
13493 IFS=$as_save_IFS
13494 
13495   ;;
13496 esac
13497 fi
13498 CYGPATH=$ac_cv_path_CYGPATH
13499 if test -n "$CYGPATH"; then
13500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13501 $as_echo "$CYGPATH" >&6; }
13502 else
13503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13504 $as_echo "no" >&6; }
13505 fi
13506 
13507 
13508   test -n "$CYGPATH" && break
13509 done
13510 
13511     else
13512       # If it succeeded, then it was overridden by the user. We will use it
13513       # for the tool.
13514 
13515       # First remove it from the list of overridden variables, so we can test
13516       # for unknown variables in the end.
13517       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13518 
13519       # Check if we try to supply an empty value
13520       if test "x$CYGPATH" = x; then
13521         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5
13522 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;}
13523         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
13524 $as_echo_n "checking for CYGPATH... " >&6; }
13525         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13526 $as_echo "disabled" >&6; }
13527       else
13528         # Check if the provided tool contains a complete path.
13529         tool_specified="$CYGPATH"
13530         tool_basename="${tool_specified##*/}"
13531         if test "x$tool_basename" = "x$tool_specified"; then
13532           # A command without a complete path is provided, search $PATH.
13533           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
13534 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
13535           # Extract the first word of "$tool_basename", so it can be a program name with args.
13536 set dummy $tool_basename; ac_word=$2
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13538 $as_echo_n "checking for $ac_word... " >&6; }
13539 if ${ac_cv_path_CYGPATH+:} false; then :
13540   $as_echo_n "(cached) " >&6
13541 else
13542   case $CYGPATH in
13543   [\\/]* | ?:[\\/]*)
13544   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
13545   ;;
13546   *)
13547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13548 for as_dir in $PATH
13549 do
13550   IFS=$as_save_IFS
13551   test -z "$as_dir" && as_dir=.
13552     for ac_exec_ext in '' $ac_executable_extensions; do
13553   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13554     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
13555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13556     break 2
13557   fi
13558 done
13559   done
13560 IFS=$as_save_IFS
13561 
13562   ;;
13563 esac
13564 fi
13565 CYGPATH=$ac_cv_path_CYGPATH
13566 if test -n "$CYGPATH"; then
13567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
13568 $as_echo "$CYGPATH" >&6; }
13569 else
13570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13571 $as_echo "no" >&6; }
13572 fi
13573 
13574 
13575           if test "x$CYGPATH" = x; then
13576             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13577           fi
13578         else
13579           # Otherwise we believe it is a complete path. Use it as it is.
13580           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
13581 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
13582           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
13583 $as_echo_n "checking for CYGPATH... " >&6; }
13584           if test ! -x "$tool_specified"; then
13585             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13586 $as_echo "not found" >&6; }
13587             as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
13588           fi
13589           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13590 $as_echo "$tool_specified" >&6; }
13591         fi
13592       fi
13593     fi
13594 
13595   fi
13596 
13597 
13598 
13599 
13600   # Publish this variable in the help.
13601 
13602 
13603   if [ -z "${READLINK+x}" ]; then
13604     # The variable is not set by user, try to locate tool using the code snippet
13605     for ac_prog in greadlink readlink
13606 do
13607   # Extract the first word of "$ac_prog", so it can be a program name with args.
13608 set dummy $ac_prog; ac_word=$2
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13610 $as_echo_n "checking for $ac_word... " >&6; }
13611 if ${ac_cv_path_READLINK+:} false; then :
13612   $as_echo_n "(cached) " >&6
13613 else
13614   case $READLINK in
13615   [\\/]* | ?:[\\/]*)
13616   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
13617   ;;
13618   *)
13619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13620 for as_dir in $PATH
13621 do
13622   IFS=$as_save_IFS
13623   test -z "$as_dir" && as_dir=.
13624     for ac_exec_ext in '' $ac_executable_extensions; do
13625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13626     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
13627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13628     break 2
13629   fi
13630 done
13631   done
13632 IFS=$as_save_IFS
13633 
13634   ;;
13635 esac
13636 fi
13637 READLINK=$ac_cv_path_READLINK
13638 if test -n "$READLINK"; then
13639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
13640 $as_echo "$READLINK" >&6; }
13641 else
13642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13643 $as_echo "no" >&6; }
13644 fi
13645 
13646 
13647   test -n "$READLINK" && break
13648 done
13649 
13650   else
13651     # The variable is set, but is it from the command line or the environment?
13652 
13653     # Try to remove the string !READLINK! from our list.
13654     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
13655     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13656       # If it failed, the variable was not from the command line. Ignore it,
13657       # but warn the user (except for BASH, which is always set by the calling BASH).
13658       if test "xREADLINK" != xBASH; then
13659         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
13660 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
13661       fi
13662       # Try to locate tool using the code snippet
13663       for ac_prog in greadlink readlink
13664 do
13665   # Extract the first word of "$ac_prog", so it can be a program name with args.
13666 set dummy $ac_prog; ac_word=$2
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13668 $as_echo_n "checking for $ac_word... " >&6; }
13669 if ${ac_cv_path_READLINK+:} false; then :
13670   $as_echo_n "(cached) " >&6
13671 else
13672   case $READLINK in
13673   [\\/]* | ?:[\\/]*)
13674   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
13675   ;;
13676   *)
13677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13678 for as_dir in $PATH
13679 do
13680   IFS=$as_save_IFS
13681   test -z "$as_dir" && as_dir=.
13682     for ac_exec_ext in '' $ac_executable_extensions; do
13683   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13684     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
13685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13686     break 2
13687   fi
13688 done
13689   done
13690 IFS=$as_save_IFS
13691 
13692   ;;
13693 esac
13694 fi
13695 READLINK=$ac_cv_path_READLINK
13696 if test -n "$READLINK"; then
13697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
13698 $as_echo "$READLINK" >&6; }
13699 else
13700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13701 $as_echo "no" >&6; }
13702 fi
13703 
13704 
13705   test -n "$READLINK" && break
13706 done
13707 
13708     else
13709       # If it succeeded, then it was overridden by the user. We will use it
13710       # for the tool.
13711 
13712       # First remove it from the list of overridden variables, so we can test
13713       # for unknown variables in the end.
13714       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13715 
13716       # Check if we try to supply an empty value
13717       if test "x$READLINK" = x; then
13718         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5
13719 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;}
13720         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
13721 $as_echo_n "checking for READLINK... " >&6; }
13722         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13723 $as_echo "disabled" >&6; }
13724       else
13725         # Check if the provided tool contains a complete path.
13726         tool_specified="$READLINK"
13727         tool_basename="${tool_specified##*/}"
13728         if test "x$tool_basename" = "x$tool_specified"; then
13729           # A command without a complete path is provided, search $PATH.
13730           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
13731 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
13732           # Extract the first word of "$tool_basename", so it can be a program name with args.
13733 set dummy $tool_basename; ac_word=$2
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13735 $as_echo_n "checking for $ac_word... " >&6; }
13736 if ${ac_cv_path_READLINK+:} false; then :
13737   $as_echo_n "(cached) " >&6
13738 else
13739   case $READLINK in
13740   [\\/]* | ?:[\\/]*)
13741   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
13742   ;;
13743   *)
13744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13745 for as_dir in $PATH
13746 do
13747   IFS=$as_save_IFS
13748   test -z "$as_dir" && as_dir=.
13749     for ac_exec_ext in '' $ac_executable_extensions; do
13750   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13751     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
13752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13753     break 2
13754   fi
13755 done
13756   done
13757 IFS=$as_save_IFS
13758 
13759   ;;
13760 esac
13761 fi
13762 READLINK=$ac_cv_path_READLINK
13763 if test -n "$READLINK"; then
13764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
13765 $as_echo "$READLINK" >&6; }
13766 else
13767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13768 $as_echo "no" >&6; }
13769 fi
13770 
13771 
13772           if test "x$READLINK" = x; then
13773             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13774           fi
13775         else
13776           # Otherwise we believe it is a complete path. Use it as it is.
13777           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
13778 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
13779           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
13780 $as_echo_n "checking for READLINK... " >&6; }
13781           if test ! -x "$tool_specified"; then
13782             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13783 $as_echo "not found" >&6; }
13784             as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
13785           fi
13786           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13787 $as_echo "$tool_specified" >&6; }
13788         fi
13789       fi
13790     fi
13791 
13792   fi
13793 
13794 
13795 
13796 
13797   # Publish this variable in the help.
13798 
13799 
13800   if [ -z "${DF+x}" ]; then
13801     # The variable is not set by user, try to locate tool using the code snippet
13802     for ac_prog in df
13803 do
13804   # Extract the first word of "$ac_prog", so it can be a program name with args.
13805 set dummy $ac_prog; ac_word=$2
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13807 $as_echo_n "checking for $ac_word... " >&6; }
13808 if ${ac_cv_path_DF+:} false; then :
13809   $as_echo_n "(cached) " >&6
13810 else
13811   case $DF in
13812   [\\/]* | ?:[\\/]*)
13813   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13814   ;;
13815   *)
13816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13817 for as_dir in $PATH
13818 do
13819   IFS=$as_save_IFS
13820   test -z "$as_dir" && as_dir=.
13821     for ac_exec_ext in '' $ac_executable_extensions; do
13822   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13823     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13825     break 2
13826   fi
13827 done
13828   done
13829 IFS=$as_save_IFS
13830 
13831   ;;
13832 esac
13833 fi
13834 DF=$ac_cv_path_DF
13835 if test -n "$DF"; then
13836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13837 $as_echo "$DF" >&6; }
13838 else
13839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13840 $as_echo "no" >&6; }
13841 fi
13842 
13843 
13844   test -n "$DF" && break
13845 done
13846 
13847   else
13848     # The variable is set, but is it from the command line or the environment?
13849 
13850     # Try to remove the string !DF! from our list.
13851     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
13852     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13853       # If it failed, the variable was not from the command line. Ignore it,
13854       # but warn the user (except for BASH, which is always set by the calling BASH).
13855       if test "xDF" != xBASH; then
13856         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
13857 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
13858       fi
13859       # Try to locate tool using the code snippet
13860       for ac_prog in df
13861 do
13862   # Extract the first word of "$ac_prog", so it can be a program name with args.
13863 set dummy $ac_prog; ac_word=$2
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13865 $as_echo_n "checking for $ac_word... " >&6; }
13866 if ${ac_cv_path_DF+:} false; then :
13867   $as_echo_n "(cached) " >&6
13868 else
13869   case $DF in
13870   [\\/]* | ?:[\\/]*)
13871   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13872   ;;
13873   *)
13874   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13875 for as_dir in $PATH
13876 do
13877   IFS=$as_save_IFS
13878   test -z "$as_dir" && as_dir=.
13879     for ac_exec_ext in '' $ac_executable_extensions; do
13880   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13881     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13883     break 2
13884   fi
13885 done
13886   done
13887 IFS=$as_save_IFS
13888 
13889   ;;
13890 esac
13891 fi
13892 DF=$ac_cv_path_DF
13893 if test -n "$DF"; then
13894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13895 $as_echo "$DF" >&6; }
13896 else
13897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13898 $as_echo "no" >&6; }
13899 fi
13900 
13901 
13902   test -n "$DF" && break
13903 done
13904 
13905     else
13906       # If it succeeded, then it was overridden by the user. We will use it
13907       # for the tool.
13908 
13909       # First remove it from the list of overridden variables, so we can test
13910       # for unknown variables in the end.
13911       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13912 
13913       # Check if we try to supply an empty value
13914       if test "x$DF" = x; then
13915         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5
13916 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;}
13917         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
13918 $as_echo_n "checking for DF... " >&6; }
13919         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13920 $as_echo "disabled" >&6; }
13921       else
13922         # Check if the provided tool contains a complete path.
13923         tool_specified="$DF"
13924         tool_basename="${tool_specified##*/}"
13925         if test "x$tool_basename" = "x$tool_specified"; then
13926           # A command without a complete path is provided, search $PATH.
13927           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
13928 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
13929           # Extract the first word of "$tool_basename", so it can be a program name with args.
13930 set dummy $tool_basename; ac_word=$2
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13932 $as_echo_n "checking for $ac_word... " >&6; }
13933 if ${ac_cv_path_DF+:} false; then :
13934   $as_echo_n "(cached) " >&6
13935 else
13936   case $DF in
13937   [\\/]* | ?:[\\/]*)
13938   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13939   ;;
13940   *)
13941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13942 for as_dir in $PATH
13943 do
13944   IFS=$as_save_IFS
13945   test -z "$as_dir" && as_dir=.
13946     for ac_exec_ext in '' $ac_executable_extensions; do
13947   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13948     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13950     break 2
13951   fi
13952 done
13953   done
13954 IFS=$as_save_IFS
13955 
13956   ;;
13957 esac
13958 fi
13959 DF=$ac_cv_path_DF
13960 if test -n "$DF"; then
13961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13962 $as_echo "$DF" >&6; }
13963 else
13964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13965 $as_echo "no" >&6; }
13966 fi
13967 
13968 
13969           if test "x$DF" = x; then
13970             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13971           fi
13972         else
13973           # Otherwise we believe it is a complete path. Use it as it is.
13974           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
13975 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
13976           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
13977 $as_echo_n "checking for DF... " >&6; }
13978           if test ! -x "$tool_specified"; then
13979             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13980 $as_echo "not found" >&6; }
13981             as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
13982           fi
13983           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13984 $as_echo "$tool_specified" >&6; }
13985         fi
13986       fi
13987     fi
13988 
13989   fi
13990 
13991 
13992 
13993 
13994   # Publish this variable in the help.
13995 
13996 
13997   if [ -z "${CPIO+x}" ]; then
13998     # The variable is not set by user, try to locate tool using the code snippet
13999     for ac_prog in cpio bsdcpio
14000 do
14001   # Extract the first word of "$ac_prog", so it can be a program name with args.
14002 set dummy $ac_prog; ac_word=$2
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14004 $as_echo_n "checking for $ac_word... " >&6; }
14005 if ${ac_cv_path_CPIO+:} false; then :
14006   $as_echo_n "(cached) " >&6
14007 else
14008   case $CPIO in
14009   [\\/]* | ?:[\\/]*)
14010   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14011   ;;
14012   *)
14013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14014 for as_dir in $PATH
14015 do
14016   IFS=$as_save_IFS
14017   test -z "$as_dir" && as_dir=.
14018     for ac_exec_ext in '' $ac_executable_extensions; do
14019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14020     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14022     break 2
14023   fi
14024 done
14025   done
14026 IFS=$as_save_IFS
14027 
14028   ;;
14029 esac
14030 fi
14031 CPIO=$ac_cv_path_CPIO
14032 if test -n "$CPIO"; then
14033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14034 $as_echo "$CPIO" >&6; }
14035 else
14036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14037 $as_echo "no" >&6; }
14038 fi
14039 
14040 
14041   test -n "$CPIO" && break
14042 done
14043 
14044   else
14045     # The variable is set, but is it from the command line or the environment?
14046 
14047     # Try to remove the string !CPIO! from our list.
14048     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
14049     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14050       # If it failed, the variable was not from the command line. Ignore it,
14051       # but warn the user (except for BASH, which is always set by the calling BASH).
14052       if test "xCPIO" != xBASH; then
14053         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
14054 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
14055       fi
14056       # Try to locate tool using the code snippet
14057       for ac_prog in cpio bsdcpio
14058 do
14059   # Extract the first word of "$ac_prog", so it can be a program name with args.
14060 set dummy $ac_prog; ac_word=$2
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14062 $as_echo_n "checking for $ac_word... " >&6; }
14063 if ${ac_cv_path_CPIO+:} false; then :
14064   $as_echo_n "(cached) " >&6
14065 else
14066   case $CPIO in
14067   [\\/]* | ?:[\\/]*)
14068   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14069   ;;
14070   *)
14071   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14072 for as_dir in $PATH
14073 do
14074   IFS=$as_save_IFS
14075   test -z "$as_dir" && as_dir=.
14076     for ac_exec_ext in '' $ac_executable_extensions; do
14077   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14078     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14080     break 2
14081   fi
14082 done
14083   done
14084 IFS=$as_save_IFS
14085 
14086   ;;
14087 esac
14088 fi
14089 CPIO=$ac_cv_path_CPIO
14090 if test -n "$CPIO"; then
14091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14092 $as_echo "$CPIO" >&6; }
14093 else
14094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14095 $as_echo "no" >&6; }
14096 fi
14097 
14098 
14099   test -n "$CPIO" && break
14100 done
14101 
14102     else
14103       # If it succeeded, then it was overridden by the user. We will use it
14104       # for the tool.
14105 
14106       # First remove it from the list of overridden variables, so we can test
14107       # for unknown variables in the end.
14108       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14109 
14110       # Check if we try to supply an empty value
14111       if test "x$CPIO" = x; then
14112         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5
14113 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;}
14114         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
14115 $as_echo_n "checking for CPIO... " >&6; }
14116         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14117 $as_echo "disabled" >&6; }
14118       else
14119         # Check if the provided tool contains a complete path.
14120         tool_specified="$CPIO"
14121         tool_basename="${tool_specified##*/}"
14122         if test "x$tool_basename" = "x$tool_specified"; then
14123           # A command without a complete path is provided, search $PATH.
14124           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
14125 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
14126           # Extract the first word of "$tool_basename", so it can be a program name with args.
14127 set dummy $tool_basename; ac_word=$2
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14129 $as_echo_n "checking for $ac_word... " >&6; }
14130 if ${ac_cv_path_CPIO+:} false; then :
14131   $as_echo_n "(cached) " >&6
14132 else
14133   case $CPIO in
14134   [\\/]* | ?:[\\/]*)
14135   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
14136   ;;
14137   *)
14138   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14139 for as_dir in $PATH
14140 do
14141   IFS=$as_save_IFS
14142   test -z "$as_dir" && as_dir=.
14143     for ac_exec_ext in '' $ac_executable_extensions; do
14144   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14145     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
14146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14147     break 2
14148   fi
14149 done
14150   done
14151 IFS=$as_save_IFS
14152 
14153   ;;
14154 esac
14155 fi
14156 CPIO=$ac_cv_path_CPIO
14157 if test -n "$CPIO"; then
14158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
14159 $as_echo "$CPIO" >&6; }
14160 else
14161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14162 $as_echo "no" >&6; }
14163 fi
14164 
14165 
14166           if test "x$CPIO" = x; then
14167             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14168           fi
14169         else
14170           # Otherwise we believe it is a complete path. Use it as it is.
14171           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
14172 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
14173           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
14174 $as_echo_n "checking for CPIO... " >&6; }
14175           if test ! -x "$tool_specified"; then
14176             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14177 $as_echo "not found" >&6; }
14178             as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
14179           fi
14180           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14181 $as_echo "$tool_specified" >&6; }
14182         fi
14183       fi
14184     fi
14185 
14186   fi
14187 
14188 
14189 
14190 
14191   # Publish this variable in the help.
14192 
14193 
14194   if [ -z "${NICE+x}" ]; then
14195     # The variable is not set by user, try to locate tool using the code snippet
14196     for ac_prog in nice
14197 do
14198   # Extract the first word of "$ac_prog", so it can be a program name with args.
14199 set dummy $ac_prog; ac_word=$2
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14201 $as_echo_n "checking for $ac_word... " >&6; }
14202 if ${ac_cv_path_NICE+:} false; then :
14203   $as_echo_n "(cached) " >&6
14204 else
14205   case $NICE in
14206   [\\/]* | ?:[\\/]*)
14207   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14208   ;;
14209   *)
14210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14211 for as_dir in $PATH
14212 do
14213   IFS=$as_save_IFS
14214   test -z "$as_dir" && as_dir=.
14215     for ac_exec_ext in '' $ac_executable_extensions; do
14216   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14217     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14219     break 2
14220   fi
14221 done
14222   done
14223 IFS=$as_save_IFS
14224 
14225   ;;
14226 esac
14227 fi
14228 NICE=$ac_cv_path_NICE
14229 if test -n "$NICE"; then
14230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14231 $as_echo "$NICE" >&6; }
14232 else
14233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14234 $as_echo "no" >&6; }
14235 fi
14236 
14237 
14238   test -n "$NICE" && break
14239 done
14240 
14241   else
14242     # The variable is set, but is it from the command line or the environment?
14243 
14244     # Try to remove the string !NICE! from our list.
14245     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/}
14246     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
14247       # If it failed, the variable was not from the command line. Ignore it,
14248       # but warn the user (except for BASH, which is always set by the calling BASH).
14249       if test "xNICE" != xBASH; then
14250         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5
14251 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;}
14252       fi
14253       # Try to locate tool using the code snippet
14254       for ac_prog in nice
14255 do
14256   # Extract the first word of "$ac_prog", so it can be a program name with args.
14257 set dummy $ac_prog; ac_word=$2
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14259 $as_echo_n "checking for $ac_word... " >&6; }
14260 if ${ac_cv_path_NICE+:} false; then :
14261   $as_echo_n "(cached) " >&6
14262 else
14263   case $NICE in
14264   [\\/]* | ?:[\\/]*)
14265   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14266   ;;
14267   *)
14268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14269 for as_dir in $PATH
14270 do
14271   IFS=$as_save_IFS
14272   test -z "$as_dir" && as_dir=.
14273     for ac_exec_ext in '' $ac_executable_extensions; do
14274   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14275     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14277     break 2
14278   fi
14279 done
14280   done
14281 IFS=$as_save_IFS
14282 
14283   ;;
14284 esac
14285 fi
14286 NICE=$ac_cv_path_NICE
14287 if test -n "$NICE"; then
14288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14289 $as_echo "$NICE" >&6; }
14290 else
14291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14292 $as_echo "no" >&6; }
14293 fi
14294 
14295 
14296   test -n "$NICE" && break
14297 done
14298 
14299     else
14300       # If it succeeded, then it was overridden by the user. We will use it
14301       # for the tool.
14302 
14303       # First remove it from the list of overridden variables, so we can test
14304       # for unknown variables in the end.
14305       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
14306 
14307       # Check if we try to supply an empty value
14308       if test "x$NICE" = x; then
14309         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5
14310 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;}
14311         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
14312 $as_echo_n "checking for NICE... " >&6; }
14313         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14314 $as_echo "disabled" >&6; }
14315       else
14316         # Check if the provided tool contains a complete path.
14317         tool_specified="$NICE"
14318         tool_basename="${tool_specified##*/}"
14319         if test "x$tool_basename" = "x$tool_specified"; then
14320           # A command without a complete path is provided, search $PATH.
14321           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5
14322 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;}
14323           # Extract the first word of "$tool_basename", so it can be a program name with args.
14324 set dummy $tool_basename; ac_word=$2
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14326 $as_echo_n "checking for $ac_word... " >&6; }
14327 if ${ac_cv_path_NICE+:} false; then :
14328   $as_echo_n "(cached) " >&6
14329 else
14330   case $NICE in
14331   [\\/]* | ?:[\\/]*)
14332   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
14333   ;;
14334   *)
14335   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14336 for as_dir in $PATH
14337 do
14338   IFS=$as_save_IFS
14339   test -z "$as_dir" && as_dir=.
14340     for ac_exec_ext in '' $ac_executable_extensions; do
14341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14342     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
14343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14344     break 2
14345   fi
14346 done
14347   done
14348 IFS=$as_save_IFS
14349 
14350   ;;
14351 esac
14352 fi
14353 NICE=$ac_cv_path_NICE
14354 if test -n "$NICE"; then
14355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5
14356 $as_echo "$NICE" >&6; }
14357 else
14358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14359 $as_echo "no" >&6; }
14360 fi
14361 
14362 
14363           if test "x$NICE" = x; then
14364             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
14365           fi
14366         else
14367           # Otherwise we believe it is a complete path. Use it as it is.
14368           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5
14369 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;}
14370           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5
14371 $as_echo_n "checking for NICE... " >&6; }
14372           if test ! -x "$tool_specified"; then
14373             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14374 $as_echo "not found" >&6; }
14375             as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5
14376           fi
14377           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
14378 $as_echo "$tool_specified" >&6; }
14379         fi
14380       fi
14381     fi
14382 
14383   fi
14384 
14385 
14386 
14387 
14388 # Now we can determine OpenJDK build and target platforms. This is required to
14389 # have early on.
14390 # Make sure we can run config.sub.
14391 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
14392   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
14393 
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
14395 $as_echo_n "checking build system type... " >&6; }
14396 if ${ac_cv_build+:} false; then :
14397   $as_echo_n "(cached) " >&6
14398 else
14399   ac_build_alias=$build_alias
14400 test "x$ac_build_alias" = x &&
14401   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
14402 test "x$ac_build_alias" = x &&
14403   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
14404 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
14405   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
14406 
14407 fi
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
14409 $as_echo "$ac_cv_build" >&6; }
14410 case $ac_cv_build in
14411 *-*-*) ;;
14412 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
14413 esac
14414 build=$ac_cv_build
14415 ac_save_IFS=$IFS; IFS='-'
14416 set x $ac_cv_build
14417 shift
14418 build_cpu=$1
14419 build_vendor=$2
14420 shift; shift
14421 # Remember, the first character of IFS is used to create $*,
14422 # except with old shells:
14423 build_os=$*
14424 IFS=$ac_save_IFS
14425 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
14426 
14427 
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
14429 $as_echo_n "checking host system type... " >&6; }
14430 if ${ac_cv_host+:} false; then :
14431   $as_echo_n "(cached) " >&6
14432 else
14433   if test "x$host_alias" = x; then
14434   ac_cv_host=$ac_cv_build
14435 else
14436   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
14437     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
14438 fi
14439 
14440 fi
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
14442 $as_echo "$ac_cv_host" >&6; }
14443 case $ac_cv_host in
14444 *-*-*) ;;
14445 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
14446 esac
14447 host=$ac_cv_host
14448 ac_save_IFS=$IFS; IFS='-'
14449 set x $ac_cv_host
14450 shift
14451 host_cpu=$1
14452 host_vendor=$2
14453 shift; shift
14454 # Remember, the first character of IFS is used to create $*,
14455 # except with old shells:
14456 host_os=$*
14457 IFS=$ac_save_IFS
14458 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
14459 
14460 
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
14462 $as_echo_n "checking target system type... " >&6; }
14463 if ${ac_cv_target+:} false; then :
14464   $as_echo_n "(cached) " >&6
14465 else
14466   if test "x$target_alias" = x; then
14467   ac_cv_target=$ac_cv_host
14468 else
14469   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
14470     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
14471 fi
14472 
14473 fi
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
14475 $as_echo "$ac_cv_target" >&6; }
14476 case $ac_cv_target in
14477 *-*-*) ;;
14478 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
14479 esac
14480 target=$ac_cv_target
14481 ac_save_IFS=$IFS; IFS='-'
14482 set x $ac_cv_target
14483 shift
14484 target_cpu=$1
14485 target_vendor=$2
14486 shift; shift
14487 # Remember, the first character of IFS is used to create $*,
14488 # except with old shells:
14489 target_os=$*
14490 IFS=$ac_save_IFS
14491 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
14492 
14493 
14494 # The aliases save the names the user supplied, while $host etc.
14495 # will get canonicalized.
14496 test -n "$target_alias" &&
14497   test "$program_prefix$program_suffix$program_transform_name" = \
14498     NONENONEs,x,x, &&
14499   program_prefix=${target_alias}-
14500 
14501   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
14502   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
14503   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
14504   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
14505   # to use the configure naming style.
14506 
14507 
14508 
14509 
14510 
14511   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
14512   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
14513   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
14514   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
14515   OPENJDK_TARGET_AUTOCONF_NAME="$host"
14516   OPENJDK_BUILD_AUTOCONF_NAME="$build"
14517 
14518 
14519 
14520   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
14521 
14522   case "$build_os" in
14523     *linux*)
14524       VAR_OS=linux
14525       VAR_OS_TYPE=unix
14526       ;;
14527     *solaris*)
14528       VAR_OS=solaris
14529       VAR_OS_TYPE=unix
14530       ;;
14531     *darwin*)
14532       VAR_OS=macosx
14533       VAR_OS_TYPE=unix
14534       ;;
14535     *bsd*)
14536       VAR_OS=bsd
14537       VAR_OS_TYPE=unix
14538       ;;
14539     *cygwin*)
14540       VAR_OS=windows
14541       VAR_OS_ENV=windows.cygwin
14542       ;;
14543     *mingw*)
14544       VAR_OS=windows
14545       VAR_OS_ENV=windows.msys
14546       ;;
14547     *aix*)
14548       VAR_OS=aix
14549       VAR_OS_TYPE=unix
14550       ;;
14551     *)
14552       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
14553       ;;
14554   esac
14555 
14556 
14557   # First argument is the cpu name from the trip/quad
14558   case "$build_cpu" in
14559     x86_64)
14560       VAR_CPU=x86_64
14561       VAR_CPU_ARCH=x86
14562       VAR_CPU_BITS=64
14563       VAR_CPU_ENDIAN=little
14564       ;;
14565     i?86)
14566       VAR_CPU=x86
14567       VAR_CPU_ARCH=x86
14568       VAR_CPU_BITS=32
14569       VAR_CPU_ENDIAN=little
14570       ;;
14571     arm*)
14572       VAR_CPU=arm
14573       VAR_CPU_ARCH=arm
14574       VAR_CPU_BITS=32
14575       VAR_CPU_ENDIAN=little
14576       ;;
14577     aarch64)
14578       VAR_CPU=aarch64
14579       VAR_CPU_ARCH=aarch64
14580       VAR_CPU_BITS=64
14581       VAR_CPU_ENDIAN=little
14582       ;;
14583     powerpc)
14584       VAR_CPU=ppc
14585       VAR_CPU_ARCH=ppc
14586       VAR_CPU_BITS=32
14587       VAR_CPU_ENDIAN=big
14588       ;;
14589     powerpc64)
14590       VAR_CPU=ppc64
14591       VAR_CPU_ARCH=ppc
14592       VAR_CPU_BITS=64
14593       VAR_CPU_ENDIAN=big
14594       ;;
14595     powerpc64le)
14596       VAR_CPU=ppc64
14597       VAR_CPU_ARCH=ppc
14598       VAR_CPU_BITS=64
14599       VAR_CPU_ENDIAN=little
14600       ;;
14601     s390)
14602       VAR_CPU=s390
14603       VAR_CPU_ARCH=s390
14604       VAR_CPU_BITS=32
14605       VAR_CPU_ENDIAN=big
14606       ;;
14607     s390x)
14608       VAR_CPU=s390x
14609       VAR_CPU_ARCH=s390
14610       VAR_CPU_BITS=64
14611       VAR_CPU_ENDIAN=big
14612       ;;
14613     sparc)
14614       VAR_CPU=sparc
14615       VAR_CPU_ARCH=sparc
14616       VAR_CPU_BITS=32
14617       VAR_CPU_ENDIAN=big
14618       ;;
14619     sparcv9|sparc64)
14620       VAR_CPU=sparcv9
14621       VAR_CPU_ARCH=sparc
14622       VAR_CPU_BITS=64
14623       VAR_CPU_ENDIAN=big
14624       ;;
14625     *)
14626       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
14627       ;;
14628   esac
14629 
14630   # ..and setup our own variables. (Do this explicitely to facilitate searching)
14631   OPENJDK_BUILD_OS="$VAR_OS"
14632   if test "x$VAR_OS_TYPE" != x; then
14633     OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE"
14634   else
14635     OPENJDK_BUILD_OS_TYPE="$VAR_OS"
14636   fi
14637   if test "x$VAR_OS_ENV" != x; then
14638     OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
14639   else
14640     OPENJDK_BUILD_OS_ENV="$VAR_OS"
14641   fi
14642   OPENJDK_BUILD_CPU="$VAR_CPU"
14643   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
14644   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
14645   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
14646 
14647 
14648 
14649 
14650 
14651 
14652 
14653 
14654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
14655 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
14656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
14657 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
14658 
14659   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
14660 
14661   case "$host_os" in
14662     *linux*)
14663       VAR_OS=linux
14664       VAR_OS_TYPE=unix
14665       ;;
14666     *solaris*)
14667       VAR_OS=solaris
14668       VAR_OS_TYPE=unix
14669       ;;
14670     *darwin*)
14671       VAR_OS=macosx
14672       VAR_OS_TYPE=unix
14673       ;;
14674     *bsd*)
14675       VAR_OS=bsd
14676       VAR_OS_TYPE=unix
14677       ;;
14678     *cygwin*)
14679       VAR_OS=windows
14680       VAR_OS_ENV=windows.cygwin
14681       ;;
14682     *mingw*)
14683       VAR_OS=windows
14684       VAR_OS_ENV=windows.msys
14685       ;;
14686     *aix*)
14687       VAR_OS=aix
14688       VAR_OS_TYPE=unix
14689       ;;
14690     *)
14691       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
14692       ;;
14693   esac
14694 
14695 
14696   # First argument is the cpu name from the trip/quad
14697   case "$host_cpu" in
14698     x86_64)
14699       VAR_CPU=x86_64
14700       VAR_CPU_ARCH=x86
14701       VAR_CPU_BITS=64
14702       VAR_CPU_ENDIAN=little
14703       ;;
14704     i?86)
14705       VAR_CPU=x86
14706       VAR_CPU_ARCH=x86
14707       VAR_CPU_BITS=32
14708       VAR_CPU_ENDIAN=little
14709       ;;
14710     arm*)
14711       VAR_CPU=arm
14712       VAR_CPU_ARCH=arm
14713       VAR_CPU_BITS=32
14714       VAR_CPU_ENDIAN=little
14715       ;;
14716     aarch64)
14717       VAR_CPU=aarch64
14718       VAR_CPU_ARCH=aarch64
14719       VAR_CPU_BITS=64
14720       VAR_CPU_ENDIAN=little
14721       ;;
14722     powerpc)
14723       VAR_CPU=ppc
14724       VAR_CPU_ARCH=ppc
14725       VAR_CPU_BITS=32
14726       VAR_CPU_ENDIAN=big
14727       ;;
14728     powerpc64)
14729       VAR_CPU=ppc64
14730       VAR_CPU_ARCH=ppc
14731       VAR_CPU_BITS=64
14732       VAR_CPU_ENDIAN=big
14733       ;;
14734     powerpc64le)
14735       VAR_CPU=ppc64
14736       VAR_CPU_ARCH=ppc
14737       VAR_CPU_BITS=64
14738       VAR_CPU_ENDIAN=little
14739       ;;
14740     s390)
14741       VAR_CPU=s390
14742       VAR_CPU_ARCH=s390
14743       VAR_CPU_BITS=32
14744       VAR_CPU_ENDIAN=big
14745       ;;
14746     s390x)
14747       VAR_CPU=s390x
14748       VAR_CPU_ARCH=s390
14749       VAR_CPU_BITS=64
14750       VAR_CPU_ENDIAN=big
14751       ;;
14752     sparc)
14753       VAR_CPU=sparc
14754       VAR_CPU_ARCH=sparc
14755       VAR_CPU_BITS=32
14756       VAR_CPU_ENDIAN=big
14757       ;;
14758     sparcv9|sparc64)
14759       VAR_CPU=sparcv9
14760       VAR_CPU_ARCH=sparc
14761       VAR_CPU_BITS=64
14762       VAR_CPU_ENDIAN=big
14763       ;;
14764     *)
14765       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
14766       ;;
14767   esac
14768 
14769   # ... and setup our own variables. (Do this explicitely to facilitate searching)
14770   OPENJDK_TARGET_OS="$VAR_OS"
14771   if test "x$VAR_OS_TYPE" != x; then
14772     OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE"
14773   else
14774     OPENJDK_TARGET_OS_TYPE="$VAR_OS"
14775   fi
14776   if test "x$VAR_OS_ENV" != x; then
14777     OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
14778   else
14779     OPENJDK_TARGET_OS_ENV="$VAR_OS"
14780   fi
14781   OPENJDK_TARGET_CPU="$VAR_CPU"
14782   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
14783   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
14784   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
14785 
14786 
14787 
14788 
14789 
14790 
14791 
14792 
14793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
14794 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
14795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
14796 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
14797 
14798 
14799 
14800 # Check whether --with-target-bits was given.
14801 if test "${with_target_bits+set}" = set; then :
14802   withval=$with_target_bits;
14803 fi
14804 
14805 
14806   # We have three types of compiles:
14807   # native  == normal compilation, target system == build system
14808   # cross   == traditional cross compilation, target system != build system; special toolchain needed
14809   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
14810   #
14811   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
14812     # We're doing a proper cross-compilation
14813     COMPILE_TYPE="cross"
14814   else
14815     COMPILE_TYPE="native"
14816   fi
14817 
14818   if test "x$with_target_bits" != x; then
14819     if test "x$COMPILE_TYPE" = "xcross"; then
14820       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
14821     fi
14822 
14823     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14824       # A reduced build is requested
14825       COMPILE_TYPE="reduced"
14826       OPENJDK_TARGET_CPU_BITS=32
14827       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
14828         OPENJDK_TARGET_CPU=x86
14829       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
14830         OPENJDK_TARGET_CPU=sparc
14831       else
14832         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
14833       fi
14834     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
14835       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
14836     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
14837       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
14838 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
14839     else
14840       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
14841     fi
14842   fi
14843 
14844 
14845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
14846 $as_echo_n "checking compilation type... " >&6; }
14847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
14848 $as_echo "$COMPILE_TYPE" >&6; }
14849 
14850 
14851   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
14852     REQUIRED_OS_NAME=SunOS
14853     REQUIRED_OS_VERSION=5.10
14854   fi
14855   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
14856     REQUIRED_OS_NAME=Linux
14857     REQUIRED_OS_VERSION=2.6
14858   fi
14859   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
14860     REQUIRED_OS_NAME=Windows
14861     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
14862       REQUIRED_OS_VERSION=5.2
14863     else
14864       REQUIRED_OS_VERSION=5.1
14865     fi
14866   fi
14867   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14868     REQUIRED_OS_NAME=Darwin
14869     REQUIRED_OS_VERSION=11.2
14870   fi
14871 
14872 
14873 
14874 
14875 
14876   # Also store the legacy naming of the cpu.
14877   # Ie i586 and amd64 instead of x86 and x86_64
14878   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
14879   if test "x$OPENJDK_TARGET_CPU" = xx86; then
14880     OPENJDK_TARGET_CPU_LEGACY="i586"
14881   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14882     # On all platforms except MacOSX replace x86_64 with amd64.
14883     OPENJDK_TARGET_CPU_LEGACY="amd64"
14884   fi
14885 
14886 
14887   # And the second legacy naming of the cpu.
14888   # Ie i386 and amd64 instead of x86 and x86_64.
14889   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
14890   if test "x$OPENJDK_TARGET_CPU" = xx86; then
14891     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
14892   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14893     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
14894   fi
14895 
14896 
14897   # This is the name of the cpu (but using i386 and amd64 instead of
14898   # x86 and x86_64, respectively), preceeded by a /, to be used when
14899   # locating libraries. On macosx, it's empty, though.
14900   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
14901   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
14902     OPENJDK_TARGET_CPU_LIBDIR=""
14903   fi
14904 
14905 
14906   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
14907   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
14908   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
14909   OPENJDK_TARGET_CPU_ISADIR=""
14910   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
14911     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14912       OPENJDK_TARGET_CPU_ISADIR="/amd64"
14913     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
14914       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
14915     fi
14916   fi
14917 
14918 
14919   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
14920   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
14921   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
14922     # On linux only, we replace x86 with i386.
14923     OPENJDK_TARGET_CPU_OSARCH="i386"
14924   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14925     # On all platforms except macosx, we replace x86_64 with amd64.
14926     OPENJDK_TARGET_CPU_OSARCH="amd64"
14927   fi
14928 
14929 
14930   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
14931   if test "x$OPENJDK_TARGET_CPU" = xx86; then
14932     OPENJDK_TARGET_CPU_JLI="i386"
14933   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14934     # On all platforms except macosx, we replace x86_64 with amd64.
14935     OPENJDK_TARGET_CPU_JLI="amd64"
14936   fi
14937   # Now setup the -D flags for building libjli.
14938   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
14939   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
14940     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
14941       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
14942     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
14943       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
14944     fi
14945   fi
14946 
14947 
14948   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
14949       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
14950   else
14951       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE}
14952   fi
14953 
14954 
14955   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14956     A_LP64="LP64:="
14957     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
14958     # unpack200.exe
14959     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
14960       ADD_LP64="-D_LP64=1"
14961     fi
14962   fi
14963   LP64=$A_LP64
14964 
14965 
14966   if test "x$COMPILE_TYPE" = "xcross"; then
14967     # FIXME: ... or should this include reduced builds..?
14968     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
14969   else
14970     DEFINE_CROSS_COMPILE_ARCH=""
14971   fi
14972 
14973 
14974   # ZERO_ARCHDEF is used to enable architecture-specific code
14975   case "${OPENJDK_TARGET_CPU}" in
14976     ppc)     ZERO_ARCHDEF=PPC32 ;;
14977     ppc64)   ZERO_ARCHDEF=PPC64 ;;
14978     s390*)   ZERO_ARCHDEF=S390  ;;
14979     sparc*)  ZERO_ARCHDEF=SPARC ;;
14980     x86_64*) ZERO_ARCHDEF=AMD64 ;;
14981     x86)     ZERO_ARCHDEF=IA32  ;;
14982     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
14983   esac
14984 
14985 
14986 
14987 
14988 # Continue setting up basic stuff. Most remaining code require fundamental tools.
14989 
14990   # Save the current directory this script was started from
14991   CURDIR="$PWD"
14992 
14993   # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them
14994   # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED
14995   # was not available at that time.
14996   REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'`
14997   if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then
14998     ORIGINAL_PATH="$REWRITTEN_PATH"
14999     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5
15000 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;}
15001   fi
15002 
15003   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
15004     PATH_SEP=";"
15005 
15006   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
15007   if test $SRC_ROOT_LENGTH -gt 100; then
15008     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
15009   fi
15010 
15011   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15012     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
15013 $as_echo_n "checking cygwin release... " >&6; }
15014     CYGWIN_VERSION=`$UNAME -r`
15015     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
15016 $as_echo "$CYGWIN_VERSION" >&6; }
15017     WINDOWS_ENV_VENDOR='cygwin'
15018     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
15019 
15020     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
15021     if test "x$CYGWIN_VERSION_OLD" != x; then
15022       { $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
15023 $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;}
15024       as_fn_error $? "Cannot continue" "$LINENO" 5
15025     fi
15026     if test "x$CYGPATH" = x; then
15027       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
15028     fi
15029     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
15030 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
15031     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
15032     cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"`
15033     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
15034     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
15035     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
15036 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
15037     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
15038     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
15039     if test "x$test_cygdrive_prefix" = x; then
15040       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
15041     fi
15042   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15043     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
15044 $as_echo_n "checking msys release... " >&6; }
15045     MSYS_VERSION=`$UNAME -r`
15046     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
15047 $as_echo "$MSYS_VERSION" >&6; }
15048 
15049     WINDOWS_ENV_VENDOR='msys'
15050     WINDOWS_ENV_VERSION="$MSYS_VERSION"
15051 
15052     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
15053 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
15054     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
15055     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
15056 
15057   windows_path="$MSYS_ROOT_PATH"
15058   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15059     unix_path=`$CYGPATH -u "$windows_path"`
15060     MSYS_ROOT_PATH="$unix_path"
15061   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15062     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15063     MSYS_ROOT_PATH="$unix_path"
15064   fi
15065 
15066     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
15067 $as_echo "$MSYS_ROOT_PATH" >&6; }
15068     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
15069   else
15070     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
15071   fi
15072 
15073   # Test if windows or unix (cygwin/msys) find is first in path.
15074   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
15075 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
15076   FIND_BINARY_OUTPUT=`find --version 2>&1`
15077   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
15078     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
15079 $as_echo "unix style" >&6; }
15080   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
15081     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
15082 $as_echo "Windows" >&6; }
15083     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
15084 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
15085     { $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
15086 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
15087     as_fn_error $? "Cannot continue" "$LINENO" 5
15088   else
15089     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
15090 $as_echo "unknown" >&6; }
15091     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
15092 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
15093   fi
15094 
15095   else
15096     PATH_SEP=":"
15097   fi
15098 
15099 
15100   # We get the top-level directory from the supporting wrappers.
15101   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
15102 $as_echo_n "checking for top-level directory... " >&6; }
15103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
15104 $as_echo "$TOPDIR" >&6; }
15105 
15106 
15107   # Save the original version of TOPDIR for string comparisons
15108   ORIGINAL_TOPDIR="$TOPDIR"
15109 
15110 
15111   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
15112 
15113   # Only process if variable expands to non-empty
15114 
15115   if test "x$CURDIR" != x; then
15116     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15117 
15118   # Input might be given as Windows format, start by converting to
15119   # unix format.
15120   path="$CURDIR"
15121   new_path=`$CYGPATH -u "$path"`
15122 
15123   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15124   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15125   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15126   # "foo.exe" is OK but "foo" is an error.
15127   #
15128   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15129   # It is also a way to make sure we got the proper file name for the real test later on.
15130   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15131   if test "x$test_shortpath" = x; then
15132     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
15133 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
15134     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
15135   fi
15136 
15137   # Call helper function which possibly converts this using DOS-style short mode.
15138   # If so, the updated path is stored in $new_path.
15139 
15140   input_path="$new_path"
15141   # Check if we need to convert this using DOS-style short mode. If the path
15142   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15143   # take no chances and rewrite it.
15144   # Note: m4 eats our [], so we need to use [ and ] instead.
15145   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15146   if test "x$has_forbidden_chars" != x; then
15147     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15148     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15149     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15150     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15151       # Going to short mode and back again did indeed matter. Since short mode is
15152       # case insensitive, let's make it lowercase to improve readability.
15153       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15154       # Now convert it back to Unix-style (cygpath)
15155       input_path=`$CYGPATH -u "$shortmode_path"`
15156       new_path="$input_path"
15157     fi
15158   fi
15159 
15160   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15161   if test "x$test_cygdrive_prefix" = x; then
15162     # As a simple fix, exclude /usr/bin since it's not a real path.
15163     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15164       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15165       # a path prefixed by /cygdrive for fixpath to work.
15166       new_path="$CYGWIN_ROOT_PATH$input_path"
15167     fi
15168   fi
15169 
15170 
15171   if test "x$path" != "x$new_path"; then
15172     CURDIR="$new_path"
15173     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
15174 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
15175   fi
15176 
15177     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15178 
15179   path="$CURDIR"
15180   has_colon=`$ECHO $path | $GREP ^.:`
15181   new_path="$path"
15182   if test "x$has_colon" = x; then
15183     # Not in mixed or Windows style, start by that.
15184     new_path=`cmd //c echo $path`
15185   fi
15186 
15187 
15188   input_path="$new_path"
15189   # Check if we need to convert this using DOS-style short mode. If the path
15190   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15191   # take no chances and rewrite it.
15192   # Note: m4 eats our [], so we need to use [ and ] instead.
15193   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15194   if test "x$has_forbidden_chars" != x; then
15195     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15196     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15197   fi
15198 
15199 
15200   windows_path="$new_path"
15201   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15202     unix_path=`$CYGPATH -u "$windows_path"`
15203     new_path="$unix_path"
15204   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15205     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15206     new_path="$unix_path"
15207   fi
15208 
15209   if test "x$path" != "x$new_path"; then
15210     CURDIR="$new_path"
15211     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
15212 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
15213   fi
15214 
15215   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15216   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15217 
15218     else
15219       # We're on a unix platform. Hooray! :)
15220       path="$CURDIR"
15221       has_space=`$ECHO "$path" | $GREP " "`
15222       if test "x$has_space" != x; then
15223         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
15224 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
15225         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15226       fi
15227 
15228       # Use eval to expand a potential ~
15229       eval path="$path"
15230       if test ! -f "$path" && test ! -d "$path"; then
15231         as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
15232       fi
15233 
15234       CURDIR="`cd "$path"; $THEPWDCMD -L`"
15235     fi
15236   fi
15237 
15238 
15239   # Only process if variable expands to non-empty
15240 
15241   if test "x$TOPDIR" != x; then
15242     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15243 
15244   # Input might be given as Windows format, start by converting to
15245   # unix format.
15246   path="$TOPDIR"
15247   new_path=`$CYGPATH -u "$path"`
15248 
15249   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15250   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15251   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15252   # "foo.exe" is OK but "foo" is an error.
15253   #
15254   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15255   # It is also a way to make sure we got the proper file name for the real test later on.
15256   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15257   if test "x$test_shortpath" = x; then
15258     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
15259 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
15260     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
15261   fi
15262 
15263   # Call helper function which possibly converts this using DOS-style short mode.
15264   # If so, the updated path is stored in $new_path.
15265 
15266   input_path="$new_path"
15267   # Check if we need to convert this using DOS-style short mode. If the path
15268   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15269   # take no chances and rewrite it.
15270   # Note: m4 eats our [], so we need to use [ and ] instead.
15271   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15272   if test "x$has_forbidden_chars" != x; then
15273     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15274     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15275     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15276     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15277       # Going to short mode and back again did indeed matter. Since short mode is
15278       # case insensitive, let's make it lowercase to improve readability.
15279       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15280       # Now convert it back to Unix-style (cygpath)
15281       input_path=`$CYGPATH -u "$shortmode_path"`
15282       new_path="$input_path"
15283     fi
15284   fi
15285 
15286   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15287   if test "x$test_cygdrive_prefix" = x; then
15288     # As a simple fix, exclude /usr/bin since it's not a real path.
15289     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15290       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15291       # a path prefixed by /cygdrive for fixpath to work.
15292       new_path="$CYGWIN_ROOT_PATH$input_path"
15293     fi
15294   fi
15295 
15296 
15297   if test "x$path" != "x$new_path"; then
15298     TOPDIR="$new_path"
15299     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
15300 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
15301   fi
15302 
15303     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15304 
15305   path="$TOPDIR"
15306   has_colon=`$ECHO $path | $GREP ^.:`
15307   new_path="$path"
15308   if test "x$has_colon" = x; then
15309     # Not in mixed or Windows style, start by that.
15310     new_path=`cmd //c echo $path`
15311   fi
15312 
15313 
15314   input_path="$new_path"
15315   # Check if we need to convert this using DOS-style short mode. If the path
15316   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15317   # take no chances and rewrite it.
15318   # Note: m4 eats our [], so we need to use [ and ] instead.
15319   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15320   if test "x$has_forbidden_chars" != x; then
15321     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15322     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15323   fi
15324 
15325 
15326   windows_path="$new_path"
15327   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15328     unix_path=`$CYGPATH -u "$windows_path"`
15329     new_path="$unix_path"
15330   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15331     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15332     new_path="$unix_path"
15333   fi
15334 
15335   if test "x$path" != "x$new_path"; then
15336     TOPDIR="$new_path"
15337     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
15338 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
15339   fi
15340 
15341   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15342   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15343 
15344     else
15345       # We're on a unix platform. Hooray! :)
15346       path="$TOPDIR"
15347       has_space=`$ECHO "$path" | $GREP " "`
15348       if test "x$has_space" != x; then
15349         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
15350 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
15351         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15352       fi
15353 
15354       # Use eval to expand a potential ~
15355       eval path="$path"
15356       if test ! -f "$path" && test ! -d "$path"; then
15357         as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
15358       fi
15359 
15360       TOPDIR="`cd "$path"; $THEPWDCMD -L`"
15361     fi
15362   fi
15363 
15364   # SRC_ROOT is a traditional alias for TOPDIR.
15365   SRC_ROOT=$TOPDIR
15366 
15367   # Calculate a canonical version of TOPDIR for string comparisons
15368   CANONICAL_TOPDIR=$TOPDIR
15369 
15370   if test "x$OPENJDK_BUILD_OS" != xwindows; then
15371     # Follow a chain of symbolic links. Use readlink
15372     # where it exists, else fall back to horribly
15373     # complicated shell code.
15374     if test "x$READLINK_TESTED" != yes; then
15375       # On MacOSX there is a readlink tool with a different
15376       # purpose than the GNU readlink tool. Check the found readlink.
15377       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
15378       if test "x$ISGNU" = x; then
15379         # A readlink that we do not know how to use.
15380         # Are there other non-GNU readlinks out there?
15381         READLINK_TESTED=yes
15382         READLINK=
15383       fi
15384     fi
15385 
15386     if test "x$READLINK" != x; then
15387       CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR`
15388     else
15389       # Save the current directory for restoring afterwards
15390       STARTDIR=$PWD
15391       COUNTER=0
15392       sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR`
15393       sym_link_file=`$BASENAME $CANONICAL_TOPDIR`
15394       cd $sym_link_dir
15395       # Use -P flag to resolve symlinks in directories.
15396       cd `$THEPWDCMD -P`
15397       sym_link_dir=`$THEPWDCMD -P`
15398       # Resolve file symlinks
15399       while test $COUNTER -lt 20; do
15400         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
15401         if test "x$ISLINK" == x; then
15402           # This is not a symbolic link! We are done!
15403           break
15404         fi
15405         # Again resolve directory symlinks since the target of the just found
15406         # link could be in a different directory
15407         cd `$DIRNAME $ISLINK`
15408         sym_link_dir=`$THEPWDCMD -P`
15409         sym_link_file=`$BASENAME $ISLINK`
15410         let COUNTER=COUNTER+1
15411       done
15412       cd $STARTDIR
15413       CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file
15414     fi
15415   fi
15416 
15417 
15418 
15419   # Locate the directory of this script.
15420   AUTOCONF_DIR=$TOPDIR/common/autoconf
15421 
15422 
15423 # Check if it's a pure open build or if custom sources are to be used.
15424 
15425   # Check whether --enable-openjdk-only was given.
15426 if test "${enable_openjdk_only+set}" = set; then :
15427   enableval=$enable_openjdk_only;
15428 else
15429   enable_openjdk_only="no"
15430 fi
15431 
15432 
15433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
15434 $as_echo_n "checking for presence of closed sources... " >&6; }
15435   if test -d "$SRC_ROOT/jdk/src/closed"; then
15436     CLOSED_SOURCE_PRESENT=yes
15437   else
15438     CLOSED_SOURCE_PRESENT=no
15439   fi
15440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
15441 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
15442 
15443   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
15444 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
15445   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
15446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
15447 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
15448 
15449   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
15450     OPENJDK=true
15451     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
15452       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
15453 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
15454     fi
15455   else
15456     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
15457       OPENJDK=true
15458     else
15459       OPENJDK=false
15460     fi
15461   fi
15462 
15463   if test "x$OPENJDK" = "xtrue"; then
15464     SET_OPENJDK="OPENJDK=true"
15465   fi
15466 
15467 
15468 
15469   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
15470   # the IncludeCustomExtension macro.
15471 
15472 
15473 # Check whether --with-custom-make-dir was given.
15474 if test "${with_custom_make_dir+set}" = set; then :
15475   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
15476 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
15477 fi
15478 
15479 
15480 
15481 
15482 # These are needed to be able to create a configuration name (and thus the output directory)
15483 
15484   ###############################################################################
15485   #
15486   # Check which variant of the JDK that we want to build.
15487   # Currently we have:
15488   #    normal:   standard edition
15489   # but the custom make system may add other variants
15490   #
15491   # Effectively the JDK variant gives a name to a specific set of
15492   # modules to compile into the JDK. In the future, these modules
15493   # might even be Jigsaw modules.
15494   #
15495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
15496 $as_echo_n "checking which variant of the JDK to build... " >&6; }
15497 
15498 # Check whether --with-jdk-variant was given.
15499 if test "${with_jdk_variant+set}" = set; then :
15500   withval=$with_jdk_variant;
15501 fi
15502 
15503 
15504   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
15505     JDK_VARIANT="normal"
15506   else
15507     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
15508   fi
15509 
15510 
15511 
15512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
15513 $as_echo "$JDK_VARIANT" >&6; }
15514 
15515 
15516 ###############################################################################
15517 #
15518 # Check which interpreter of the JVM we want to build.
15519 # Currently we have:
15520 #    template: Template interpreter (the default)
15521 #    cpp     : C++ interpreter
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
15523 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
15524 
15525 # Check whether --with-jvm-interpreter was given.
15526 if test "${with_jvm_interpreter+set}" = set; then :
15527   withval=$with_jvm_interpreter;
15528 fi
15529 
15530 
15531 if test "x$with_jvm_interpreter" = x; then
15532      with_jvm_interpreter="template"
15533 fi
15534 
15535 JVM_INTERPRETER="$with_jvm_interpreter"
15536 
15537 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
15538    as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
15539 fi
15540 
15541 
15542 
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
15544 $as_echo "$with_jvm_interpreter" >&6; }
15545 
15546 
15547 
15548   ###############################################################################
15549   #
15550   # Check which variants of the JVM that we want to build.
15551   # Currently we have:
15552   #    server: normal interpreter and a tiered C1/C2 compiler
15553   #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
15554   #    minimal1: reduced form of client with optional VM services and features stripped out
15555   #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
15556   #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
15557   #    zero: no machine code interpreter, no compiler
15558   #    zeroshark: zero interpreter and shark/llvm compiler backend
15559 #    core: interpreter only, no compiler (only works on some platforms)
15560   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
15561 $as_echo_n "checking which variants of the JVM to build... " >&6; }
15562 
15563 # Check whether --with-jvm-variants was given.
15564 if test "${with_jvm_variants+set}" = set; then :
15565   withval=$with_jvm_variants;
15566 fi
15567 
15568 
15569   if test "x$with_jvm_variants" = x; then
15570     with_jvm_variants="server"
15571   fi
15572 
15573   JVM_VARIANTS=",$with_jvm_variants,"
15574   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,//'`
15575 
15576   if test "x$TEST_VARIANTS" != "x,"; then
15577      as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
15578   fi
15579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
15580 $as_echo "$with_jvm_variants" >&6; }
15581 
15582   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
15583   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
15584   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
15585   JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
15586   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
15587   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
15588   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
15589 
15590   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
15591     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15592       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
15593     fi
15594   fi
15595   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
15596     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15597       as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
15598     fi
15599   fi
15600   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
15601     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15602       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
15603     fi
15604   fi
15605 
15606   # Replace the commas with AND for use in the build directory name.
15607   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
15608   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/'`
15609   if test "x$COUNT_VARIANTS" != "x,1"; then
15610     BUILDING_MULTIPLE_JVM_VARIANTS=yes
15611   else
15612     BUILDING_MULTIPLE_JVM_VARIANTS=no
15613   fi
15614 
15615 
15616 
15617 
15618 
15619 
15620 
15621 
15622 
15623 
15624   INCLUDE_SA=true
15625   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
15626     INCLUDE_SA=false
15627   fi
15628   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
15629     INCLUDE_SA=false
15630   fi
15631   if test "x$OPENJDK_TARGET_OS" = xaix ; then
15632     INCLUDE_SA=false
15633   fi
15634   if test "x$OPENJDK_TARGET_CPU" = xaarch64; then
15635     INCLUDE_SA=false
15636   fi
15637 
15638 
15639   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
15640     MACOSX_UNIVERSAL="true"
15641   fi
15642 
15643 
15644 
15645 
15646   ###############################################################################
15647   #
15648   # Set the debug level
15649   #    release: no debug information, all optimizations, no asserts.
15650   #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
15651   #    fastdebug: debug information (-g), all optimizations, all asserts
15652   #    slowdebug: debug information (-g), no optimizations, all asserts
15653   #
15654   DEBUG_LEVEL="release"
15655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
15656 $as_echo_n "checking which debug level to use... " >&6; }
15657   # Check whether --enable-debug was given.
15658 if test "${enable_debug+set}" = set; then :
15659   enableval=$enable_debug;
15660         ENABLE_DEBUG="${enableval}"
15661         DEBUG_LEVEL="fastdebug"
15662 
15663 else
15664   ENABLE_DEBUG="no"
15665 fi
15666 
15667 
15668 
15669 # Check whether --with-debug-level was given.
15670 if test "${with_debug_level+set}" = set; then :
15671   withval=$with_debug_level;
15672         DEBUG_LEVEL="${withval}"
15673         if test "x$ENABLE_DEBUG" = xyes; then
15674           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
15675         fi
15676 
15677 fi
15678 
15679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
15680 $as_echo "$DEBUG_LEVEL" >&6; }
15681 
15682   if test "x$DEBUG_LEVEL" != xrelease && \
15683       test "x$DEBUG_LEVEL" != xoptimized && \
15684       test "x$DEBUG_LEVEL" != xfastdebug && \
15685       test "x$DEBUG_LEVEL" != xslowdebug; then
15686     as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
15687   fi
15688 
15689 
15690   ###############################################################################
15691   #
15692   # Setup legacy vars/targets and new vars to deal with different debug levels.
15693   #
15694 
15695   case $DEBUG_LEVEL in
15696     release )
15697       VARIANT="OPT"
15698       FASTDEBUG="false"
15699       DEBUG_CLASSFILES="false"
15700       BUILD_VARIANT_RELEASE=""
15701       HOTSPOT_DEBUG_LEVEL="product"
15702       HOTSPOT_EXPORT="product"
15703       ;;
15704     fastdebug )
15705       VARIANT="DBG"
15706       FASTDEBUG="true"
15707       DEBUG_CLASSFILES="true"
15708       BUILD_VARIANT_RELEASE="-fastdebug"
15709       HOTSPOT_DEBUG_LEVEL="fastdebug"
15710       HOTSPOT_EXPORT="fastdebug"
15711       ;;
15712     slowdebug )
15713       VARIANT="DBG"
15714       FASTDEBUG="false"
15715       DEBUG_CLASSFILES="true"
15716       BUILD_VARIANT_RELEASE="-debug"
15717       HOTSPOT_DEBUG_LEVEL="debug"
15718       HOTSPOT_EXPORT="debug"
15719       ;;
15720     optimized )
15721       VARIANT="OPT"
15722       FASTDEBUG="false"
15723       DEBUG_CLASSFILES="false"
15724       BUILD_VARIANT_RELEASE="-optimized"
15725       HOTSPOT_DEBUG_LEVEL="optimized"
15726       HOTSPOT_EXPORT="optimized"
15727       ;;
15728   esac
15729 
15730   # The debug level 'optimized' is a little special because it is currently only
15731   # applicable to the HotSpot build where it means to build a completely
15732   # optimized version of the VM without any debugging code (like for the
15733   # 'release' debug level which is called 'product' in the HotSpot build) but
15734   # with the exception that it can contain additional code which is otherwise
15735   # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to
15736   # test new and/or experimental features which are not intended for customer
15737   # shipment. Because these new features need to be tested and benchmarked in
15738   # real world scenarios, we want to build the containing JDK at the 'release'
15739   # debug level.
15740   if test "x$DEBUG_LEVEL" = xoptimized; then
15741     DEBUG_LEVEL="release"
15742   fi
15743 
15744   #####
15745   # Generate the legacy makefile targets for hotspot.
15746   # The hotspot api for selecting the build artifacts, really, needs to be improved.
15747   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
15748   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
15749   # But until then ...
15750   HOTSPOT_TARGET=""
15751 
15752   if test "x$JVM_VARIANT_SERVER" = xtrue; then
15753     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
15754   fi
15755 
15756   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
15757     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
15758   fi
15759 
15760   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
15761     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
15762   fi
15763 
15764   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
15765     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
15766   fi
15767 
15768   if test "x$JVM_VARIANT_ZERO" = xtrue; then
15769     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
15770   fi
15771 
15772   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
15773     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
15774   fi
15775 
15776   if test "x$JVM_VARIANT_CORE" = xtrue; then
15777     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
15778   fi
15779 
15780   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
15781 
15782   # On Macosx universal binaries are produced, but they only contain
15783   # 64 bit intel. This invalidates control of which jvms are built
15784   # from configure, but only server is valid anyway. Fix this
15785   # when hotspot makefiles are rewritten.
15786   if test "x$MACOSX_UNIVERSAL" = xtrue; then
15787     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
15788   fi
15789 
15790   #####
15791 
15792 
15793 
15794 
15795 
15796 
15797 
15798 
15799 # With basic setup done, call the custom early hook.
15800 
15801 
15802 # Check if we have devkits, extra paths or sysroot set.
15803 
15804 
15805 # Check whether --with-devkit was given.
15806 if test "${with_devkit+set}" = set; then :
15807   withval=$with_devkit;
15808 
15809   # Only process if variable expands to non-empty
15810 
15811   if test "x$with_devkit" != x; then
15812     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15813 
15814   # Input might be given as Windows format, start by converting to
15815   # unix format.
15816   path="$with_devkit"
15817   new_path=`$CYGPATH -u "$path"`
15818 
15819   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15820   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15821   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15822   # "foo.exe" is OK but "foo" is an error.
15823   #
15824   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15825   # It is also a way to make sure we got the proper file name for the real test later on.
15826   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15827   if test "x$test_shortpath" = x; then
15828     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
15829 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
15830     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
15831   fi
15832 
15833   # Call helper function which possibly converts this using DOS-style short mode.
15834   # If so, the updated path is stored in $new_path.
15835 
15836   input_path="$new_path"
15837   # Check if we need to convert this using DOS-style short mode. If the path
15838   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15839   # take no chances and rewrite it.
15840   # Note: m4 eats our [], so we need to use [ and ] instead.
15841   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15842   if test "x$has_forbidden_chars" != x; then
15843     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15844     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15845     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15846     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15847       # Going to short mode and back again did indeed matter. Since short mode is
15848       # case insensitive, let's make it lowercase to improve readability.
15849       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15850       # Now convert it back to Unix-style (cygpath)
15851       input_path=`$CYGPATH -u "$shortmode_path"`
15852       new_path="$input_path"
15853     fi
15854   fi
15855 
15856   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15857   if test "x$test_cygdrive_prefix" = x; then
15858     # As a simple fix, exclude /usr/bin since it's not a real path.
15859     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15860       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15861       # a path prefixed by /cygdrive for fixpath to work.
15862       new_path="$CYGWIN_ROOT_PATH$input_path"
15863     fi
15864   fi
15865 
15866 
15867   if test "x$path" != "x$new_path"; then
15868     with_devkit="$new_path"
15869     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
15870 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
15871   fi
15872 
15873     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15874 
15875   path="$with_devkit"
15876   has_colon=`$ECHO $path | $GREP ^.:`
15877   new_path="$path"
15878   if test "x$has_colon" = x; then
15879     # Not in mixed or Windows style, start by that.
15880     new_path=`cmd //c echo $path`
15881   fi
15882 
15883 
15884   input_path="$new_path"
15885   # Check if we need to convert this using DOS-style short mode. If the path
15886   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15887   # take no chances and rewrite it.
15888   # Note: m4 eats our [], so we need to use [ and ] instead.
15889   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15890   if test "x$has_forbidden_chars" != x; then
15891     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15892     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15893   fi
15894 
15895 
15896   windows_path="$new_path"
15897   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15898     unix_path=`$CYGPATH -u "$windows_path"`
15899     new_path="$unix_path"
15900   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15901     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15902     new_path="$unix_path"
15903   fi
15904 
15905   if test "x$path" != "x$new_path"; then
15906     with_devkit="$new_path"
15907     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
15908 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
15909   fi
15910 
15911   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15912   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15913 
15914     else
15915       # We're on a unix platform. Hooray! :)
15916       path="$with_devkit"
15917       has_space=`$ECHO "$path" | $GREP " "`
15918       if test "x$has_space" != x; then
15919         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
15920 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
15921         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15922       fi
15923 
15924       # Use eval to expand a potential ~
15925       eval path="$path"
15926       if test ! -f "$path" && test ! -d "$path"; then
15927         as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
15928       fi
15929 
15930       with_devkit="`cd "$path"; $THEPWDCMD -L`"
15931     fi
15932   fi
15933 
15934         DEVKIT_ROOT="$with_devkit"
15935         # Check for a meta data info file in the root of the devkit
15936         if test -f "$DEVKIT_ROOT/devkit.info"; then
15937           . $DEVKIT_ROOT/devkit.info
15938           # This potentially sets the following:
15939           # A descriptive name of the devkit
15940 
15941   if test "x$DEVKIT_NAME" = x; then
15942     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
15943   fi
15944 
15945           # Corresponds to --with-extra-path
15946 
15947   if test "x$DEVKIT_EXTRA_PATH" = x; then
15948     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
15949   fi
15950 
15951           # Corresponds to --with-toolchain-path
15952 
15953   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
15954     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
15955   fi
15956 
15957           # Corresponds to --with-sysroot
15958 
15959   if test "x$DEVKIT_SYSROOT" = x; then
15960     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
15961   fi
15962 
15963 
15964           # Identifies the Visual Studio version in the devkit
15965 
15966   if test "x$DEVKIT_VS_VERSION" = x; then
15967     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
15968   fi
15969 
15970           # The Visual Studio include environment variable
15971 
15972   if test "x$DEVKIT_VS_INCLUDE" = x; then
15973     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
15974   fi
15975 
15976           # The Visual Studio lib environment variable
15977 
15978   if test "x$DEVKIT_VS_LIB" = x; then
15979     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
15980   fi
15981 
15982           # Corresponds to --with-msvcr-dll
15983 
15984   if test "x$DEVKIT_MSVCR_DLL" = x; then
15985     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
15986   fi
15987 
15988           # Corresponds to --with-msvcp-dll
15989 
15990   if test "x$DEVKIT_MSVCP_DLL" = x; then
15991     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
15992   fi
15993 
15994         fi
15995 
15996         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
15997 $as_echo_n "checking for devkit... " >&6; }
15998         if test "x$DEVKIT_NAME" != x; then
15999           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
16000 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
16001         else
16002           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
16003 $as_echo "$DEVKIT_ROOT" >&6; }
16004         fi
16005 
16006 
16007   if test "x$DEVKIT_EXTRA_PATH" != x; then
16008     if test "x$EXTRA_PATH" = x; then
16009       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
16010     else
16011       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
16012     fi
16013   fi
16014 
16015 
16016         # Fallback default of just /bin if DEVKIT_PATH is not defined
16017         if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
16018           DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
16019         fi
16020 
16021   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
16022     if test "x$TOOLCHAIN_PATH" = x; then
16023       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
16024     else
16025       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
16026     fi
16027   fi
16028 
16029 
16030         # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
16031         # places for backwards compatiblity.
16032         if test "x$DEVKIT_SYSROOT" != x; then
16033           SYSROOT="$DEVKIT_SYSROOT"
16034         elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
16035           SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
16036         elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
16037           SYSROOT="$DEVKIT_ROOT/$host/sys-root"
16038         fi
16039 
16040 
16041 fi
16042 
16043 
16044   # You can force the sysroot if the sysroot encoded into the compiler tools
16045   # is not correct.
16046 
16047 # Check whether --with-sys-root was given.
16048 if test "${with_sys_root+set}" = set; then :
16049   withval=$with_sys_root; SYSROOT=$with_sys_root
16050 
16051 fi
16052 
16053 
16054 
16055 # Check whether --with-sysroot was given.
16056 if test "${with_sysroot+set}" = set; then :
16057   withval=$with_sysroot; SYSROOT=$with_sysroot
16058 
16059 fi
16060 
16061 
16062 
16063 # Check whether --with-tools-dir was given.
16064 if test "${with_tools_dir+set}" = set; then :
16065   withval=$with_tools_dir;
16066   if test "x$with_tools_dir" != x; then
16067     if test "x$TOOLCHAIN_PATH" = x; then
16068       TOOLCHAIN_PATH="$with_tools_dir"
16069     else
16070       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
16071     fi
16072   fi
16073 
16074 
16075 fi
16076 
16077 
16078 
16079 # Check whether --with-toolchain-path was given.
16080 if test "${with_toolchain_path+set}" = set; then :
16081   withval=$with_toolchain_path;
16082   if test "x$with_toolchain_path" != x; then
16083     if test "x$TOOLCHAIN_PATH" = x; then
16084       TOOLCHAIN_PATH="$with_toolchain_path"
16085     else
16086       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
16087     fi
16088   fi
16089 
16090 
16091 fi
16092 
16093 
16094 
16095 # Check whether --with-extra-path was given.
16096 if test "${with_extra_path+set}" = set; then :
16097   withval=$with_extra_path;
16098   if test "x$with_extra_path" != x; then
16099     if test "x$EXTRA_PATH" = x; then
16100       EXTRA_PATH="$with_extra_path"
16101     else
16102       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
16103     fi
16104   fi
16105 
16106 
16107 fi
16108 
16109 
16110   if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then
16111     # If a devkit has been supplied, find xcodebuild in the toolchain_path.
16112     # If not, detect if Xcode is installed by running xcodebuild -version
16113     # if no Xcode installed, xcodebuild exits with 1
16114     # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0
16115     if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then
16116       # We need to use xcodebuild in the toolchain dir provided by the user, this will
16117       # fall back on the stub binary in /usr/bin/xcodebuild
16118       # Extract the first word of "xcodebuild", so it can be a program name with args.
16119 set dummy xcodebuild; ac_word=$2
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16121 $as_echo_n "checking for $ac_word... " >&6; }
16122 if ${ac_cv_path_XCODEBUILD+:} false; then :
16123   $as_echo_n "(cached) " >&6
16124 else
16125   case $XCODEBUILD in
16126   [\\/]* | ?:[\\/]*)
16127   ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path.
16128   ;;
16129   *)
16130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16131 for as_dir in $TOOLCHAIN_PATH
16132 do
16133   IFS=$as_save_IFS
16134   test -z "$as_dir" && as_dir=.
16135     for ac_exec_ext in '' $ac_executable_extensions; do
16136   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16137     ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext"
16138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16139     break 2
16140   fi
16141 done
16142   done
16143 IFS=$as_save_IFS
16144 
16145   test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild"
16146   ;;
16147 esac
16148 fi
16149 XCODEBUILD=$ac_cv_path_XCODEBUILD
16150 if test -n "$XCODEBUILD"; then
16151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5
16152 $as_echo "$XCODEBUILD" >&6; }
16153 else
16154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16155 $as_echo "no" >&6; }
16156 fi
16157 
16158 
16159     else
16160       # this should result in SYSROOT being empty, unless --with-sysroot is provided
16161       # when only the command line tools are installed there are no SDKs, so headers
16162       # are copied into the system frameworks
16163       XCODEBUILD=
16164 
16165     fi
16166 
16167     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5
16168 $as_echo_n "checking for sdk name... " >&6; }
16169 
16170 # Check whether --with-sdk-name was given.
16171 if test "${with_sdk_name+set}" = set; then :
16172   withval=$with_sdk_name; SDKNAME=$with_sdk_name
16173 
16174 fi
16175 
16176     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5
16177 $as_echo "$SDKNAME" >&6; }
16178 
16179     # if toolchain path is specified then don't rely on system headers, they may not compile
16180     HAVE_SYSTEM_FRAMEWORK_HEADERS=0
16181     test -z "$TOOLCHAIN_PATH" && \
16182       HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?`
16183 
16184     if test -z "$SYSROOT"; then
16185       if test -n "$XCODEBUILD"; then
16186         # if we don't have system headers, use default SDK name (last resort)
16187         if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
16188           SDKNAME=${SDKNAME:-macosx}
16189         fi
16190 
16191         if test -n "$SDKNAME"; then
16192           # Call xcodebuild to determine SYSROOT
16193           SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | grep '^Path: ' | sed 's/Path: //'`
16194         fi
16195       else
16196         if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then
16197           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
16198         fi
16199       fi
16200     else
16201       # warn user if --with-sdk-name was also set
16202       if test -n "$with_sdk_name"; then
16203         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5
16204 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;}
16205       fi
16206     fi
16207 
16208     if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then
16209       # If no system framework headers, then SYSROOT must be set, or we won't build
16210       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
16211     fi
16212 
16213     # Perform a basic sanity test
16214     if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then
16215       if test -z "$SYSROOT"; then
16216         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
16217       else
16218         as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5
16219       fi
16220     fi
16221 
16222     # set SDKROOT too, Xcode tools will pick it up
16223     SDKROOT=$SYSROOT
16224 
16225   fi
16226 
16227   # Prepend the extra path to the global path
16228 
16229   if test "x$EXTRA_PATH" != x; then
16230     if test "x$PATH" = x; then
16231       PATH="$EXTRA_PATH"
16232     else
16233       PATH="$EXTRA_PATH:$PATH"
16234     fi
16235   fi
16236 
16237 
16238   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
16239     # Add extra search paths on solaris for utilities like ar and as etc...
16240     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
16241   fi
16242 
16243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
16244 $as_echo_n "checking for sysroot... " >&6; }
16245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
16246 $as_echo "$SYSROOT" >&6; }
16247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
16248 $as_echo_n "checking for toolchain path... " >&6; }
16249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
16250 $as_echo "$TOOLCHAIN_PATH" >&6; }
16251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
16252 $as_echo_n "checking for extra path... " >&6; }
16253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
16254 $as_echo "$EXTRA_PATH" >&6; }
16255 
16256 
16257 # To properly create a configuration name, we need to have the OpenJDK target
16258 # and options (variants and debug level) parsed.
16259 
16260 
16261 
16262 # Check whether --with-conf-name was given.
16263 if test "${with_conf_name+set}" = set; then :
16264   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
16265 fi
16266 
16267 
16268   # Test from where we are running configure, in or outside of src root.
16269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
16270 $as_echo_n "checking where to store configuration... " >&6; }
16271   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
16272       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
16273       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
16274     # We are running configure from the src root.
16275     # Create a default ./build/target-variant-debuglevel output root.
16276     if test "x${CONF_NAME}" = x; then
16277       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
16278 $as_echo "in default location" >&6; }
16279       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
16280     else
16281       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
16282 $as_echo "in build directory with custom name" >&6; }
16283     fi
16284     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
16285     $MKDIR -p "$OUTPUT_ROOT"
16286     if test ! -d "$OUTPUT_ROOT"; then
16287       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
16288     fi
16289   else
16290     # We are running configure from outside of the src dir.
16291     # Then use the current directory as output dir!
16292     # If configuration is situated in normal build directory, just use the build
16293     # directory name as configuration name, otherwise use the complete path.
16294     if test "x${CONF_NAME}" = x; then
16295       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
16296     fi
16297     OUTPUT_ROOT="$CURDIR"
16298     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
16299 $as_echo "in current directory" >&6; }
16300 
16301     # WARNING: This might be a bad thing to do. You need to be sure you want to
16302     # have a configuration in this directory. Do some sanity checks!
16303 
16304     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
16305       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
16306       # other files
16307       files_present=`$LS $OUTPUT_ROOT`
16308       # Configure has already touched config.log and confdefs.h in the current dir when this check
16309       # is performed.
16310       filtered_files=`$ECHO "$files_present" \
16311           | $SED -e 's/config.log//g' \
16312               -e 's/configure.log//g' \
16313               -e 's/confdefs.h//g' \
16314               -e 's/ //g' \
16315           | $TR -d '\n'`
16316       if test "x$filtered_files" != x; then
16317         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
16318 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
16319         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
16320 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
16321         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
16322 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
16323         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
16324 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
16325         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
16326 $as_echo "$as_me: seriously mess up just about everything." >&6;}
16327         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
16328 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
16329         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
16330 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
16331         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
16332       fi
16333     fi
16334   fi
16335   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
16336 $as_echo_n "checking what configuration name to use... " >&6; }
16337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
16338 $as_echo "$CONF_NAME" >&6; }
16339 
16340 
16341   # Only process if variable expands to non-empty
16342 
16343   if test "x$OUTPUT_ROOT" != x; then
16344     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16345 
16346   # Input might be given as Windows format, start by converting to
16347   # unix format.
16348   path="$OUTPUT_ROOT"
16349   new_path=`$CYGPATH -u "$path"`
16350 
16351   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16352   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16353   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16354   # "foo.exe" is OK but "foo" is an error.
16355   #
16356   # This test is therefore slightly more accurate than "test -f" to check for file precense.
16357   # It is also a way to make sure we got the proper file name for the real test later on.
16358   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16359   if test "x$test_shortpath" = x; then
16360     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
16361 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
16362     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
16363   fi
16364 
16365   # Call helper function which possibly converts this using DOS-style short mode.
16366   # If so, the updated path is stored in $new_path.
16367 
16368   input_path="$new_path"
16369   # Check if we need to convert this using DOS-style short mode. If the path
16370   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16371   # take no chances and rewrite it.
16372   # Note: m4 eats our [], so we need to use [ and ] instead.
16373   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16374   if test "x$has_forbidden_chars" != x; then
16375     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16376     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16377     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16378     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16379       # Going to short mode and back again did indeed matter. Since short mode is
16380       # case insensitive, let's make it lowercase to improve readability.
16381       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16382       # Now convert it back to Unix-style (cygpath)
16383       input_path=`$CYGPATH -u "$shortmode_path"`
16384       new_path="$input_path"
16385     fi
16386   fi
16387 
16388   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16389   if test "x$test_cygdrive_prefix" = x; then
16390     # As a simple fix, exclude /usr/bin since it's not a real path.
16391     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
16392       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16393       # a path prefixed by /cygdrive for fixpath to work.
16394       new_path="$CYGWIN_ROOT_PATH$input_path"
16395     fi
16396   fi
16397 
16398 
16399   if test "x$path" != "x$new_path"; then
16400     OUTPUT_ROOT="$new_path"
16401     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
16402 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
16403   fi
16404 
16405     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16406 
16407   path="$OUTPUT_ROOT"
16408   has_colon=`$ECHO $path | $GREP ^.:`
16409   new_path="$path"
16410   if test "x$has_colon" = x; then
16411     # Not in mixed or Windows style, start by that.
16412     new_path=`cmd //c echo $path`
16413   fi
16414 
16415 
16416   input_path="$new_path"
16417   # Check if we need to convert this using DOS-style short mode. If the path
16418   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16419   # take no chances and rewrite it.
16420   # Note: m4 eats our [], so we need to use [ and ] instead.
16421   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16422   if test "x$has_forbidden_chars" != x; then
16423     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16424     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16425   fi
16426 
16427 
16428   windows_path="$new_path"
16429   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16430     unix_path=`$CYGPATH -u "$windows_path"`
16431     new_path="$unix_path"
16432   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16433     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16434     new_path="$unix_path"
16435   fi
16436 
16437   if test "x$path" != "x$new_path"; then
16438     OUTPUT_ROOT="$new_path"
16439     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
16440 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
16441   fi
16442 
16443   # Save the first 10 bytes of this path to the storage, so fixpath can work.
16444   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16445 
16446     else
16447       # We're on a unix platform. Hooray! :)
16448       path="$OUTPUT_ROOT"
16449       has_space=`$ECHO "$path" | $GREP " "`
16450       if test "x$has_space" != x; then
16451         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
16452 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
16453         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
16454       fi
16455 
16456       # Use eval to expand a potential ~
16457       eval path="$path"
16458       if test ! -f "$path" && test ! -d "$path"; then
16459         as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
16460       fi
16461 
16462       OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
16463     fi
16464   fi
16465 
16466 
16467   CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support"
16468   $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR"
16469 
16470   SPEC=$OUTPUT_ROOT/spec.gmk
16471 
16472   CONF_NAME=$CONF_NAME
16473 
16474   OUTPUT_ROOT=$OUTPUT_ROOT
16475 
16476 
16477 
16478   # The spec.gmk file contains all variables for the make system.
16479   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
16480 
16481   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
16482   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
16483 
16484   # The bootcycle-spec.gmk file contains support for boot cycle builds.
16485   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
16486 
16487   # The compare.sh is used to compare the build output to other builds.
16488   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
16489 
16490   # The generated Makefile knows where the spec.gmk is and where the source is.
16491   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
16492   # which will look for generated configurations
16493   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
16494 
16495 
16496 
16497 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
16498 
16499   for ac_prog in apt-get yum port pkgutil pkgadd
16500 do
16501   # Extract the first word of "$ac_prog", so it can be a program name with args.
16502 set dummy $ac_prog; ac_word=$2
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16504 $as_echo_n "checking for $ac_word... " >&6; }
16505 if ${ac_cv_prog_PKGHANDLER+:} false; then :
16506   $as_echo_n "(cached) " >&6
16507 else
16508   if test -n "$PKGHANDLER"; then
16509   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
16510 else
16511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16512 for as_dir in $PATH
16513 do
16514   IFS=$as_save_IFS
16515   test -z "$as_dir" && as_dir=.
16516     for ac_exec_ext in '' $ac_executable_extensions; do
16517   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16518     ac_cv_prog_PKGHANDLER="$ac_prog"
16519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16520     break 2
16521   fi
16522 done
16523   done
16524 IFS=$as_save_IFS
16525 
16526 fi
16527 fi
16528 PKGHANDLER=$ac_cv_prog_PKGHANDLER
16529 if test -n "$PKGHANDLER"; then
16530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
16531 $as_echo "$PKGHANDLER" >&6; }
16532 else
16533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16534 $as_echo "no" >&6; }
16535 fi
16536 
16537 
16538   test -n "$PKGHANDLER" && break
16539 done
16540 
16541 
16542 
16543 # Setup tools that requires more complex handling, or that is not needed by the configure script.
16544 
16545 
16546 
16547   # Publish this variable in the help.
16548 
16549 
16550   if [ -z "${MAKE+x}" ]; then
16551     # The variable is not set by user, try to locate tool using the code snippet
16552 
16553     # Try our hardest to locate a correct version of GNU make
16554     for ac_prog in gmake
16555 do
16556   # Extract the first word of "$ac_prog", so it can be a program name with args.
16557 set dummy $ac_prog; ac_word=$2
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16559 $as_echo_n "checking for $ac_word... " >&6; }
16560 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
16561   $as_echo_n "(cached) " >&6
16562 else
16563   case $CHECK_GMAKE in
16564   [\\/]* | ?:[\\/]*)
16565   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
16566   ;;
16567   *)
16568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16569 for as_dir in $PATH
16570 do
16571   IFS=$as_save_IFS
16572   test -z "$as_dir" && as_dir=.
16573     for ac_exec_ext in '' $ac_executable_extensions; do
16574   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16575     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
16576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16577     break 2
16578   fi
16579 done
16580   done
16581 IFS=$as_save_IFS
16582 
16583   ;;
16584 esac
16585 fi
16586 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
16587 if test -n "$CHECK_GMAKE"; then
16588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
16589 $as_echo "$CHECK_GMAKE" >&6; }
16590 else
16591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16592 $as_echo "no" >&6; }
16593 fi
16594 
16595 
16596   test -n "$CHECK_GMAKE" && break
16597 done
16598 
16599 
16600   MAKE_CANDIDATE=""$CHECK_GMAKE""
16601   DESCRIPTION="gmake in PATH"
16602 
16603   # On Cygwin, we require a newer version of make than on other platforms
16604   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16605     MAKE_VERSION_EXPR="-e 4\."
16606     MAKE_REQUIRED_VERSION="4.0"
16607    else
16608     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
16609     MAKE_REQUIRED_VERSION="3.81"
16610   fi
16611 
16612   if test "x$MAKE_CANDIDATE" != x; then
16613     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16614 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16615     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16616     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16617     if test "x$IS_GNU_MAKE" = x; then
16618       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16619 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16620     else
16621       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
16622       if test "x$IS_MODERN_MAKE" = x; then
16623         { $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
16624 $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;}
16625       else
16626         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16627           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16628             MAKE_EXPECTED_ENV='cygwin'
16629           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16630             MAKE_EXPECTED_ENV='msys'
16631           else
16632             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16633           fi
16634           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16635           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16636         else
16637           # Not relevant for non-Windows
16638           IS_MAKE_CORRECT_ENV=true
16639         fi
16640         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16641           { $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
16642 $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;}
16643         else
16644           FOUND_MAKE=$MAKE_CANDIDATE
16645 
16646   # Only process if variable expands to non-empty
16647 
16648   if test "x$FOUND_MAKE" != x; then
16649     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16650 
16651   # First separate the path from the arguments. This will split at the first
16652   # space.
16653   complete="$FOUND_MAKE"
16654   path="${complete%% *}"
16655   tmp="$complete EOL"
16656   arguments="${tmp#* }"
16657 
16658   # Input might be given as Windows format, start by converting to
16659   # unix format.
16660   new_path=`$CYGPATH -u "$path"`
16661 
16662   # Now try to locate executable using which
16663   new_path=`$WHICH "$new_path" 2> /dev/null`
16664   # bat and cmd files are not always considered executable in cygwin causing which
16665   # to not find them
16666   if test "x$new_path" = x \
16667       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16668       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16669     new_path=`$CYGPATH -u "$path"`
16670   fi
16671   if test "x$new_path" = x; then
16672     # Oops. Which didn't find the executable.
16673     # The splitting of arguments from the executable at a space might have been incorrect,
16674     # since paths with space are more likely in Windows. Give it another try with the whole
16675     # argument.
16676     path="$complete"
16677     arguments="EOL"
16678     new_path=`$CYGPATH -u "$path"`
16679     new_path=`$WHICH "$new_path" 2> /dev/null`
16680     # bat and cmd files are not always considered executable in cygwin causing which
16681     # to not find them
16682     if test "x$new_path" = x \
16683         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16684         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16685       new_path=`$CYGPATH -u "$path"`
16686     fi
16687     if test "x$new_path" = x; then
16688       # It's still not found. Now this is an unrecoverable error.
16689       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16690 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16691       has_space=`$ECHO "$complete" | $GREP " "`
16692       if test "x$has_space" != x; then
16693         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16694 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16695       fi
16696       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16697     fi
16698   fi
16699 
16700   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16701   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16702   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16703   # "foo.exe" is OK but "foo" is an error.
16704   #
16705   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16706   # It is also a way to make sure we got the proper file name for the real test later on.
16707   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16708   if test "x$test_shortpath" = x; then
16709     # Short path failed, file does not exist as specified.
16710     # Try adding .exe or .cmd
16711     if test -f "${new_path}.exe"; then
16712       input_to_shortpath="${new_path}.exe"
16713     elif test -f "${new_path}.cmd"; then
16714       input_to_shortpath="${new_path}.cmd"
16715     else
16716       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16717 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16718       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16719 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16720       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16721     fi
16722   else
16723     input_to_shortpath="$new_path"
16724   fi
16725 
16726   # Call helper function which possibly converts this using DOS-style short mode.
16727   # If so, the updated path is stored in $new_path.
16728   new_path="$input_to_shortpath"
16729 
16730   input_path="$input_to_shortpath"
16731   # Check if we need to convert this using DOS-style short mode. If the path
16732   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16733   # take no chances and rewrite it.
16734   # Note: m4 eats our [], so we need to use [ and ] instead.
16735   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16736   if test "x$has_forbidden_chars" != x; then
16737     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16738     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16739     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16740     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16741       # Going to short mode and back again did indeed matter. Since short mode is
16742       # case insensitive, let's make it lowercase to improve readability.
16743       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16744       # Now convert it back to Unix-style (cygpath)
16745       input_path=`$CYGPATH -u "$shortmode_path"`
16746       new_path="$input_path"
16747     fi
16748   fi
16749 
16750   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16751   if test "x$test_cygdrive_prefix" = x; then
16752     # As a simple fix, exclude /usr/bin since it's not a real path.
16753     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16754       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16755       # a path prefixed by /cygdrive for fixpath to work.
16756       new_path="$CYGWIN_ROOT_PATH$input_path"
16757     fi
16758   fi
16759 
16760   # remove trailing .exe if any
16761   new_path="${new_path/%.exe/}"
16762 
16763     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16764 
16765   # First separate the path from the arguments. This will split at the first
16766   # space.
16767   complete="$FOUND_MAKE"
16768   path="${complete%% *}"
16769   tmp="$complete EOL"
16770   arguments="${tmp#* }"
16771 
16772   # Input might be given as Windows format, start by converting to
16773   # unix format.
16774   new_path="$path"
16775 
16776   windows_path="$new_path"
16777   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16778     unix_path=`$CYGPATH -u "$windows_path"`
16779     new_path="$unix_path"
16780   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16781     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16782     new_path="$unix_path"
16783   fi
16784 
16785 
16786   # Now try to locate executable using which
16787   new_path=`$WHICH "$new_path" 2> /dev/null`
16788 
16789   if test "x$new_path" = x; then
16790     # Oops. Which didn't find the executable.
16791     # The splitting of arguments from the executable at a space might have been incorrect,
16792     # since paths with space are more likely in Windows. Give it another try with the whole
16793     # argument.
16794     path="$complete"
16795     arguments="EOL"
16796     new_path="$path"
16797 
16798   windows_path="$new_path"
16799   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16800     unix_path=`$CYGPATH -u "$windows_path"`
16801     new_path="$unix_path"
16802   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16803     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16804     new_path="$unix_path"
16805   fi
16806 
16807 
16808     new_path=`$WHICH "$new_path" 2> /dev/null`
16809     # bat and cmd files are not always considered executable in MSYS causing which
16810     # to not find them
16811     if test "x$new_path" = x \
16812         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16813         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16814       new_path="$path"
16815 
16816   windows_path="$new_path"
16817   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16818     unix_path=`$CYGPATH -u "$windows_path"`
16819     new_path="$unix_path"
16820   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16821     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16822     new_path="$unix_path"
16823   fi
16824 
16825     fi
16826 
16827     if test "x$new_path" = x; then
16828       # It's still not found. Now this is an unrecoverable error.
16829       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16830 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16831       has_space=`$ECHO "$complete" | $GREP " "`
16832       if test "x$has_space" != x; then
16833         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16834 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16835       fi
16836       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16837     fi
16838   fi
16839 
16840   # Now new_path has a complete unix path to the binary
16841   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16842     # Keep paths in /bin as-is, but remove trailing .exe if any
16843     new_path="${new_path/%.exe/}"
16844     # Do not save /bin paths to all_fixpath_prefixes!
16845   else
16846     # Not in mixed or Windows style, start by that.
16847     new_path=`cmd //c echo $new_path`
16848 
16849   input_path="$new_path"
16850   # Check if we need to convert this using DOS-style short mode. If the path
16851   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16852   # take no chances and rewrite it.
16853   # Note: m4 eats our [], so we need to use [ and ] instead.
16854   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16855   if test "x$has_forbidden_chars" != x; then
16856     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16857     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16858   fi
16859 
16860     # Output is in $new_path
16861 
16862   windows_path="$new_path"
16863   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16864     unix_path=`$CYGPATH -u "$windows_path"`
16865     new_path="$unix_path"
16866   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16867     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16868     new_path="$unix_path"
16869   fi
16870 
16871     # remove trailing .exe if any
16872     new_path="${new_path/%.exe/}"
16873 
16874     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16875     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16876   fi
16877 
16878     else
16879       # We're on a unix platform. Hooray! :)
16880       # First separate the path from the arguments. This will split at the first
16881       # space.
16882       complete="$FOUND_MAKE"
16883       path="${complete%% *}"
16884       tmp="$complete EOL"
16885       arguments="${tmp#* }"
16886 
16887       # Cannot rely on the command "which" here since it doesn't always work.
16888       is_absolute_path=`$ECHO "$path" | $GREP ^/`
16889       if test -z "$is_absolute_path"; then
16890         # Path to executable is not absolute. Find it.
16891         IFS_save="$IFS"
16892         IFS=:
16893         for p in $PATH; do
16894           if test -f "$p/$path" && test -x "$p/$path"; then
16895             new_path="$p/$path"
16896             break
16897           fi
16898         done
16899         IFS="$IFS_save"
16900       else
16901         # This is an absolute path, we can use it without further modifications.
16902         new_path="$path"
16903       fi
16904 
16905       if test "x$new_path" = x; then
16906         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16907 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16908         has_space=`$ECHO "$complete" | $GREP " "`
16909         if test "x$has_space" != x; then
16910           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16911 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16912         fi
16913         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16914       fi
16915     fi
16916 
16917     # Now join together the path and the arguments once again
16918     if test "x$arguments" != xEOL; then
16919       new_complete="$new_path ${arguments% *}"
16920     else
16921       new_complete="$new_path"
16922     fi
16923 
16924     if test "x$complete" != "x$new_complete"; then
16925       FOUND_MAKE="$new_complete"
16926       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16927 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16928     fi
16929   fi
16930 
16931         fi
16932       fi
16933     fi
16934   fi
16935 
16936 
16937     if test "x$FOUND_MAKE" = x; then
16938       for ac_prog in make
16939 do
16940   # Extract the first word of "$ac_prog", so it can be a program name with args.
16941 set dummy $ac_prog; ac_word=$2
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16943 $as_echo_n "checking for $ac_word... " >&6; }
16944 if ${ac_cv_path_CHECK_MAKE+:} false; then :
16945   $as_echo_n "(cached) " >&6
16946 else
16947   case $CHECK_MAKE in
16948   [\\/]* | ?:[\\/]*)
16949   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
16950   ;;
16951   *)
16952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16953 for as_dir in $PATH
16954 do
16955   IFS=$as_save_IFS
16956   test -z "$as_dir" && as_dir=.
16957     for ac_exec_ext in '' $ac_executable_extensions; do
16958   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16959     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
16960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16961     break 2
16962   fi
16963 done
16964   done
16965 IFS=$as_save_IFS
16966 
16967   ;;
16968 esac
16969 fi
16970 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
16971 if test -n "$CHECK_MAKE"; then
16972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
16973 $as_echo "$CHECK_MAKE" >&6; }
16974 else
16975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16976 $as_echo "no" >&6; }
16977 fi
16978 
16979 
16980   test -n "$CHECK_MAKE" && break
16981 done
16982 
16983 
16984   MAKE_CANDIDATE=""$CHECK_MAKE""
16985   DESCRIPTION="make in PATH"
16986 
16987   # On Cygwin, we require a newer version of make than on other platforms
16988   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16989     MAKE_VERSION_EXPR="-e 4\."
16990     MAKE_REQUIRED_VERSION="4.0"
16991    else
16992     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
16993     MAKE_REQUIRED_VERSION="3.81"
16994   fi
16995 
16996   if test "x$MAKE_CANDIDATE" != x; then
16997     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16998 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16999     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17000     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17001     if test "x$IS_GNU_MAKE" = x; then
17002       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17003 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17004     else
17005       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17006       if test "x$IS_MODERN_MAKE" = x; then
17007         { $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
17008 $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;}
17009       else
17010         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17011           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17012             MAKE_EXPECTED_ENV='cygwin'
17013           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17014             MAKE_EXPECTED_ENV='msys'
17015           else
17016             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17017           fi
17018           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17019           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17020         else
17021           # Not relevant for non-Windows
17022           IS_MAKE_CORRECT_ENV=true
17023         fi
17024         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17025           { $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
17026 $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;}
17027         else
17028           FOUND_MAKE=$MAKE_CANDIDATE
17029 
17030   # Only process if variable expands to non-empty
17031 
17032   if test "x$FOUND_MAKE" != x; then
17033     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17034 
17035   # First separate the path from the arguments. This will split at the first
17036   # space.
17037   complete="$FOUND_MAKE"
17038   path="${complete%% *}"
17039   tmp="$complete EOL"
17040   arguments="${tmp#* }"
17041 
17042   # Input might be given as Windows format, start by converting to
17043   # unix format.
17044   new_path=`$CYGPATH -u "$path"`
17045 
17046   # Now try to locate executable using which
17047   new_path=`$WHICH "$new_path" 2> /dev/null`
17048   # bat and cmd files are not always considered executable in cygwin causing which
17049   # to not find them
17050   if test "x$new_path" = x \
17051       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17052       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17053     new_path=`$CYGPATH -u "$path"`
17054   fi
17055   if test "x$new_path" = x; then
17056     # Oops. Which didn't find the executable.
17057     # The splitting of arguments from the executable at a space might have been incorrect,
17058     # since paths with space are more likely in Windows. Give it another try with the whole
17059     # argument.
17060     path="$complete"
17061     arguments="EOL"
17062     new_path=`$CYGPATH -u "$path"`
17063     new_path=`$WHICH "$new_path" 2> /dev/null`
17064     # bat and cmd files are not always considered executable in cygwin causing which
17065     # to not find them
17066     if test "x$new_path" = x \
17067         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17068         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17069       new_path=`$CYGPATH -u "$path"`
17070     fi
17071     if test "x$new_path" = x; then
17072       # It's still not found. Now this is an unrecoverable error.
17073       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17074 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17075       has_space=`$ECHO "$complete" | $GREP " "`
17076       if test "x$has_space" != x; then
17077         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17078 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17079       fi
17080       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17081     fi
17082   fi
17083 
17084   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17085   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17086   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17087   # "foo.exe" is OK but "foo" is an error.
17088   #
17089   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17090   # It is also a way to make sure we got the proper file name for the real test later on.
17091   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17092   if test "x$test_shortpath" = x; then
17093     # Short path failed, file does not exist as specified.
17094     # Try adding .exe or .cmd
17095     if test -f "${new_path}.exe"; then
17096       input_to_shortpath="${new_path}.exe"
17097     elif test -f "${new_path}.cmd"; then
17098       input_to_shortpath="${new_path}.cmd"
17099     else
17100       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17101 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17102       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17103 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17104       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17105     fi
17106   else
17107     input_to_shortpath="$new_path"
17108   fi
17109 
17110   # Call helper function which possibly converts this using DOS-style short mode.
17111   # If so, the updated path is stored in $new_path.
17112   new_path="$input_to_shortpath"
17113 
17114   input_path="$input_to_shortpath"
17115   # Check if we need to convert this using DOS-style short mode. If the path
17116   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17117   # take no chances and rewrite it.
17118   # Note: m4 eats our [], so we need to use [ and ] instead.
17119   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17120   if test "x$has_forbidden_chars" != x; then
17121     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17122     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17123     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17124     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17125       # Going to short mode and back again did indeed matter. Since short mode is
17126       # case insensitive, let's make it lowercase to improve readability.
17127       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17128       # Now convert it back to Unix-style (cygpath)
17129       input_path=`$CYGPATH -u "$shortmode_path"`
17130       new_path="$input_path"
17131     fi
17132   fi
17133 
17134   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17135   if test "x$test_cygdrive_prefix" = x; then
17136     # As a simple fix, exclude /usr/bin since it's not a real path.
17137     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17138       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17139       # a path prefixed by /cygdrive for fixpath to work.
17140       new_path="$CYGWIN_ROOT_PATH$input_path"
17141     fi
17142   fi
17143 
17144   # remove trailing .exe if any
17145   new_path="${new_path/%.exe/}"
17146 
17147     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17148 
17149   # First separate the path from the arguments. This will split at the first
17150   # space.
17151   complete="$FOUND_MAKE"
17152   path="${complete%% *}"
17153   tmp="$complete EOL"
17154   arguments="${tmp#* }"
17155 
17156   # Input might be given as Windows format, start by converting to
17157   # unix format.
17158   new_path="$path"
17159 
17160   windows_path="$new_path"
17161   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17162     unix_path=`$CYGPATH -u "$windows_path"`
17163     new_path="$unix_path"
17164   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17165     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17166     new_path="$unix_path"
17167   fi
17168 
17169 
17170   # Now try to locate executable using which
17171   new_path=`$WHICH "$new_path" 2> /dev/null`
17172 
17173   if test "x$new_path" = x; then
17174     # Oops. Which didn't find the executable.
17175     # The splitting of arguments from the executable at a space might have been incorrect,
17176     # since paths with space are more likely in Windows. Give it another try with the whole
17177     # argument.
17178     path="$complete"
17179     arguments="EOL"
17180     new_path="$path"
17181 
17182   windows_path="$new_path"
17183   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17184     unix_path=`$CYGPATH -u "$windows_path"`
17185     new_path="$unix_path"
17186   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17187     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17188     new_path="$unix_path"
17189   fi
17190 
17191 
17192     new_path=`$WHICH "$new_path" 2> /dev/null`
17193     # bat and cmd files are not always considered executable in MSYS causing which
17194     # to not find them
17195     if test "x$new_path" = x \
17196         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17197         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17198       new_path="$path"
17199 
17200   windows_path="$new_path"
17201   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17202     unix_path=`$CYGPATH -u "$windows_path"`
17203     new_path="$unix_path"
17204   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17205     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17206     new_path="$unix_path"
17207   fi
17208 
17209     fi
17210 
17211     if test "x$new_path" = x; then
17212       # It's still not found. Now this is an unrecoverable error.
17213       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17214 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17215       has_space=`$ECHO "$complete" | $GREP " "`
17216       if test "x$has_space" != x; then
17217         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17218 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17219       fi
17220       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17221     fi
17222   fi
17223 
17224   # Now new_path has a complete unix path to the binary
17225   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17226     # Keep paths in /bin as-is, but remove trailing .exe if any
17227     new_path="${new_path/%.exe/}"
17228     # Do not save /bin paths to all_fixpath_prefixes!
17229   else
17230     # Not in mixed or Windows style, start by that.
17231     new_path=`cmd //c echo $new_path`
17232 
17233   input_path="$new_path"
17234   # Check if we need to convert this using DOS-style short mode. If the path
17235   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17236   # take no chances and rewrite it.
17237   # Note: m4 eats our [], so we need to use [ and ] instead.
17238   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17239   if test "x$has_forbidden_chars" != x; then
17240     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17241     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17242   fi
17243 
17244     # Output is in $new_path
17245 
17246   windows_path="$new_path"
17247   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17248     unix_path=`$CYGPATH -u "$windows_path"`
17249     new_path="$unix_path"
17250   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17251     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17252     new_path="$unix_path"
17253   fi
17254 
17255     # remove trailing .exe if any
17256     new_path="${new_path/%.exe/}"
17257 
17258     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17259     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17260   fi
17261 
17262     else
17263       # We're on a unix platform. Hooray! :)
17264       # First separate the path from the arguments. This will split at the first
17265       # space.
17266       complete="$FOUND_MAKE"
17267       path="${complete%% *}"
17268       tmp="$complete EOL"
17269       arguments="${tmp#* }"
17270 
17271       # Cannot rely on the command "which" here since it doesn't always work.
17272       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17273       if test -z "$is_absolute_path"; then
17274         # Path to executable is not absolute. Find it.
17275         IFS_save="$IFS"
17276         IFS=:
17277         for p in $PATH; do
17278           if test -f "$p/$path" && test -x "$p/$path"; then
17279             new_path="$p/$path"
17280             break
17281           fi
17282         done
17283         IFS="$IFS_save"
17284       else
17285         # This is an absolute path, we can use it without further modifications.
17286         new_path="$path"
17287       fi
17288 
17289       if test "x$new_path" = x; then
17290         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17291 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17292         has_space=`$ECHO "$complete" | $GREP " "`
17293         if test "x$has_space" != x; then
17294           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17295 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17296         fi
17297         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17298       fi
17299     fi
17300 
17301     # Now join together the path and the arguments once again
17302     if test "x$arguments" != xEOL; then
17303       new_complete="$new_path ${arguments% *}"
17304     else
17305       new_complete="$new_path"
17306     fi
17307 
17308     if test "x$complete" != "x$new_complete"; then
17309       FOUND_MAKE="$new_complete"
17310       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17311 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17312     fi
17313   fi
17314 
17315         fi
17316       fi
17317     fi
17318   fi
17319 
17320     fi
17321 
17322     if test "x$FOUND_MAKE" = x; then
17323       if test "x$TOOLCHAIN_PATH" != x; then
17324         # We have a toolchain path, check that as well before giving up.
17325         OLD_PATH=$PATH
17326         PATH=$TOOLCHAIN_PATH:$PATH
17327         for ac_prog in gmake
17328 do
17329   # Extract the first word of "$ac_prog", so it can be a program name with args.
17330 set dummy $ac_prog; ac_word=$2
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17332 $as_echo_n "checking for $ac_word... " >&6; }
17333 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
17334   $as_echo_n "(cached) " >&6
17335 else
17336   case $CHECK_TOOLSDIR_GMAKE in
17337   [\\/]* | ?:[\\/]*)
17338   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
17339   ;;
17340   *)
17341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17342 for as_dir in $PATH
17343 do
17344   IFS=$as_save_IFS
17345   test -z "$as_dir" && as_dir=.
17346     for ac_exec_ext in '' $ac_executable_extensions; do
17347   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17348     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
17349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17350     break 2
17351   fi
17352 done
17353   done
17354 IFS=$as_save_IFS
17355 
17356   ;;
17357 esac
17358 fi
17359 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
17360 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
17361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
17362 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
17363 else
17364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17365 $as_echo "no" >&6; }
17366 fi
17367 
17368 
17369   test -n "$CHECK_TOOLSDIR_GMAKE" && break
17370 done
17371 
17372 
17373   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
17374   DESCRIPTION="gmake in tools-dir"
17375 
17376   # On Cygwin, we require a newer version of make than on other platforms
17377   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17378     MAKE_VERSION_EXPR="-e 4\."
17379     MAKE_REQUIRED_VERSION="4.0"
17380    else
17381     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17382     MAKE_REQUIRED_VERSION="3.81"
17383   fi
17384 
17385   if test "x$MAKE_CANDIDATE" != x; then
17386     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17387 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17388     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17389     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17390     if test "x$IS_GNU_MAKE" = x; then
17391       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17392 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17393     else
17394       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17395       if test "x$IS_MODERN_MAKE" = x; then
17396         { $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
17397 $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;}
17398       else
17399         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17400           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17401             MAKE_EXPECTED_ENV='cygwin'
17402           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17403             MAKE_EXPECTED_ENV='msys'
17404           else
17405             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17406           fi
17407           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17408           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17409         else
17410           # Not relevant for non-Windows
17411           IS_MAKE_CORRECT_ENV=true
17412         fi
17413         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17414           { $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
17415 $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;}
17416         else
17417           FOUND_MAKE=$MAKE_CANDIDATE
17418 
17419   # Only process if variable expands to non-empty
17420 
17421   if test "x$FOUND_MAKE" != x; then
17422     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17423 
17424   # First separate the path from the arguments. This will split at the first
17425   # space.
17426   complete="$FOUND_MAKE"
17427   path="${complete%% *}"
17428   tmp="$complete EOL"
17429   arguments="${tmp#* }"
17430 
17431   # Input might be given as Windows format, start by converting to
17432   # unix format.
17433   new_path=`$CYGPATH -u "$path"`
17434 
17435   # Now try to locate executable using which
17436   new_path=`$WHICH "$new_path" 2> /dev/null`
17437   # bat and cmd files are not always considered executable in cygwin causing which
17438   # to not find them
17439   if test "x$new_path" = x \
17440       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17441       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17442     new_path=`$CYGPATH -u "$path"`
17443   fi
17444   if test "x$new_path" = x; then
17445     # Oops. Which didn't find the executable.
17446     # The splitting of arguments from the executable at a space might have been incorrect,
17447     # since paths with space are more likely in Windows. Give it another try with the whole
17448     # argument.
17449     path="$complete"
17450     arguments="EOL"
17451     new_path=`$CYGPATH -u "$path"`
17452     new_path=`$WHICH "$new_path" 2> /dev/null`
17453     # bat and cmd files are not always considered executable in cygwin causing which
17454     # to not find them
17455     if test "x$new_path" = x \
17456         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17457         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17458       new_path=`$CYGPATH -u "$path"`
17459     fi
17460     if test "x$new_path" = x; then
17461       # It's still not found. Now this is an unrecoverable error.
17462       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17463 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17464       has_space=`$ECHO "$complete" | $GREP " "`
17465       if test "x$has_space" != x; then
17466         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17467 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17468       fi
17469       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17470     fi
17471   fi
17472 
17473   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17474   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17475   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17476   # "foo.exe" is OK but "foo" is an error.
17477   #
17478   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17479   # It is also a way to make sure we got the proper file name for the real test later on.
17480   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17481   if test "x$test_shortpath" = x; then
17482     # Short path failed, file does not exist as specified.
17483     # Try adding .exe or .cmd
17484     if test -f "${new_path}.exe"; then
17485       input_to_shortpath="${new_path}.exe"
17486     elif test -f "${new_path}.cmd"; then
17487       input_to_shortpath="${new_path}.cmd"
17488     else
17489       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17490 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17491       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17492 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17493       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17494     fi
17495   else
17496     input_to_shortpath="$new_path"
17497   fi
17498 
17499   # Call helper function which possibly converts this using DOS-style short mode.
17500   # If so, the updated path is stored in $new_path.
17501   new_path="$input_to_shortpath"
17502 
17503   input_path="$input_to_shortpath"
17504   # Check if we need to convert this using DOS-style short mode. If the path
17505   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17506   # take no chances and rewrite it.
17507   # Note: m4 eats our [], so we need to use [ and ] instead.
17508   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17509   if test "x$has_forbidden_chars" != x; then
17510     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17511     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17512     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17513     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17514       # Going to short mode and back again did indeed matter. Since short mode is
17515       # case insensitive, let's make it lowercase to improve readability.
17516       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17517       # Now convert it back to Unix-style (cygpath)
17518       input_path=`$CYGPATH -u "$shortmode_path"`
17519       new_path="$input_path"
17520     fi
17521   fi
17522 
17523   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17524   if test "x$test_cygdrive_prefix" = x; then
17525     # As a simple fix, exclude /usr/bin since it's not a real path.
17526     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17527       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17528       # a path prefixed by /cygdrive for fixpath to work.
17529       new_path="$CYGWIN_ROOT_PATH$input_path"
17530     fi
17531   fi
17532 
17533   # remove trailing .exe if any
17534   new_path="${new_path/%.exe/}"
17535 
17536     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17537 
17538   # First separate the path from the arguments. This will split at the first
17539   # space.
17540   complete="$FOUND_MAKE"
17541   path="${complete%% *}"
17542   tmp="$complete EOL"
17543   arguments="${tmp#* }"
17544 
17545   # Input might be given as Windows format, start by converting to
17546   # unix format.
17547   new_path="$path"
17548 
17549   windows_path="$new_path"
17550   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17551     unix_path=`$CYGPATH -u "$windows_path"`
17552     new_path="$unix_path"
17553   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17554     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17555     new_path="$unix_path"
17556   fi
17557 
17558 
17559   # Now try to locate executable using which
17560   new_path=`$WHICH "$new_path" 2> /dev/null`
17561 
17562   if test "x$new_path" = x; then
17563     # Oops. Which didn't find the executable.
17564     # The splitting of arguments from the executable at a space might have been incorrect,
17565     # since paths with space are more likely in Windows. Give it another try with the whole
17566     # argument.
17567     path="$complete"
17568     arguments="EOL"
17569     new_path="$path"
17570 
17571   windows_path="$new_path"
17572   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17573     unix_path=`$CYGPATH -u "$windows_path"`
17574     new_path="$unix_path"
17575   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17576     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17577     new_path="$unix_path"
17578   fi
17579 
17580 
17581     new_path=`$WHICH "$new_path" 2> /dev/null`
17582     # bat and cmd files are not always considered executable in MSYS causing which
17583     # to not find them
17584     if test "x$new_path" = x \
17585         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17586         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17587       new_path="$path"
17588 
17589   windows_path="$new_path"
17590   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17591     unix_path=`$CYGPATH -u "$windows_path"`
17592     new_path="$unix_path"
17593   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17594     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17595     new_path="$unix_path"
17596   fi
17597 
17598     fi
17599 
17600     if test "x$new_path" = x; then
17601       # It's still not found. Now this is an unrecoverable error.
17602       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17603 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17604       has_space=`$ECHO "$complete" | $GREP " "`
17605       if test "x$has_space" != x; then
17606         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17607 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17608       fi
17609       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17610     fi
17611   fi
17612 
17613   # Now new_path has a complete unix path to the binary
17614   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17615     # Keep paths in /bin as-is, but remove trailing .exe if any
17616     new_path="${new_path/%.exe/}"
17617     # Do not save /bin paths to all_fixpath_prefixes!
17618   else
17619     # Not in mixed or Windows style, start by that.
17620     new_path=`cmd //c echo $new_path`
17621 
17622   input_path="$new_path"
17623   # Check if we need to convert this using DOS-style short mode. If the path
17624   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17625   # take no chances and rewrite it.
17626   # Note: m4 eats our [], so we need to use [ and ] instead.
17627   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17628   if test "x$has_forbidden_chars" != x; then
17629     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17630     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17631   fi
17632 
17633     # Output is in $new_path
17634 
17635   windows_path="$new_path"
17636   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17637     unix_path=`$CYGPATH -u "$windows_path"`
17638     new_path="$unix_path"
17639   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17640     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17641     new_path="$unix_path"
17642   fi
17643 
17644     # remove trailing .exe if any
17645     new_path="${new_path/%.exe/}"
17646 
17647     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17648     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17649   fi
17650 
17651     else
17652       # We're on a unix platform. Hooray! :)
17653       # First separate the path from the arguments. This will split at the first
17654       # space.
17655       complete="$FOUND_MAKE"
17656       path="${complete%% *}"
17657       tmp="$complete EOL"
17658       arguments="${tmp#* }"
17659 
17660       # Cannot rely on the command "which" here since it doesn't always work.
17661       is_absolute_path=`$ECHO "$path" | $GREP ^/`
17662       if test -z "$is_absolute_path"; then
17663         # Path to executable is not absolute. Find it.
17664         IFS_save="$IFS"
17665         IFS=:
17666         for p in $PATH; do
17667           if test -f "$p/$path" && test -x "$p/$path"; then
17668             new_path="$p/$path"
17669             break
17670           fi
17671         done
17672         IFS="$IFS_save"
17673       else
17674         # This is an absolute path, we can use it without further modifications.
17675         new_path="$path"
17676       fi
17677 
17678       if test "x$new_path" = x; then
17679         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17680 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17681         has_space=`$ECHO "$complete" | $GREP " "`
17682         if test "x$has_space" != x; then
17683           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17684 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17685         fi
17686         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17687       fi
17688     fi
17689 
17690     # Now join together the path and the arguments once again
17691     if test "x$arguments" != xEOL; then
17692       new_complete="$new_path ${arguments% *}"
17693     else
17694       new_complete="$new_path"
17695     fi
17696 
17697     if test "x$complete" != "x$new_complete"; then
17698       FOUND_MAKE="$new_complete"
17699       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17700 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17701     fi
17702   fi
17703 
17704         fi
17705       fi
17706     fi
17707   fi
17708 
17709         if test "x$FOUND_MAKE" = x; then
17710           for ac_prog in make
17711 do
17712   # Extract the first word of "$ac_prog", so it can be a program name with args.
17713 set dummy $ac_prog; ac_word=$2
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17715 $as_echo_n "checking for $ac_word... " >&6; }
17716 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
17717   $as_echo_n "(cached) " >&6
17718 else
17719   case $CHECK_TOOLSDIR_MAKE in
17720   [\\/]* | ?:[\\/]*)
17721   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
17722   ;;
17723   *)
17724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17725 for as_dir in $PATH
17726 do
17727   IFS=$as_save_IFS
17728   test -z "$as_dir" && as_dir=.
17729     for ac_exec_ext in '' $ac_executable_extensions; do
17730   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17731     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
17732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17733     break 2
17734   fi
17735 done
17736   done
17737 IFS=$as_save_IFS
17738 
17739   ;;
17740 esac
17741 fi
17742 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
17743 if test -n "$CHECK_TOOLSDIR_MAKE"; then
17744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
17745 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
17746 else
17747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17748 $as_echo "no" >&6; }
17749 fi
17750 
17751 
17752   test -n "$CHECK_TOOLSDIR_MAKE" && break
17753 done
17754 
17755 
17756   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
17757   DESCRIPTION="make in tools-dir"
17758 
17759   # On Cygwin, we require a newer version of make than on other platforms
17760   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17761     MAKE_VERSION_EXPR="-e 4\."
17762     MAKE_REQUIRED_VERSION="4.0"
17763    else
17764     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
17765     MAKE_REQUIRED_VERSION="3.81"
17766   fi
17767 
17768   if test "x$MAKE_CANDIDATE" != x; then
17769     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
17770 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
17771     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
17772     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
17773     if test "x$IS_GNU_MAKE" = x; then
17774       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
17775 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
17776     else
17777       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
17778       if test "x$IS_MODERN_MAKE" = x; then
17779         { $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
17780 $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;}
17781       else
17782         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
17783           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17784             MAKE_EXPECTED_ENV='cygwin'
17785           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17786             MAKE_EXPECTED_ENV='msys'
17787           else
17788             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
17789           fi
17790           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
17791           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
17792         else
17793           # Not relevant for non-Windows
17794           IS_MAKE_CORRECT_ENV=true
17795         fi
17796         if test "x$IS_MAKE_CORRECT_ENV" = x; then
17797           { $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
17798 $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;}
17799         else
17800           FOUND_MAKE=$MAKE_CANDIDATE
17801 
17802   # Only process if variable expands to non-empty
17803 
17804   if test "x$FOUND_MAKE" != x; then
17805     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17806 
17807   # First separate the path from the arguments. This will split at the first
17808   # space.
17809   complete="$FOUND_MAKE"
17810   path="${complete%% *}"
17811   tmp="$complete EOL"
17812   arguments="${tmp#* }"
17813 
17814   # Input might be given as Windows format, start by converting to
17815   # unix format.
17816   new_path=`$CYGPATH -u "$path"`
17817 
17818   # Now try to locate executable using which
17819   new_path=`$WHICH "$new_path" 2> /dev/null`
17820   # bat and cmd files are not always considered executable in cygwin causing which
17821   # to not find them
17822   if test "x$new_path" = x \
17823       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17824       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17825     new_path=`$CYGPATH -u "$path"`
17826   fi
17827   if test "x$new_path" = x; then
17828     # Oops. Which didn't find the executable.
17829     # The splitting of arguments from the executable at a space might have been incorrect,
17830     # since paths with space are more likely in Windows. Give it another try with the whole
17831     # argument.
17832     path="$complete"
17833     arguments="EOL"
17834     new_path=`$CYGPATH -u "$path"`
17835     new_path=`$WHICH "$new_path" 2> /dev/null`
17836     # bat and cmd files are not always considered executable in cygwin causing which
17837     # to not find them
17838     if test "x$new_path" = x \
17839         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17840         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17841       new_path=`$CYGPATH -u "$path"`
17842     fi
17843     if test "x$new_path" = x; then
17844       # It's still not found. Now this is an unrecoverable error.
17845       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17846 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17847       has_space=`$ECHO "$complete" | $GREP " "`
17848       if test "x$has_space" != x; then
17849         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17850 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17851       fi
17852       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17853     fi
17854   fi
17855 
17856   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17857   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17858   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17859   # "foo.exe" is OK but "foo" is an error.
17860   #
17861   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17862   # It is also a way to make sure we got the proper file name for the real test later on.
17863   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17864   if test "x$test_shortpath" = x; then
17865     # Short path failed, file does not exist as specified.
17866     # Try adding .exe or .cmd
17867     if test -f "${new_path}.exe"; then
17868       input_to_shortpath="${new_path}.exe"
17869     elif test -f "${new_path}.cmd"; then
17870       input_to_shortpath="${new_path}.cmd"
17871     else
17872       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17873 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17874       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17875 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17876       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17877     fi
17878   else
17879     input_to_shortpath="$new_path"
17880   fi
17881 
17882   # Call helper function which possibly converts this using DOS-style short mode.
17883   # If so, the updated path is stored in $new_path.
17884   new_path="$input_to_shortpath"
17885 
17886   input_path="$input_to_shortpath"
17887   # Check if we need to convert this using DOS-style short mode. If the path
17888   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17889   # take no chances and rewrite it.
17890   # Note: m4 eats our [], so we need to use [ and ] instead.
17891   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17892   if test "x$has_forbidden_chars" != x; then
17893     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17894     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17895     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17896     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17897       # Going to short mode and back again did indeed matter. Since short mode is
17898       # case insensitive, let's make it lowercase to improve readability.
17899       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17900       # Now convert it back to Unix-style (cygpath)
17901       input_path=`$CYGPATH -u "$shortmode_path"`
17902       new_path="$input_path"
17903     fi
17904   fi
17905 
17906   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17907   if test "x$test_cygdrive_prefix" = x; then
17908     # As a simple fix, exclude /usr/bin since it's not a real path.
17909     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17910       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17911       # a path prefixed by /cygdrive for fixpath to work.
17912       new_path="$CYGWIN_ROOT_PATH$input_path"
17913     fi
17914   fi
17915 
17916   # remove trailing .exe if any
17917   new_path="${new_path/%.exe/}"
17918 
17919     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17920 
17921   # First separate the path from the arguments. This will split at the first
17922   # space.
17923   complete="$FOUND_MAKE"
17924   path="${complete%% *}"
17925   tmp="$complete EOL"
17926   arguments="${tmp#* }"
17927 
17928   # Input might be given as Windows format, start by converting to
17929   # unix format.
17930   new_path="$path"
17931 
17932   windows_path="$new_path"
17933   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17934     unix_path=`$CYGPATH -u "$windows_path"`
17935     new_path="$unix_path"
17936   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17937     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17938     new_path="$unix_path"
17939   fi
17940 
17941 
17942   # Now try to locate executable using which
17943   new_path=`$WHICH "$new_path" 2> /dev/null`
17944 
17945   if test "x$new_path" = x; then
17946     # Oops. Which didn't find the executable.
17947     # The splitting of arguments from the executable at a space might have been incorrect,
17948     # since paths with space are more likely in Windows. Give it another try with the whole
17949     # argument.
17950     path="$complete"
17951     arguments="EOL"
17952     new_path="$path"
17953 
17954   windows_path="$new_path"
17955   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17956     unix_path=`$CYGPATH -u "$windows_path"`
17957     new_path="$unix_path"
17958   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17959     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17960     new_path="$unix_path"
17961   fi
17962 
17963 
17964     new_path=`$WHICH "$new_path" 2> /dev/null`
17965     # bat and cmd files are not always considered executable in MSYS causing which
17966     # to not find them
17967     if test "x$new_path" = x \
17968         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17969         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17970       new_path="$path"
17971 
17972   windows_path="$new_path"
17973   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17974     unix_path=`$CYGPATH -u "$windows_path"`
17975     new_path="$unix_path"
17976   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17977     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17978     new_path="$unix_path"
17979   fi
17980 
17981     fi
17982 
17983     if test "x$new_path" = x; then
17984       # It's still not found. Now this is an unrecoverable error.
17985       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17986 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17987       has_space=`$ECHO "$complete" | $GREP " "`
17988       if test "x$has_space" != x; then
17989         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17990 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17991       fi
17992       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17993     fi
17994   fi
17995 
17996   # Now new_path has a complete unix path to the binary
17997   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17998     # Keep paths in /bin as-is, but remove trailing .exe if any
17999     new_path="${new_path/%.exe/}"
18000     # Do not save /bin paths to all_fixpath_prefixes!
18001   else
18002     # Not in mixed or Windows style, start by that.
18003     new_path=`cmd //c echo $new_path`
18004 
18005   input_path="$new_path"
18006   # Check if we need to convert this using DOS-style short mode. If the path
18007   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18008   # take no chances and rewrite it.
18009   # Note: m4 eats our [], so we need to use [ and ] instead.
18010   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18011   if test "x$has_forbidden_chars" != x; then
18012     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18013     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18014   fi
18015 
18016     # Output is in $new_path
18017 
18018   windows_path="$new_path"
18019   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18020     unix_path=`$CYGPATH -u "$windows_path"`
18021     new_path="$unix_path"
18022   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18023     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18024     new_path="$unix_path"
18025   fi
18026 
18027     # remove trailing .exe if any
18028     new_path="${new_path/%.exe/}"
18029 
18030     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18031     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18032   fi
18033 
18034     else
18035       # We're on a unix platform. Hooray! :)
18036       # First separate the path from the arguments. This will split at the first
18037       # space.
18038       complete="$FOUND_MAKE"
18039       path="${complete%% *}"
18040       tmp="$complete EOL"
18041       arguments="${tmp#* }"
18042 
18043       # Cannot rely on the command "which" here since it doesn't always work.
18044       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18045       if test -z "$is_absolute_path"; then
18046         # Path to executable is not absolute. Find it.
18047         IFS_save="$IFS"
18048         IFS=:
18049         for p in $PATH; do
18050           if test -f "$p/$path" && test -x "$p/$path"; then
18051             new_path="$p/$path"
18052             break
18053           fi
18054         done
18055         IFS="$IFS_save"
18056       else
18057         # This is an absolute path, we can use it without further modifications.
18058         new_path="$path"
18059       fi
18060 
18061       if test "x$new_path" = x; then
18062         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18063 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18064         has_space=`$ECHO "$complete" | $GREP " "`
18065         if test "x$has_space" != x; then
18066           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18067 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18068         fi
18069         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18070       fi
18071     fi
18072 
18073     # Now join together the path and the arguments once again
18074     if test "x$arguments" != xEOL; then
18075       new_complete="$new_path ${arguments% *}"
18076     else
18077       new_complete="$new_path"
18078     fi
18079 
18080     if test "x$complete" != "x$new_complete"; then
18081       FOUND_MAKE="$new_complete"
18082       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18083 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18084     fi
18085   fi
18086 
18087         fi
18088       fi
18089     fi
18090   fi
18091 
18092         fi
18093         PATH=$OLD_PATH
18094       fi
18095     fi
18096 
18097     if test "x$FOUND_MAKE" = x; then
18098       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
18099     fi
18100 
18101   else
18102     # The variable is set, but is it from the command line or the environment?
18103 
18104     # Try to remove the string !MAKE! from our list.
18105     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/}
18106     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18107       # If it failed, the variable was not from the command line. Ignore it,
18108       # but warn the user (except for BASH, which is always set by the calling BASH).
18109       if test "xMAKE" != xBASH; then
18110         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5
18111 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;}
18112       fi
18113       # Try to locate tool using the code snippet
18114 
18115     # Try our hardest to locate a correct version of GNU make
18116     for ac_prog in gmake
18117 do
18118   # Extract the first word of "$ac_prog", so it can be a program name with args.
18119 set dummy $ac_prog; ac_word=$2
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18121 $as_echo_n "checking for $ac_word... " >&6; }
18122 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
18123   $as_echo_n "(cached) " >&6
18124 else
18125   case $CHECK_GMAKE in
18126   [\\/]* | ?:[\\/]*)
18127   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
18128   ;;
18129   *)
18130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18131 for as_dir in $PATH
18132 do
18133   IFS=$as_save_IFS
18134   test -z "$as_dir" && as_dir=.
18135     for ac_exec_ext in '' $ac_executable_extensions; do
18136   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18137     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
18138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18139     break 2
18140   fi
18141 done
18142   done
18143 IFS=$as_save_IFS
18144 
18145   ;;
18146 esac
18147 fi
18148 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
18149 if test -n "$CHECK_GMAKE"; then
18150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
18151 $as_echo "$CHECK_GMAKE" >&6; }
18152 else
18153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18154 $as_echo "no" >&6; }
18155 fi
18156 
18157 
18158   test -n "$CHECK_GMAKE" && break
18159 done
18160 
18161 
18162   MAKE_CANDIDATE=""$CHECK_GMAKE""
18163   DESCRIPTION="gmake in PATH"
18164 
18165   # On Cygwin, we require a newer version of make than on other platforms
18166   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18167     MAKE_VERSION_EXPR="-e 4\."
18168     MAKE_REQUIRED_VERSION="4.0"
18169    else
18170     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18171     MAKE_REQUIRED_VERSION="3.81"
18172   fi
18173 
18174   if test "x$MAKE_CANDIDATE" != x; then
18175     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18176 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18177     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18178     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18179     if test "x$IS_GNU_MAKE" = x; then
18180       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18181 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18182     else
18183       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18184       if test "x$IS_MODERN_MAKE" = x; then
18185         { $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
18186 $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;}
18187       else
18188         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18189           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18190             MAKE_EXPECTED_ENV='cygwin'
18191           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18192             MAKE_EXPECTED_ENV='msys'
18193           else
18194             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18195           fi
18196           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18197           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18198         else
18199           # Not relevant for non-Windows
18200           IS_MAKE_CORRECT_ENV=true
18201         fi
18202         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18203           { $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
18204 $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;}
18205         else
18206           FOUND_MAKE=$MAKE_CANDIDATE
18207 
18208   # Only process if variable expands to non-empty
18209 
18210   if test "x$FOUND_MAKE" != x; then
18211     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18212 
18213   # First separate the path from the arguments. This will split at the first
18214   # space.
18215   complete="$FOUND_MAKE"
18216   path="${complete%% *}"
18217   tmp="$complete EOL"
18218   arguments="${tmp#* }"
18219 
18220   # Input might be given as Windows format, start by converting to
18221   # unix format.
18222   new_path=`$CYGPATH -u "$path"`
18223 
18224   # Now try to locate executable using which
18225   new_path=`$WHICH "$new_path" 2> /dev/null`
18226   # bat and cmd files are not always considered executable in cygwin causing which
18227   # to not find them
18228   if test "x$new_path" = x \
18229       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18230       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18231     new_path=`$CYGPATH -u "$path"`
18232   fi
18233   if test "x$new_path" = x; then
18234     # Oops. Which didn't find the executable.
18235     # The splitting of arguments from the executable at a space might have been incorrect,
18236     # since paths with space are more likely in Windows. Give it another try with the whole
18237     # argument.
18238     path="$complete"
18239     arguments="EOL"
18240     new_path=`$CYGPATH -u "$path"`
18241     new_path=`$WHICH "$new_path" 2> /dev/null`
18242     # bat and cmd files are not always considered executable in cygwin causing which
18243     # to not find them
18244     if test "x$new_path" = x \
18245         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18246         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18247       new_path=`$CYGPATH -u "$path"`
18248     fi
18249     if test "x$new_path" = x; then
18250       # It's still not found. Now this is an unrecoverable error.
18251       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18252 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18253       has_space=`$ECHO "$complete" | $GREP " "`
18254       if test "x$has_space" != x; then
18255         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18256 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18257       fi
18258       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18259     fi
18260   fi
18261 
18262   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18263   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18264   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18265   # "foo.exe" is OK but "foo" is an error.
18266   #
18267   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18268   # It is also a way to make sure we got the proper file name for the real test later on.
18269   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18270   if test "x$test_shortpath" = x; then
18271     # Short path failed, file does not exist as specified.
18272     # Try adding .exe or .cmd
18273     if test -f "${new_path}.exe"; then
18274       input_to_shortpath="${new_path}.exe"
18275     elif test -f "${new_path}.cmd"; then
18276       input_to_shortpath="${new_path}.cmd"
18277     else
18278       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18279 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18280       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18281 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18282       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18283     fi
18284   else
18285     input_to_shortpath="$new_path"
18286   fi
18287 
18288   # Call helper function which possibly converts this using DOS-style short mode.
18289   # If so, the updated path is stored in $new_path.
18290   new_path="$input_to_shortpath"
18291 
18292   input_path="$input_to_shortpath"
18293   # Check if we need to convert this using DOS-style short mode. If the path
18294   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18295   # take no chances and rewrite it.
18296   # Note: m4 eats our [], so we need to use [ and ] instead.
18297   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18298   if test "x$has_forbidden_chars" != x; then
18299     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18300     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18301     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18302     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18303       # Going to short mode and back again did indeed matter. Since short mode is
18304       # case insensitive, let's make it lowercase to improve readability.
18305       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18306       # Now convert it back to Unix-style (cygpath)
18307       input_path=`$CYGPATH -u "$shortmode_path"`
18308       new_path="$input_path"
18309     fi
18310   fi
18311 
18312   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18313   if test "x$test_cygdrive_prefix" = x; then
18314     # As a simple fix, exclude /usr/bin since it's not a real path.
18315     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18316       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18317       # a path prefixed by /cygdrive for fixpath to work.
18318       new_path="$CYGWIN_ROOT_PATH$input_path"
18319     fi
18320   fi
18321 
18322   # remove trailing .exe if any
18323   new_path="${new_path/%.exe/}"
18324 
18325     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18326 
18327   # First separate the path from the arguments. This will split at the first
18328   # space.
18329   complete="$FOUND_MAKE"
18330   path="${complete%% *}"
18331   tmp="$complete EOL"
18332   arguments="${tmp#* }"
18333 
18334   # Input might be given as Windows format, start by converting to
18335   # unix format.
18336   new_path="$path"
18337 
18338   windows_path="$new_path"
18339   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18340     unix_path=`$CYGPATH -u "$windows_path"`
18341     new_path="$unix_path"
18342   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18343     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18344     new_path="$unix_path"
18345   fi
18346 
18347 
18348   # Now try to locate executable using which
18349   new_path=`$WHICH "$new_path" 2> /dev/null`
18350 
18351   if test "x$new_path" = x; then
18352     # Oops. Which didn't find the executable.
18353     # The splitting of arguments from the executable at a space might have been incorrect,
18354     # since paths with space are more likely in Windows. Give it another try with the whole
18355     # argument.
18356     path="$complete"
18357     arguments="EOL"
18358     new_path="$path"
18359 
18360   windows_path="$new_path"
18361   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18362     unix_path=`$CYGPATH -u "$windows_path"`
18363     new_path="$unix_path"
18364   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18365     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18366     new_path="$unix_path"
18367   fi
18368 
18369 
18370     new_path=`$WHICH "$new_path" 2> /dev/null`
18371     # bat and cmd files are not always considered executable in MSYS causing which
18372     # to not find them
18373     if test "x$new_path" = x \
18374         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18375         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18376       new_path="$path"
18377 
18378   windows_path="$new_path"
18379   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18380     unix_path=`$CYGPATH -u "$windows_path"`
18381     new_path="$unix_path"
18382   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18383     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18384     new_path="$unix_path"
18385   fi
18386 
18387     fi
18388 
18389     if test "x$new_path" = x; then
18390       # It's still not found. Now this is an unrecoverable error.
18391       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18392 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18393       has_space=`$ECHO "$complete" | $GREP " "`
18394       if test "x$has_space" != x; then
18395         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18396 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18397       fi
18398       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18399     fi
18400   fi
18401 
18402   # Now new_path has a complete unix path to the binary
18403   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18404     # Keep paths in /bin as-is, but remove trailing .exe if any
18405     new_path="${new_path/%.exe/}"
18406     # Do not save /bin paths to all_fixpath_prefixes!
18407   else
18408     # Not in mixed or Windows style, start by that.
18409     new_path=`cmd //c echo $new_path`
18410 
18411   input_path="$new_path"
18412   # Check if we need to convert this using DOS-style short mode. If the path
18413   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18414   # take no chances and rewrite it.
18415   # Note: m4 eats our [], so we need to use [ and ] instead.
18416   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18417   if test "x$has_forbidden_chars" != x; then
18418     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18419     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18420   fi
18421 
18422     # Output is in $new_path
18423 
18424   windows_path="$new_path"
18425   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18426     unix_path=`$CYGPATH -u "$windows_path"`
18427     new_path="$unix_path"
18428   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18429     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18430     new_path="$unix_path"
18431   fi
18432 
18433     # remove trailing .exe if any
18434     new_path="${new_path/%.exe/}"
18435 
18436     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18437     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18438   fi
18439 
18440     else
18441       # We're on a unix platform. Hooray! :)
18442       # First separate the path from the arguments. This will split at the first
18443       # space.
18444       complete="$FOUND_MAKE"
18445       path="${complete%% *}"
18446       tmp="$complete EOL"
18447       arguments="${tmp#* }"
18448 
18449       # Cannot rely on the command "which" here since it doesn't always work.
18450       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18451       if test -z "$is_absolute_path"; then
18452         # Path to executable is not absolute. Find it.
18453         IFS_save="$IFS"
18454         IFS=:
18455         for p in $PATH; do
18456           if test -f "$p/$path" && test -x "$p/$path"; then
18457             new_path="$p/$path"
18458             break
18459           fi
18460         done
18461         IFS="$IFS_save"
18462       else
18463         # This is an absolute path, we can use it without further modifications.
18464         new_path="$path"
18465       fi
18466 
18467       if test "x$new_path" = x; then
18468         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18469 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18470         has_space=`$ECHO "$complete" | $GREP " "`
18471         if test "x$has_space" != x; then
18472           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18473 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18474         fi
18475         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18476       fi
18477     fi
18478 
18479     # Now join together the path and the arguments once again
18480     if test "x$arguments" != xEOL; then
18481       new_complete="$new_path ${arguments% *}"
18482     else
18483       new_complete="$new_path"
18484     fi
18485 
18486     if test "x$complete" != "x$new_complete"; then
18487       FOUND_MAKE="$new_complete"
18488       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18489 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18490     fi
18491   fi
18492 
18493         fi
18494       fi
18495     fi
18496   fi
18497 
18498 
18499     if test "x$FOUND_MAKE" = x; then
18500       for ac_prog in make
18501 do
18502   # Extract the first word of "$ac_prog", so it can be a program name with args.
18503 set dummy $ac_prog; ac_word=$2
18504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18505 $as_echo_n "checking for $ac_word... " >&6; }
18506 if ${ac_cv_path_CHECK_MAKE+:} false; then :
18507   $as_echo_n "(cached) " >&6
18508 else
18509   case $CHECK_MAKE in
18510   [\\/]* | ?:[\\/]*)
18511   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
18512   ;;
18513   *)
18514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18515 for as_dir in $PATH
18516 do
18517   IFS=$as_save_IFS
18518   test -z "$as_dir" && as_dir=.
18519     for ac_exec_ext in '' $ac_executable_extensions; do
18520   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18521     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
18522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18523     break 2
18524   fi
18525 done
18526   done
18527 IFS=$as_save_IFS
18528 
18529   ;;
18530 esac
18531 fi
18532 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
18533 if test -n "$CHECK_MAKE"; then
18534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
18535 $as_echo "$CHECK_MAKE" >&6; }
18536 else
18537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18538 $as_echo "no" >&6; }
18539 fi
18540 
18541 
18542   test -n "$CHECK_MAKE" && break
18543 done
18544 
18545 
18546   MAKE_CANDIDATE=""$CHECK_MAKE""
18547   DESCRIPTION="make in PATH"
18548 
18549   # On Cygwin, we require a newer version of make than on other platforms
18550   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18551     MAKE_VERSION_EXPR="-e 4\."
18552     MAKE_REQUIRED_VERSION="4.0"
18553    else
18554     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18555     MAKE_REQUIRED_VERSION="3.81"
18556   fi
18557 
18558   if test "x$MAKE_CANDIDATE" != x; then
18559     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18560 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18561     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18562     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18563     if test "x$IS_GNU_MAKE" = x; then
18564       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18565 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18566     else
18567       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18568       if test "x$IS_MODERN_MAKE" = x; then
18569         { $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
18570 $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;}
18571       else
18572         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18573           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18574             MAKE_EXPECTED_ENV='cygwin'
18575           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18576             MAKE_EXPECTED_ENV='msys'
18577           else
18578             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18579           fi
18580           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18581           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18582         else
18583           # Not relevant for non-Windows
18584           IS_MAKE_CORRECT_ENV=true
18585         fi
18586         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18587           { $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
18588 $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;}
18589         else
18590           FOUND_MAKE=$MAKE_CANDIDATE
18591 
18592   # Only process if variable expands to non-empty
18593 
18594   if test "x$FOUND_MAKE" != x; then
18595     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18596 
18597   # First separate the path from the arguments. This will split at the first
18598   # space.
18599   complete="$FOUND_MAKE"
18600   path="${complete%% *}"
18601   tmp="$complete EOL"
18602   arguments="${tmp#* }"
18603 
18604   # Input might be given as Windows format, start by converting to
18605   # unix format.
18606   new_path=`$CYGPATH -u "$path"`
18607 
18608   # Now try to locate executable using which
18609   new_path=`$WHICH "$new_path" 2> /dev/null`
18610   # bat and cmd files are not always considered executable in cygwin causing which
18611   # to not find them
18612   if test "x$new_path" = x \
18613       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18614       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18615     new_path=`$CYGPATH -u "$path"`
18616   fi
18617   if test "x$new_path" = x; then
18618     # Oops. Which didn't find the executable.
18619     # The splitting of arguments from the executable at a space might have been incorrect,
18620     # since paths with space are more likely in Windows. Give it another try with the whole
18621     # argument.
18622     path="$complete"
18623     arguments="EOL"
18624     new_path=`$CYGPATH -u "$path"`
18625     new_path=`$WHICH "$new_path" 2> /dev/null`
18626     # bat and cmd files are not always considered executable in cygwin causing which
18627     # to not find them
18628     if test "x$new_path" = x \
18629         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18630         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18631       new_path=`$CYGPATH -u "$path"`
18632     fi
18633     if test "x$new_path" = x; then
18634       # It's still not found. Now this is an unrecoverable error.
18635       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18636 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18637       has_space=`$ECHO "$complete" | $GREP " "`
18638       if test "x$has_space" != x; then
18639         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18640 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18641       fi
18642       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18643     fi
18644   fi
18645 
18646   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18647   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18648   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18649   # "foo.exe" is OK but "foo" is an error.
18650   #
18651   # This test is therefore slightly more accurate than "test -f" to check for file presence.
18652   # It is also a way to make sure we got the proper file name for the real test later on.
18653   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
18654   if test "x$test_shortpath" = x; then
18655     # Short path failed, file does not exist as specified.
18656     # Try adding .exe or .cmd
18657     if test -f "${new_path}.exe"; then
18658       input_to_shortpath="${new_path}.exe"
18659     elif test -f "${new_path}.cmd"; then
18660       input_to_shortpath="${new_path}.cmd"
18661     else
18662       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
18663 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
18664       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
18665 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
18666       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18667     fi
18668   else
18669     input_to_shortpath="$new_path"
18670   fi
18671 
18672   # Call helper function which possibly converts this using DOS-style short mode.
18673   # If so, the updated path is stored in $new_path.
18674   new_path="$input_to_shortpath"
18675 
18676   input_path="$input_to_shortpath"
18677   # Check if we need to convert this using DOS-style short mode. If the path
18678   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18679   # take no chances and rewrite it.
18680   # Note: m4 eats our [], so we need to use [ and ] instead.
18681   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
18682   if test "x$has_forbidden_chars" != x; then
18683     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18684     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
18685     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
18686     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
18687       # Going to short mode and back again did indeed matter. Since short mode is
18688       # case insensitive, let's make it lowercase to improve readability.
18689       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18690       # Now convert it back to Unix-style (cygpath)
18691       input_path=`$CYGPATH -u "$shortmode_path"`
18692       new_path="$input_path"
18693     fi
18694   fi
18695 
18696   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
18697   if test "x$test_cygdrive_prefix" = x; then
18698     # As a simple fix, exclude /usr/bin since it's not a real path.
18699     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
18700       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
18701       # a path prefixed by /cygdrive for fixpath to work.
18702       new_path="$CYGWIN_ROOT_PATH$input_path"
18703     fi
18704   fi
18705 
18706   # remove trailing .exe if any
18707   new_path="${new_path/%.exe/}"
18708 
18709     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18710 
18711   # First separate the path from the arguments. This will split at the first
18712   # space.
18713   complete="$FOUND_MAKE"
18714   path="${complete%% *}"
18715   tmp="$complete EOL"
18716   arguments="${tmp#* }"
18717 
18718   # Input might be given as Windows format, start by converting to
18719   # unix format.
18720   new_path="$path"
18721 
18722   windows_path="$new_path"
18723   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18724     unix_path=`$CYGPATH -u "$windows_path"`
18725     new_path="$unix_path"
18726   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18727     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18728     new_path="$unix_path"
18729   fi
18730 
18731 
18732   # Now try to locate executable using which
18733   new_path=`$WHICH "$new_path" 2> /dev/null`
18734 
18735   if test "x$new_path" = x; then
18736     # Oops. Which didn't find the executable.
18737     # The splitting of arguments from the executable at a space might have been incorrect,
18738     # since paths with space are more likely in Windows. Give it another try with the whole
18739     # argument.
18740     path="$complete"
18741     arguments="EOL"
18742     new_path="$path"
18743 
18744   windows_path="$new_path"
18745   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18746     unix_path=`$CYGPATH -u "$windows_path"`
18747     new_path="$unix_path"
18748   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18749     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18750     new_path="$unix_path"
18751   fi
18752 
18753 
18754     new_path=`$WHICH "$new_path" 2> /dev/null`
18755     # bat and cmd files are not always considered executable in MSYS causing which
18756     # to not find them
18757     if test "x$new_path" = x \
18758         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18759         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18760       new_path="$path"
18761 
18762   windows_path="$new_path"
18763   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18764     unix_path=`$CYGPATH -u "$windows_path"`
18765     new_path="$unix_path"
18766   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18767     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18768     new_path="$unix_path"
18769   fi
18770 
18771     fi
18772 
18773     if test "x$new_path" = x; then
18774       # It's still not found. Now this is an unrecoverable error.
18775       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18776 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18777       has_space=`$ECHO "$complete" | $GREP " "`
18778       if test "x$has_space" != x; then
18779         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18780 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18781       fi
18782       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18783     fi
18784   fi
18785 
18786   # Now new_path has a complete unix path to the binary
18787   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
18788     # Keep paths in /bin as-is, but remove trailing .exe if any
18789     new_path="${new_path/%.exe/}"
18790     # Do not save /bin paths to all_fixpath_prefixes!
18791   else
18792     # Not in mixed or Windows style, start by that.
18793     new_path=`cmd //c echo $new_path`
18794 
18795   input_path="$new_path"
18796   # Check if we need to convert this using DOS-style short mode. If the path
18797   # contains just simple characters, use it. Otherwise (spaces, weird characters),
18798   # take no chances and rewrite it.
18799   # Note: m4 eats our [], so we need to use [ and ] instead.
18800   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
18801   if test "x$has_forbidden_chars" != x; then
18802     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
18803     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
18804   fi
18805 
18806     # Output is in $new_path
18807 
18808   windows_path="$new_path"
18809   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18810     unix_path=`$CYGPATH -u "$windows_path"`
18811     new_path="$unix_path"
18812   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18813     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
18814     new_path="$unix_path"
18815   fi
18816 
18817     # remove trailing .exe if any
18818     new_path="${new_path/%.exe/}"
18819 
18820     # Save the first 10 bytes of this path to the storage, so fixpath can work.
18821     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
18822   fi
18823 
18824     else
18825       # We're on a unix platform. Hooray! :)
18826       # First separate the path from the arguments. This will split at the first
18827       # space.
18828       complete="$FOUND_MAKE"
18829       path="${complete%% *}"
18830       tmp="$complete EOL"
18831       arguments="${tmp#* }"
18832 
18833       # Cannot rely on the command "which" here since it doesn't always work.
18834       is_absolute_path=`$ECHO "$path" | $GREP ^/`
18835       if test -z "$is_absolute_path"; then
18836         # Path to executable is not absolute. Find it.
18837         IFS_save="$IFS"
18838         IFS=:
18839         for p in $PATH; do
18840           if test -f "$p/$path" && test -x "$p/$path"; then
18841             new_path="$p/$path"
18842             break
18843           fi
18844         done
18845         IFS="$IFS_save"
18846       else
18847         # This is an absolute path, we can use it without further modifications.
18848         new_path="$path"
18849       fi
18850 
18851       if test "x$new_path" = x; then
18852         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
18853 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
18854         has_space=`$ECHO "$complete" | $GREP " "`
18855         if test "x$has_space" != x; then
18856           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
18857 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
18858         fi
18859         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
18860       fi
18861     fi
18862 
18863     # Now join together the path and the arguments once again
18864     if test "x$arguments" != xEOL; then
18865       new_complete="$new_path ${arguments% *}"
18866     else
18867       new_complete="$new_path"
18868     fi
18869 
18870     if test "x$complete" != "x$new_complete"; then
18871       FOUND_MAKE="$new_complete"
18872       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
18873 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
18874     fi
18875   fi
18876 
18877         fi
18878       fi
18879     fi
18880   fi
18881 
18882     fi
18883 
18884     if test "x$FOUND_MAKE" = x; then
18885       if test "x$TOOLCHAIN_PATH" != x; then
18886         # We have a toolchain path, check that as well before giving up.
18887         OLD_PATH=$PATH
18888         PATH=$TOOLCHAIN_PATH:$PATH
18889         for ac_prog in gmake
18890 do
18891   # Extract the first word of "$ac_prog", so it can be a program name with args.
18892 set dummy $ac_prog; ac_word=$2
18893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18894 $as_echo_n "checking for $ac_word... " >&6; }
18895 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
18896   $as_echo_n "(cached) " >&6
18897 else
18898   case $CHECK_TOOLSDIR_GMAKE in
18899   [\\/]* | ?:[\\/]*)
18900   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
18901   ;;
18902   *)
18903   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18904 for as_dir in $PATH
18905 do
18906   IFS=$as_save_IFS
18907   test -z "$as_dir" && as_dir=.
18908     for ac_exec_ext in '' $ac_executable_extensions; do
18909   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18910     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
18911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18912     break 2
18913   fi
18914 done
18915   done
18916 IFS=$as_save_IFS
18917 
18918   ;;
18919 esac
18920 fi
18921 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
18922 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
18923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
18924 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
18925 else
18926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18927 $as_echo "no" >&6; }
18928 fi
18929 
18930 
18931   test -n "$CHECK_TOOLSDIR_GMAKE" && break
18932 done
18933 
18934 
18935   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
18936   DESCRIPTION="gmake in tools-dir"
18937 
18938   # On Cygwin, we require a newer version of make than on other platforms
18939   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18940     MAKE_VERSION_EXPR="-e 4\."
18941     MAKE_REQUIRED_VERSION="4.0"
18942    else
18943     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
18944     MAKE_REQUIRED_VERSION="3.81"
18945   fi
18946 
18947   if test "x$MAKE_CANDIDATE" != x; then
18948     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
18949 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
18950     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
18951     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
18952     if test "x$IS_GNU_MAKE" = x; then
18953       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
18954 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
18955     else
18956       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
18957       if test "x$IS_MODERN_MAKE" = x; then
18958         { $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
18959 $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;}
18960       else
18961         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
18962           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18963             MAKE_EXPECTED_ENV='cygwin'
18964           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
18965             MAKE_EXPECTED_ENV='msys'
18966           else
18967             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
18968           fi
18969           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
18970           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
18971         else
18972           # Not relevant for non-Windows
18973           IS_MAKE_CORRECT_ENV=true
18974         fi
18975         if test "x$IS_MAKE_CORRECT_ENV" = x; then
18976           { $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
18977 $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;}
18978         else
18979           FOUND_MAKE=$MAKE_CANDIDATE
18980 
18981   # Only process if variable expands to non-empty
18982 
18983   if test "x$FOUND_MAKE" != x; then
18984     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18985 
18986   # First separate the path from the arguments. This will split at the first
18987   # space.
18988   complete="$FOUND_MAKE"
18989   path="${complete%% *}"
18990   tmp="$complete EOL"
18991   arguments="${tmp#* }"
18992 
18993   # Input might be given as Windows format, start by converting to
18994   # unix format.
18995   new_path=`$CYGPATH -u "$path"`
18996 
18997   # Now try to locate executable using which
18998   new_path=`$WHICH "$new_path" 2> /dev/null`
18999   # bat and cmd files are not always considered executable in cygwin causing which
19000   # to not find them
19001   if test "x$new_path" = x \
19002       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19003       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19004     new_path=`$CYGPATH -u "$path"`
19005   fi
19006   if test "x$new_path" = x; then
19007     # Oops. Which didn't find the executable.
19008     # The splitting of arguments from the executable at a space might have been incorrect,
19009     # since paths with space are more likely in Windows. Give it another try with the whole
19010     # argument.
19011     path="$complete"
19012     arguments="EOL"
19013     new_path=`$CYGPATH -u "$path"`
19014     new_path=`$WHICH "$new_path" 2> /dev/null`
19015     # bat and cmd files are not always considered executable in cygwin causing which
19016     # to not find them
19017     if test "x$new_path" = x \
19018         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19019         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19020       new_path=`$CYGPATH -u "$path"`
19021     fi
19022     if test "x$new_path" = x; then
19023       # It's still not found. Now this is an unrecoverable error.
19024       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19025 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19026       has_space=`$ECHO "$complete" | $GREP " "`
19027       if test "x$has_space" != x; then
19028         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19029 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19030       fi
19031       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19032     fi
19033   fi
19034 
19035   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19036   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19037   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19038   # "foo.exe" is OK but "foo" is an error.
19039   #
19040   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19041   # It is also a way to make sure we got the proper file name for the real test later on.
19042   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19043   if test "x$test_shortpath" = x; then
19044     # Short path failed, file does not exist as specified.
19045     # Try adding .exe or .cmd
19046     if test -f "${new_path}.exe"; then
19047       input_to_shortpath="${new_path}.exe"
19048     elif test -f "${new_path}.cmd"; then
19049       input_to_shortpath="${new_path}.cmd"
19050     else
19051       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19052 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19053       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19054 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19055       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19056     fi
19057   else
19058     input_to_shortpath="$new_path"
19059   fi
19060 
19061   # Call helper function which possibly converts this using DOS-style short mode.
19062   # If so, the updated path is stored in $new_path.
19063   new_path="$input_to_shortpath"
19064 
19065   input_path="$input_to_shortpath"
19066   # Check if we need to convert this using DOS-style short mode. If the path
19067   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19068   # take no chances and rewrite it.
19069   # Note: m4 eats our [], so we need to use [ and ] instead.
19070   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19071   if test "x$has_forbidden_chars" != x; then
19072     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19073     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19074     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19075     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19076       # Going to short mode and back again did indeed matter. Since short mode is
19077       # case insensitive, let's make it lowercase to improve readability.
19078       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19079       # Now convert it back to Unix-style (cygpath)
19080       input_path=`$CYGPATH -u "$shortmode_path"`
19081       new_path="$input_path"
19082     fi
19083   fi
19084 
19085   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19086   if test "x$test_cygdrive_prefix" = x; then
19087     # As a simple fix, exclude /usr/bin since it's not a real path.
19088     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19089       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19090       # a path prefixed by /cygdrive for fixpath to work.
19091       new_path="$CYGWIN_ROOT_PATH$input_path"
19092     fi
19093   fi
19094 
19095   # remove trailing .exe if any
19096   new_path="${new_path/%.exe/}"
19097 
19098     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19099 
19100   # First separate the path from the arguments. This will split at the first
19101   # space.
19102   complete="$FOUND_MAKE"
19103   path="${complete%% *}"
19104   tmp="$complete EOL"
19105   arguments="${tmp#* }"
19106 
19107   # Input might be given as Windows format, start by converting to
19108   # unix format.
19109   new_path="$path"
19110 
19111   windows_path="$new_path"
19112   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19113     unix_path=`$CYGPATH -u "$windows_path"`
19114     new_path="$unix_path"
19115   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19116     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19117     new_path="$unix_path"
19118   fi
19119 
19120 
19121   # Now try to locate executable using which
19122   new_path=`$WHICH "$new_path" 2> /dev/null`
19123 
19124   if test "x$new_path" = x; then
19125     # Oops. Which didn't find the executable.
19126     # The splitting of arguments from the executable at a space might have been incorrect,
19127     # since paths with space are more likely in Windows. Give it another try with the whole
19128     # argument.
19129     path="$complete"
19130     arguments="EOL"
19131     new_path="$path"
19132 
19133   windows_path="$new_path"
19134   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19135     unix_path=`$CYGPATH -u "$windows_path"`
19136     new_path="$unix_path"
19137   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19138     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19139     new_path="$unix_path"
19140   fi
19141 
19142 
19143     new_path=`$WHICH "$new_path" 2> /dev/null`
19144     # bat and cmd files are not always considered executable in MSYS causing which
19145     # to not find them
19146     if test "x$new_path" = x \
19147         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19148         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19149       new_path="$path"
19150 
19151   windows_path="$new_path"
19152   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19153     unix_path=`$CYGPATH -u "$windows_path"`
19154     new_path="$unix_path"
19155   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19156     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19157     new_path="$unix_path"
19158   fi
19159 
19160     fi
19161 
19162     if test "x$new_path" = x; then
19163       # It's still not found. Now this is an unrecoverable error.
19164       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19165 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19166       has_space=`$ECHO "$complete" | $GREP " "`
19167       if test "x$has_space" != x; then
19168         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19169 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19170       fi
19171       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19172     fi
19173   fi
19174 
19175   # Now new_path has a complete unix path to the binary
19176   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19177     # Keep paths in /bin as-is, but remove trailing .exe if any
19178     new_path="${new_path/%.exe/}"
19179     # Do not save /bin paths to all_fixpath_prefixes!
19180   else
19181     # Not in mixed or Windows style, start by that.
19182     new_path=`cmd //c echo $new_path`
19183 
19184   input_path="$new_path"
19185   # Check if we need to convert this using DOS-style short mode. If the path
19186   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19187   # take no chances and rewrite it.
19188   # Note: m4 eats our [], so we need to use [ and ] instead.
19189   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19190   if test "x$has_forbidden_chars" != x; then
19191     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19192     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19193   fi
19194 
19195     # Output is in $new_path
19196 
19197   windows_path="$new_path"
19198   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19199     unix_path=`$CYGPATH -u "$windows_path"`
19200     new_path="$unix_path"
19201   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19202     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19203     new_path="$unix_path"
19204   fi
19205 
19206     # remove trailing .exe if any
19207     new_path="${new_path/%.exe/}"
19208 
19209     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19210     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19211   fi
19212 
19213     else
19214       # We're on a unix platform. Hooray! :)
19215       # First separate the path from the arguments. This will split at the first
19216       # space.
19217       complete="$FOUND_MAKE"
19218       path="${complete%% *}"
19219       tmp="$complete EOL"
19220       arguments="${tmp#* }"
19221 
19222       # Cannot rely on the command "which" here since it doesn't always work.
19223       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19224       if test -z "$is_absolute_path"; then
19225         # Path to executable is not absolute. Find it.
19226         IFS_save="$IFS"
19227         IFS=:
19228         for p in $PATH; do
19229           if test -f "$p/$path" && test -x "$p/$path"; then
19230             new_path="$p/$path"
19231             break
19232           fi
19233         done
19234         IFS="$IFS_save"
19235       else
19236         # This is an absolute path, we can use it without further modifications.
19237         new_path="$path"
19238       fi
19239 
19240       if test "x$new_path" = x; then
19241         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19242 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19243         has_space=`$ECHO "$complete" | $GREP " "`
19244         if test "x$has_space" != x; then
19245           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19246 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19247         fi
19248         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19249       fi
19250     fi
19251 
19252     # Now join together the path and the arguments once again
19253     if test "x$arguments" != xEOL; then
19254       new_complete="$new_path ${arguments% *}"
19255     else
19256       new_complete="$new_path"
19257     fi
19258 
19259     if test "x$complete" != "x$new_complete"; then
19260       FOUND_MAKE="$new_complete"
19261       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19262 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19263     fi
19264   fi
19265 
19266         fi
19267       fi
19268     fi
19269   fi
19270 
19271         if test "x$FOUND_MAKE" = x; then
19272           for ac_prog in make
19273 do
19274   # Extract the first word of "$ac_prog", so it can be a program name with args.
19275 set dummy $ac_prog; ac_word=$2
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19277 $as_echo_n "checking for $ac_word... " >&6; }
19278 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
19279   $as_echo_n "(cached) " >&6
19280 else
19281   case $CHECK_TOOLSDIR_MAKE in
19282   [\\/]* | ?:[\\/]*)
19283   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
19284   ;;
19285   *)
19286   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19287 for as_dir in $PATH
19288 do
19289   IFS=$as_save_IFS
19290   test -z "$as_dir" && as_dir=.
19291     for ac_exec_ext in '' $ac_executable_extensions; do
19292   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19293     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
19294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19295     break 2
19296   fi
19297 done
19298   done
19299 IFS=$as_save_IFS
19300 
19301   ;;
19302 esac
19303 fi
19304 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
19305 if test -n "$CHECK_TOOLSDIR_MAKE"; then
19306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
19307 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
19308 else
19309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19310 $as_echo "no" >&6; }
19311 fi
19312 
19313 
19314   test -n "$CHECK_TOOLSDIR_MAKE" && break
19315 done
19316 
19317 
19318   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
19319   DESCRIPTION="make in tools-dir"
19320 
19321   # On Cygwin, we require a newer version of make than on other platforms
19322   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19323     MAKE_VERSION_EXPR="-e 4\."
19324     MAKE_REQUIRED_VERSION="4.0"
19325    else
19326     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19327     MAKE_REQUIRED_VERSION="3.81"
19328   fi
19329 
19330   if test "x$MAKE_CANDIDATE" != x; then
19331     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19332 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19333     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19334     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19335     if test "x$IS_GNU_MAKE" = x; then
19336       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19337 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19338     else
19339       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19340       if test "x$IS_MODERN_MAKE" = x; then
19341         { $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
19342 $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;}
19343       else
19344         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19345           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19346             MAKE_EXPECTED_ENV='cygwin'
19347           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19348             MAKE_EXPECTED_ENV='msys'
19349           else
19350             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19351           fi
19352           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19353           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19354         else
19355           # Not relevant for non-Windows
19356           IS_MAKE_CORRECT_ENV=true
19357         fi
19358         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19359           { $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
19360 $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;}
19361         else
19362           FOUND_MAKE=$MAKE_CANDIDATE
19363 
19364   # Only process if variable expands to non-empty
19365 
19366   if test "x$FOUND_MAKE" != x; then
19367     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19368 
19369   # First separate the path from the arguments. This will split at the first
19370   # space.
19371   complete="$FOUND_MAKE"
19372   path="${complete%% *}"
19373   tmp="$complete EOL"
19374   arguments="${tmp#* }"
19375 
19376   # Input might be given as Windows format, start by converting to
19377   # unix format.
19378   new_path=`$CYGPATH -u "$path"`
19379 
19380   # Now try to locate executable using which
19381   new_path=`$WHICH "$new_path" 2> /dev/null`
19382   # bat and cmd files are not always considered executable in cygwin causing which
19383   # to not find them
19384   if test "x$new_path" = x \
19385       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19386       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19387     new_path=`$CYGPATH -u "$path"`
19388   fi
19389   if test "x$new_path" = x; then
19390     # Oops. Which didn't find the executable.
19391     # The splitting of arguments from the executable at a space might have been incorrect,
19392     # since paths with space are more likely in Windows. Give it another try with the whole
19393     # argument.
19394     path="$complete"
19395     arguments="EOL"
19396     new_path=`$CYGPATH -u "$path"`
19397     new_path=`$WHICH "$new_path" 2> /dev/null`
19398     # bat and cmd files are not always considered executable in cygwin causing which
19399     # to not find them
19400     if test "x$new_path" = x \
19401         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19402         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19403       new_path=`$CYGPATH -u "$path"`
19404     fi
19405     if test "x$new_path" = x; then
19406       # It's still not found. Now this is an unrecoverable error.
19407       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19408 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19409       has_space=`$ECHO "$complete" | $GREP " "`
19410       if test "x$has_space" != x; then
19411         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19412 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19413       fi
19414       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19415     fi
19416   fi
19417 
19418   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19419   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19420   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19421   # "foo.exe" is OK but "foo" is an error.
19422   #
19423   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19424   # It is also a way to make sure we got the proper file name for the real test later on.
19425   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19426   if test "x$test_shortpath" = x; then
19427     # Short path failed, file does not exist as specified.
19428     # Try adding .exe or .cmd
19429     if test -f "${new_path}.exe"; then
19430       input_to_shortpath="${new_path}.exe"
19431     elif test -f "${new_path}.cmd"; then
19432       input_to_shortpath="${new_path}.cmd"
19433     else
19434       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19435 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19436       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19437 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19438       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19439     fi
19440   else
19441     input_to_shortpath="$new_path"
19442   fi
19443 
19444   # Call helper function which possibly converts this using DOS-style short mode.
19445   # If so, the updated path is stored in $new_path.
19446   new_path="$input_to_shortpath"
19447 
19448   input_path="$input_to_shortpath"
19449   # Check if we need to convert this using DOS-style short mode. If the path
19450   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19451   # take no chances and rewrite it.
19452   # Note: m4 eats our [], so we need to use [ and ] instead.
19453   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19454   if test "x$has_forbidden_chars" != x; then
19455     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19456     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19457     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19458     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19459       # Going to short mode and back again did indeed matter. Since short mode is
19460       # case insensitive, let's make it lowercase to improve readability.
19461       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19462       # Now convert it back to Unix-style (cygpath)
19463       input_path=`$CYGPATH -u "$shortmode_path"`
19464       new_path="$input_path"
19465     fi
19466   fi
19467 
19468   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19469   if test "x$test_cygdrive_prefix" = x; then
19470     # As a simple fix, exclude /usr/bin since it's not a real path.
19471     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19472       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19473       # a path prefixed by /cygdrive for fixpath to work.
19474       new_path="$CYGWIN_ROOT_PATH$input_path"
19475     fi
19476   fi
19477 
19478   # remove trailing .exe if any
19479   new_path="${new_path/%.exe/}"
19480 
19481     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19482 
19483   # First separate the path from the arguments. This will split at the first
19484   # space.
19485   complete="$FOUND_MAKE"
19486   path="${complete%% *}"
19487   tmp="$complete EOL"
19488   arguments="${tmp#* }"
19489 
19490   # Input might be given as Windows format, start by converting to
19491   # unix format.
19492   new_path="$path"
19493 
19494   windows_path="$new_path"
19495   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19496     unix_path=`$CYGPATH -u "$windows_path"`
19497     new_path="$unix_path"
19498   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19499     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19500     new_path="$unix_path"
19501   fi
19502 
19503 
19504   # Now try to locate executable using which
19505   new_path=`$WHICH "$new_path" 2> /dev/null`
19506 
19507   if test "x$new_path" = x; then
19508     # Oops. Which didn't find the executable.
19509     # The splitting of arguments from the executable at a space might have been incorrect,
19510     # since paths with space are more likely in Windows. Give it another try with the whole
19511     # argument.
19512     path="$complete"
19513     arguments="EOL"
19514     new_path="$path"
19515 
19516   windows_path="$new_path"
19517   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19518     unix_path=`$CYGPATH -u "$windows_path"`
19519     new_path="$unix_path"
19520   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19521     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19522     new_path="$unix_path"
19523   fi
19524 
19525 
19526     new_path=`$WHICH "$new_path" 2> /dev/null`
19527     # bat and cmd files are not always considered executable in MSYS causing which
19528     # to not find them
19529     if test "x$new_path" = x \
19530         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19531         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19532       new_path="$path"
19533 
19534   windows_path="$new_path"
19535   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19536     unix_path=`$CYGPATH -u "$windows_path"`
19537     new_path="$unix_path"
19538   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19539     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19540     new_path="$unix_path"
19541   fi
19542 
19543     fi
19544 
19545     if test "x$new_path" = x; then
19546       # It's still not found. Now this is an unrecoverable error.
19547       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19548 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19549       has_space=`$ECHO "$complete" | $GREP " "`
19550       if test "x$has_space" != x; then
19551         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19552 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19553       fi
19554       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19555     fi
19556   fi
19557 
19558   # Now new_path has a complete unix path to the binary
19559   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19560     # Keep paths in /bin as-is, but remove trailing .exe if any
19561     new_path="${new_path/%.exe/}"
19562     # Do not save /bin paths to all_fixpath_prefixes!
19563   else
19564     # Not in mixed or Windows style, start by that.
19565     new_path=`cmd //c echo $new_path`
19566 
19567   input_path="$new_path"
19568   # Check if we need to convert this using DOS-style short mode. If the path
19569   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19570   # take no chances and rewrite it.
19571   # Note: m4 eats our [], so we need to use [ and ] instead.
19572   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19573   if test "x$has_forbidden_chars" != x; then
19574     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19575     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19576   fi
19577 
19578     # Output is in $new_path
19579 
19580   windows_path="$new_path"
19581   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19582     unix_path=`$CYGPATH -u "$windows_path"`
19583     new_path="$unix_path"
19584   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19585     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19586     new_path="$unix_path"
19587   fi
19588 
19589     # remove trailing .exe if any
19590     new_path="${new_path/%.exe/}"
19591 
19592     # Save the first 10 bytes of this path to the storage, so fixpath can work.
19593     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19594   fi
19595 
19596     else
19597       # We're on a unix platform. Hooray! :)
19598       # First separate the path from the arguments. This will split at the first
19599       # space.
19600       complete="$FOUND_MAKE"
19601       path="${complete%% *}"
19602       tmp="$complete EOL"
19603       arguments="${tmp#* }"
19604 
19605       # Cannot rely on the command "which" here since it doesn't always work.
19606       is_absolute_path=`$ECHO "$path" | $GREP ^/`
19607       if test -z "$is_absolute_path"; then
19608         # Path to executable is not absolute. Find it.
19609         IFS_save="$IFS"
19610         IFS=:
19611         for p in $PATH; do
19612           if test -f "$p/$path" && test -x "$p/$path"; then
19613             new_path="$p/$path"
19614             break
19615           fi
19616         done
19617         IFS="$IFS_save"
19618       else
19619         # This is an absolute path, we can use it without further modifications.
19620         new_path="$path"
19621       fi
19622 
19623       if test "x$new_path" = x; then
19624         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19625 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19626         has_space=`$ECHO "$complete" | $GREP " "`
19627         if test "x$has_space" != x; then
19628           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
19629 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
19630         fi
19631         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19632       fi
19633     fi
19634 
19635     # Now join together the path and the arguments once again
19636     if test "x$arguments" != xEOL; then
19637       new_complete="$new_path ${arguments% *}"
19638     else
19639       new_complete="$new_path"
19640     fi
19641 
19642     if test "x$complete" != "x$new_complete"; then
19643       FOUND_MAKE="$new_complete"
19644       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
19645 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
19646     fi
19647   fi
19648 
19649         fi
19650       fi
19651     fi
19652   fi
19653 
19654         fi
19655         PATH=$OLD_PATH
19656       fi
19657     fi
19658 
19659     if test "x$FOUND_MAKE" = x; then
19660       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
19661     fi
19662 
19663     else
19664       # If it succeeded, then it was overridden by the user. We will use it
19665       # for the tool.
19666 
19667       # First remove it from the list of overridden variables, so we can test
19668       # for unknown variables in the end.
19669       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19670 
19671       # Check if we try to supply an empty value
19672       if test "x$MAKE" = x; then
19673         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5
19674 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;}
19675         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
19676 $as_echo_n "checking for MAKE... " >&6; }
19677         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
19678 $as_echo "disabled" >&6; }
19679       else
19680         # Check if the provided tool contains a complete path.
19681         tool_specified="$MAKE"
19682         tool_basename="${tool_specified##*/}"
19683         if test "x$tool_basename" = "x$tool_specified"; then
19684           # A command without a complete path is provided, search $PATH.
19685           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5
19686 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;}
19687           # Extract the first word of "$tool_basename", so it can be a program name with args.
19688 set dummy $tool_basename; ac_word=$2
19689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19690 $as_echo_n "checking for $ac_word... " >&6; }
19691 if ${ac_cv_path_MAKE+:} false; then :
19692   $as_echo_n "(cached) " >&6
19693 else
19694   case $MAKE in
19695   [\\/]* | ?:[\\/]*)
19696   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
19697   ;;
19698   *)
19699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19700 for as_dir in $PATH
19701 do
19702   IFS=$as_save_IFS
19703   test -z "$as_dir" && as_dir=.
19704     for ac_exec_ext in '' $ac_executable_extensions; do
19705   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19706     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
19707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19708     break 2
19709   fi
19710 done
19711   done
19712 IFS=$as_save_IFS
19713 
19714   ;;
19715 esac
19716 fi
19717 MAKE=$ac_cv_path_MAKE
19718 if test -n "$MAKE"; then
19719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
19720 $as_echo "$MAKE" >&6; }
19721 else
19722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19723 $as_echo "no" >&6; }
19724 fi
19725 
19726 
19727           if test "x$MAKE" = x; then
19728             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19729           fi
19730         else
19731           # Otherwise we believe it is a complete path. Use it as it is.
19732           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5
19733 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;}
19734           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5
19735 $as_echo_n "checking for MAKE... " >&6; }
19736           if test ! -x "$tool_specified"; then
19737             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19738 $as_echo "not found" >&6; }
19739             as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5
19740           fi
19741           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19742 $as_echo "$tool_specified" >&6; }
19743         fi
19744       fi
19745     fi
19746 
19747     # If MAKE was set by user, verify the version
19748 
19749   MAKE_CANDIDATE=""$MAKE""
19750   DESCRIPTION="user supplied MAKE=$MAKE"
19751 
19752   # On Cygwin, we require a newer version of make than on other platforms
19753   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19754     MAKE_VERSION_EXPR="-e 4\."
19755     MAKE_REQUIRED_VERSION="4.0"
19756    else
19757     MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\."
19758     MAKE_REQUIRED_VERSION="3.81"
19759   fi
19760 
19761   if test "x$MAKE_CANDIDATE" != x; then
19762     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
19763 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
19764     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
19765     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
19766     if test "x$IS_GNU_MAKE" = x; then
19767       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
19768 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
19769     else
19770       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR`
19771       if test "x$IS_MODERN_MAKE" = x; then
19772         { $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
19773 $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;}
19774       else
19775         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
19776           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19777             MAKE_EXPECTED_ENV='cygwin'
19778           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19779             MAKE_EXPECTED_ENV='msys'
19780           else
19781             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
19782           fi
19783           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
19784           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
19785         else
19786           # Not relevant for non-Windows
19787           IS_MAKE_CORRECT_ENV=true
19788         fi
19789         if test "x$IS_MAKE_CORRECT_ENV" = x; then
19790           { $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
19791 $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;}
19792         else
19793           FOUND_MAKE=$MAKE_CANDIDATE
19794 
19795   # Only process if variable expands to non-empty
19796 
19797   if test "x$FOUND_MAKE" != x; then
19798     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19799 
19800   # First separate the path from the arguments. This will split at the first
19801   # space.
19802   complete="$FOUND_MAKE"
19803   path="${complete%% *}"
19804   tmp="$complete EOL"
19805   arguments="${tmp#* }"
19806 
19807   # Input might be given as Windows format, start by converting to
19808   # unix format.
19809   new_path=`$CYGPATH -u "$path"`
19810 
19811   # Now try to locate executable using which
19812   new_path=`$WHICH "$new_path" 2> /dev/null`
19813   # bat and cmd files are not always considered executable in cygwin causing which
19814   # to not find them
19815   if test "x$new_path" = x \
19816       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19817       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19818     new_path=`$CYGPATH -u "$path"`
19819   fi
19820   if test "x$new_path" = x; then
19821     # Oops. Which didn't find the executable.
19822     # The splitting of arguments from the executable at a space might have been incorrect,
19823     # since paths with space are more likely in Windows. Give it another try with the whole
19824     # argument.
19825     path="$complete"
19826     arguments="EOL"
19827     new_path=`$CYGPATH -u "$path"`
19828     new_path=`$WHICH "$new_path" 2> /dev/null`
19829     # bat and cmd files are not always considered executable in cygwin causing which
19830     # to not find them
19831     if test "x$new_path" = x \
19832         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19833         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19834       new_path=`$CYGPATH -u "$path"`
19835     fi
19836     if test "x$new_path" = x; then
19837       # It's still not found. Now this is an unrecoverable error.
19838       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19839 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19840       has_space=`$ECHO "$complete" | $GREP " "`
19841       if test "x$has_space" != x; then
19842         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19843 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19844       fi
19845       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19846     fi
19847   fi
19848 
19849   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19850   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19851   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19852   # "foo.exe" is OK but "foo" is an error.
19853   #
19854   # This test is therefore slightly more accurate than "test -f" to check for file presence.
19855   # It is also a way to make sure we got the proper file name for the real test later on.
19856   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19857   if test "x$test_shortpath" = x; then
19858     # Short path failed, file does not exist as specified.
19859     # Try adding .exe or .cmd
19860     if test -f "${new_path}.exe"; then
19861       input_to_shortpath="${new_path}.exe"
19862     elif test -f "${new_path}.cmd"; then
19863       input_to_shortpath="${new_path}.cmd"
19864     else
19865       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
19866 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
19867       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
19868 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
19869       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19870     fi
19871   else
19872     input_to_shortpath="$new_path"
19873   fi
19874 
19875   # Call helper function which possibly converts this using DOS-style short mode.
19876   # If so, the updated path is stored in $new_path.
19877   new_path="$input_to_shortpath"
19878 
19879   input_path="$input_to_shortpath"
19880   # Check if we need to convert this using DOS-style short mode. If the path
19881   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19882   # take no chances and rewrite it.
19883   # Note: m4 eats our [], so we need to use [ and ] instead.
19884   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19885   if test "x$has_forbidden_chars" != x; then
19886     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19887     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19888     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19889     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19890       # Going to short mode and back again did indeed matter. Since short mode is
19891       # case insensitive, let's make it lowercase to improve readability.
19892       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19893       # Now convert it back to Unix-style (cygpath)
19894       input_path=`$CYGPATH -u "$shortmode_path"`
19895       new_path="$input_path"
19896     fi
19897   fi
19898 
19899   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19900   if test "x$test_cygdrive_prefix" = x; then
19901     # As a simple fix, exclude /usr/bin since it's not a real path.
19902     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
19903       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19904       # a path prefixed by /cygdrive for fixpath to work.
19905       new_path="$CYGWIN_ROOT_PATH$input_path"
19906     fi
19907   fi
19908 
19909   # remove trailing .exe if any
19910   new_path="${new_path/%.exe/}"
19911 
19912     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19913 
19914   # First separate the path from the arguments. This will split at the first
19915   # space.
19916   complete="$FOUND_MAKE"
19917   path="${complete%% *}"
19918   tmp="$complete EOL"
19919   arguments="${tmp#* }"
19920 
19921   # Input might be given as Windows format, start by converting to
19922   # unix format.
19923   new_path="$path"
19924 
19925   windows_path="$new_path"
19926   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19927     unix_path=`$CYGPATH -u "$windows_path"`
19928     new_path="$unix_path"
19929   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19930     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19931     new_path="$unix_path"
19932   fi
19933 
19934 
19935   # Now try to locate executable using which
19936   new_path=`$WHICH "$new_path" 2> /dev/null`
19937 
19938   if test "x$new_path" = x; then
19939     # Oops. Which didn't find the executable.
19940     # The splitting of arguments from the executable at a space might have been incorrect,
19941     # since paths with space are more likely in Windows. Give it another try with the whole
19942     # argument.
19943     path="$complete"
19944     arguments="EOL"
19945     new_path="$path"
19946 
19947   windows_path="$new_path"
19948   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19949     unix_path=`$CYGPATH -u "$windows_path"`
19950     new_path="$unix_path"
19951   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19952     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19953     new_path="$unix_path"
19954   fi
19955 
19956 
19957     new_path=`$WHICH "$new_path" 2> /dev/null`
19958     # bat and cmd files are not always considered executable in MSYS causing which
19959     # to not find them
19960     if test "x$new_path" = x \
19961         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19962         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19963       new_path="$path"
19964 
19965   windows_path="$new_path"
19966   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19967     unix_path=`$CYGPATH -u "$windows_path"`
19968     new_path="$unix_path"
19969   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19970     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19971     new_path="$unix_path"
19972   fi
19973 
19974     fi
19975 
19976     if test "x$new_path" = x; then
19977       # It's still not found. Now this is an unrecoverable error.
19978       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
19979 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
19980       has_space=`$ECHO "$complete" | $GREP " "`
19981       if test "x$has_space" != x; then
19982         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19983 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19984       fi
19985       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
19986     fi
19987   fi
19988 
19989   # Now new_path has a complete unix path to the binary
19990   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
19991     # Keep paths in /bin as-is, but remove trailing .exe if any
19992     new_path="${new_path/%.exe/}"
19993     # Do not save /bin paths to all_fixpath_prefixes!
19994   else
19995     # Not in mixed or Windows style, start by that.
19996     new_path=`cmd //c echo $new_path`
19997 
19998   input_path="$new_path"
19999   # Check if we need to convert this using DOS-style short mode. If the path
20000   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20001   # take no chances and rewrite it.
20002   # Note: m4 eats our [], so we need to use [ and ] instead.
20003   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20004   if test "x$has_forbidden_chars" != x; then
20005     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20006     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20007   fi
20008 
20009     # Output is in $new_path
20010 
20011   windows_path="$new_path"
20012   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20013     unix_path=`$CYGPATH -u "$windows_path"`
20014     new_path="$unix_path"
20015   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20016     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20017     new_path="$unix_path"
20018   fi
20019 
20020     # remove trailing .exe if any
20021     new_path="${new_path/%.exe/}"
20022 
20023     # Save the first 10 bytes of this path to the storage, so fixpath can work.
20024     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20025   fi
20026 
20027     else
20028       # We're on a unix platform. Hooray! :)
20029       # First separate the path from the arguments. This will split at the first
20030       # space.
20031       complete="$FOUND_MAKE"
20032       path="${complete%% *}"
20033       tmp="$complete EOL"
20034       arguments="${tmp#* }"
20035 
20036       # Cannot rely on the command "which" here since it doesn't always work.
20037       is_absolute_path=`$ECHO "$path" | $GREP ^/`
20038       if test -z "$is_absolute_path"; then
20039         # Path to executable is not absolute. Find it.
20040         IFS_save="$IFS"
20041         IFS=:
20042         for p in $PATH; do
20043           if test -f "$p/$path" && test -x "$p/$path"; then
20044             new_path="$p/$path"
20045             break
20046           fi
20047         done
20048         IFS="$IFS_save"
20049       else
20050         # This is an absolute path, we can use it without further modifications.
20051         new_path="$path"
20052       fi
20053 
20054       if test "x$new_path" = x; then
20055         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
20056 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
20057         has_space=`$ECHO "$complete" | $GREP " "`
20058         if test "x$has_space" != x; then
20059           { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
20060 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
20061         fi
20062         as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
20063       fi
20064     fi
20065 
20066     # Now join together the path and the arguments once again
20067     if test "x$arguments" != xEOL; then
20068       new_complete="$new_path ${arguments% *}"
20069     else
20070       new_complete="$new_path"
20071     fi
20072 
20073     if test "x$complete" != "x$new_complete"; then
20074       FOUND_MAKE="$new_complete"
20075       { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
20076 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
20077     fi
20078   fi
20079 
20080         fi
20081       fi
20082     fi
20083   fi
20084 
20085     if test "x$FOUND_MAKE" = x; then
20086       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5
20087     fi
20088 
20089   fi
20090 
20091 
20092   MAKE=$FOUND_MAKE
20093 
20094   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
20095 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
20096 
20097 
20098   # Check if make supports the output sync option and if so, setup using it.
20099   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5
20100 $as_echo_n "checking if make --output-sync is supported... " >&6; }
20101   if $MAKE --version -O > /dev/null 2>&1; then
20102     OUTPUT_SYNC_SUPPORTED=true
20103     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20104 $as_echo "yes" >&6; }
20105     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5
20106 $as_echo_n "checking for output-sync value... " >&6; }
20107 
20108 # Check whether --with-output-sync was given.
20109 if test "${with_output_sync+set}" = set; then :
20110   withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync
20111 fi
20112 
20113     if test "x$OUTPUT_SYNC" = "x"; then
20114       OUTPUT_SYNC=none
20115     fi
20116     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5
20117 $as_echo "$OUTPUT_SYNC" >&6; }
20118     if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then
20119       as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5
20120     fi
20121   else
20122     OUTPUT_SYNC_SUPPORTED=false
20123     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20124 $as_echo "no" >&6; }
20125   fi
20126 
20127 
20128 
20129 
20130 
20131 
20132   # Test if find supports -delete
20133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
20134 $as_echo_n "checking if find supports -delete... " >&6; }
20135   FIND_DELETE="-delete"
20136 
20137   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
20138 
20139   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
20140 
20141   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
20142   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
20143     # No, it does not.
20144     rm $DELETEDIR/TestIfFindSupportsDelete
20145     if test "x$OPENJDK_TARGET_OS" = "xaix"; then
20146       # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list
20147       FIND_DELETE="-print | xargs rm"
20148     else
20149       FIND_DELETE="-exec rm \{\} \+"
20150     fi
20151     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20152 $as_echo "no" >&6; }
20153   else
20154     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20155 $as_echo "yes" >&6; }
20156   fi
20157   rmdir $DELETEDIR
20158 
20159 
20160 
20161   # These tools might not be installed by default,
20162   # need hint on how to install them.
20163 
20164 
20165 
20166   # Publish this variable in the help.
20167 
20168 
20169   if [ -z "${UNZIP+x}" ]; then
20170     # The variable is not set by user, try to locate tool using the code snippet
20171     for ac_prog in unzip
20172 do
20173   # Extract the first word of "$ac_prog", so it can be a program name with args.
20174 set dummy $ac_prog; ac_word=$2
20175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20176 $as_echo_n "checking for $ac_word... " >&6; }
20177 if ${ac_cv_path_UNZIP+:} false; then :
20178   $as_echo_n "(cached) " >&6
20179 else
20180   case $UNZIP in
20181   [\\/]* | ?:[\\/]*)
20182   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20183   ;;
20184   *)
20185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20186 for as_dir in $PATH
20187 do
20188   IFS=$as_save_IFS
20189   test -z "$as_dir" && as_dir=.
20190     for ac_exec_ext in '' $ac_executable_extensions; do
20191   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20192     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20194     break 2
20195   fi
20196 done
20197   done
20198 IFS=$as_save_IFS
20199 
20200   ;;
20201 esac
20202 fi
20203 UNZIP=$ac_cv_path_UNZIP
20204 if test -n "$UNZIP"; then
20205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20206 $as_echo "$UNZIP" >&6; }
20207 else
20208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20209 $as_echo "no" >&6; }
20210 fi
20211 
20212 
20213   test -n "$UNZIP" && break
20214 done
20215 
20216   else
20217     # The variable is set, but is it from the command line or the environment?
20218 
20219     # Try to remove the string !UNZIP! from our list.
20220     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
20221     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20222       # If it failed, the variable was not from the command line. Ignore it,
20223       # but warn the user (except for BASH, which is always set by the calling BASH).
20224       if test "xUNZIP" != xBASH; then
20225         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
20226 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
20227       fi
20228       # Try to locate tool using the code snippet
20229       for ac_prog in unzip
20230 do
20231   # Extract the first word of "$ac_prog", so it can be a program name with args.
20232 set dummy $ac_prog; ac_word=$2
20233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20234 $as_echo_n "checking for $ac_word... " >&6; }
20235 if ${ac_cv_path_UNZIP+:} false; then :
20236   $as_echo_n "(cached) " >&6
20237 else
20238   case $UNZIP in
20239   [\\/]* | ?:[\\/]*)
20240   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20241   ;;
20242   *)
20243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20244 for as_dir in $PATH
20245 do
20246   IFS=$as_save_IFS
20247   test -z "$as_dir" && as_dir=.
20248     for ac_exec_ext in '' $ac_executable_extensions; do
20249   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20250     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20252     break 2
20253   fi
20254 done
20255   done
20256 IFS=$as_save_IFS
20257 
20258   ;;
20259 esac
20260 fi
20261 UNZIP=$ac_cv_path_UNZIP
20262 if test -n "$UNZIP"; then
20263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20264 $as_echo "$UNZIP" >&6; }
20265 else
20266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20267 $as_echo "no" >&6; }
20268 fi
20269 
20270 
20271   test -n "$UNZIP" && break
20272 done
20273 
20274     else
20275       # If it succeeded, then it was overridden by the user. We will use it
20276       # for the tool.
20277 
20278       # First remove it from the list of overridden variables, so we can test
20279       # for unknown variables in the end.
20280       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20281 
20282       # Check if we try to supply an empty value
20283       if test "x$UNZIP" = x; then
20284         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5
20285 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;}
20286         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
20287 $as_echo_n "checking for UNZIP... " >&6; }
20288         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20289 $as_echo "disabled" >&6; }
20290       else
20291         # Check if the provided tool contains a complete path.
20292         tool_specified="$UNZIP"
20293         tool_basename="${tool_specified##*/}"
20294         if test "x$tool_basename" = "x$tool_specified"; then
20295           # A command without a complete path is provided, search $PATH.
20296           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
20297 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
20298           # Extract the first word of "$tool_basename", so it can be a program name with args.
20299 set dummy $tool_basename; ac_word=$2
20300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20301 $as_echo_n "checking for $ac_word... " >&6; }
20302 if ${ac_cv_path_UNZIP+:} false; then :
20303   $as_echo_n "(cached) " >&6
20304 else
20305   case $UNZIP in
20306   [\\/]* | ?:[\\/]*)
20307   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
20308   ;;
20309   *)
20310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20311 for as_dir in $PATH
20312 do
20313   IFS=$as_save_IFS
20314   test -z "$as_dir" && as_dir=.
20315     for ac_exec_ext in '' $ac_executable_extensions; do
20316   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20317     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
20318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20319     break 2
20320   fi
20321 done
20322   done
20323 IFS=$as_save_IFS
20324 
20325   ;;
20326 esac
20327 fi
20328 UNZIP=$ac_cv_path_UNZIP
20329 if test -n "$UNZIP"; then
20330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
20331 $as_echo "$UNZIP" >&6; }
20332 else
20333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20334 $as_echo "no" >&6; }
20335 fi
20336 
20337 
20338           if test "x$UNZIP" = x; then
20339             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20340           fi
20341         else
20342           # Otherwise we believe it is a complete path. Use it as it is.
20343           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
20344 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
20345           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
20346 $as_echo_n "checking for UNZIP... " >&6; }
20347           if test ! -x "$tool_specified"; then
20348             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20349 $as_echo "not found" >&6; }
20350             as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
20351           fi
20352           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20353 $as_echo "$tool_specified" >&6; }
20354         fi
20355       fi
20356     fi
20357 
20358   fi
20359 
20360 
20361 
20362   if test "x$UNZIP" = x; then
20363     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
20364   fi
20365 
20366 
20367 
20368 
20369 
20370   # Publish this variable in the help.
20371 
20372 
20373   if [ -z "${ZIP+x}" ]; then
20374     # The variable is not set by user, try to locate tool using the code snippet
20375     for ac_prog in zip
20376 do
20377   # Extract the first word of "$ac_prog", so it can be a program name with args.
20378 set dummy $ac_prog; ac_word=$2
20379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20380 $as_echo_n "checking for $ac_word... " >&6; }
20381 if ${ac_cv_path_ZIP+:} false; then :
20382   $as_echo_n "(cached) " >&6
20383 else
20384   case $ZIP in
20385   [\\/]* | ?:[\\/]*)
20386   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20387   ;;
20388   *)
20389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20390 for as_dir in $PATH
20391 do
20392   IFS=$as_save_IFS
20393   test -z "$as_dir" && as_dir=.
20394     for ac_exec_ext in '' $ac_executable_extensions; do
20395   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20396     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20398     break 2
20399   fi
20400 done
20401   done
20402 IFS=$as_save_IFS
20403 
20404   ;;
20405 esac
20406 fi
20407 ZIP=$ac_cv_path_ZIP
20408 if test -n "$ZIP"; then
20409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
20410 $as_echo "$ZIP" >&6; }
20411 else
20412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20413 $as_echo "no" >&6; }
20414 fi
20415 
20416 
20417   test -n "$ZIP" && break
20418 done
20419 
20420   else
20421     # The variable is set, but is it from the command line or the environment?
20422 
20423     # Try to remove the string !ZIP! from our list.
20424     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
20425     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20426       # If it failed, the variable was not from the command line. Ignore it,
20427       # but warn the user (except for BASH, which is always set by the calling BASH).
20428       if test "xZIP" != xBASH; then
20429         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
20430 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
20431       fi
20432       # Try to locate tool using the code snippet
20433       for ac_prog in zip
20434 do
20435   # Extract the first word of "$ac_prog", so it can be a program name with args.
20436 set dummy $ac_prog; ac_word=$2
20437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20438 $as_echo_n "checking for $ac_word... " >&6; }
20439 if ${ac_cv_path_ZIP+:} false; then :
20440   $as_echo_n "(cached) " >&6
20441 else
20442   case $ZIP in
20443   [\\/]* | ?:[\\/]*)
20444   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20445   ;;
20446   *)
20447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20448 for as_dir in $PATH
20449 do
20450   IFS=$as_save_IFS
20451   test -z "$as_dir" && as_dir=.
20452     for ac_exec_ext in '' $ac_executable_extensions; do
20453   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20454     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20456     break 2
20457   fi
20458 done
20459   done
20460 IFS=$as_save_IFS
20461 
20462   ;;
20463 esac
20464 fi
20465 ZIP=$ac_cv_path_ZIP
20466 if test -n "$ZIP"; then
20467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
20468 $as_echo "$ZIP" >&6; }
20469 else
20470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20471 $as_echo "no" >&6; }
20472 fi
20473 
20474 
20475   test -n "$ZIP" && break
20476 done
20477 
20478     else
20479       # If it succeeded, then it was overridden by the user. We will use it
20480       # for the tool.
20481 
20482       # First remove it from the list of overridden variables, so we can test
20483       # for unknown variables in the end.
20484       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20485 
20486       # Check if we try to supply an empty value
20487       if test "x$ZIP" = x; then
20488         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIP= (no value)" >&5
20489 $as_echo "$as_me: Setting user supplied tool ZIP= (no value)" >&6;}
20490         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
20491 $as_echo_n "checking for ZIP... " >&6; }
20492         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20493 $as_echo "disabled" >&6; }
20494       else
20495         # Check if the provided tool contains a complete path.
20496         tool_specified="$ZIP"
20497         tool_basename="${tool_specified##*/}"
20498         if test "x$tool_basename" = "x$tool_specified"; then
20499           # A command without a complete path is provided, search $PATH.
20500           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
20501 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
20502           # Extract the first word of "$tool_basename", so it can be a program name with args.
20503 set dummy $tool_basename; ac_word=$2
20504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20505 $as_echo_n "checking for $ac_word... " >&6; }
20506 if ${ac_cv_path_ZIP+:} false; then :
20507   $as_echo_n "(cached) " >&6
20508 else
20509   case $ZIP in
20510   [\\/]* | ?:[\\/]*)
20511   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
20512   ;;
20513   *)
20514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20515 for as_dir in $PATH
20516 do
20517   IFS=$as_save_IFS
20518   test -z "$as_dir" && as_dir=.
20519     for ac_exec_ext in '' $ac_executable_extensions; do
20520   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20521     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
20522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20523     break 2
20524   fi
20525 done
20526   done
20527 IFS=$as_save_IFS
20528 
20529   ;;
20530 esac
20531 fi
20532 ZIP=$ac_cv_path_ZIP
20533 if test -n "$ZIP"; then
20534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
20535 $as_echo "$ZIP" >&6; }
20536 else
20537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20538 $as_echo "no" >&6; }
20539 fi
20540 
20541 
20542           if test "x$ZIP" = x; then
20543             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20544           fi
20545         else
20546           # Otherwise we believe it is a complete path. Use it as it is.
20547           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
20548 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
20549           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
20550 $as_echo_n "checking for ZIP... " >&6; }
20551           if test ! -x "$tool_specified"; then
20552             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20553 $as_echo "not found" >&6; }
20554             as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
20555           fi
20556           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20557 $as_echo "$tool_specified" >&6; }
20558         fi
20559       fi
20560     fi
20561 
20562   fi
20563 
20564 
20565 
20566   if test "x$ZIP" = x; then
20567     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
20568   fi
20569 
20570 
20571 
20572   # Non-required basic tools
20573 
20574 
20575 
20576   # Publish this variable in the help.
20577 
20578 
20579   if [ -z "${LDD+x}" ]; then
20580     # The variable is not set by user, try to locate tool using the code snippet
20581     for ac_prog in ldd
20582 do
20583   # Extract the first word of "$ac_prog", so it can be a program name with args.
20584 set dummy $ac_prog; ac_word=$2
20585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20586 $as_echo_n "checking for $ac_word... " >&6; }
20587 if ${ac_cv_path_LDD+:} false; then :
20588   $as_echo_n "(cached) " >&6
20589 else
20590   case $LDD in
20591   [\\/]* | ?:[\\/]*)
20592   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
20593   ;;
20594   *)
20595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20596 for as_dir in $PATH
20597 do
20598   IFS=$as_save_IFS
20599   test -z "$as_dir" && as_dir=.
20600     for ac_exec_ext in '' $ac_executable_extensions; do
20601   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20602     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
20603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20604     break 2
20605   fi
20606 done
20607   done
20608 IFS=$as_save_IFS
20609 
20610   ;;
20611 esac
20612 fi
20613 LDD=$ac_cv_path_LDD
20614 if test -n "$LDD"; then
20615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
20616 $as_echo "$LDD" >&6; }
20617 else
20618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20619 $as_echo "no" >&6; }
20620 fi
20621 
20622 
20623   test -n "$LDD" && break
20624 done
20625 
20626   else
20627     # The variable is set, but is it from the command line or the environment?
20628 
20629     # Try to remove the string !LDD! from our list.
20630     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
20631     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20632       # If it failed, the variable was not from the command line. Ignore it,
20633       # but warn the user (except for BASH, which is always set by the calling BASH).
20634       if test "xLDD" != xBASH; then
20635         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
20636 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
20637       fi
20638       # Try to locate tool using the code snippet
20639       for ac_prog in ldd
20640 do
20641   # Extract the first word of "$ac_prog", so it can be a program name with args.
20642 set dummy $ac_prog; ac_word=$2
20643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20644 $as_echo_n "checking for $ac_word... " >&6; }
20645 if ${ac_cv_path_LDD+:} false; then :
20646   $as_echo_n "(cached) " >&6
20647 else
20648   case $LDD in
20649   [\\/]* | ?:[\\/]*)
20650   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
20651   ;;
20652   *)
20653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20654 for as_dir in $PATH
20655 do
20656   IFS=$as_save_IFS
20657   test -z "$as_dir" && as_dir=.
20658     for ac_exec_ext in '' $ac_executable_extensions; do
20659   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20660     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
20661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20662     break 2
20663   fi
20664 done
20665   done
20666 IFS=$as_save_IFS
20667 
20668   ;;
20669 esac
20670 fi
20671 LDD=$ac_cv_path_LDD
20672 if test -n "$LDD"; then
20673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
20674 $as_echo "$LDD" >&6; }
20675 else
20676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20677 $as_echo "no" >&6; }
20678 fi
20679 
20680 
20681   test -n "$LDD" && break
20682 done
20683 
20684     else
20685       # If it succeeded, then it was overridden by the user. We will use it
20686       # for the tool.
20687 
20688       # First remove it from the list of overridden variables, so we can test
20689       # for unknown variables in the end.
20690       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20691 
20692       # Check if we try to supply an empty value
20693       if test "x$LDD" = x; then
20694         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5
20695 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;}
20696         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
20697 $as_echo_n "checking for LDD... " >&6; }
20698         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20699 $as_echo "disabled" >&6; }
20700       else
20701         # Check if the provided tool contains a complete path.
20702         tool_specified="$LDD"
20703         tool_basename="${tool_specified##*/}"
20704         if test "x$tool_basename" = "x$tool_specified"; then
20705           # A command without a complete path is provided, search $PATH.
20706           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
20707 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
20708           # Extract the first word of "$tool_basename", so it can be a program name with args.
20709 set dummy $tool_basename; ac_word=$2
20710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20711 $as_echo_n "checking for $ac_word... " >&6; }
20712 if ${ac_cv_path_LDD+:} false; then :
20713   $as_echo_n "(cached) " >&6
20714 else
20715   case $LDD in
20716   [\\/]* | ?:[\\/]*)
20717   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
20718   ;;
20719   *)
20720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20721 for as_dir in $PATH
20722 do
20723   IFS=$as_save_IFS
20724   test -z "$as_dir" && as_dir=.
20725     for ac_exec_ext in '' $ac_executable_extensions; do
20726   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20727     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
20728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20729     break 2
20730   fi
20731 done
20732   done
20733 IFS=$as_save_IFS
20734 
20735   ;;
20736 esac
20737 fi
20738 LDD=$ac_cv_path_LDD
20739 if test -n "$LDD"; then
20740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
20741 $as_echo "$LDD" >&6; }
20742 else
20743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20744 $as_echo "no" >&6; }
20745 fi
20746 
20747 
20748           if test "x$LDD" = x; then
20749             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20750           fi
20751         else
20752           # Otherwise we believe it is a complete path. Use it as it is.
20753           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
20754 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
20755           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
20756 $as_echo_n "checking for LDD... " >&6; }
20757           if test ! -x "$tool_specified"; then
20758             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20759 $as_echo "not found" >&6; }
20760             as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
20761           fi
20762           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20763 $as_echo "$tool_specified" >&6; }
20764         fi
20765       fi
20766     fi
20767 
20768   fi
20769 
20770 
20771   if test "x$LDD" = "x"; then
20772     # List shared lib dependencies is used for
20773     # debug output and checking for forbidden dependencies.
20774     # We can build without it.
20775     LDD="true"
20776   fi
20777 
20778 
20779   # Publish this variable in the help.
20780 
20781 
20782   if [ -z "${OTOOL+x}" ]; then
20783     # The variable is not set by user, try to locate tool using the code snippet
20784     for ac_prog in otool
20785 do
20786   # Extract the first word of "$ac_prog", so it can be a program name with args.
20787 set dummy $ac_prog; ac_word=$2
20788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20789 $as_echo_n "checking for $ac_word... " >&6; }
20790 if ${ac_cv_path_OTOOL+:} false; then :
20791   $as_echo_n "(cached) " >&6
20792 else
20793   case $OTOOL in
20794   [\\/]* | ?:[\\/]*)
20795   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
20796   ;;
20797   *)
20798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20799 for as_dir in $PATH
20800 do
20801   IFS=$as_save_IFS
20802   test -z "$as_dir" && as_dir=.
20803     for ac_exec_ext in '' $ac_executable_extensions; do
20804   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20805     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
20806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20807     break 2
20808   fi
20809 done
20810   done
20811 IFS=$as_save_IFS
20812 
20813   ;;
20814 esac
20815 fi
20816 OTOOL=$ac_cv_path_OTOOL
20817 if test -n "$OTOOL"; then
20818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
20819 $as_echo "$OTOOL" >&6; }
20820 else
20821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20822 $as_echo "no" >&6; }
20823 fi
20824 
20825 
20826   test -n "$OTOOL" && break
20827 done
20828 
20829   else
20830     # The variable is set, but is it from the command line or the environment?
20831 
20832     # Try to remove the string !OTOOL! from our list.
20833     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
20834     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
20835       # If it failed, the variable was not from the command line. Ignore it,
20836       # but warn the user (except for BASH, which is always set by the calling BASH).
20837       if test "xOTOOL" != xBASH; then
20838         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
20839 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
20840       fi
20841       # Try to locate tool using the code snippet
20842       for ac_prog in otool
20843 do
20844   # Extract the first word of "$ac_prog", so it can be a program name with args.
20845 set dummy $ac_prog; ac_word=$2
20846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20847 $as_echo_n "checking for $ac_word... " >&6; }
20848 if ${ac_cv_path_OTOOL+:} false; then :
20849   $as_echo_n "(cached) " >&6
20850 else
20851   case $OTOOL in
20852   [\\/]* | ?:[\\/]*)
20853   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
20854   ;;
20855   *)
20856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20857 for as_dir in $PATH
20858 do
20859   IFS=$as_save_IFS
20860   test -z "$as_dir" && as_dir=.
20861     for ac_exec_ext in '' $ac_executable_extensions; do
20862   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20863     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
20864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20865     break 2
20866   fi
20867 done
20868   done
20869 IFS=$as_save_IFS
20870 
20871   ;;
20872 esac
20873 fi
20874 OTOOL=$ac_cv_path_OTOOL
20875 if test -n "$OTOOL"; then
20876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
20877 $as_echo "$OTOOL" >&6; }
20878 else
20879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20880 $as_echo "no" >&6; }
20881 fi
20882 
20883 
20884   test -n "$OTOOL" && break
20885 done
20886 
20887     else
20888       # If it succeeded, then it was overridden by the user. We will use it
20889       # for the tool.
20890 
20891       # First remove it from the list of overridden variables, so we can test
20892       # for unknown variables in the end.
20893       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
20894 
20895       # Check if we try to supply an empty value
20896       if test "x$OTOOL" = x; then
20897         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5
20898 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;}
20899         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
20900 $as_echo_n "checking for OTOOL... " >&6; }
20901         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
20902 $as_echo "disabled" >&6; }
20903       else
20904         # Check if the provided tool contains a complete path.
20905         tool_specified="$OTOOL"
20906         tool_basename="${tool_specified##*/}"
20907         if test "x$tool_basename" = "x$tool_specified"; then
20908           # A command without a complete path is provided, search $PATH.
20909           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
20910 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
20911           # Extract the first word of "$tool_basename", so it can be a program name with args.
20912 set dummy $tool_basename; ac_word=$2
20913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20914 $as_echo_n "checking for $ac_word... " >&6; }
20915 if ${ac_cv_path_OTOOL+:} false; then :
20916   $as_echo_n "(cached) " >&6
20917 else
20918   case $OTOOL in
20919   [\\/]* | ?:[\\/]*)
20920   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
20921   ;;
20922   *)
20923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20924 for as_dir in $PATH
20925 do
20926   IFS=$as_save_IFS
20927   test -z "$as_dir" && as_dir=.
20928     for ac_exec_ext in '' $ac_executable_extensions; do
20929   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20930     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
20931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20932     break 2
20933   fi
20934 done
20935   done
20936 IFS=$as_save_IFS
20937 
20938   ;;
20939 esac
20940 fi
20941 OTOOL=$ac_cv_path_OTOOL
20942 if test -n "$OTOOL"; then
20943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
20944 $as_echo "$OTOOL" >&6; }
20945 else
20946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20947 $as_echo "no" >&6; }
20948 fi
20949 
20950 
20951           if test "x$OTOOL" = x; then
20952             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
20953           fi
20954         else
20955           # Otherwise we believe it is a complete path. Use it as it is.
20956           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
20957 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
20958           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
20959 $as_echo_n "checking for OTOOL... " >&6; }
20960           if test ! -x "$tool_specified"; then
20961             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20962 $as_echo "not found" >&6; }
20963             as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
20964           fi
20965           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
20966 $as_echo "$tool_specified" >&6; }
20967         fi
20968       fi
20969     fi
20970 
20971   fi
20972 
20973 
20974   if test "x$OTOOL" = "x"; then
20975     OTOOL="true"
20976   fi
20977 
20978 
20979   # Publish this variable in the help.
20980 
20981 
20982   if [ -z "${READELF+x}" ]; then
20983     # The variable is not set by user, try to locate tool using the code snippet
20984     for ac_prog in greadelf readelf
20985 do
20986   # Extract the first word of "$ac_prog", so it can be a program name with args.
20987 set dummy $ac_prog; ac_word=$2
20988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20989 $as_echo_n "checking for $ac_word... " >&6; }
20990 if ${ac_cv_path_READELF+:} false; then :
20991   $as_echo_n "(cached) " >&6
20992 else
20993   case $READELF in
20994   [\\/]* | ?:[\\/]*)
20995   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
20996   ;;
20997   *)
20998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20999 for as_dir in $PATH
21000 do
21001   IFS=$as_save_IFS
21002   test -z "$as_dir" && as_dir=.
21003     for ac_exec_ext in '' $ac_executable_extensions; do
21004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21005     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21007     break 2
21008   fi
21009 done
21010   done
21011 IFS=$as_save_IFS
21012 
21013   ;;
21014 esac
21015 fi
21016 READELF=$ac_cv_path_READELF
21017 if test -n "$READELF"; then
21018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21019 $as_echo "$READELF" >&6; }
21020 else
21021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21022 $as_echo "no" >&6; }
21023 fi
21024 
21025 
21026   test -n "$READELF" && break
21027 done
21028 
21029   else
21030     # The variable is set, but is it from the command line or the environment?
21031 
21032     # Try to remove the string !READELF! from our list.
21033     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
21034     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21035       # If it failed, the variable was not from the command line. Ignore it,
21036       # but warn the user (except for BASH, which is always set by the calling BASH).
21037       if test "xREADELF" != xBASH; then
21038         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
21039 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
21040       fi
21041       # Try to locate tool using the code snippet
21042       for ac_prog in greadelf readelf
21043 do
21044   # Extract the first word of "$ac_prog", so it can be a program name with args.
21045 set dummy $ac_prog; ac_word=$2
21046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21047 $as_echo_n "checking for $ac_word... " >&6; }
21048 if ${ac_cv_path_READELF+:} false; then :
21049   $as_echo_n "(cached) " >&6
21050 else
21051   case $READELF in
21052   [\\/]* | ?:[\\/]*)
21053   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
21054   ;;
21055   *)
21056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21057 for as_dir in $PATH
21058 do
21059   IFS=$as_save_IFS
21060   test -z "$as_dir" && as_dir=.
21061     for ac_exec_ext in '' $ac_executable_extensions; do
21062   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21063     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21065     break 2
21066   fi
21067 done
21068   done
21069 IFS=$as_save_IFS
21070 
21071   ;;
21072 esac
21073 fi
21074 READELF=$ac_cv_path_READELF
21075 if test -n "$READELF"; then
21076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21077 $as_echo "$READELF" >&6; }
21078 else
21079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21080 $as_echo "no" >&6; }
21081 fi
21082 
21083 
21084   test -n "$READELF" && break
21085 done
21086 
21087     else
21088       # If it succeeded, then it was overridden by the user. We will use it
21089       # for the tool.
21090 
21091       # First remove it from the list of overridden variables, so we can test
21092       # for unknown variables in the end.
21093       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21094 
21095       # Check if we try to supply an empty value
21096       if test "x$READELF" = x; then
21097         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5
21098 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;}
21099         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
21100 $as_echo_n "checking for READELF... " >&6; }
21101         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21102 $as_echo "disabled" >&6; }
21103       else
21104         # Check if the provided tool contains a complete path.
21105         tool_specified="$READELF"
21106         tool_basename="${tool_specified##*/}"
21107         if test "x$tool_basename" = "x$tool_specified"; then
21108           # A command without a complete path is provided, search $PATH.
21109           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
21110 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
21111           # Extract the first word of "$tool_basename", so it can be a program name with args.
21112 set dummy $tool_basename; ac_word=$2
21113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21114 $as_echo_n "checking for $ac_word... " >&6; }
21115 if ${ac_cv_path_READELF+:} false; then :
21116   $as_echo_n "(cached) " >&6
21117 else
21118   case $READELF in
21119   [\\/]* | ?:[\\/]*)
21120   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
21121   ;;
21122   *)
21123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21124 for as_dir in $PATH
21125 do
21126   IFS=$as_save_IFS
21127   test -z "$as_dir" && as_dir=.
21128     for ac_exec_ext in '' $ac_executable_extensions; do
21129   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21130     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
21131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21132     break 2
21133   fi
21134 done
21135   done
21136 IFS=$as_save_IFS
21137 
21138   ;;
21139 esac
21140 fi
21141 READELF=$ac_cv_path_READELF
21142 if test -n "$READELF"; then
21143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
21144 $as_echo "$READELF" >&6; }
21145 else
21146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21147 $as_echo "no" >&6; }
21148 fi
21149 
21150 
21151           if test "x$READELF" = x; then
21152             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21153           fi
21154         else
21155           # Otherwise we believe it is a complete path. Use it as it is.
21156           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
21157 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
21158           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
21159 $as_echo_n "checking for READELF... " >&6; }
21160           if test ! -x "$tool_specified"; then
21161             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21162 $as_echo "not found" >&6; }
21163             as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
21164           fi
21165           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21166 $as_echo "$tool_specified" >&6; }
21167         fi
21168       fi
21169     fi
21170 
21171   fi
21172 
21173 
21174 
21175 
21176   # Publish this variable in the help.
21177 
21178 
21179   if [ -z "${HG+x}" ]; then
21180     # The variable is not set by user, try to locate tool using the code snippet
21181     for ac_prog in hg
21182 do
21183   # Extract the first word of "$ac_prog", so it can be a program name with args.
21184 set dummy $ac_prog; ac_word=$2
21185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21186 $as_echo_n "checking for $ac_word... " >&6; }
21187 if ${ac_cv_path_HG+:} false; then :
21188   $as_echo_n "(cached) " >&6
21189 else
21190   case $HG in
21191   [\\/]* | ?:[\\/]*)
21192   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21193   ;;
21194   *)
21195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21196 for as_dir in $PATH
21197 do
21198   IFS=$as_save_IFS
21199   test -z "$as_dir" && as_dir=.
21200     for ac_exec_ext in '' $ac_executable_extensions; do
21201   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21202     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21204     break 2
21205   fi
21206 done
21207   done
21208 IFS=$as_save_IFS
21209 
21210   ;;
21211 esac
21212 fi
21213 HG=$ac_cv_path_HG
21214 if test -n "$HG"; then
21215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21216 $as_echo "$HG" >&6; }
21217 else
21218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21219 $as_echo "no" >&6; }
21220 fi
21221 
21222 
21223   test -n "$HG" && break
21224 done
21225 
21226   else
21227     # The variable is set, but is it from the command line or the environment?
21228 
21229     # Try to remove the string !HG! from our list.
21230     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
21231     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21232       # If it failed, the variable was not from the command line. Ignore it,
21233       # but warn the user (except for BASH, which is always set by the calling BASH).
21234       if test "xHG" != xBASH; then
21235         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
21236 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
21237       fi
21238       # Try to locate tool using the code snippet
21239       for ac_prog in hg
21240 do
21241   # Extract the first word of "$ac_prog", so it can be a program name with args.
21242 set dummy $ac_prog; ac_word=$2
21243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21244 $as_echo_n "checking for $ac_word... " >&6; }
21245 if ${ac_cv_path_HG+:} false; then :
21246   $as_echo_n "(cached) " >&6
21247 else
21248   case $HG in
21249   [\\/]* | ?:[\\/]*)
21250   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21251   ;;
21252   *)
21253   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21254 for as_dir in $PATH
21255 do
21256   IFS=$as_save_IFS
21257   test -z "$as_dir" && as_dir=.
21258     for ac_exec_ext in '' $ac_executable_extensions; do
21259   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21260     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21262     break 2
21263   fi
21264 done
21265   done
21266 IFS=$as_save_IFS
21267 
21268   ;;
21269 esac
21270 fi
21271 HG=$ac_cv_path_HG
21272 if test -n "$HG"; then
21273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21274 $as_echo "$HG" >&6; }
21275 else
21276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21277 $as_echo "no" >&6; }
21278 fi
21279 
21280 
21281   test -n "$HG" && break
21282 done
21283 
21284     else
21285       # If it succeeded, then it was overridden by the user. We will use it
21286       # for the tool.
21287 
21288       # First remove it from the list of overridden variables, so we can test
21289       # for unknown variables in the end.
21290       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21291 
21292       # Check if we try to supply an empty value
21293       if test "x$HG" = x; then
21294         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5
21295 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;}
21296         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
21297 $as_echo_n "checking for HG... " >&6; }
21298         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21299 $as_echo "disabled" >&6; }
21300       else
21301         # Check if the provided tool contains a complete path.
21302         tool_specified="$HG"
21303         tool_basename="${tool_specified##*/}"
21304         if test "x$tool_basename" = "x$tool_specified"; then
21305           # A command without a complete path is provided, search $PATH.
21306           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
21307 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
21308           # Extract the first word of "$tool_basename", so it can be a program name with args.
21309 set dummy $tool_basename; ac_word=$2
21310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21311 $as_echo_n "checking for $ac_word... " >&6; }
21312 if ${ac_cv_path_HG+:} false; then :
21313   $as_echo_n "(cached) " >&6
21314 else
21315   case $HG in
21316   [\\/]* | ?:[\\/]*)
21317   ac_cv_path_HG="$HG" # Let the user override the test with a path.
21318   ;;
21319   *)
21320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21321 for as_dir in $PATH
21322 do
21323   IFS=$as_save_IFS
21324   test -z "$as_dir" && as_dir=.
21325     for ac_exec_ext in '' $ac_executable_extensions; do
21326   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21327     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
21328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21329     break 2
21330   fi
21331 done
21332   done
21333 IFS=$as_save_IFS
21334 
21335   ;;
21336 esac
21337 fi
21338 HG=$ac_cv_path_HG
21339 if test -n "$HG"; then
21340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
21341 $as_echo "$HG" >&6; }
21342 else
21343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21344 $as_echo "no" >&6; }
21345 fi
21346 
21347 
21348           if test "x$HG" = x; then
21349             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21350           fi
21351         else
21352           # Otherwise we believe it is a complete path. Use it as it is.
21353           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
21354 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
21355           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
21356 $as_echo_n "checking for HG... " >&6; }
21357           if test ! -x "$tool_specified"; then
21358             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21359 $as_echo "not found" >&6; }
21360             as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
21361           fi
21362           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21363 $as_echo "$tool_specified" >&6; }
21364         fi
21365       fi
21366     fi
21367 
21368   fi
21369 
21370 
21371 
21372 
21373   # Publish this variable in the help.
21374 
21375 
21376   if [ -z "${STAT+x}" ]; then
21377     # The variable is not set by user, try to locate tool using the code snippet
21378     for ac_prog in stat
21379 do
21380   # Extract the first word of "$ac_prog", so it can be a program name with args.
21381 set dummy $ac_prog; ac_word=$2
21382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21383 $as_echo_n "checking for $ac_word... " >&6; }
21384 if ${ac_cv_path_STAT+:} false; then :
21385   $as_echo_n "(cached) " >&6
21386 else
21387   case $STAT in
21388   [\\/]* | ?:[\\/]*)
21389   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
21390   ;;
21391   *)
21392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21393 for as_dir in $PATH
21394 do
21395   IFS=$as_save_IFS
21396   test -z "$as_dir" && as_dir=.
21397     for ac_exec_ext in '' $ac_executable_extensions; do
21398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21399     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
21400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21401     break 2
21402   fi
21403 done
21404   done
21405 IFS=$as_save_IFS
21406 
21407   ;;
21408 esac
21409 fi
21410 STAT=$ac_cv_path_STAT
21411 if test -n "$STAT"; then
21412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
21413 $as_echo "$STAT" >&6; }
21414 else
21415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21416 $as_echo "no" >&6; }
21417 fi
21418 
21419 
21420   test -n "$STAT" && break
21421 done
21422 
21423   else
21424     # The variable is set, but is it from the command line or the environment?
21425 
21426     # Try to remove the string !STAT! from our list.
21427     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
21428     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21429       # If it failed, the variable was not from the command line. Ignore it,
21430       # but warn the user (except for BASH, which is always set by the calling BASH).
21431       if test "xSTAT" != xBASH; then
21432         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
21433 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
21434       fi
21435       # Try to locate tool using the code snippet
21436       for ac_prog in stat
21437 do
21438   # Extract the first word of "$ac_prog", so it can be a program name with args.
21439 set dummy $ac_prog; ac_word=$2
21440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21441 $as_echo_n "checking for $ac_word... " >&6; }
21442 if ${ac_cv_path_STAT+:} false; then :
21443   $as_echo_n "(cached) " >&6
21444 else
21445   case $STAT in
21446   [\\/]* | ?:[\\/]*)
21447   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
21448   ;;
21449   *)
21450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21451 for as_dir in $PATH
21452 do
21453   IFS=$as_save_IFS
21454   test -z "$as_dir" && as_dir=.
21455     for ac_exec_ext in '' $ac_executable_extensions; do
21456   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21457     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
21458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21459     break 2
21460   fi
21461 done
21462   done
21463 IFS=$as_save_IFS
21464 
21465   ;;
21466 esac
21467 fi
21468 STAT=$ac_cv_path_STAT
21469 if test -n "$STAT"; then
21470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
21471 $as_echo "$STAT" >&6; }
21472 else
21473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21474 $as_echo "no" >&6; }
21475 fi
21476 
21477 
21478   test -n "$STAT" && break
21479 done
21480 
21481     else
21482       # If it succeeded, then it was overridden by the user. We will use it
21483       # for the tool.
21484 
21485       # First remove it from the list of overridden variables, so we can test
21486       # for unknown variables in the end.
21487       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21488 
21489       # Check if we try to supply an empty value
21490       if test "x$STAT" = x; then
21491         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5
21492 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;}
21493         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
21494 $as_echo_n "checking for STAT... " >&6; }
21495         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21496 $as_echo "disabled" >&6; }
21497       else
21498         # Check if the provided tool contains a complete path.
21499         tool_specified="$STAT"
21500         tool_basename="${tool_specified##*/}"
21501         if test "x$tool_basename" = "x$tool_specified"; then
21502           # A command without a complete path is provided, search $PATH.
21503           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
21504 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
21505           # Extract the first word of "$tool_basename", so it can be a program name with args.
21506 set dummy $tool_basename; ac_word=$2
21507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21508 $as_echo_n "checking for $ac_word... " >&6; }
21509 if ${ac_cv_path_STAT+:} false; then :
21510   $as_echo_n "(cached) " >&6
21511 else
21512   case $STAT in
21513   [\\/]* | ?:[\\/]*)
21514   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
21515   ;;
21516   *)
21517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21518 for as_dir in $PATH
21519 do
21520   IFS=$as_save_IFS
21521   test -z "$as_dir" && as_dir=.
21522     for ac_exec_ext in '' $ac_executable_extensions; do
21523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21524     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
21525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21526     break 2
21527   fi
21528 done
21529   done
21530 IFS=$as_save_IFS
21531 
21532   ;;
21533 esac
21534 fi
21535 STAT=$ac_cv_path_STAT
21536 if test -n "$STAT"; then
21537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
21538 $as_echo "$STAT" >&6; }
21539 else
21540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21541 $as_echo "no" >&6; }
21542 fi
21543 
21544 
21545           if test "x$STAT" = x; then
21546             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21547           fi
21548         else
21549           # Otherwise we believe it is a complete path. Use it as it is.
21550           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
21551 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
21552           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
21553 $as_echo_n "checking for STAT... " >&6; }
21554           if test ! -x "$tool_specified"; then
21555             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21556 $as_echo "not found" >&6; }
21557             as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
21558           fi
21559           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21560 $as_echo "$tool_specified" >&6; }
21561         fi
21562       fi
21563     fi
21564 
21565   fi
21566 
21567 
21568 
21569 
21570   # Publish this variable in the help.
21571 
21572 
21573   if [ -z "${TIME+x}" ]; then
21574     # The variable is not set by user, try to locate tool using the code snippet
21575     for ac_prog in time
21576 do
21577   # Extract the first word of "$ac_prog", so it can be a program name with args.
21578 set dummy $ac_prog; ac_word=$2
21579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21580 $as_echo_n "checking for $ac_word... " >&6; }
21581 if ${ac_cv_path_TIME+:} false; then :
21582   $as_echo_n "(cached) " >&6
21583 else
21584   case $TIME in
21585   [\\/]* | ?:[\\/]*)
21586   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
21587   ;;
21588   *)
21589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21590 for as_dir in $PATH
21591 do
21592   IFS=$as_save_IFS
21593   test -z "$as_dir" && as_dir=.
21594     for ac_exec_ext in '' $ac_executable_extensions; do
21595   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21596     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
21597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21598     break 2
21599   fi
21600 done
21601   done
21602 IFS=$as_save_IFS
21603 
21604   ;;
21605 esac
21606 fi
21607 TIME=$ac_cv_path_TIME
21608 if test -n "$TIME"; then
21609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
21610 $as_echo "$TIME" >&6; }
21611 else
21612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21613 $as_echo "no" >&6; }
21614 fi
21615 
21616 
21617   test -n "$TIME" && break
21618 done
21619 
21620   else
21621     # The variable is set, but is it from the command line or the environment?
21622 
21623     # Try to remove the string !TIME! from our list.
21624     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
21625     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21626       # If it failed, the variable was not from the command line. Ignore it,
21627       # but warn the user (except for BASH, which is always set by the calling BASH).
21628       if test "xTIME" != xBASH; then
21629         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
21630 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
21631       fi
21632       # Try to locate tool using the code snippet
21633       for ac_prog in time
21634 do
21635   # Extract the first word of "$ac_prog", so it can be a program name with args.
21636 set dummy $ac_prog; ac_word=$2
21637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21638 $as_echo_n "checking for $ac_word... " >&6; }
21639 if ${ac_cv_path_TIME+:} false; then :
21640   $as_echo_n "(cached) " >&6
21641 else
21642   case $TIME in
21643   [\\/]* | ?:[\\/]*)
21644   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
21645   ;;
21646   *)
21647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21648 for as_dir in $PATH
21649 do
21650   IFS=$as_save_IFS
21651   test -z "$as_dir" && as_dir=.
21652     for ac_exec_ext in '' $ac_executable_extensions; do
21653   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21654     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
21655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21656     break 2
21657   fi
21658 done
21659   done
21660 IFS=$as_save_IFS
21661 
21662   ;;
21663 esac
21664 fi
21665 TIME=$ac_cv_path_TIME
21666 if test -n "$TIME"; then
21667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
21668 $as_echo "$TIME" >&6; }
21669 else
21670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21671 $as_echo "no" >&6; }
21672 fi
21673 
21674 
21675   test -n "$TIME" && break
21676 done
21677 
21678     else
21679       # If it succeeded, then it was overridden by the user. We will use it
21680       # for the tool.
21681 
21682       # First remove it from the list of overridden variables, so we can test
21683       # for unknown variables in the end.
21684       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21685 
21686       # Check if we try to supply an empty value
21687       if test "x$TIME" = x; then
21688         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5
21689 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;}
21690         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
21691 $as_echo_n "checking for TIME... " >&6; }
21692         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21693 $as_echo "disabled" >&6; }
21694       else
21695         # Check if the provided tool contains a complete path.
21696         tool_specified="$TIME"
21697         tool_basename="${tool_specified##*/}"
21698         if test "x$tool_basename" = "x$tool_specified"; then
21699           # A command without a complete path is provided, search $PATH.
21700           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
21701 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
21702           # Extract the first word of "$tool_basename", so it can be a program name with args.
21703 set dummy $tool_basename; ac_word=$2
21704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21705 $as_echo_n "checking for $ac_word... " >&6; }
21706 if ${ac_cv_path_TIME+:} false; then :
21707   $as_echo_n "(cached) " >&6
21708 else
21709   case $TIME in
21710   [\\/]* | ?:[\\/]*)
21711   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
21712   ;;
21713   *)
21714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21715 for as_dir in $PATH
21716 do
21717   IFS=$as_save_IFS
21718   test -z "$as_dir" && as_dir=.
21719     for ac_exec_ext in '' $ac_executable_extensions; do
21720   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21721     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
21722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21723     break 2
21724   fi
21725 done
21726   done
21727 IFS=$as_save_IFS
21728 
21729   ;;
21730 esac
21731 fi
21732 TIME=$ac_cv_path_TIME
21733 if test -n "$TIME"; then
21734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
21735 $as_echo "$TIME" >&6; }
21736 else
21737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21738 $as_echo "no" >&6; }
21739 fi
21740 
21741 
21742           if test "x$TIME" = x; then
21743             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21744           fi
21745         else
21746           # Otherwise we believe it is a complete path. Use it as it is.
21747           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
21748 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
21749           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
21750 $as_echo_n "checking for TIME... " >&6; }
21751           if test ! -x "$tool_specified"; then
21752             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21753 $as_echo "not found" >&6; }
21754             as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
21755           fi
21756           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21757 $as_echo "$tool_specified" >&6; }
21758         fi
21759       fi
21760     fi
21761 
21762   fi
21763 
21764 
21765 
21766 
21767   # Publish this variable in the help.
21768 
21769 
21770   if [ -z "${PATCH+x}" ]; then
21771     # The variable is not set by user, try to locate tool using the code snippet
21772     for ac_prog in gpatch patch
21773 do
21774   # Extract the first word of "$ac_prog", so it can be a program name with args.
21775 set dummy $ac_prog; ac_word=$2
21776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21777 $as_echo_n "checking for $ac_word... " >&6; }
21778 if ${ac_cv_path_PATCH+:} false; then :
21779   $as_echo_n "(cached) " >&6
21780 else
21781   case $PATCH in
21782   [\\/]* | ?:[\\/]*)
21783   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
21784   ;;
21785   *)
21786   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21787 for as_dir in $PATH
21788 do
21789   IFS=$as_save_IFS
21790   test -z "$as_dir" && as_dir=.
21791     for ac_exec_ext in '' $ac_executable_extensions; do
21792   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21793     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
21794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21795     break 2
21796   fi
21797 done
21798   done
21799 IFS=$as_save_IFS
21800 
21801   ;;
21802 esac
21803 fi
21804 PATCH=$ac_cv_path_PATCH
21805 if test -n "$PATCH"; then
21806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
21807 $as_echo "$PATCH" >&6; }
21808 else
21809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21810 $as_echo "no" >&6; }
21811 fi
21812 
21813 
21814   test -n "$PATCH" && break
21815 done
21816 
21817   else
21818     # The variable is set, but is it from the command line or the environment?
21819 
21820     # Try to remove the string !PATCH! from our list.
21821     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/}
21822     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
21823       # If it failed, the variable was not from the command line. Ignore it,
21824       # but warn the user (except for BASH, which is always set by the calling BASH).
21825       if test "xPATCH" != xBASH; then
21826         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5
21827 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;}
21828       fi
21829       # Try to locate tool using the code snippet
21830       for ac_prog in gpatch patch
21831 do
21832   # Extract the first word of "$ac_prog", so it can be a program name with args.
21833 set dummy $ac_prog; ac_word=$2
21834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21835 $as_echo_n "checking for $ac_word... " >&6; }
21836 if ${ac_cv_path_PATCH+:} false; then :
21837   $as_echo_n "(cached) " >&6
21838 else
21839   case $PATCH in
21840   [\\/]* | ?:[\\/]*)
21841   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
21842   ;;
21843   *)
21844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21845 for as_dir in $PATH
21846 do
21847   IFS=$as_save_IFS
21848   test -z "$as_dir" && as_dir=.
21849     for ac_exec_ext in '' $ac_executable_extensions; do
21850   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21851     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
21852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21853     break 2
21854   fi
21855 done
21856   done
21857 IFS=$as_save_IFS
21858 
21859   ;;
21860 esac
21861 fi
21862 PATCH=$ac_cv_path_PATCH
21863 if test -n "$PATCH"; then
21864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
21865 $as_echo "$PATCH" >&6; }
21866 else
21867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21868 $as_echo "no" >&6; }
21869 fi
21870 
21871 
21872   test -n "$PATCH" && break
21873 done
21874 
21875     else
21876       # If it succeeded, then it was overridden by the user. We will use it
21877       # for the tool.
21878 
21879       # First remove it from the list of overridden variables, so we can test
21880       # for unknown variables in the end.
21881       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
21882 
21883       # Check if we try to supply an empty value
21884       if test "x$PATCH" = x; then
21885         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5
21886 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;}
21887         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
21888 $as_echo_n "checking for PATCH... " >&6; }
21889         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
21890 $as_echo "disabled" >&6; }
21891       else
21892         # Check if the provided tool contains a complete path.
21893         tool_specified="$PATCH"
21894         tool_basename="${tool_specified##*/}"
21895         if test "x$tool_basename" = "x$tool_specified"; then
21896           # A command without a complete path is provided, search $PATH.
21897           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5
21898 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;}
21899           # Extract the first word of "$tool_basename", so it can be a program name with args.
21900 set dummy $tool_basename; ac_word=$2
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21902 $as_echo_n "checking for $ac_word... " >&6; }
21903 if ${ac_cv_path_PATCH+:} false; then :
21904   $as_echo_n "(cached) " >&6
21905 else
21906   case $PATCH in
21907   [\\/]* | ?:[\\/]*)
21908   ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
21909   ;;
21910   *)
21911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21912 for as_dir in $PATH
21913 do
21914   IFS=$as_save_IFS
21915   test -z "$as_dir" && as_dir=.
21916     for ac_exec_ext in '' $ac_executable_extensions; do
21917   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21918     ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
21919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21920     break 2
21921   fi
21922 done
21923   done
21924 IFS=$as_save_IFS
21925 
21926   ;;
21927 esac
21928 fi
21929 PATCH=$ac_cv_path_PATCH
21930 if test -n "$PATCH"; then
21931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
21932 $as_echo "$PATCH" >&6; }
21933 else
21934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21935 $as_echo "no" >&6; }
21936 fi
21937 
21938 
21939           if test "x$PATCH" = x; then
21940             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
21941           fi
21942         else
21943           # Otherwise we believe it is a complete path. Use it as it is.
21944           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5
21945 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;}
21946           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5
21947 $as_echo_n "checking for PATCH... " >&6; }
21948           if test ! -x "$tool_specified"; then
21949             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21950 $as_echo "not found" >&6; }
21951             as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5
21952           fi
21953           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
21954 $as_echo "$tool_specified" >&6; }
21955         fi
21956       fi
21957     fi
21958 
21959   fi
21960 
21961 
21962   # Check if it's GNU time
21963   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
21964   if test "x$IS_GNU_TIME" != x; then
21965     IS_GNU_TIME=yes
21966   else
21967     IS_GNU_TIME=no
21968   fi
21969 
21970 
21971   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
21972 
21973 
21974 
21975   # Publish this variable in the help.
21976 
21977 
21978   if [ -z "${DSYMUTIL+x}" ]; then
21979     # The variable is not set by user, try to locate tool using the code snippet
21980     for ac_prog in dsymutil
21981 do
21982   # Extract the first word of "$ac_prog", so it can be a program name with args.
21983 set dummy $ac_prog; ac_word=$2
21984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21985 $as_echo_n "checking for $ac_word... " >&6; }
21986 if ${ac_cv_path_DSYMUTIL+:} false; then :
21987   $as_echo_n "(cached) " >&6
21988 else
21989   case $DSYMUTIL in
21990   [\\/]* | ?:[\\/]*)
21991   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
21992   ;;
21993   *)
21994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21995 for as_dir in $PATH
21996 do
21997   IFS=$as_save_IFS
21998   test -z "$as_dir" && as_dir=.
21999     for ac_exec_ext in '' $ac_executable_extensions; do
22000   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22001     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22003     break 2
22004   fi
22005 done
22006   done
22007 IFS=$as_save_IFS
22008 
22009   ;;
22010 esac
22011 fi
22012 DSYMUTIL=$ac_cv_path_DSYMUTIL
22013 if test -n "$DSYMUTIL"; then
22014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22015 $as_echo "$DSYMUTIL" >&6; }
22016 else
22017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22018 $as_echo "no" >&6; }
22019 fi
22020 
22021 
22022   test -n "$DSYMUTIL" && break
22023 done
22024 
22025   else
22026     # The variable is set, but is it from the command line or the environment?
22027 
22028     # Try to remove the string !DSYMUTIL! from our list.
22029     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
22030     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22031       # If it failed, the variable was not from the command line. Ignore it,
22032       # but warn the user (except for BASH, which is always set by the calling BASH).
22033       if test "xDSYMUTIL" != xBASH; then
22034         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
22035 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
22036       fi
22037       # Try to locate tool using the code snippet
22038       for ac_prog in dsymutil
22039 do
22040   # Extract the first word of "$ac_prog", so it can be a program name with args.
22041 set dummy $ac_prog; ac_word=$2
22042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22043 $as_echo_n "checking for $ac_word... " >&6; }
22044 if ${ac_cv_path_DSYMUTIL+:} false; then :
22045   $as_echo_n "(cached) " >&6
22046 else
22047   case $DSYMUTIL in
22048   [\\/]* | ?:[\\/]*)
22049   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
22050   ;;
22051   *)
22052   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22053 for as_dir in $PATH
22054 do
22055   IFS=$as_save_IFS
22056   test -z "$as_dir" && as_dir=.
22057     for ac_exec_ext in '' $ac_executable_extensions; do
22058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22059     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22061     break 2
22062   fi
22063 done
22064   done
22065 IFS=$as_save_IFS
22066 
22067   ;;
22068 esac
22069 fi
22070 DSYMUTIL=$ac_cv_path_DSYMUTIL
22071 if test -n "$DSYMUTIL"; then
22072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22073 $as_echo "$DSYMUTIL" >&6; }
22074 else
22075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22076 $as_echo "no" >&6; }
22077 fi
22078 
22079 
22080   test -n "$DSYMUTIL" && break
22081 done
22082 
22083     else
22084       # If it succeeded, then it was overridden by the user. We will use it
22085       # for the tool.
22086 
22087       # First remove it from the list of overridden variables, so we can test
22088       # for unknown variables in the end.
22089       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22090 
22091       # Check if we try to supply an empty value
22092       if test "x$DSYMUTIL" = x; then
22093         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5
22094 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;}
22095         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
22096 $as_echo_n "checking for DSYMUTIL... " >&6; }
22097         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22098 $as_echo "disabled" >&6; }
22099       else
22100         # Check if the provided tool contains a complete path.
22101         tool_specified="$DSYMUTIL"
22102         tool_basename="${tool_specified##*/}"
22103         if test "x$tool_basename" = "x$tool_specified"; then
22104           # A command without a complete path is provided, search $PATH.
22105           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
22106 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
22107           # Extract the first word of "$tool_basename", so it can be a program name with args.
22108 set dummy $tool_basename; ac_word=$2
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22110 $as_echo_n "checking for $ac_word... " >&6; }
22111 if ${ac_cv_path_DSYMUTIL+:} false; then :
22112   $as_echo_n "(cached) " >&6
22113 else
22114   case $DSYMUTIL in
22115   [\\/]* | ?:[\\/]*)
22116   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
22117   ;;
22118   *)
22119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22120 for as_dir in $PATH
22121 do
22122   IFS=$as_save_IFS
22123   test -z "$as_dir" && as_dir=.
22124     for ac_exec_ext in '' $ac_executable_extensions; do
22125   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22126     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
22127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22128     break 2
22129   fi
22130 done
22131   done
22132 IFS=$as_save_IFS
22133 
22134   ;;
22135 esac
22136 fi
22137 DSYMUTIL=$ac_cv_path_DSYMUTIL
22138 if test -n "$DSYMUTIL"; then
22139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
22140 $as_echo "$DSYMUTIL" >&6; }
22141 else
22142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22143 $as_echo "no" >&6; }
22144 fi
22145 
22146 
22147           if test "x$DSYMUTIL" = x; then
22148             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22149           fi
22150         else
22151           # Otherwise we believe it is a complete path. Use it as it is.
22152           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
22153 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
22154           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
22155 $as_echo_n "checking for DSYMUTIL... " >&6; }
22156           if test ! -x "$tool_specified"; then
22157             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22158 $as_echo "not found" >&6; }
22159             as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
22160           fi
22161           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22162 $as_echo "$tool_specified" >&6; }
22163         fi
22164       fi
22165     fi
22166 
22167   fi
22168 
22169 
22170 
22171   if test "x$DSYMUTIL" = x; then
22172     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
22173   fi
22174 
22175 
22176 
22177 
22178 
22179   # Publish this variable in the help.
22180 
22181 
22182   if [ -z "${XATTR+x}" ]; then
22183     # The variable is not set by user, try to locate tool using the code snippet
22184     for ac_prog in xattr
22185 do
22186   # Extract the first word of "$ac_prog", so it can be a program name with args.
22187 set dummy $ac_prog; ac_word=$2
22188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22189 $as_echo_n "checking for $ac_word... " >&6; }
22190 if ${ac_cv_path_XATTR+:} false; then :
22191   $as_echo_n "(cached) " >&6
22192 else
22193   case $XATTR in
22194   [\\/]* | ?:[\\/]*)
22195   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
22196   ;;
22197   *)
22198   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22199 for as_dir in $PATH
22200 do
22201   IFS=$as_save_IFS
22202   test -z "$as_dir" && as_dir=.
22203     for ac_exec_ext in '' $ac_executable_extensions; do
22204   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22205     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
22206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22207     break 2
22208   fi
22209 done
22210   done
22211 IFS=$as_save_IFS
22212 
22213   ;;
22214 esac
22215 fi
22216 XATTR=$ac_cv_path_XATTR
22217 if test -n "$XATTR"; then
22218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
22219 $as_echo "$XATTR" >&6; }
22220 else
22221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22222 $as_echo "no" >&6; }
22223 fi
22224 
22225 
22226   test -n "$XATTR" && break
22227 done
22228 
22229   else
22230     # The variable is set, but is it from the command line or the environment?
22231 
22232     # Try to remove the string !XATTR! from our list.
22233     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
22234     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22235       # If it failed, the variable was not from the command line. Ignore it,
22236       # but warn the user (except for BASH, which is always set by the calling BASH).
22237       if test "xXATTR" != xBASH; then
22238         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
22239 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
22240       fi
22241       # Try to locate tool using the code snippet
22242       for ac_prog in xattr
22243 do
22244   # Extract the first word of "$ac_prog", so it can be a program name with args.
22245 set dummy $ac_prog; ac_word=$2
22246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22247 $as_echo_n "checking for $ac_word... " >&6; }
22248 if ${ac_cv_path_XATTR+:} false; then :
22249   $as_echo_n "(cached) " >&6
22250 else
22251   case $XATTR in
22252   [\\/]* | ?:[\\/]*)
22253   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
22254   ;;
22255   *)
22256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22257 for as_dir in $PATH
22258 do
22259   IFS=$as_save_IFS
22260   test -z "$as_dir" && as_dir=.
22261     for ac_exec_ext in '' $ac_executable_extensions; do
22262   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22263     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
22264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22265     break 2
22266   fi
22267 done
22268   done
22269 IFS=$as_save_IFS
22270 
22271   ;;
22272 esac
22273 fi
22274 XATTR=$ac_cv_path_XATTR
22275 if test -n "$XATTR"; then
22276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
22277 $as_echo "$XATTR" >&6; }
22278 else
22279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22280 $as_echo "no" >&6; }
22281 fi
22282 
22283 
22284   test -n "$XATTR" && break
22285 done
22286 
22287     else
22288       # If it succeeded, then it was overridden by the user. We will use it
22289       # for the tool.
22290 
22291       # First remove it from the list of overridden variables, so we can test
22292       # for unknown variables in the end.
22293       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22294 
22295       # Check if we try to supply an empty value
22296       if test "x$XATTR" = x; then
22297         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5
22298 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;}
22299         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
22300 $as_echo_n "checking for XATTR... " >&6; }
22301         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22302 $as_echo "disabled" >&6; }
22303       else
22304         # Check if the provided tool contains a complete path.
22305         tool_specified="$XATTR"
22306         tool_basename="${tool_specified##*/}"
22307         if test "x$tool_basename" = "x$tool_specified"; then
22308           # A command without a complete path is provided, search $PATH.
22309           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
22310 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
22311           # Extract the first word of "$tool_basename", so it can be a program name with args.
22312 set dummy $tool_basename; ac_word=$2
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22314 $as_echo_n "checking for $ac_word... " >&6; }
22315 if ${ac_cv_path_XATTR+:} false; then :
22316   $as_echo_n "(cached) " >&6
22317 else
22318   case $XATTR in
22319   [\\/]* | ?:[\\/]*)
22320   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
22321   ;;
22322   *)
22323   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22324 for as_dir in $PATH
22325 do
22326   IFS=$as_save_IFS
22327   test -z "$as_dir" && as_dir=.
22328     for ac_exec_ext in '' $ac_executable_extensions; do
22329   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22330     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
22331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22332     break 2
22333   fi
22334 done
22335   done
22336 IFS=$as_save_IFS
22337 
22338   ;;
22339 esac
22340 fi
22341 XATTR=$ac_cv_path_XATTR
22342 if test -n "$XATTR"; then
22343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
22344 $as_echo "$XATTR" >&6; }
22345 else
22346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22347 $as_echo "no" >&6; }
22348 fi
22349 
22350 
22351           if test "x$XATTR" = x; then
22352             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22353           fi
22354         else
22355           # Otherwise we believe it is a complete path. Use it as it is.
22356           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
22357 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
22358           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
22359 $as_echo_n "checking for XATTR... " >&6; }
22360           if test ! -x "$tool_specified"; then
22361             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22362 $as_echo "not found" >&6; }
22363             as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
22364           fi
22365           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22366 $as_echo "$tool_specified" >&6; }
22367         fi
22368       fi
22369     fi
22370 
22371   fi
22372 
22373 
22374 
22375   if test "x$XATTR" = x; then
22376     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
22377   fi
22378 
22379 
22380 
22381 
22382   # Publish this variable in the help.
22383 
22384 
22385   if [ -z "${CODESIGN+x}" ]; then
22386     # The variable is not set by user, try to locate tool using the code snippet
22387     for ac_prog in codesign
22388 do
22389   # Extract the first word of "$ac_prog", so it can be a program name with args.
22390 set dummy $ac_prog; ac_word=$2
22391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22392 $as_echo_n "checking for $ac_word... " >&6; }
22393 if ${ac_cv_path_CODESIGN+:} false; then :
22394   $as_echo_n "(cached) " >&6
22395 else
22396   case $CODESIGN in
22397   [\\/]* | ?:[\\/]*)
22398   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
22399   ;;
22400   *)
22401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22402 for as_dir in $PATH
22403 do
22404   IFS=$as_save_IFS
22405   test -z "$as_dir" && as_dir=.
22406     for ac_exec_ext in '' $ac_executable_extensions; do
22407   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22408     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
22409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22410     break 2
22411   fi
22412 done
22413   done
22414 IFS=$as_save_IFS
22415 
22416   ;;
22417 esac
22418 fi
22419 CODESIGN=$ac_cv_path_CODESIGN
22420 if test -n "$CODESIGN"; then
22421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
22422 $as_echo "$CODESIGN" >&6; }
22423 else
22424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22425 $as_echo "no" >&6; }
22426 fi
22427 
22428 
22429   test -n "$CODESIGN" && break
22430 done
22431 
22432   else
22433     # The variable is set, but is it from the command line or the environment?
22434 
22435     # Try to remove the string !CODESIGN! from our list.
22436     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
22437     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22438       # If it failed, the variable was not from the command line. Ignore it,
22439       # but warn the user (except for BASH, which is always set by the calling BASH).
22440       if test "xCODESIGN" != xBASH; then
22441         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
22442 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
22443       fi
22444       # Try to locate tool using the code snippet
22445       for ac_prog in codesign
22446 do
22447   # Extract the first word of "$ac_prog", so it can be a program name with args.
22448 set dummy $ac_prog; ac_word=$2
22449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22450 $as_echo_n "checking for $ac_word... " >&6; }
22451 if ${ac_cv_path_CODESIGN+:} false; then :
22452   $as_echo_n "(cached) " >&6
22453 else
22454   case $CODESIGN in
22455   [\\/]* | ?:[\\/]*)
22456   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
22457   ;;
22458   *)
22459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22460 for as_dir in $PATH
22461 do
22462   IFS=$as_save_IFS
22463   test -z "$as_dir" && as_dir=.
22464     for ac_exec_ext in '' $ac_executable_extensions; do
22465   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22466     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
22467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22468     break 2
22469   fi
22470 done
22471   done
22472 IFS=$as_save_IFS
22473 
22474   ;;
22475 esac
22476 fi
22477 CODESIGN=$ac_cv_path_CODESIGN
22478 if test -n "$CODESIGN"; then
22479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
22480 $as_echo "$CODESIGN" >&6; }
22481 else
22482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22483 $as_echo "no" >&6; }
22484 fi
22485 
22486 
22487   test -n "$CODESIGN" && break
22488 done
22489 
22490     else
22491       # If it succeeded, then it was overridden by the user. We will use it
22492       # for the tool.
22493 
22494       # First remove it from the list of overridden variables, so we can test
22495       # for unknown variables in the end.
22496       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22497 
22498       # Check if we try to supply an empty value
22499       if test "x$CODESIGN" = x; then
22500         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5
22501 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;}
22502         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
22503 $as_echo_n "checking for CODESIGN... " >&6; }
22504         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22505 $as_echo "disabled" >&6; }
22506       else
22507         # Check if the provided tool contains a complete path.
22508         tool_specified="$CODESIGN"
22509         tool_basename="${tool_specified##*/}"
22510         if test "x$tool_basename" = "x$tool_specified"; then
22511           # A command without a complete path is provided, search $PATH.
22512           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
22513 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
22514           # Extract the first word of "$tool_basename", so it can be a program name with args.
22515 set dummy $tool_basename; ac_word=$2
22516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22517 $as_echo_n "checking for $ac_word... " >&6; }
22518 if ${ac_cv_path_CODESIGN+:} false; then :
22519   $as_echo_n "(cached) " >&6
22520 else
22521   case $CODESIGN in
22522   [\\/]* | ?:[\\/]*)
22523   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
22524   ;;
22525   *)
22526   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22527 for as_dir in $PATH
22528 do
22529   IFS=$as_save_IFS
22530   test -z "$as_dir" && as_dir=.
22531     for ac_exec_ext in '' $ac_executable_extensions; do
22532   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22533     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
22534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22535     break 2
22536   fi
22537 done
22538   done
22539 IFS=$as_save_IFS
22540 
22541   ;;
22542 esac
22543 fi
22544 CODESIGN=$ac_cv_path_CODESIGN
22545 if test -n "$CODESIGN"; then
22546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
22547 $as_echo "$CODESIGN" >&6; }
22548 else
22549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22550 $as_echo "no" >&6; }
22551 fi
22552 
22553 
22554           if test "x$CODESIGN" = x; then
22555             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22556           fi
22557         else
22558           # Otherwise we believe it is a complete path. Use it as it is.
22559           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
22560 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
22561           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
22562 $as_echo_n "checking for CODESIGN... " >&6; }
22563           if test ! -x "$tool_specified"; then
22564             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22565 $as_echo "not found" >&6; }
22566             as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
22567           fi
22568           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22569 $as_echo "$tool_specified" >&6; }
22570         fi
22571       fi
22572     fi
22573 
22574   fi
22575 
22576 
22577     if test "x$CODESIGN" != "x"; then
22578       # Verify that the openjdk_codesign certificate is present
22579       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
22580 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
22581       rm -f codesign-testfile
22582       touch codesign-testfile
22583       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
22584       rm -f codesign-testfile
22585       if test "x$CODESIGN" = x; then
22586         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22587 $as_echo "no" >&6; }
22588       else
22589         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22590 $as_echo "yes" >&6; }
22591       fi
22592     fi
22593 
22594 
22595 
22596   # Publish this variable in the help.
22597 
22598 
22599   if [ -z "${SETFILE+x}" ]; then
22600     # The variable is not set by user, try to locate tool using the code snippet
22601     for ac_prog in SetFile
22602 do
22603   # Extract the first word of "$ac_prog", so it can be a program name with args.
22604 set dummy $ac_prog; ac_word=$2
22605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22606 $as_echo_n "checking for $ac_word... " >&6; }
22607 if ${ac_cv_path_SETFILE+:} false; then :
22608   $as_echo_n "(cached) " >&6
22609 else
22610   case $SETFILE in
22611   [\\/]* | ?:[\\/]*)
22612   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
22613   ;;
22614   *)
22615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22616 for as_dir in $PATH
22617 do
22618   IFS=$as_save_IFS
22619   test -z "$as_dir" && as_dir=.
22620     for ac_exec_ext in '' $ac_executable_extensions; do
22621   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22622     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
22623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22624     break 2
22625   fi
22626 done
22627   done
22628 IFS=$as_save_IFS
22629 
22630   ;;
22631 esac
22632 fi
22633 SETFILE=$ac_cv_path_SETFILE
22634 if test -n "$SETFILE"; then
22635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
22636 $as_echo "$SETFILE" >&6; }
22637 else
22638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22639 $as_echo "no" >&6; }
22640 fi
22641 
22642 
22643   test -n "$SETFILE" && break
22644 done
22645 
22646   else
22647     # The variable is set, but is it from the command line or the environment?
22648 
22649     # Try to remove the string !SETFILE! from our list.
22650     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
22651     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
22652       # If it failed, the variable was not from the command line. Ignore it,
22653       # but warn the user (except for BASH, which is always set by the calling BASH).
22654       if test "xSETFILE" != xBASH; then
22655         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
22656 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
22657       fi
22658       # Try to locate tool using the code snippet
22659       for ac_prog in SetFile
22660 do
22661   # Extract the first word of "$ac_prog", so it can be a program name with args.
22662 set dummy $ac_prog; ac_word=$2
22663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22664 $as_echo_n "checking for $ac_word... " >&6; }
22665 if ${ac_cv_path_SETFILE+:} false; then :
22666   $as_echo_n "(cached) " >&6
22667 else
22668   case $SETFILE in
22669   [\\/]* | ?:[\\/]*)
22670   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
22671   ;;
22672   *)
22673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22674 for as_dir in $PATH
22675 do
22676   IFS=$as_save_IFS
22677   test -z "$as_dir" && as_dir=.
22678     for ac_exec_ext in '' $ac_executable_extensions; do
22679   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22680     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
22681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22682     break 2
22683   fi
22684 done
22685   done
22686 IFS=$as_save_IFS
22687 
22688   ;;
22689 esac
22690 fi
22691 SETFILE=$ac_cv_path_SETFILE
22692 if test -n "$SETFILE"; then
22693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
22694 $as_echo "$SETFILE" >&6; }
22695 else
22696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22697 $as_echo "no" >&6; }
22698 fi
22699 
22700 
22701   test -n "$SETFILE" && break
22702 done
22703 
22704     else
22705       # If it succeeded, then it was overridden by the user. We will use it
22706       # for the tool.
22707 
22708       # First remove it from the list of overridden variables, so we can test
22709       # for unknown variables in the end.
22710       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
22711 
22712       # Check if we try to supply an empty value
22713       if test "x$SETFILE" = x; then
22714         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5
22715 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;}
22716         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
22717 $as_echo_n "checking for SETFILE... " >&6; }
22718         { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
22719 $as_echo "disabled" >&6; }
22720       else
22721         # Check if the provided tool contains a complete path.
22722         tool_specified="$SETFILE"
22723         tool_basename="${tool_specified##*/}"
22724         if test "x$tool_basename" = "x$tool_specified"; then
22725           # A command without a complete path is provided, search $PATH.
22726           { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
22727 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
22728           # Extract the first word of "$tool_basename", so it can be a program name with args.
22729 set dummy $tool_basename; ac_word=$2
22730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22731 $as_echo_n "checking for $ac_word... " >&6; }
22732 if ${ac_cv_path_SETFILE+:} false; then :
22733   $as_echo_n "(cached) " >&6
22734 else
22735   case $SETFILE in
22736   [\\/]* | ?:[\\/]*)
22737   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
22738   ;;
22739   *)
22740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22741 for as_dir in $PATH
22742 do
22743   IFS=$as_save_IFS
22744   test -z "$as_dir" && as_dir=.
22745     for ac_exec_ext in '' $ac_executable_extensions; do
22746   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22747     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
22748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22749     break 2
22750   fi
22751 done
22752   done
22753 IFS=$as_save_IFS
22754 
22755   ;;
22756 esac
22757 fi
22758 SETFILE=$ac_cv_path_SETFILE
22759 if test -n "$SETFILE"; then
22760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
22761 $as_echo "$SETFILE" >&6; }
22762 else
22763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22764 $as_echo "no" >&6; }
22765 fi
22766 
22767 
22768           if test "x$SETFILE" = x; then
22769             as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
22770           fi
22771         else
22772           # Otherwise we believe it is a complete path. Use it as it is.
22773           { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
22774 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
22775           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
22776 $as_echo_n "checking for SETFILE... " >&6; }
22777           if test ! -x "$tool_specified"; then
22778             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22779 $as_echo "not found" >&6; }
22780             as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
22781           fi
22782           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
22783 $as_echo "$tool_specified" >&6; }
22784         fi
22785       fi
22786     fi
22787 
22788   fi
22789 
22790 
22791 
22792   if test "x$SETFILE" = x; then
22793     as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5
22794   fi
22795 
22796 
22797   fi
22798 
22799 
22800   # Test if bash supports pipefail.
22801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5
22802 $as_echo_n "checking if bash supports pipefail... " >&6; }
22803   if ${BASH} -c 'set -o pipefail'; then
22804     BASH_ARGS="$BASH_ARGS -o pipefail"
22805     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22806 $as_echo "yes" >&6; }
22807   else
22808     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22809 $as_echo "no" >&6; }
22810   fi
22811 
22812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5
22813 $as_echo_n "checking if bash supports errexit (-e)... " >&6; }
22814   if ${BASH} -e -c 'true'; then
22815     BASH_ARGS="$BASH_ARGS -e"
22816     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22817 $as_echo "yes" >&6; }
22818   else
22819     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22820 $as_echo "no" >&6; }
22821   fi
22822 
22823 
22824 
22825 
22826 # Check if pkg-config is available.
22827 
22828 
22829 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22830         if test -n "$ac_tool_prefix"; then
22831   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22832 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22834 $as_echo_n "checking for $ac_word... " >&6; }
22835 if ${ac_cv_path_PKG_CONFIG+:} false; then :
22836   $as_echo_n "(cached) " >&6
22837 else
22838   case $PKG_CONFIG in
22839   [\\/]* | ?:[\\/]*)
22840   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22841   ;;
22842   *)
22843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22844 for as_dir in $PATH
22845 do
22846   IFS=$as_save_IFS
22847   test -z "$as_dir" && as_dir=.
22848     for ac_exec_ext in '' $ac_executable_extensions; do
22849   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22850     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22852     break 2
22853   fi
22854 done
22855   done
22856 IFS=$as_save_IFS
22857 
22858   ;;
22859 esac
22860 fi
22861 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22862 if test -n "$PKG_CONFIG"; then
22863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22864 $as_echo "$PKG_CONFIG" >&6; }
22865 else
22866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22867 $as_echo "no" >&6; }
22868 fi
22869 
22870 
22871 fi
22872 if test -z "$ac_cv_path_PKG_CONFIG"; then
22873   ac_pt_PKG_CONFIG=$PKG_CONFIG
22874   # Extract the first word of "pkg-config", so it can be a program name with args.
22875 set dummy pkg-config; ac_word=$2
22876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22877 $as_echo_n "checking for $ac_word... " >&6; }
22878 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
22879   $as_echo_n "(cached) " >&6
22880 else
22881   case $ac_pt_PKG_CONFIG in
22882   [\\/]* | ?:[\\/]*)
22883   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22884   ;;
22885   *)
22886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22887 for as_dir in $PATH
22888 do
22889   IFS=$as_save_IFS
22890   test -z "$as_dir" && as_dir=.
22891     for ac_exec_ext in '' $ac_executable_extensions; do
22892   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22893     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22895     break 2
22896   fi
22897 done
22898   done
22899 IFS=$as_save_IFS
22900 
22901   ;;
22902 esac
22903 fi
22904 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22905 if test -n "$ac_pt_PKG_CONFIG"; then
22906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22907 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
22908 else
22909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22910 $as_echo "no" >&6; }
22911 fi
22912 
22913   if test "x$ac_pt_PKG_CONFIG" = x; then
22914     PKG_CONFIG=""
22915   else
22916     case $cross_compiling:$ac_tool_warned in
22917 yes:)
22918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22920 ac_tool_warned=yes ;;
22921 esac
22922     PKG_CONFIG=$ac_pt_PKG_CONFIG
22923   fi
22924 else
22925   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22926 fi
22927 
22928 fi
22929 if test -n "$PKG_CONFIG"; then
22930         _pkg_min_version=0.9.0
22931         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
22932 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
22933         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22934                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22935 $as_echo "yes" >&6; }
22936         else
22937                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22938 $as_echo "no" >&6; }
22939                 PKG_CONFIG=""
22940         fi
22941 
22942 fi
22943 
22944 # After basic tools have been setup, we can check build os specific details.
22945 
22946   ###############################################################################
22947 
22948   # Note that this is the build platform OS version!
22949 
22950   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
22951   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
22952   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
22953   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
22954 
22955 
22956 
22957 
22958 
22959 ###############################################################################
22960 #
22961 # Determine OpenJDK variants, options and version numbers.
22962 #
22963 ###############################################################################
22964 
22965 # We need build & target for this.
22966 
22967 
22968   ###############################################################################
22969   #
22970   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
22971   # We always build headless support.
22972   #
22973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
22974 $as_echo_n "checking headful support... " >&6; }
22975   # Check whether --enable-headful was given.
22976 if test "${enable_headful+set}" = set; then :
22977   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
22978 else
22979   SUPPORT_HEADFUL=yes
22980 fi
22981 
22982 
22983   SUPPORT_HEADLESS=yes
22984   BUILD_HEADLESS="BUILD_HEADLESS:=true"
22985 
22986   if test "x$SUPPORT_HEADFUL" = xyes; then
22987     # We are building both headful and headless.
22988     headful_msg="include support for both headful and headless"
22989   fi
22990 
22991   if test "x$SUPPORT_HEADFUL" = xno; then
22992     # Thus we are building headless only.
22993     BUILD_HEADLESS="BUILD_HEADLESS:=true"
22994     headful_msg="headless only"
22995   fi
22996 
22997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
22998 $as_echo "$headful_msg" >&6; }
22999 
23000 
23001 
23002 
23003 
23004   # Control wether Hotspot runs Queens test after build.
23005   # Check whether --enable-hotspot-test-in-build was given.
23006 if test "${enable_hotspot_test_in_build+set}" = set; then :
23007   enableval=$enable_hotspot_test_in_build;
23008 else
23009   enable_hotspot_test_in_build=no
23010 fi
23011 
23012   if test "x$enable_hotspot_test_in_build" = "xyes"; then
23013     TEST_IN_BUILD=true
23014   else
23015     TEST_IN_BUILD=false
23016   fi
23017 
23018 
23019   ###############################################################################
23020   #
23021   # Choose cacerts source file
23022   #
23023 
23024 # Check whether --with-cacerts-file was given.
23025 if test "${with_cacerts_file+set}" = set; then :
23026   withval=$with_cacerts_file;
23027 fi
23028 
23029   if test "x$with_cacerts_file" != x; then
23030     CACERTS_FILE=$with_cacerts_file
23031   fi
23032 
23033 
23034   ###############################################################################
23035   #
23036   # Enable or disable unlimited crypto
23037   #
23038   # Check whether --enable-unlimited-crypto was given.
23039 if test "${enable_unlimited_crypto+set}" = set; then :
23040   enableval=$enable_unlimited_crypto;
23041 else
23042   enable_unlimited_crypto=no
23043 fi
23044 
23045   if test "x$enable_unlimited_crypto" = "xyes"; then
23046     UNLIMITED_CRYPTO=true
23047   else
23048     UNLIMITED_CRYPTO=false
23049   fi
23050 
23051 
23052   ###############################################################################
23053   #
23054   # Enable or disable the elliptic curve crypto implementation
23055   #
23056 
23057 
23058   ###############################################################################
23059   #
23060   # Compress jars
23061   #
23062   COMPRESS_JARS=false
23063 
23064 
23065 
23066 
23067   # Source the version numbers
23068   . $AUTOCONF_DIR/version-numbers
23069 
23070   # Get the settings from parameters
23071 
23072 # Check whether --with-milestone was given.
23073 if test "${with_milestone+set}" = set; then :
23074   withval=$with_milestone;
23075 fi
23076 
23077   if test "x$with_milestone" = xyes; then
23078     as_fn_error $? "Milestone must have a value" "$LINENO" 5
23079   elif test "x$with_milestone" != x; then
23080     MILESTONE="$with_milestone"
23081   fi
23082   if test "x$MILESTONE" = x; then
23083     MILESTONE=internal
23084   fi
23085 
23086 
23087 # Check whether --with-update-version was given.
23088 if test "${with_update_version+set}" = set; then :
23089   withval=$with_update_version;
23090 fi
23091 
23092   if test "x$with_update_version" = xyes; then
23093     as_fn_error $? "Update version must have a value" "$LINENO" 5
23094   elif test "x$with_update_version" != x; then
23095     JDK_UPDATE_VERSION="$with_update_version"
23096     # On macosx 10.7, it's not possible to set --with-update-version=0X due
23097     # to a bug in expr (which reduces it to just X). To work around this, we
23098     # always add a 0 to one digit update versions.
23099     if test "${#JDK_UPDATE_VERSION}" = "1"; then
23100       JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
23101     fi
23102   fi
23103 
23104 
23105 # Check whether --with-user-release-suffix was given.
23106 if test "${with_user_release_suffix+set}" = set; then :
23107   withval=$with_user_release_suffix;
23108 fi
23109 
23110   if test "x$with_user_release_suffix" = xyes; then
23111     as_fn_error $? "Release suffix must have a value" "$LINENO" 5
23112   elif test "x$with_user_release_suffix" != x; then
23113     USER_RELEASE_SUFFIX="$with_user_release_suffix"
23114   fi
23115 
23116 
23117 # Check whether --with-build-number was given.
23118 if test "${with_build_number+set}" = set; then :
23119   withval=$with_build_number;
23120 fi
23121 
23122   if test "x$with_build_number" = xyes; then
23123     as_fn_error $? "Build number must have a value" "$LINENO" 5
23124   elif test "x$with_build_number" != x; then
23125     JDK_BUILD_NUMBER="$with_build_number"
23126   fi
23127   # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
23128   if test "x$JDK_BUILD_NUMBER" = x; then
23129     JDK_BUILD_NUMBER=b00
23130     if test "x$USER_RELEASE_SUFFIX" = x; then
23131       BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
23132       # Avoid [:alnum:] since it depends on the locale.
23133       CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
23134       USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23135     fi
23136   fi
23137 
23138   # Now set the JDK version, milestone, build number etc.
23139 
23140 
23141 
23142 
23143 
23144 
23145 
23146 
23147 
23148 
23149 
23150 
23151 
23152 
23153 
23154 
23155 # Check whether --with-copyright-year was given.
23156 if test "${with_copyright_year+set}" = set; then :
23157   withval=$with_copyright_year;
23158 fi
23159 
23160   if test "x$with_copyright_year" = xyes; then
23161     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
23162   elif test "x$with_copyright_year" != x; then
23163     COPYRIGHT_YEAR="$with_copyright_year"
23164   else
23165     COPYRIGHT_YEAR=`date +'%Y'`
23166   fi
23167 
23168 
23169   if test "x$JDK_UPDATE_VERSION" != x; then
23170     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
23171   else
23172     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
23173   fi
23174 
23175 
23176   COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
23177 
23178 
23179 
23180 ###############################################################################
23181 #
23182 # Setup BootJDK, used to bootstrap the build.
23183 #
23184 ###############################################################################
23185 
23186 
23187   BOOT_JDK_FOUND=no
23188 
23189 # Check whether --with-boot-jdk was given.
23190 if test "${with_boot_jdk+set}" = set; then :
23191   withval=$with_boot_jdk;
23192 fi
23193 
23194 
23195   # We look for the Boot JDK through various means, going from more certain to
23196   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
23197   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
23198   # must check if this is indeed valid; otherwise we'll continue looking.
23199 
23200   # Test: Is bootjdk explicitely set by command line arguments?
23201 
23202   if test "x$BOOT_JDK_FOUND" = xno; then
23203     # Now execute the test
23204 
23205   if test "x$with_boot_jdk" != x; then
23206     BOOT_JDK=$with_boot_jdk
23207     BOOT_JDK_FOUND=maybe
23208     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
23209 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
23210   fi
23211 
23212 
23213     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23214     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23215       # Do we have a bin/java?
23216       if test ! -x "$BOOT_JDK/bin/java"; then
23217         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23218 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23219         BOOT_JDK_FOUND=no
23220       else
23221         # Do we have a bin/javac?
23222         if test ! -x "$BOOT_JDK/bin/javac"; then
23223           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23224 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23225           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23226 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23227           BOOT_JDK_FOUND=no
23228         else
23229           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23230           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23231 
23232           # Extra M4 quote needed to protect [] in grep expression.
23233           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23234           if test "x$FOUND_CORRECT_VERSION" = x; then
23235             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23236 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23237             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23238 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23239             BOOT_JDK_FOUND=no
23240           else
23241             # We're done! :-)
23242             BOOT_JDK_FOUND=yes
23243 
23244   # Only process if variable expands to non-empty
23245 
23246   if test "x$BOOT_JDK" != x; then
23247     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23248 
23249   # Input might be given as Windows format, start by converting to
23250   # unix format.
23251   path="$BOOT_JDK"
23252   new_path=`$CYGPATH -u "$path"`
23253 
23254   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23255   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23256   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23257   # "foo.exe" is OK but "foo" is an error.
23258   #
23259   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23260   # It is also a way to make sure we got the proper file name for the real test later on.
23261   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23262   if test "x$test_shortpath" = x; then
23263     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23264 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23265     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23266   fi
23267 
23268   # Call helper function which possibly converts this using DOS-style short mode.
23269   # If so, the updated path is stored in $new_path.
23270 
23271   input_path="$new_path"
23272   # Check if we need to convert this using DOS-style short mode. If the path
23273   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23274   # take no chances and rewrite it.
23275   # Note: m4 eats our [], so we need to use [ and ] instead.
23276   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23277   if test "x$has_forbidden_chars" != x; then
23278     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23279     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23280     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23281     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23282       # Going to short mode and back again did indeed matter. Since short mode is
23283       # case insensitive, let's make it lowercase to improve readability.
23284       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23285       # Now convert it back to Unix-style (cygpath)
23286       input_path=`$CYGPATH -u "$shortmode_path"`
23287       new_path="$input_path"
23288     fi
23289   fi
23290 
23291   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23292   if test "x$test_cygdrive_prefix" = x; then
23293     # As a simple fix, exclude /usr/bin since it's not a real path.
23294     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23295       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23296       # a path prefixed by /cygdrive for fixpath to work.
23297       new_path="$CYGWIN_ROOT_PATH$input_path"
23298     fi
23299   fi
23300 
23301 
23302   if test "x$path" != "x$new_path"; then
23303     BOOT_JDK="$new_path"
23304     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23305 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23306   fi
23307 
23308     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23309 
23310   path="$BOOT_JDK"
23311   has_colon=`$ECHO $path | $GREP ^.:`
23312   new_path="$path"
23313   if test "x$has_colon" = x; then
23314     # Not in mixed or Windows style, start by that.
23315     new_path=`cmd //c echo $path`
23316   fi
23317 
23318 
23319   input_path="$new_path"
23320   # Check if we need to convert this using DOS-style short mode. If the path
23321   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23322   # take no chances and rewrite it.
23323   # Note: m4 eats our [], so we need to use [ and ] instead.
23324   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23325   if test "x$has_forbidden_chars" != x; then
23326     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23327     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23328   fi
23329 
23330 
23331   windows_path="$new_path"
23332   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23333     unix_path=`$CYGPATH -u "$windows_path"`
23334     new_path="$unix_path"
23335   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23336     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23337     new_path="$unix_path"
23338   fi
23339 
23340   if test "x$path" != "x$new_path"; then
23341     BOOT_JDK="$new_path"
23342     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23343 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23344   fi
23345 
23346   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23347   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23348 
23349     else
23350       # We're on a unix platform. Hooray! :)
23351       path="$BOOT_JDK"
23352       has_space=`$ECHO "$path" | $GREP " "`
23353       if test "x$has_space" != x; then
23354         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23355 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23356         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23357       fi
23358 
23359       # Use eval to expand a potential ~
23360       eval path="$path"
23361       if test ! -f "$path" && test ! -d "$path"; then
23362         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23363       fi
23364 
23365       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23366     fi
23367   fi
23368 
23369             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23370 $as_echo_n "checking for Boot JDK... " >&6; }
23371             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23372 $as_echo "$BOOT_JDK" >&6; }
23373             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23374 $as_echo_n "checking Boot JDK version... " >&6; }
23375             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23376             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23377 $as_echo "$BOOT_JDK_VERSION" >&6; }
23378           fi # end check jdk version
23379         fi # end check javac
23380       fi # end check java
23381     fi # end check boot jdk found
23382   fi
23383 
23384   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
23385     # Having specified an argument which is incorrect will produce an instant failure;
23386     # we should not go on looking
23387     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
23388   fi
23389 
23390   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
23391 
23392   if test "x$BOOT_JDK_FOUND" = xno; then
23393     # Now execute the test
23394 
23395   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
23396     # First check at user selected default
23397 
23398   if test "x$BOOT_JDK_FOUND" = xno; then
23399     # Now execute the test
23400 
23401   if test -x /usr/libexec/java_home; then
23402     BOOT_JDK=`/usr/libexec/java_home `
23403     BOOT_JDK_FOUND=maybe
23404     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
23405 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
23406   fi
23407 
23408 
23409     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23410     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23411       # Do we have a bin/java?
23412       if test ! -x "$BOOT_JDK/bin/java"; then
23413         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23414 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23415         BOOT_JDK_FOUND=no
23416       else
23417         # Do we have a bin/javac?
23418         if test ! -x "$BOOT_JDK/bin/javac"; then
23419           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23420 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23421           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23422 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23423           BOOT_JDK_FOUND=no
23424         else
23425           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23426           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23427 
23428           # Extra M4 quote needed to protect [] in grep expression.
23429           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23430           if test "x$FOUND_CORRECT_VERSION" = x; then
23431             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23432 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23433             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23434 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23435             BOOT_JDK_FOUND=no
23436           else
23437             # We're done! :-)
23438             BOOT_JDK_FOUND=yes
23439 
23440   # Only process if variable expands to non-empty
23441 
23442   if test "x$BOOT_JDK" != x; then
23443     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23444 
23445   # Input might be given as Windows format, start by converting to
23446   # unix format.
23447   path="$BOOT_JDK"
23448   new_path=`$CYGPATH -u "$path"`
23449 
23450   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23451   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23452   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23453   # "foo.exe" is OK but "foo" is an error.
23454   #
23455   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23456   # It is also a way to make sure we got the proper file name for the real test later on.
23457   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23458   if test "x$test_shortpath" = x; then
23459     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23460 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23461     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23462   fi
23463 
23464   # Call helper function which possibly converts this using DOS-style short mode.
23465   # If so, the updated path is stored in $new_path.
23466 
23467   input_path="$new_path"
23468   # Check if we need to convert this using DOS-style short mode. If the path
23469   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23470   # take no chances and rewrite it.
23471   # Note: m4 eats our [], so we need to use [ and ] instead.
23472   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23473   if test "x$has_forbidden_chars" != x; then
23474     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23475     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23476     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23477     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23478       # Going to short mode and back again did indeed matter. Since short mode is
23479       # case insensitive, let's make it lowercase to improve readability.
23480       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23481       # Now convert it back to Unix-style (cygpath)
23482       input_path=`$CYGPATH -u "$shortmode_path"`
23483       new_path="$input_path"
23484     fi
23485   fi
23486 
23487   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23488   if test "x$test_cygdrive_prefix" = x; then
23489     # As a simple fix, exclude /usr/bin since it's not a real path.
23490     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23491       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23492       # a path prefixed by /cygdrive for fixpath to work.
23493       new_path="$CYGWIN_ROOT_PATH$input_path"
23494     fi
23495   fi
23496 
23497 
23498   if test "x$path" != "x$new_path"; then
23499     BOOT_JDK="$new_path"
23500     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23501 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23502   fi
23503 
23504     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23505 
23506   path="$BOOT_JDK"
23507   has_colon=`$ECHO $path | $GREP ^.:`
23508   new_path="$path"
23509   if test "x$has_colon" = x; then
23510     # Not in mixed or Windows style, start by that.
23511     new_path=`cmd //c echo $path`
23512   fi
23513 
23514 
23515   input_path="$new_path"
23516   # Check if we need to convert this using DOS-style short mode. If the path
23517   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23518   # take no chances and rewrite it.
23519   # Note: m4 eats our [], so we need to use [ and ] instead.
23520   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23521   if test "x$has_forbidden_chars" != x; then
23522     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23523     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23524   fi
23525 
23526 
23527   windows_path="$new_path"
23528   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23529     unix_path=`$CYGPATH -u "$windows_path"`
23530     new_path="$unix_path"
23531   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23532     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23533     new_path="$unix_path"
23534   fi
23535 
23536   if test "x$path" != "x$new_path"; then
23537     BOOT_JDK="$new_path"
23538     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23539 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23540   fi
23541 
23542   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23543   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23544 
23545     else
23546       # We're on a unix platform. Hooray! :)
23547       path="$BOOT_JDK"
23548       has_space=`$ECHO "$path" | $GREP " "`
23549       if test "x$has_space" != x; then
23550         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23551 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23552         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23553       fi
23554 
23555       # Use eval to expand a potential ~
23556       eval path="$path"
23557       if test ! -f "$path" && test ! -d "$path"; then
23558         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23559       fi
23560 
23561       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23562     fi
23563   fi
23564 
23565             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23566 $as_echo_n "checking for Boot JDK... " >&6; }
23567             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23568 $as_echo "$BOOT_JDK" >&6; }
23569             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23570 $as_echo_n "checking Boot JDK version... " >&6; }
23571             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23572             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23573 $as_echo "$BOOT_JDK_VERSION" >&6; }
23574           fi # end check jdk version
23575         fi # end check javac
23576       fi # end check java
23577     fi # end check boot jdk found
23578   fi
23579 
23580     # If that did not work out (e.g. too old), try explicit versions instead
23581 
23582   if test "x$BOOT_JDK_FOUND" = xno; then
23583     # Now execute the test
23584 
23585   if test -x /usr/libexec/java_home; then
23586     BOOT_JDK=`/usr/libexec/java_home -v 1.9`
23587     BOOT_JDK_FOUND=maybe
23588     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5
23589 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;}
23590   fi
23591 
23592 
23593     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23594     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23595       # Do we have a bin/java?
23596       if test ! -x "$BOOT_JDK/bin/java"; then
23597         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23598 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23599         BOOT_JDK_FOUND=no
23600       else
23601         # Do we have a bin/javac?
23602         if test ! -x "$BOOT_JDK/bin/javac"; then
23603           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23604 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23605           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23606 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23607           BOOT_JDK_FOUND=no
23608         else
23609           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23610           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23611 
23612           # Extra M4 quote needed to protect [] in grep expression.
23613           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23614           if test "x$FOUND_CORRECT_VERSION" = x; then
23615             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23616 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23617             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23618 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23619             BOOT_JDK_FOUND=no
23620           else
23621             # We're done! :-)
23622             BOOT_JDK_FOUND=yes
23623 
23624   # Only process if variable expands to non-empty
23625 
23626   if test "x$BOOT_JDK" != x; then
23627     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23628 
23629   # Input might be given as Windows format, start by converting to
23630   # unix format.
23631   path="$BOOT_JDK"
23632   new_path=`$CYGPATH -u "$path"`
23633 
23634   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23635   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23636   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23637   # "foo.exe" is OK but "foo" is an error.
23638   #
23639   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23640   # It is also a way to make sure we got the proper file name for the real test later on.
23641   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23642   if test "x$test_shortpath" = x; then
23643     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23644 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23645     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23646   fi
23647 
23648   # Call helper function which possibly converts this using DOS-style short mode.
23649   # If so, the updated path is stored in $new_path.
23650 
23651   input_path="$new_path"
23652   # Check if we need to convert this using DOS-style short mode. If the path
23653   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23654   # take no chances and rewrite it.
23655   # Note: m4 eats our [], so we need to use [ and ] instead.
23656   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23657   if test "x$has_forbidden_chars" != x; then
23658     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23659     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23660     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23661     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23662       # Going to short mode and back again did indeed matter. Since short mode is
23663       # case insensitive, let's make it lowercase to improve readability.
23664       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23665       # Now convert it back to Unix-style (cygpath)
23666       input_path=`$CYGPATH -u "$shortmode_path"`
23667       new_path="$input_path"
23668     fi
23669   fi
23670 
23671   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23672   if test "x$test_cygdrive_prefix" = x; then
23673     # As a simple fix, exclude /usr/bin since it's not a real path.
23674     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23675       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23676       # a path prefixed by /cygdrive for fixpath to work.
23677       new_path="$CYGWIN_ROOT_PATH$input_path"
23678     fi
23679   fi
23680 
23681 
23682   if test "x$path" != "x$new_path"; then
23683     BOOT_JDK="$new_path"
23684     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23685 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23686   fi
23687 
23688     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23689 
23690   path="$BOOT_JDK"
23691   has_colon=`$ECHO $path | $GREP ^.:`
23692   new_path="$path"
23693   if test "x$has_colon" = x; then
23694     # Not in mixed or Windows style, start by that.
23695     new_path=`cmd //c echo $path`
23696   fi
23697 
23698 
23699   input_path="$new_path"
23700   # Check if we need to convert this using DOS-style short mode. If the path
23701   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23702   # take no chances and rewrite it.
23703   # Note: m4 eats our [], so we need to use [ and ] instead.
23704   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23705   if test "x$has_forbidden_chars" != x; then
23706     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23707     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23708   fi
23709 
23710 
23711   windows_path="$new_path"
23712   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23713     unix_path=`$CYGPATH -u "$windows_path"`
23714     new_path="$unix_path"
23715   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23716     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23717     new_path="$unix_path"
23718   fi
23719 
23720   if test "x$path" != "x$new_path"; then
23721     BOOT_JDK="$new_path"
23722     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23723 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23724   fi
23725 
23726   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23727   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23728 
23729     else
23730       # We're on a unix platform. Hooray! :)
23731       path="$BOOT_JDK"
23732       has_space=`$ECHO "$path" | $GREP " "`
23733       if test "x$has_space" != x; then
23734         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23735 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23736         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23737       fi
23738 
23739       # Use eval to expand a potential ~
23740       eval path="$path"
23741       if test ! -f "$path" && test ! -d "$path"; then
23742         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23743       fi
23744 
23745       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23746     fi
23747   fi
23748 
23749             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23750 $as_echo_n "checking for Boot JDK... " >&6; }
23751             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23752 $as_echo "$BOOT_JDK" >&6; }
23753             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23754 $as_echo_n "checking Boot JDK version... " >&6; }
23755             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23756             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23757 $as_echo "$BOOT_JDK_VERSION" >&6; }
23758           fi # end check jdk version
23759         fi # end check javac
23760       fi # end check java
23761     fi # end check boot jdk found
23762   fi
23763 
23764 
23765   if test "x$BOOT_JDK_FOUND" = xno; then
23766     # Now execute the test
23767 
23768   if test -x /usr/libexec/java_home; then
23769     BOOT_JDK=`/usr/libexec/java_home -v 1.8`
23770     BOOT_JDK_FOUND=maybe
23771     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5
23772 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;}
23773   fi
23774 
23775 
23776     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23777     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23778       # Do we have a bin/java?
23779       if test ! -x "$BOOT_JDK/bin/java"; then
23780         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23781 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23782         BOOT_JDK_FOUND=no
23783       else
23784         # Do we have a bin/javac?
23785         if test ! -x "$BOOT_JDK/bin/javac"; then
23786           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23787 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23788           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23789 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23790           BOOT_JDK_FOUND=no
23791         else
23792           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23793           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23794 
23795           # Extra M4 quote needed to protect [] in grep expression.
23796           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23797           if test "x$FOUND_CORRECT_VERSION" = x; then
23798             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23799 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23800             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23801 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23802             BOOT_JDK_FOUND=no
23803           else
23804             # We're done! :-)
23805             BOOT_JDK_FOUND=yes
23806 
23807   # Only process if variable expands to non-empty
23808 
23809   if test "x$BOOT_JDK" != x; then
23810     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23811 
23812   # Input might be given as Windows format, start by converting to
23813   # unix format.
23814   path="$BOOT_JDK"
23815   new_path=`$CYGPATH -u "$path"`
23816 
23817   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23818   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23819   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23820   # "foo.exe" is OK but "foo" is an error.
23821   #
23822   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23823   # It is also a way to make sure we got the proper file name for the real test later on.
23824   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23825   if test "x$test_shortpath" = x; then
23826     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23827 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23828     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23829   fi
23830 
23831   # Call helper function which possibly converts this using DOS-style short mode.
23832   # If so, the updated path is stored in $new_path.
23833 
23834   input_path="$new_path"
23835   # Check if we need to convert this using DOS-style short mode. If the path
23836   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23837   # take no chances and rewrite it.
23838   # Note: m4 eats our [], so we need to use [ and ] instead.
23839   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23840   if test "x$has_forbidden_chars" != x; then
23841     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23842     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23843     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23844     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23845       # Going to short mode and back again did indeed matter. Since short mode is
23846       # case insensitive, let's make it lowercase to improve readability.
23847       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23848       # Now convert it back to Unix-style (cygpath)
23849       input_path=`$CYGPATH -u "$shortmode_path"`
23850       new_path="$input_path"
23851     fi
23852   fi
23853 
23854   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23855   if test "x$test_cygdrive_prefix" = x; then
23856     # As a simple fix, exclude /usr/bin since it's not a real path.
23857     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23858       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23859       # a path prefixed by /cygdrive for fixpath to work.
23860       new_path="$CYGWIN_ROOT_PATH$input_path"
23861     fi
23862   fi
23863 
23864 
23865   if test "x$path" != "x$new_path"; then
23866     BOOT_JDK="$new_path"
23867     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23868 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23869   fi
23870 
23871     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23872 
23873   path="$BOOT_JDK"
23874   has_colon=`$ECHO $path | $GREP ^.:`
23875   new_path="$path"
23876   if test "x$has_colon" = x; then
23877     # Not in mixed or Windows style, start by that.
23878     new_path=`cmd //c echo $path`
23879   fi
23880 
23881 
23882   input_path="$new_path"
23883   # Check if we need to convert this using DOS-style short mode. If the path
23884   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23885   # take no chances and rewrite it.
23886   # Note: m4 eats our [], so we need to use [ and ] instead.
23887   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23888   if test "x$has_forbidden_chars" != x; then
23889     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23890     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23891   fi
23892 
23893 
23894   windows_path="$new_path"
23895   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23896     unix_path=`$CYGPATH -u "$windows_path"`
23897     new_path="$unix_path"
23898   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23899     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23900     new_path="$unix_path"
23901   fi
23902 
23903   if test "x$path" != "x$new_path"; then
23904     BOOT_JDK="$new_path"
23905     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23906 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23907   fi
23908 
23909   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23910   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23911 
23912     else
23913       # We're on a unix platform. Hooray! :)
23914       path="$BOOT_JDK"
23915       has_space=`$ECHO "$path" | $GREP " "`
23916       if test "x$has_space" != x; then
23917         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23918 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23919         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23920       fi
23921 
23922       # Use eval to expand a potential ~
23923       eval path="$path"
23924       if test ! -f "$path" && test ! -d "$path"; then
23925         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23926       fi
23927 
23928       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23929     fi
23930   fi
23931 
23932             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23933 $as_echo_n "checking for Boot JDK... " >&6; }
23934             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23935 $as_echo "$BOOT_JDK" >&6; }
23936             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23937 $as_echo_n "checking Boot JDK version... " >&6; }
23938             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23939             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23940 $as_echo "$BOOT_JDK_VERSION" >&6; }
23941           fi # end check jdk version
23942         fi # end check javac
23943       fi # end check java
23944     fi # end check boot jdk found
23945   fi
23946 
23947 
23948   if test "x$BOOT_JDK_FOUND" = xno; then
23949     # Now execute the test
23950 
23951   if test -x /usr/libexec/java_home; then
23952     BOOT_JDK=`/usr/libexec/java_home -v 1.7`
23953     BOOT_JDK_FOUND=maybe
23954     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5
23955 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;}
23956   fi
23957 
23958 
23959     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23960     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23961       # Do we have a bin/java?
23962       if test ! -x "$BOOT_JDK/bin/java"; then
23963         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23964 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23965         BOOT_JDK_FOUND=no
23966       else
23967         # Do we have a bin/javac?
23968         if test ! -x "$BOOT_JDK/bin/javac"; then
23969           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23970 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23971           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23972 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23973           BOOT_JDK_FOUND=no
23974         else
23975           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23976           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23977 
23978           # Extra M4 quote needed to protect [] in grep expression.
23979           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23980           if test "x$FOUND_CORRECT_VERSION" = x; then
23981             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23982 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23983             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23984 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23985             BOOT_JDK_FOUND=no
23986           else
23987             # We're done! :-)
23988             BOOT_JDK_FOUND=yes
23989 
23990   # Only process if variable expands to non-empty
23991 
23992   if test "x$BOOT_JDK" != x; then
23993     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23994 
23995   # Input might be given as Windows format, start by converting to
23996   # unix format.
23997   path="$BOOT_JDK"
23998   new_path=`$CYGPATH -u "$path"`
23999 
24000   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24001   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24002   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24003   # "foo.exe" is OK but "foo" is an error.
24004   #
24005   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24006   # It is also a way to make sure we got the proper file name for the real test later on.
24007   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24008   if test "x$test_shortpath" = x; then
24009     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24010 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24011     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24012   fi
24013 
24014   # Call helper function which possibly converts this using DOS-style short mode.
24015   # If so, the updated path is stored in $new_path.
24016 
24017   input_path="$new_path"
24018   # Check if we need to convert this using DOS-style short mode. If the path
24019   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24020   # take no chances and rewrite it.
24021   # Note: m4 eats our [], so we need to use [ and ] instead.
24022   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24023   if test "x$has_forbidden_chars" != x; then
24024     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24025     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24026     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24027     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24028       # Going to short mode and back again did indeed matter. Since short mode is
24029       # case insensitive, let's make it lowercase to improve readability.
24030       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24031       # Now convert it back to Unix-style (cygpath)
24032       input_path=`$CYGPATH -u "$shortmode_path"`
24033       new_path="$input_path"
24034     fi
24035   fi
24036 
24037   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24038   if test "x$test_cygdrive_prefix" = x; then
24039     # As a simple fix, exclude /usr/bin since it's not a real path.
24040     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24041       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24042       # a path prefixed by /cygdrive for fixpath to work.
24043       new_path="$CYGWIN_ROOT_PATH$input_path"
24044     fi
24045   fi
24046 
24047 
24048   if test "x$path" != "x$new_path"; then
24049     BOOT_JDK="$new_path"
24050     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24051 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24052   fi
24053 
24054     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24055 
24056   path="$BOOT_JDK"
24057   has_colon=`$ECHO $path | $GREP ^.:`
24058   new_path="$path"
24059   if test "x$has_colon" = x; then
24060     # Not in mixed or Windows style, start by that.
24061     new_path=`cmd //c echo $path`
24062   fi
24063 
24064 
24065   input_path="$new_path"
24066   # Check if we need to convert this using DOS-style short mode. If the path
24067   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24068   # take no chances and rewrite it.
24069   # Note: m4 eats our [], so we need to use [ and ] instead.
24070   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24071   if test "x$has_forbidden_chars" != x; then
24072     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24073     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24074   fi
24075 
24076 
24077   windows_path="$new_path"
24078   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24079     unix_path=`$CYGPATH -u "$windows_path"`
24080     new_path="$unix_path"
24081   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24082     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24083     new_path="$unix_path"
24084   fi
24085 
24086   if test "x$path" != "x$new_path"; then
24087     BOOT_JDK="$new_path"
24088     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24089 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24090   fi
24091 
24092   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24093   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24094 
24095     else
24096       # We're on a unix platform. Hooray! :)
24097       path="$BOOT_JDK"
24098       has_space=`$ECHO "$path" | $GREP " "`
24099       if test "x$has_space" != x; then
24100         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24101 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24102         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24103       fi
24104 
24105       # Use eval to expand a potential ~
24106       eval path="$path"
24107       if test ! -f "$path" && test ! -d "$path"; then
24108         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24109       fi
24110 
24111       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24112     fi
24113   fi
24114 
24115             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24116 $as_echo_n "checking for Boot JDK... " >&6; }
24117             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24118 $as_echo "$BOOT_JDK" >&6; }
24119             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24120 $as_echo_n "checking Boot JDK version... " >&6; }
24121             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24122             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24123 $as_echo "$BOOT_JDK_VERSION" >&6; }
24124           fi # end check jdk version
24125         fi # end check javac
24126       fi # end check java
24127     fi # end check boot jdk found
24128   fi
24129 
24130   fi
24131 
24132 
24133     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24134     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24135       # Do we have a bin/java?
24136       if test ! -x "$BOOT_JDK/bin/java"; then
24137         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24138 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24139         BOOT_JDK_FOUND=no
24140       else
24141         # Do we have a bin/javac?
24142         if test ! -x "$BOOT_JDK/bin/javac"; then
24143           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24144 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24145           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24146 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24147           BOOT_JDK_FOUND=no
24148         else
24149           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24150           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24151 
24152           # Extra M4 quote needed to protect [] in grep expression.
24153           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24154           if test "x$FOUND_CORRECT_VERSION" = x; then
24155             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24156 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24157             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24158 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24159             BOOT_JDK_FOUND=no
24160           else
24161             # We're done! :-)
24162             BOOT_JDK_FOUND=yes
24163 
24164   # Only process if variable expands to non-empty
24165 
24166   if test "x$BOOT_JDK" != x; then
24167     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24168 
24169   # Input might be given as Windows format, start by converting to
24170   # unix format.
24171   path="$BOOT_JDK"
24172   new_path=`$CYGPATH -u "$path"`
24173 
24174   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24175   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24176   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24177   # "foo.exe" is OK but "foo" is an error.
24178   #
24179   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24180   # It is also a way to make sure we got the proper file name for the real test later on.
24181   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24182   if test "x$test_shortpath" = x; then
24183     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24184 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24185     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24186   fi
24187 
24188   # Call helper function which possibly converts this using DOS-style short mode.
24189   # If so, the updated path is stored in $new_path.
24190 
24191   input_path="$new_path"
24192   # Check if we need to convert this using DOS-style short mode. If the path
24193   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24194   # take no chances and rewrite it.
24195   # Note: m4 eats our [], so we need to use [ and ] instead.
24196   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24197   if test "x$has_forbidden_chars" != x; then
24198     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24199     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24200     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24201     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24202       # Going to short mode and back again did indeed matter. Since short mode is
24203       # case insensitive, let's make it lowercase to improve readability.
24204       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24205       # Now convert it back to Unix-style (cygpath)
24206       input_path=`$CYGPATH -u "$shortmode_path"`
24207       new_path="$input_path"
24208     fi
24209   fi
24210 
24211   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24212   if test "x$test_cygdrive_prefix" = x; then
24213     # As a simple fix, exclude /usr/bin since it's not a real path.
24214     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24215       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24216       # a path prefixed by /cygdrive for fixpath to work.
24217       new_path="$CYGWIN_ROOT_PATH$input_path"
24218     fi
24219   fi
24220 
24221 
24222   if test "x$path" != "x$new_path"; then
24223     BOOT_JDK="$new_path"
24224     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24225 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24226   fi
24227 
24228     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24229 
24230   path="$BOOT_JDK"
24231   has_colon=`$ECHO $path | $GREP ^.:`
24232   new_path="$path"
24233   if test "x$has_colon" = x; then
24234     # Not in mixed or Windows style, start by that.
24235     new_path=`cmd //c echo $path`
24236   fi
24237 
24238 
24239   input_path="$new_path"
24240   # Check if we need to convert this using DOS-style short mode. If the path
24241   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24242   # take no chances and rewrite it.
24243   # Note: m4 eats our [], so we need to use [ and ] instead.
24244   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24245   if test "x$has_forbidden_chars" != x; then
24246     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24247     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24248   fi
24249 
24250 
24251   windows_path="$new_path"
24252   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24253     unix_path=`$CYGPATH -u "$windows_path"`
24254     new_path="$unix_path"
24255   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24256     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24257     new_path="$unix_path"
24258   fi
24259 
24260   if test "x$path" != "x$new_path"; then
24261     BOOT_JDK="$new_path"
24262     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24263 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24264   fi
24265 
24266   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24267   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24268 
24269     else
24270       # We're on a unix platform. Hooray! :)
24271       path="$BOOT_JDK"
24272       has_space=`$ECHO "$path" | $GREP " "`
24273       if test "x$has_space" != x; then
24274         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24275 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24276         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24277       fi
24278 
24279       # Use eval to expand a potential ~
24280       eval path="$path"
24281       if test ! -f "$path" && test ! -d "$path"; then
24282         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24283       fi
24284 
24285       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24286     fi
24287   fi
24288 
24289             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24290 $as_echo_n "checking for Boot JDK... " >&6; }
24291             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24292 $as_echo "$BOOT_JDK" >&6; }
24293             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24294 $as_echo_n "checking Boot JDK version... " >&6; }
24295             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24296             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24297 $as_echo "$BOOT_JDK_VERSION" >&6; }
24298           fi # end check jdk version
24299         fi # end check javac
24300       fi # end check java
24301     fi # end check boot jdk found
24302   fi
24303 
24304 
24305   # Test: Is $JAVA_HOME set?
24306 
24307   if test "x$BOOT_JDK_FOUND" = xno; then
24308     # Now execute the test
24309 
24310   if test "x$JAVA_HOME" != x; then
24311     JAVA_HOME_PROCESSED="$JAVA_HOME"
24312 
24313   # Only process if variable expands to non-empty
24314 
24315   if test "x$JAVA_HOME_PROCESSED" != x; then
24316     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24317 
24318   # Input might be given as Windows format, start by converting to
24319   # unix format.
24320   path="$JAVA_HOME_PROCESSED"
24321   new_path=`$CYGPATH -u "$path"`
24322 
24323   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24324   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24325   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24326   # "foo.exe" is OK but "foo" is an error.
24327   #
24328   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24329   # It is also a way to make sure we got the proper file name for the real test later on.
24330   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24331   if test "x$test_shortpath" = x; then
24332     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
24333 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
24334     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
24335   fi
24336 
24337   # Call helper function which possibly converts this using DOS-style short mode.
24338   # If so, the updated path is stored in $new_path.
24339 
24340   input_path="$new_path"
24341   # Check if we need to convert this using DOS-style short mode. If the path
24342   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24343   # take no chances and rewrite it.
24344   # Note: m4 eats our [], so we need to use [ and ] instead.
24345   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24346   if test "x$has_forbidden_chars" != x; then
24347     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24348     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24349     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24350     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24351       # Going to short mode and back again did indeed matter. Since short mode is
24352       # case insensitive, let's make it lowercase to improve readability.
24353       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24354       # Now convert it back to Unix-style (cygpath)
24355       input_path=`$CYGPATH -u "$shortmode_path"`
24356       new_path="$input_path"
24357     fi
24358   fi
24359 
24360   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24361   if test "x$test_cygdrive_prefix" = x; then
24362     # As a simple fix, exclude /usr/bin since it's not a real path.
24363     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24364       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24365       # a path prefixed by /cygdrive for fixpath to work.
24366       new_path="$CYGWIN_ROOT_PATH$input_path"
24367     fi
24368   fi
24369 
24370 
24371   if test "x$path" != "x$new_path"; then
24372     JAVA_HOME_PROCESSED="$new_path"
24373     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
24374 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
24375   fi
24376 
24377     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24378 
24379   path="$JAVA_HOME_PROCESSED"
24380   has_colon=`$ECHO $path | $GREP ^.:`
24381   new_path="$path"
24382   if test "x$has_colon" = x; then
24383     # Not in mixed or Windows style, start by that.
24384     new_path=`cmd //c echo $path`
24385   fi
24386 
24387 
24388   input_path="$new_path"
24389   # Check if we need to convert this using DOS-style short mode. If the path
24390   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24391   # take no chances and rewrite it.
24392   # Note: m4 eats our [], so we need to use [ and ] instead.
24393   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24394   if test "x$has_forbidden_chars" != x; then
24395     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24396     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24397   fi
24398 
24399 
24400   windows_path="$new_path"
24401   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24402     unix_path=`$CYGPATH -u "$windows_path"`
24403     new_path="$unix_path"
24404   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24405     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24406     new_path="$unix_path"
24407   fi
24408 
24409   if test "x$path" != "x$new_path"; then
24410     JAVA_HOME_PROCESSED="$new_path"
24411     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
24412 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
24413   fi
24414 
24415   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24416   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24417 
24418     else
24419       # We're on a unix platform. Hooray! :)
24420       path="$JAVA_HOME_PROCESSED"
24421       has_space=`$ECHO "$path" | $GREP " "`
24422       if test "x$has_space" != x; then
24423         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
24424 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
24425         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24426       fi
24427 
24428       # Use eval to expand a potential ~
24429       eval path="$path"
24430       if test ! -f "$path" && test ! -d "$path"; then
24431         as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
24432       fi
24433 
24434       JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
24435     fi
24436   fi
24437 
24438     if test ! -d "$JAVA_HOME_PROCESSED"; then
24439       { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
24440 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
24441     else
24442       # Aha, the user has set a JAVA_HOME
24443       # let us use that as the Boot JDK.
24444       BOOT_JDK="$JAVA_HOME_PROCESSED"
24445       BOOT_JDK_FOUND=maybe
24446       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
24447 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
24448     fi
24449   fi
24450 
24451 
24452     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24453     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24454       # Do we have a bin/java?
24455       if test ! -x "$BOOT_JDK/bin/java"; then
24456         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24457 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24458         BOOT_JDK_FOUND=no
24459       else
24460         # Do we have a bin/javac?
24461         if test ! -x "$BOOT_JDK/bin/javac"; then
24462           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24463 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24464           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24465 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24466           BOOT_JDK_FOUND=no
24467         else
24468           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24469           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24470 
24471           # Extra M4 quote needed to protect [] in grep expression.
24472           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24473           if test "x$FOUND_CORRECT_VERSION" = x; then
24474             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24475 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24476             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24477 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24478             BOOT_JDK_FOUND=no
24479           else
24480             # We're done! :-)
24481             BOOT_JDK_FOUND=yes
24482 
24483   # Only process if variable expands to non-empty
24484 
24485   if test "x$BOOT_JDK" != x; then
24486     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24487 
24488   # Input might be given as Windows format, start by converting to
24489   # unix format.
24490   path="$BOOT_JDK"
24491   new_path=`$CYGPATH -u "$path"`
24492 
24493   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24494   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24495   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24496   # "foo.exe" is OK but "foo" is an error.
24497   #
24498   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24499   # It is also a way to make sure we got the proper file name for the real test later on.
24500   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24501   if test "x$test_shortpath" = x; then
24502     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24503 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24504     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24505   fi
24506 
24507   # Call helper function which possibly converts this using DOS-style short mode.
24508   # If so, the updated path is stored in $new_path.
24509 
24510   input_path="$new_path"
24511   # Check if we need to convert this using DOS-style short mode. If the path
24512   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24513   # take no chances and rewrite it.
24514   # Note: m4 eats our [], so we need to use [ and ] instead.
24515   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24516   if test "x$has_forbidden_chars" != x; then
24517     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24518     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24519     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24520     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24521       # Going to short mode and back again did indeed matter. Since short mode is
24522       # case insensitive, let's make it lowercase to improve readability.
24523       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24524       # Now convert it back to Unix-style (cygpath)
24525       input_path=`$CYGPATH -u "$shortmode_path"`
24526       new_path="$input_path"
24527     fi
24528   fi
24529 
24530   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24531   if test "x$test_cygdrive_prefix" = x; then
24532     # As a simple fix, exclude /usr/bin since it's not a real path.
24533     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24534       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24535       # a path prefixed by /cygdrive for fixpath to work.
24536       new_path="$CYGWIN_ROOT_PATH$input_path"
24537     fi
24538   fi
24539 
24540 
24541   if test "x$path" != "x$new_path"; then
24542     BOOT_JDK="$new_path"
24543     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24544 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24545   fi
24546 
24547     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24548 
24549   path="$BOOT_JDK"
24550   has_colon=`$ECHO $path | $GREP ^.:`
24551   new_path="$path"
24552   if test "x$has_colon" = x; then
24553     # Not in mixed or Windows style, start by that.
24554     new_path=`cmd //c echo $path`
24555   fi
24556 
24557 
24558   input_path="$new_path"
24559   # Check if we need to convert this using DOS-style short mode. If the path
24560   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24561   # take no chances and rewrite it.
24562   # Note: m4 eats our [], so we need to use [ and ] instead.
24563   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24564   if test "x$has_forbidden_chars" != x; then
24565     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24566     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24567   fi
24568 
24569 
24570   windows_path="$new_path"
24571   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24572     unix_path=`$CYGPATH -u "$windows_path"`
24573     new_path="$unix_path"
24574   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24575     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24576     new_path="$unix_path"
24577   fi
24578 
24579   if test "x$path" != "x$new_path"; then
24580     BOOT_JDK="$new_path"
24581     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24582 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24583   fi
24584 
24585   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24586   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24587 
24588     else
24589       # We're on a unix platform. Hooray! :)
24590       path="$BOOT_JDK"
24591       has_space=`$ECHO "$path" | $GREP " "`
24592       if test "x$has_space" != x; then
24593         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24594 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24595         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24596       fi
24597 
24598       # Use eval to expand a potential ~
24599       eval path="$path"
24600       if test ! -f "$path" && test ! -d "$path"; then
24601         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24602       fi
24603 
24604       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24605     fi
24606   fi
24607 
24608             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24609 $as_echo_n "checking for Boot JDK... " >&6; }
24610             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24611 $as_echo "$BOOT_JDK" >&6; }
24612             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24613 $as_echo_n "checking Boot JDK version... " >&6; }
24614             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24615             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24616 $as_echo "$BOOT_JDK_VERSION" >&6; }
24617           fi # end check jdk version
24618         fi # end check javac
24619       fi # end check java
24620     fi # end check boot jdk found
24621   fi
24622 
24623 
24624   # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
24625 
24626   if test "x$BOOT_JDK_FOUND" = xno; then
24627     # Now execute the test
24628 
24629   # Extract the first word of "javac", so it can be a program name with args.
24630 set dummy javac; ac_word=$2
24631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24632 $as_echo_n "checking for $ac_word... " >&6; }
24633 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
24634   $as_echo_n "(cached) " >&6
24635 else
24636   case $JAVAC_CHECK in
24637   [\\/]* | ?:[\\/]*)
24638   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
24639   ;;
24640   *)
24641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24642 for as_dir in $PATH
24643 do
24644   IFS=$as_save_IFS
24645   test -z "$as_dir" && as_dir=.
24646     for ac_exec_ext in '' $ac_executable_extensions; do
24647   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24648     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
24649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24650     break 2
24651   fi
24652 done
24653   done
24654 IFS=$as_save_IFS
24655 
24656   ;;
24657 esac
24658 fi
24659 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
24660 if test -n "$JAVAC_CHECK"; then
24661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
24662 $as_echo "$JAVAC_CHECK" >&6; }
24663 else
24664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24665 $as_echo "no" >&6; }
24666 fi
24667 
24668 
24669   # Extract the first word of "java", so it can be a program name with args.
24670 set dummy java; ac_word=$2
24671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24672 $as_echo_n "checking for $ac_word... " >&6; }
24673 if ${ac_cv_path_JAVA_CHECK+:} false; then :
24674   $as_echo_n "(cached) " >&6
24675 else
24676   case $JAVA_CHECK in
24677   [\\/]* | ?:[\\/]*)
24678   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
24679   ;;
24680   *)
24681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24682 for as_dir in $PATH
24683 do
24684   IFS=$as_save_IFS
24685   test -z "$as_dir" && as_dir=.
24686     for ac_exec_ext in '' $ac_executable_extensions; do
24687   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24688     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
24689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24690     break 2
24691   fi
24692 done
24693   done
24694 IFS=$as_save_IFS
24695 
24696   ;;
24697 esac
24698 fi
24699 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
24700 if test -n "$JAVA_CHECK"; then
24701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
24702 $as_echo "$JAVA_CHECK" >&6; }
24703 else
24704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24705 $as_echo "no" >&6; }
24706 fi
24707 
24708 
24709   BINARY="$JAVAC_CHECK"
24710   if test "x$JAVAC_CHECK" = x; then
24711     BINARY="$JAVA_CHECK"
24712   fi
24713   if test "x$BINARY" != x; then
24714     # So there is a java(c) binary, it might be part of a JDK.
24715     # Lets find the JDK/JRE directory by following symbolic links.
24716     # Linux/GNU systems often have links from /usr/bin/java to
24717     # /etc/alternatives/java to the real JDK binary.
24718 
24719   if test "x$OPENJDK_BUILD_OS" != xwindows; then
24720     # Follow a chain of symbolic links. Use readlink
24721     # where it exists, else fall back to horribly
24722     # complicated shell code.
24723     if test "x$READLINK_TESTED" != yes; then
24724       # On MacOSX there is a readlink tool with a different
24725       # purpose than the GNU readlink tool. Check the found readlink.
24726       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
24727       if test "x$ISGNU" = x; then
24728         # A readlink that we do not know how to use.
24729         # Are there other non-GNU readlinks out there?
24730         READLINK_TESTED=yes
24731         READLINK=
24732       fi
24733     fi
24734 
24735     if test "x$READLINK" != x; then
24736       BINARY=`$READLINK -f $BINARY`
24737     else
24738       # Save the current directory for restoring afterwards
24739       STARTDIR=$PWD
24740       COUNTER=0
24741       sym_link_dir=`$DIRNAME $BINARY`
24742       sym_link_file=`$BASENAME $BINARY`
24743       cd $sym_link_dir
24744       # Use -P flag to resolve symlinks in directories.
24745       cd `$THEPWDCMD -P`
24746       sym_link_dir=`$THEPWDCMD -P`
24747       # Resolve file symlinks
24748       while test $COUNTER -lt 20; do
24749         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
24750         if test "x$ISLINK" == x; then
24751           # This is not a symbolic link! We are done!
24752           break
24753         fi
24754         # Again resolve directory symlinks since the target of the just found
24755         # link could be in a different directory
24756         cd `$DIRNAME $ISLINK`
24757         sym_link_dir=`$THEPWDCMD -P`
24758         sym_link_file=`$BASENAME $ISLINK`
24759         let COUNTER=COUNTER+1
24760       done
24761       cd $STARTDIR
24762       BINARY=$sym_link_dir/$sym_link_file
24763     fi
24764   fi
24765 
24766     BOOT_JDK=`dirname "$BINARY"`
24767     BOOT_JDK=`cd "$BOOT_JDK/.."; pwd`
24768     if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
24769       # Looks like we found ourselves an JDK
24770       BOOT_JDK_FOUND=maybe
24771       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5
24772 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;}
24773     fi
24774   fi
24775 
24776 
24777     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24778     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24779       # Do we have a bin/java?
24780       if test ! -x "$BOOT_JDK/bin/java"; then
24781         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24782 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24783         BOOT_JDK_FOUND=no
24784       else
24785         # Do we have a bin/javac?
24786         if test ! -x "$BOOT_JDK/bin/javac"; then
24787           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24788 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24789           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24790 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24791           BOOT_JDK_FOUND=no
24792         else
24793           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24794           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24795 
24796           # Extra M4 quote needed to protect [] in grep expression.
24797           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24798           if test "x$FOUND_CORRECT_VERSION" = x; then
24799             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24800 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24801             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24802 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24803             BOOT_JDK_FOUND=no
24804           else
24805             # We're done! :-)
24806             BOOT_JDK_FOUND=yes
24807 
24808   # Only process if variable expands to non-empty
24809 
24810   if test "x$BOOT_JDK" != x; then
24811     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24812 
24813   # Input might be given as Windows format, start by converting to
24814   # unix format.
24815   path="$BOOT_JDK"
24816   new_path=`$CYGPATH -u "$path"`
24817 
24818   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24819   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24820   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24821   # "foo.exe" is OK but "foo" is an error.
24822   #
24823   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24824   # It is also a way to make sure we got the proper file name for the real test later on.
24825   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24826   if test "x$test_shortpath" = x; then
24827     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24828 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24829     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24830   fi
24831 
24832   # Call helper function which possibly converts this using DOS-style short mode.
24833   # If so, the updated path is stored in $new_path.
24834 
24835   input_path="$new_path"
24836   # Check if we need to convert this using DOS-style short mode. If the path
24837   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24838   # take no chances and rewrite it.
24839   # Note: m4 eats our [], so we need to use [ and ] instead.
24840   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24841   if test "x$has_forbidden_chars" != x; then
24842     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24843     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24844     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24845     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24846       # Going to short mode and back again did indeed matter. Since short mode is
24847       # case insensitive, let's make it lowercase to improve readability.
24848       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24849       # Now convert it back to Unix-style (cygpath)
24850       input_path=`$CYGPATH -u "$shortmode_path"`
24851       new_path="$input_path"
24852     fi
24853   fi
24854 
24855   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24856   if test "x$test_cygdrive_prefix" = x; then
24857     # As a simple fix, exclude /usr/bin since it's not a real path.
24858     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24859       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24860       # a path prefixed by /cygdrive for fixpath to work.
24861       new_path="$CYGWIN_ROOT_PATH$input_path"
24862     fi
24863   fi
24864 
24865 
24866   if test "x$path" != "x$new_path"; then
24867     BOOT_JDK="$new_path"
24868     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24869 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24870   fi
24871 
24872     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24873 
24874   path="$BOOT_JDK"
24875   has_colon=`$ECHO $path | $GREP ^.:`
24876   new_path="$path"
24877   if test "x$has_colon" = x; then
24878     # Not in mixed or Windows style, start by that.
24879     new_path=`cmd //c echo $path`
24880   fi
24881 
24882 
24883   input_path="$new_path"
24884   # Check if we need to convert this using DOS-style short mode. If the path
24885   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24886   # take no chances and rewrite it.
24887   # Note: m4 eats our [], so we need to use [ and ] instead.
24888   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24889   if test "x$has_forbidden_chars" != x; then
24890     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24891     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24892   fi
24893 
24894 
24895   windows_path="$new_path"
24896   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24897     unix_path=`$CYGPATH -u "$windows_path"`
24898     new_path="$unix_path"
24899   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24900     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24901     new_path="$unix_path"
24902   fi
24903 
24904   if test "x$path" != "x$new_path"; then
24905     BOOT_JDK="$new_path"
24906     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24907 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24908   fi
24909 
24910   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24911   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24912 
24913     else
24914       # We're on a unix platform. Hooray! :)
24915       path="$BOOT_JDK"
24916       has_space=`$ECHO "$path" | $GREP " "`
24917       if test "x$has_space" != x; then
24918         { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24919 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24920         as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24921       fi
24922 
24923       # Use eval to expand a potential ~
24924       eval path="$path"
24925       if test ! -f "$path" && test ! -d "$path"; then
24926         as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24927       fi
24928 
24929       BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24930     fi
24931   fi
24932 
24933             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24934 $as_echo_n "checking for Boot JDK... " >&6; }
24935             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24936 $as_echo "$BOOT_JDK" >&6; }
24937             { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24938 $as_echo_n "checking Boot JDK version... " >&6; }
24939             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24940             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24941 $as_echo "$BOOT_JDK_VERSION" >&6; }
24942           fi # end check jdk version
24943         fi # end check javac
24944       fi # end check java
24945     fi # end check boot jdk found
24946   fi
24947 
24948 
24949   # Test: Is there a JDK installed in default, well-known locations?
24950 
24951   if test "x$BOOT_JDK_FOUND" = xno; then
24952     # Now execute the test
24953 
24954   if test "x$OPENJDK_TARGET_OS" = xwindows; then
24955 
24956   if test "x$BOOT_JDK_FOUND" = xno; then
24957     # Now execute the test
24958 
24959   if test "x$ProgramW6432" != x; then
24960     VIRTUAL_DIR="$ProgramW6432/Java"
24961 
24962   windows_path="$VIRTUAL_DIR"
24963   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24964     unix_path=`$CYGPATH -u "$windows_path"`
24965     VIRTUAL_DIR="$unix_path"
24966   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24967     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24968     VIRTUAL_DIR="$unix_path"
24969   fi
24970 
24971 
24972   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
24973   BOOT_JDK_SUFFIX=""
24974   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24975   if test "x$ALL_JDKS_FOUND" != x; then
24976     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24977 
24978   if test "x$BOOT_JDK_FOUND" = xno; then
24979     # Now execute the test
24980 
24981         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24982         if test -d "$BOOT_JDK"; then
24983           BOOT_JDK_FOUND=maybe
24984           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24985 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24986         fi
24987 
24988 
24989     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24990     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24991       # Do we have a bin/java?
24992       if test ! -x "$BOOT_JDK/bin/java"; then
24993         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24994 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24995         BOOT_JDK_FOUND=no
24996       else
24997         # Do we have a bin/javac?
24998         if test ! -x "$BOOT_JDK/bin/javac"; then
24999           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
25000 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
25001           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
25002 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
25003           BOOT_JDK_FOUND=no
25004         else
25005           # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
25006           BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
25007 
25008           # Extra M4 quote needed to protect [] in grep expression.
25009           FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
25010           if test "x$FOUND_CORRECT_VERSION" = x; then
25011             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
25012 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
25013             { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
25014 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
25015             BOOT_JDK_FOUND=no
25016           else
25017             # We're done! :-)
25018             BOOT_JDK_FOUND=yes
25019 
25020   # Only process if variable expands to non-empty
25021 
25022   if test "x$BOOT_JDK" != x; then
25023     if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25024 
25025   # Input might be given as Windows format, start by converting to
25026   # unix format.
25027   path="$BOOT_JDK"
25028   new_path=`$CYGPATH -u "$path"`
25029 
25030   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
25031   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
25032   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
25033   # "foo.exe" is OK but "foo" is an error.
25034   #
25035   # This test is therefore slightly more accurate than "test -f" to check for file precense.
25036   # It is also a way to make sure we got the proper file name for the real test later on.
25037   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
25038   if test "x$test_shortpath" = x; then
25039     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
25040 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
25041     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
25042   fi
25043 
25044   # Call helper function which possibly converts this using DOS-style short mode.
25045   # If so, the updated path is stored in $new_path.
25046 
25047   input_path="$new_path"
25048   # Check if we need to convert this using DOS-style short mode. If the path
25049   # contains just simple characters, use it. Otherwise (spaces, weird characters),
25050   # take no chances and rewrite it.
25051   # Note: m4 eats our [], so we need to use [ and ] instead.
25052   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
25053   if test "x$has_forbidden_chars" != x; then
25054     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
25055     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
25056     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
25057     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
25058       # Going to short mode and back again did indeed matter. Since short mode is
25059       # case insensitive, let's make it lowercase to improve readability.
25060       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
25061       # Now convert it back to Unix-style (cygpath)
25062       input_path=`$CYGPATH -u "$shortmode_path"`
25063       new_path="$input_path"
25064     fi
25065   fi
25066 
25067   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
25068   if test "x$test_cygdrive_prefix" = x; then
25069     # As a simple fix, exclude /usr/bin since it's not a real path.
25070     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
25071       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
25072       # a path prefixed by /cygdrive for fixpath to work.
25073       new_path="$CYGWIN_ROOT_PATH$input_path"
25074     fi
25075   fi
25076 
25077 
25078   if test "x$path" != "x$new_path"; then
25079     BOOT_JDK="$new_path"
25080     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
25081 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
25082   fi
25083 
25084     elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
25085 
25086   path="$BOOT_JDK"
25087   has_colon=`$ECHO $path | $GREP ^.:`
25088   new_path="$path"
25089